25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

406 satır
15 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/protobuf/api.proto
  3. package api // import "google.golang.org/genproto/protobuf/api"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import ptype "google.golang.org/genproto/protobuf/ptype"
  8. import source_context "google.golang.org/genproto/protobuf/source_context"
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  18. // Api is a light-weight descriptor for an API Interface.
  19. //
  20. // Interfaces are also described as "protocol buffer services" in some contexts,
  21. // such as by the "service" keyword in a .proto file, but they are different
  22. // from API Services, which represent a concrete implementation of an interface
  23. // as opposed to simply a description of methods and bindings. They are also
  24. // sometimes simply referred to as "APIs" in other contexts, such as the name of
  25. // this message itself. See https://cloud.google.com/apis/design/glossary for
  26. // detailed terminology.
  27. type Api struct {
  28. // The fully qualified name of this interface, including package name
  29. // followed by the interface's simple name.
  30. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  31. // The methods of this interface, in unspecified order.
  32. Methods []*Method `protobuf:"bytes,2,rep,name=methods,proto3" json:"methods,omitempty"`
  33. // Any metadata attached to the interface.
  34. Options []*ptype.Option `protobuf:"bytes,3,rep,name=options,proto3" json:"options,omitempty"`
  35. // A version string for this interface. If specified, must have the form
  36. // `major-version.minor-version`, as in `1.10`. If the minor version is
  37. // omitted, it defaults to zero. If the entire version field is empty, the
  38. // major version is derived from the package name, as outlined below. If the
  39. // field is not empty, the version in the package name will be verified to be
  40. // consistent with what is provided here.
  41. //
  42. // The versioning schema uses [semantic
  43. // versioning](http://semver.org) where the major version number
  44. // indicates a breaking change and the minor version an additive,
  45. // non-breaking change. Both version numbers are signals to users
  46. // what to expect from different versions, and should be carefully
  47. // chosen based on the product plan.
  48. //
  49. // The major version is also reflected in the package name of the
  50. // interface, which must end in `v<major-version>`, as in
  51. // `google.feature.v1`. For major versions 0 and 1, the suffix can
  52. // be omitted. Zero major versions must only be used for
  53. // experimental, non-GA interfaces.
  54. //
  55. //
  56. Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
  57. // Source context for the protocol buffer service represented by this
  58. // message.
  59. SourceContext *source_context.SourceContext `protobuf:"bytes,5,opt,name=source_context,json=sourceContext,proto3" json:"source_context,omitempty"`
  60. // Included interfaces. See [Mixin][].
  61. Mixins []*Mixin `protobuf:"bytes,6,rep,name=mixins,proto3" json:"mixins,omitempty"`
  62. // The source syntax of the service.
  63. Syntax ptype.Syntax `protobuf:"varint,7,opt,name=syntax,proto3,enum=google.protobuf.Syntax" json:"syntax,omitempty"`
  64. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  65. XXX_unrecognized []byte `json:"-"`
  66. XXX_sizecache int32 `json:"-"`
  67. }
  68. func (m *Api) Reset() { *m = Api{} }
  69. func (m *Api) String() string { return proto.CompactTextString(m) }
  70. func (*Api) ProtoMessage() {}
  71. func (*Api) Descriptor() ([]byte, []int) {
  72. return fileDescriptor_api_3a57081c831903d2, []int{0}
  73. }
  74. func (m *Api) XXX_Unmarshal(b []byte) error {
  75. return xxx_messageInfo_Api.Unmarshal(m, b)
  76. }
  77. func (m *Api) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  78. return xxx_messageInfo_Api.Marshal(b, m, deterministic)
  79. }
  80. func (dst *Api) XXX_Merge(src proto.Message) {
  81. xxx_messageInfo_Api.Merge(dst, src)
  82. }
  83. func (m *Api) XXX_Size() int {
  84. return xxx_messageInfo_Api.Size(m)
  85. }
  86. func (m *Api) XXX_DiscardUnknown() {
  87. xxx_messageInfo_Api.DiscardUnknown(m)
  88. }
  89. var xxx_messageInfo_Api proto.InternalMessageInfo
  90. func (m *Api) GetName() string {
  91. if m != nil {
  92. return m.Name
  93. }
  94. return ""
  95. }
  96. func (m *Api) GetMethods() []*Method {
  97. if m != nil {
  98. return m.Methods
  99. }
  100. return nil
  101. }
  102. func (m *Api) GetOptions() []*ptype.Option {
  103. if m != nil {
  104. return m.Options
  105. }
  106. return nil
  107. }
  108. func (m *Api) GetVersion() string {
  109. if m != nil {
  110. return m.Version
  111. }
  112. return ""
  113. }
  114. func (m *Api) GetSourceContext() *source_context.SourceContext {
  115. if m != nil {
  116. return m.SourceContext
  117. }
  118. return nil
  119. }
  120. func (m *Api) GetMixins() []*Mixin {
  121. if m != nil {
  122. return m.Mixins
  123. }
  124. return nil
  125. }
  126. func (m *Api) GetSyntax() ptype.Syntax {
  127. if m != nil {
  128. return m.Syntax
  129. }
  130. return ptype.Syntax_SYNTAX_PROTO2
  131. }
  132. // Method represents a method of an API interface.
  133. type Method struct {
  134. // The simple name of this method.
  135. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  136. // A URL of the input message type.
  137. RequestTypeUrl string `protobuf:"bytes,2,opt,name=request_type_url,json=requestTypeUrl,proto3" json:"request_type_url,omitempty"`
  138. // If true, the request is streamed.
  139. RequestStreaming bool `protobuf:"varint,3,opt,name=request_streaming,json=requestStreaming,proto3" json:"request_streaming,omitempty"`
  140. // The URL of the output message type.
  141. ResponseTypeUrl string `protobuf:"bytes,4,opt,name=response_type_url,json=responseTypeUrl,proto3" json:"response_type_url,omitempty"`
  142. // If true, the response is streamed.
  143. ResponseStreaming bool `protobuf:"varint,5,opt,name=response_streaming,json=responseStreaming,proto3" json:"response_streaming,omitempty"`
  144. // Any metadata attached to the method.
  145. Options []*ptype.Option `protobuf:"bytes,6,rep,name=options,proto3" json:"options,omitempty"`
  146. // The source syntax of this method.
  147. Syntax ptype.Syntax `protobuf:"varint,7,opt,name=syntax,proto3,enum=google.protobuf.Syntax" json:"syntax,omitempty"`
  148. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  149. XXX_unrecognized []byte `json:"-"`
  150. XXX_sizecache int32 `json:"-"`
  151. }
  152. func (m *Method) Reset() { *m = Method{} }
  153. func (m *Method) String() string { return proto.CompactTextString(m) }
  154. func (*Method) ProtoMessage() {}
  155. func (*Method) Descriptor() ([]byte, []int) {
  156. return fileDescriptor_api_3a57081c831903d2, []int{1}
  157. }
  158. func (m *Method) XXX_Unmarshal(b []byte) error {
  159. return xxx_messageInfo_Method.Unmarshal(m, b)
  160. }
  161. func (m *Method) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  162. return xxx_messageInfo_Method.Marshal(b, m, deterministic)
  163. }
  164. func (dst *Method) XXX_Merge(src proto.Message) {
  165. xxx_messageInfo_Method.Merge(dst, src)
  166. }
  167. func (m *Method) XXX_Size() int {
  168. return xxx_messageInfo_Method.Size(m)
  169. }
  170. func (m *Method) XXX_DiscardUnknown() {
  171. xxx_messageInfo_Method.DiscardUnknown(m)
  172. }
  173. var xxx_messageInfo_Method proto.InternalMessageInfo
  174. func (m *Method) GetName() string {
  175. if m != nil {
  176. return m.Name
  177. }
  178. return ""
  179. }
  180. func (m *Method) GetRequestTypeUrl() string {
  181. if m != nil {
  182. return m.RequestTypeUrl
  183. }
  184. return ""
  185. }
  186. func (m *Method) GetRequestStreaming() bool {
  187. if m != nil {
  188. return m.RequestStreaming
  189. }
  190. return false
  191. }
  192. func (m *Method) GetResponseTypeUrl() string {
  193. if m != nil {
  194. return m.ResponseTypeUrl
  195. }
  196. return ""
  197. }
  198. func (m *Method) GetResponseStreaming() bool {
  199. if m != nil {
  200. return m.ResponseStreaming
  201. }
  202. return false
  203. }
  204. func (m *Method) GetOptions() []*ptype.Option {
  205. if m != nil {
  206. return m.Options
  207. }
  208. return nil
  209. }
  210. func (m *Method) GetSyntax() ptype.Syntax {
  211. if m != nil {
  212. return m.Syntax
  213. }
  214. return ptype.Syntax_SYNTAX_PROTO2
  215. }
  216. // Declares an API Interface to be included in this interface. The including
  217. // interface must redeclare all the methods from the included interface, but
  218. // documentation and options are inherited as follows:
  219. //
  220. // - If after comment and whitespace stripping, the documentation
  221. // string of the redeclared method is empty, it will be inherited
  222. // from the original method.
  223. //
  224. // - Each annotation belonging to the service config (http,
  225. // visibility) which is not set in the redeclared method will be
  226. // inherited.
  227. //
  228. // - If an http annotation is inherited, the path pattern will be
  229. // modified as follows. Any version prefix will be replaced by the
  230. // version of the including interface plus the [root][] path if
  231. // specified.
  232. //
  233. // Example of a simple mixin:
  234. //
  235. // package google.acl.v1;
  236. // service AccessControl {
  237. // // Get the underlying ACL object.
  238. // rpc GetAcl(GetAclRequest) returns (Acl) {
  239. // option (google.api.http).get = "/v1/{resource=**}:getAcl";
  240. // }
  241. // }
  242. //
  243. // package google.storage.v2;
  244. // service Storage {
  245. // rpc GetAcl(GetAclRequest) returns (Acl);
  246. //
  247. // // Get a data record.
  248. // rpc GetData(GetDataRequest) returns (Data) {
  249. // option (google.api.http).get = "/v2/{resource=**}";
  250. // }
  251. // }
  252. //
  253. // Example of a mixin configuration:
  254. //
  255. // apis:
  256. // - name: google.storage.v2.Storage
  257. // mixins:
  258. // - name: google.acl.v1.AccessControl
  259. //
  260. // The mixin construct implies that all methods in `AccessControl` are
  261. // also declared with same name and request/response types in
  262. // `Storage`. A documentation generator or annotation processor will
  263. // see the effective `Storage.GetAcl` method after inherting
  264. // documentation and annotations as follows:
  265. //
  266. // service Storage {
  267. // // Get the underlying ACL object.
  268. // rpc GetAcl(GetAclRequest) returns (Acl) {
  269. // option (google.api.http).get = "/v2/{resource=**}:getAcl";
  270. // }
  271. // ...
  272. // }
  273. //
  274. // Note how the version in the path pattern changed from `v1` to `v2`.
  275. //
  276. // If the `root` field in the mixin is specified, it should be a
  277. // relative path under which inherited HTTP paths are placed. Example:
  278. //
  279. // apis:
  280. // - name: google.storage.v2.Storage
  281. // mixins:
  282. // - name: google.acl.v1.AccessControl
  283. // root: acls
  284. //
  285. // This implies the following inherited HTTP annotation:
  286. //
  287. // service Storage {
  288. // // Get the underlying ACL object.
  289. // rpc GetAcl(GetAclRequest) returns (Acl) {
  290. // option (google.api.http).get = "/v2/acls/{resource=**}:getAcl";
  291. // }
  292. // ...
  293. // }
  294. type Mixin struct {
  295. // The fully qualified name of the interface which is included.
  296. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  297. // If non-empty specifies a path under which inherited HTTP paths
  298. // are rooted.
  299. Root string `protobuf:"bytes,2,opt,name=root,proto3" json:"root,omitempty"`
  300. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  301. XXX_unrecognized []byte `json:"-"`
  302. XXX_sizecache int32 `json:"-"`
  303. }
  304. func (m *Mixin) Reset() { *m = Mixin{} }
  305. func (m *Mixin) String() string { return proto.CompactTextString(m) }
  306. func (*Mixin) ProtoMessage() {}
  307. func (*Mixin) Descriptor() ([]byte, []int) {
  308. return fileDescriptor_api_3a57081c831903d2, []int{2}
  309. }
  310. func (m *Mixin) XXX_Unmarshal(b []byte) error {
  311. return xxx_messageInfo_Mixin.Unmarshal(m, b)
  312. }
  313. func (m *Mixin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  314. return xxx_messageInfo_Mixin.Marshal(b, m, deterministic)
  315. }
  316. func (dst *Mixin) XXX_Merge(src proto.Message) {
  317. xxx_messageInfo_Mixin.Merge(dst, src)
  318. }
  319. func (m *Mixin) XXX_Size() int {
  320. return xxx_messageInfo_Mixin.Size(m)
  321. }
  322. func (m *Mixin) XXX_DiscardUnknown() {
  323. xxx_messageInfo_Mixin.DiscardUnknown(m)
  324. }
  325. var xxx_messageInfo_Mixin proto.InternalMessageInfo
  326. func (m *Mixin) GetName() string {
  327. if m != nil {
  328. return m.Name
  329. }
  330. return ""
  331. }
  332. func (m *Mixin) GetRoot() string {
  333. if m != nil {
  334. return m.Root
  335. }
  336. return ""
  337. }
  338. func init() {
  339. proto.RegisterType((*Api)(nil), "google.protobuf.Api")
  340. proto.RegisterType((*Method)(nil), "google.protobuf.Method")
  341. proto.RegisterType((*Mixin)(nil), "google.protobuf.Mixin")
  342. }
  343. func init() { proto.RegisterFile("google/protobuf/api.proto", fileDescriptor_api_3a57081c831903d2) }
  344. var fileDescriptor_api_3a57081c831903d2 = []byte{
  345. // 432 bytes of a gzipped FileDescriptorProto
  346. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0xcf, 0x8e, 0xd3, 0x30,
  347. 0x10, 0xc6, 0x95, 0xa4, 0x4d, 0x17, 0xaf, 0xe8, 0x82, 0x91, 0xc0, 0xf4, 0xb0, 0x8a, 0x56, 0x1c,
  348. 0x22, 0x2a, 0x12, 0x51, 0x8e, 0x9c, 0x5a, 0x84, 0x7a, 0x40, 0x88, 0x28, 0x05, 0x21, 0x71, 0xa9,
  349. 0xd2, 0x62, 0x82, 0xa5, 0xc4, 0x63, 0x6c, 0x07, 0xda, 0xd7, 0xe1, 0xc8, 0x91, 0x37, 0xe0, 0xcd,
  350. 0x50, 0x9c, 0xb8, 0x7f, 0xd2, 0x22, 0xb1, 0x37, 0x8f, 0xbf, 0xdf, 0x7c, 0x99, 0xf9, 0xac, 0xa0,
  351. 0xc7, 0x39, 0x40, 0x5e, 0xd0, 0x58, 0x48, 0xd0, 0xb0, 0xaa, 0xbe, 0xc4, 0x99, 0x60, 0x91, 0x29,
  352. 0xf0, 0x55, 0x23, 0x45, 0x56, 0x1a, 0x3d, 0xe9, 0xb2, 0x0a, 0x2a, 0xb9, 0xa6, 0xcb, 0x35, 0x70,
  353. 0x4d, 0x37, 0xba, 0x01, 0x47, 0xa3, 0x2e, 0xa5, 0xb7, 0xa2, 0x35, 0xb9, 0xf9, 0xe3, 0x22, 0x6f,
  354. 0x2a, 0x18, 0xc6, 0xa8, 0xc7, 0xb3, 0x92, 0x12, 0x27, 0x70, 0xc2, 0x3b, 0xa9, 0x39, 0xe3, 0xe7,
  355. 0x68, 0x50, 0x52, 0xfd, 0x15, 0x3e, 0x2b, 0xe2, 0x06, 0x5e, 0x78, 0x39, 0x79, 0x14, 0x75, 0x06,
  356. 0x88, 0xde, 0x1a, 0x3d, 0xb5, 0x5c, 0xdd, 0x02, 0x42, 0x33, 0xe0, 0x8a, 0x78, 0xff, 0x68, 0x79,
  357. 0x67, 0xf4, 0xd4, 0x72, 0x98, 0xa0, 0xc1, 0x77, 0x2a, 0x15, 0x03, 0x4e, 0x7a, 0xe6, 0xe3, 0xb6,
  358. 0xc4, 0xaf, 0xd1, 0xf0, 0x78, 0x1f, 0xd2, 0x0f, 0x9c, 0xf0, 0x72, 0x72, 0x7d, 0xe2, 0xb9, 0x30,
  359. 0xd8, 0xab, 0x86, 0x4a, 0xef, 0xaa, 0xc3, 0x12, 0x47, 0xc8, 0x2f, 0xd9, 0x86, 0x71, 0x45, 0x7c,
  360. 0x33, 0xd2, 0xc3, 0xd3, 0x2d, 0x6a, 0x39, 0x6d, 0x29, 0x1c, 0x23, 0x5f, 0x6d, 0xb9, 0xce, 0x36,
  361. 0x64, 0x10, 0x38, 0xe1, 0xf0, 0xcc, 0x0a, 0x0b, 0x23, 0xa7, 0x2d, 0x76, 0xf3, 0xdb, 0x45, 0x7e,
  362. 0x13, 0xc4, 0xd9, 0x18, 0x43, 0x74, 0x4f, 0xd2, 0x6f, 0x15, 0x55, 0x7a, 0x59, 0x07, 0xbf, 0xac,
  363. 0x64, 0x41, 0x5c, 0xa3, 0x0f, 0xdb, 0xfb, 0xf7, 0x5b, 0x41, 0x3f, 0xc8, 0x02, 0x8f, 0xd1, 0x7d,
  364. 0x4b, 0x2a, 0x2d, 0x69, 0x56, 0x32, 0x9e, 0x13, 0x2f, 0x70, 0xc2, 0x8b, 0xd4, 0x5a, 0x2c, 0xec,
  365. 0x3d, 0x7e, 0x5a, 0xc3, 0x4a, 0x00, 0x57, 0x74, 0xef, 0xdb, 0x24, 0x78, 0x65, 0x05, 0x6b, 0xfc,
  366. 0x0c, 0xe1, 0x1d, 0xbb, 0x77, 0xee, 0x1b, 0xe7, 0x9d, 0xcb, 0xde, 0xfa, 0xe0, 0x15, 0xfd, 0xff,
  367. 0x7c, 0xc5, 0x5b, 0x87, 0x16, 0xa3, 0xbe, 0x89, 0xfd, 0x6c, 0x64, 0x18, 0xf5, 0x24, 0x80, 0x6e,
  368. 0x63, 0x32, 0xe7, 0x59, 0x85, 0x1e, 0xac, 0xa1, 0xec, 0xda, 0xce, 0x2e, 0xa6, 0x82, 0x25, 0x75,
  369. 0x91, 0x38, 0x9f, 0xc6, 0xad, 0x98, 0x43, 0x91, 0xf1, 0x3c, 0x02, 0x99, 0xc7, 0x39, 0xe5, 0x06,
  370. 0x3d, 0xfa, 0x9d, 0x5e, 0x66, 0x82, 0xfd, 0x74, 0xbd, 0x79, 0x32, 0xfb, 0xe5, 0x5e, 0xcf, 0x9b,
  371. 0x9e, 0xc4, 0xce, 0xf9, 0x91, 0x16, 0xc5, 0x1b, 0x0e, 0x3f, 0x78, 0x1d, 0x9e, 0x5a, 0xf9, 0xa6,
  372. 0xf1, 0xc5, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfe, 0x07, 0x73, 0x11, 0x97, 0x03, 0x00, 0x00,
  373. }