296 lines
12 KiB
Go
296 lines
12 KiB
Go
// Code generated by protoc-gen-go.
|
|
// source: google.golang.org/genproto/protobuf/api.proto
|
|
// DO NOT EDIT!
|
|
|
|
/*
|
|
Package descriptor is a generated protocol buffer package.
|
|
|
|
It is generated from these files:
|
|
google.golang.org/genproto/protobuf/api.proto
|
|
google.golang.org/genproto/protobuf/descriptor.proto
|
|
google.golang.org/genproto/protobuf/field_mask.proto
|
|
google.golang.org/genproto/protobuf/source_context.proto
|
|
google.golang.org/genproto/protobuf/type.proto
|
|
|
|
It has these top-level messages:
|
|
Api
|
|
Method
|
|
Mixin
|
|
FileDescriptorSet
|
|
FileDescriptorProto
|
|
DescriptorProto
|
|
FieldDescriptorProto
|
|
OneofDescriptorProto
|
|
EnumDescriptorProto
|
|
EnumValueDescriptorProto
|
|
ServiceDescriptorProto
|
|
MethodDescriptorProto
|
|
FileOptions
|
|
MessageOptions
|
|
FieldOptions
|
|
OneofOptions
|
|
EnumOptions
|
|
EnumValueOptions
|
|
ServiceOptions
|
|
MethodOptions
|
|
UninterpretedOption
|
|
SourceCodeInfo
|
|
GeneratedCodeInfo
|
|
FieldMask
|
|
SourceContext
|
|
Type
|
|
Field
|
|
Enum
|
|
EnumValue
|
|
Option
|
|
*/
|
|
package descriptor // import "google.golang.org/genproto/protobuf"
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
// Api is a light-weight descriptor for a protocol buffer service.
|
|
type Api struct {
|
|
// The fully qualified name of this api, including package name
|
|
// followed by the api's simple name.
|
|
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
|
// The methods of this api, in unspecified order.
|
|
Methods []*Method `protobuf:"bytes,2,rep,name=methods" json:"methods,omitempty"`
|
|
// Any metadata attached to the API.
|
|
Options []*Option `protobuf:"bytes,3,rep,name=options" json:"options,omitempty"`
|
|
// A version string for this api. If specified, must have the form
|
|
// `major-version.minor-version`, as in `1.10`. If the minor version
|
|
// is omitted, it defaults to zero. If the entire version field is
|
|
// empty, the major version is derived from the package name, as
|
|
// outlined below. If the field is not empty, the version in the
|
|
// package name will be verified to be consistent with what is
|
|
// provided here.
|
|
//
|
|
// The versioning schema uses [semantic
|
|
// versioning](http://semver.org) where the major version number
|
|
// indicates a breaking change and the minor version an additive,
|
|
// non-breaking change. Both version numbers are signals to users
|
|
// what to expect from different versions, and should be carefully
|
|
// chosen based on the product plan.
|
|
//
|
|
// The major version is also reflected in the package name of the
|
|
// API, which must end in `v<major-version>`, as in
|
|
// `google.feature.v1`. For major versions 0 and 1, the suffix can
|
|
// be omitted. Zero major versions must only be used for
|
|
// experimental, none-GA apis.
|
|
//
|
|
//
|
|
Version string `protobuf:"bytes,4,opt,name=version" json:"version,omitempty"`
|
|
// Source context for the protocol buffer service represented by this
|
|
// message.
|
|
SourceContext *SourceContext `protobuf:"bytes,5,opt,name=source_context,json=sourceContext" json:"source_context,omitempty"`
|
|
// Included APIs. See [Mixin][].
|
|
Mixins []*Mixin `protobuf:"bytes,6,rep,name=mixins" json:"mixins,omitempty"`
|
|
// The source syntax of the service.
|
|
Syntax Syntax `protobuf:"varint,7,opt,name=syntax,enum=google.protobuf.Syntax" json:"syntax,omitempty"`
|
|
}
|
|
|
|
func (m *Api) Reset() { *m = Api{} }
|
|
func (m *Api) String() string { return proto.CompactTextString(m) }
|
|
func (*Api) ProtoMessage() {}
|
|
func (*Api) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
|
|
|
func (m *Api) GetMethods() []*Method {
|
|
if m != nil {
|
|
return m.Methods
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Api) GetOptions() []*Option {
|
|
if m != nil {
|
|
return m.Options
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Api) GetSourceContext() *SourceContext {
|
|
if m != nil {
|
|
return m.SourceContext
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Api) GetMixins() []*Mixin {
|
|
if m != nil {
|
|
return m.Mixins
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// Method represents a method of an api.
|
|
type Method struct {
|
|
// The simple name of this method.
|
|
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
|
// A URL of the input message type.
|
|
RequestTypeUrl string `protobuf:"bytes,2,opt,name=request_type_url,json=requestTypeUrl" json:"request_type_url,omitempty"`
|
|
// If true, the request is streamed.
|
|
RequestStreaming bool `protobuf:"varint,3,opt,name=request_streaming,json=requestStreaming" json:"request_streaming,omitempty"`
|
|
// The URL of the output message type.
|
|
ResponseTypeUrl string `protobuf:"bytes,4,opt,name=response_type_url,json=responseTypeUrl" json:"response_type_url,omitempty"`
|
|
// If true, the response is streamed.
|
|
ResponseStreaming bool `protobuf:"varint,5,opt,name=response_streaming,json=responseStreaming" json:"response_streaming,omitempty"`
|
|
// Any metadata attached to the method.
|
|
Options []*Option `protobuf:"bytes,6,rep,name=options" json:"options,omitempty"`
|
|
// The source syntax of this method.
|
|
Syntax Syntax `protobuf:"varint,7,opt,name=syntax,enum=google.protobuf.Syntax" json:"syntax,omitempty"`
|
|
}
|
|
|
|
func (m *Method) Reset() { *m = Method{} }
|
|
func (m *Method) String() string { return proto.CompactTextString(m) }
|
|
func (*Method) ProtoMessage() {}
|
|
func (*Method) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
|
|
|
func (m *Method) GetOptions() []*Option {
|
|
if m != nil {
|
|
return m.Options
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// Declares an API to be included in this API. The including API must
|
|
// redeclare all the methods from the included API, but documentation
|
|
// and options are inherited as follows:
|
|
//
|
|
// - If after comment and whitespace stripping, the documentation
|
|
// string of the redeclared method is empty, it will be inherited
|
|
// from the original method.
|
|
//
|
|
// - Each annotation belonging to the service config (http,
|
|
// visibility) which is not set in the redeclared method will be
|
|
// inherited.
|
|
//
|
|
// - If an http annotation is inherited, the path pattern will be
|
|
// modified as follows. Any version prefix will be replaced by the
|
|
// version of the including API plus the [root][] path if specified.
|
|
//
|
|
// Example of a simple mixin:
|
|
//
|
|
// package google.acl.v1;
|
|
// service AccessControl {
|
|
// // Get the underlying ACL object.
|
|
// rpc GetAcl(GetAclRequest) returns (Acl) {
|
|
// option (google.api.http).get = "/v1/{resource=**}:getAcl";
|
|
// }
|
|
// }
|
|
//
|
|
// package google.storage.v2;
|
|
// service Storage {
|
|
// rpc GetAcl(GetAclRequest) returns (Acl);
|
|
//
|
|
// // Get a data record.
|
|
// rpc GetData(GetDataRequest) returns (Data) {
|
|
// option (google.api.http).get = "/v2/{resource=**}";
|
|
// }
|
|
// }
|
|
//
|
|
// Example of a mixin configuration:
|
|
//
|
|
// apis:
|
|
// - name: google.storage.v2.Storage
|
|
// mixins:
|
|
// - name: google.acl.v1.AccessControl
|
|
//
|
|
// The mixin construct implies that all methods in `AccessControl` are
|
|
// also declared with same name and request/response types in
|
|
// `Storage`. A documentation generator or annotation processor will
|
|
// see the effective `Storage.GetAcl` method after inherting
|
|
// documentation and annotations as follows:
|
|
//
|
|
// service Storage {
|
|
// // Get the underlying ACL object.
|
|
// rpc GetAcl(GetAclRequest) returns (Acl) {
|
|
// option (google.api.http).get = "/v2/{resource=**}:getAcl";
|
|
// }
|
|
// ...
|
|
// }
|
|
//
|
|
// Note how the version in the path pattern changed from `v1` to `v2`.
|
|
//
|
|
// If the `root` field in the mixin is specified, it should be a
|
|
// relative path under which inherited HTTP paths are placed. Example:
|
|
//
|
|
// apis:
|
|
// - name: google.storage.v2.Storage
|
|
// mixins:
|
|
// - name: google.acl.v1.AccessControl
|
|
// root: acls
|
|
//
|
|
// This implies the following inherited HTTP annotation:
|
|
//
|
|
// service Storage {
|
|
// // Get the underlying ACL object.
|
|
// rpc GetAcl(GetAclRequest) returns (Acl) {
|
|
// option (google.api.http).get = "/v2/acls/{resource=**}:getAcl";
|
|
// }
|
|
// ...
|
|
// }
|
|
type Mixin struct {
|
|
// The fully qualified name of the API which is included.
|
|
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
|
// If non-empty specifies a path under which inherited HTTP paths
|
|
// are rooted.
|
|
Root string `protobuf:"bytes,2,opt,name=root" json:"root,omitempty"`
|
|
}
|
|
|
|
func (m *Mixin) Reset() { *m = Mixin{} }
|
|
func (m *Mixin) String() string { return proto.CompactTextString(m) }
|
|
func (*Mixin) ProtoMessage() {}
|
|
func (*Mixin) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
|
|
|
|
func init() {
|
|
proto.RegisterType((*Api)(nil), "google.protobuf.Api")
|
|
proto.RegisterType((*Method)(nil), "google.protobuf.Method")
|
|
proto.RegisterType((*Mixin)(nil), "google.protobuf.Mixin")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("google.golang.org/genproto/protobuf/api.proto", fileDescriptor0) }
|
|
|
|
var fileDescriptor0 = []byte{
|
|
// 420 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x91, 0x41, 0xcf, 0xd2, 0x30,
|
|
0x1c, 0xc6, 0xb3, 0x0d, 0xc6, 0x6b, 0xdf, 0x08, 0x5a, 0x13, 0x6d, 0x38, 0x90, 0x85, 0xd3, 0xa2,
|
|
0x61, 0x8b, 0x78, 0xf1, 0x0a, 0xc6, 0x60, 0x62, 0x8c, 0xcb, 0xd0, 0x78, 0x24, 0x03, 0xeb, 0x6c,
|
|
0xb2, 0xf5, 0x5f, 0xdb, 0x4e, 0xe1, 0xeb, 0x78, 0xf4, 0xe8, 0x37, 0xf0, 0x9b, 0x99, 0x75, 0x2b,
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