blob: 1a8a27b655e0bf0a66a25735dfef6aaa3af94a24 [file] [log] [blame]
khenaidoo7ff26c72019-01-16 14:55:48 -05001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/api/http.proto
3
4package annotations // import "google.golang.org/genproto/googleapis/api/annotations"
5
6import proto "github.com/golang/protobuf/proto"
7import fmt "fmt"
8import math "math"
9
10// Reference imports to suppress errors if they are not otherwise used.
11var _ = proto.Marshal
12var _ = fmt.Errorf
13var _ = math.Inf
14
15// This is a compile-time assertion to ensure that this generated file
16// is compatible with the proto package it is being compiled against.
17// A compilation error at this line likely means your copy of the
18// proto package needs to be updated.
19const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
20
21// Defines the HTTP configuration for an API service. It contains a list of
22// [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
23// to one or more HTTP REST API methods.
24type Http struct {
25 // A list of HTTP configuration rules that apply to individual API methods.
26 //
27 // **NOTE:** All service configuration rules follow "last one wins" order.
28 Rules []*HttpRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
29 // When set to true, URL path parmeters will be fully URI-decoded except in
30 // cases of single segment matches in reserved expansion, where "%2F" will be
31 // left encoded.
32 //
33 // The default behavior is to not decode RFC 6570 reserved characters in multi
34 // segment matches.
35 FullyDecodeReservedExpansion bool `protobuf:"varint,2,opt,name=fully_decode_reserved_expansion,json=fullyDecodeReservedExpansion,proto3" json:"fully_decode_reserved_expansion,omitempty"`
36 XXX_NoUnkeyedLiteral struct{} `json:"-"`
37 XXX_unrecognized []byte `json:"-"`
38 XXX_sizecache int32 `json:"-"`
39}
40
41func (m *Http) Reset() { *m = Http{} }
42func (m *Http) String() string { return proto.CompactTextString(m) }
43func (*Http) ProtoMessage() {}
44func (*Http) Descriptor() ([]byte, []int) {
45 return fileDescriptor_http_e457621dddd7365b, []int{0}
46}
47func (m *Http) XXX_Unmarshal(b []byte) error {
48 return xxx_messageInfo_Http.Unmarshal(m, b)
49}
50func (m *Http) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
51 return xxx_messageInfo_Http.Marshal(b, m, deterministic)
52}
53func (dst *Http) XXX_Merge(src proto.Message) {
54 xxx_messageInfo_Http.Merge(dst, src)
55}
56func (m *Http) XXX_Size() int {
57 return xxx_messageInfo_Http.Size(m)
58}
59func (m *Http) XXX_DiscardUnknown() {
60 xxx_messageInfo_Http.DiscardUnknown(m)
61}
62
63var xxx_messageInfo_Http proto.InternalMessageInfo
64
65func (m *Http) GetRules() []*HttpRule {
66 if m != nil {
67 return m.Rules
68 }
69 return nil
70}
71
72func (m *Http) GetFullyDecodeReservedExpansion() bool {
73 if m != nil {
74 return m.FullyDecodeReservedExpansion
75 }
76 return false
77}
78
79// `HttpRule` defines the mapping of an RPC method to one or more HTTP
80// REST API methods. The mapping specifies how different portions of the RPC
81// request message are mapped to URL path, URL query parameters, and
82// HTTP request body. The mapping is typically specified as an
83// `google.api.http` annotation on the RPC method,
84// see "google/api/annotations.proto" for details.
85//
86// The mapping consists of a field specifying the path template and
87// method kind. The path template can refer to fields in the request
88// message, as in the example below which describes a REST GET
89// operation on a resource collection of messages:
90//
91//
92// service Messaging {
93// rpc GetMessage(GetMessageRequest) returns (Message) {
94// option (google.api.http).get = "/v1/messages/{message_id}/{sub.subfield}";
95// }
96// }
97// message GetMessageRequest {
98// message SubMessage {
99// string subfield = 1;
100// }
101// string message_id = 1; // mapped to the URL
102// SubMessage sub = 2; // `sub.subfield` is url-mapped
103// }
104// message Message {
105// string text = 1; // content of the resource
106// }
107//
108// The same http annotation can alternatively be expressed inside the
109// `GRPC API Configuration` YAML file.
110//
111// http:
112// rules:
113// - selector: <proto_package_name>.Messaging.GetMessage
114// get: /v1/messages/{message_id}/{sub.subfield}
115//
116// This definition enables an automatic, bidrectional mapping of HTTP
117// JSON to RPC. Example:
118//
119// HTTP | RPC
120// -----|-----
121// `GET /v1/messages/123456/foo` | `GetMessage(message_id: "123456" sub: SubMessage(subfield: "foo"))`
122//
123// In general, not only fields but also field paths can be referenced
124// from a path pattern. Fields mapped to the path pattern cannot be
125// repeated and must have a primitive (non-message) type.
126//
127// Any fields in the request message which are not bound by the path
128// pattern automatically become (optional) HTTP query
129// parameters. Assume the following definition of the request message:
130//
131//
132// service Messaging {
133// rpc GetMessage(GetMessageRequest) returns (Message) {
134// option (google.api.http).get = "/v1/messages/{message_id}";
135// }
136// }
137// message GetMessageRequest {
138// message SubMessage {
139// string subfield = 1;
140// }
141// string message_id = 1; // mapped to the URL
142// int64 revision = 2; // becomes a parameter
143// SubMessage sub = 3; // `sub.subfield` becomes a parameter
144// }
145//
146//
147// This enables a HTTP JSON to RPC mapping as below:
148//
149// HTTP | RPC
150// -----|-----
151// `GET /v1/messages/123456?revision=2&sub.subfield=foo` | `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: "foo"))`
152//
153// Note that fields which are mapped to HTTP parameters must have a
154// primitive type or a repeated primitive type. Message types are not
155// allowed. In the case of a repeated type, the parameter can be
156// repeated in the URL, as in `...?param=A&param=B`.
157//
158// For HTTP method kinds which allow a request body, the `body` field
159// specifies the mapping. Consider a REST update method on the
160// message resource collection:
161//
162//
163// service Messaging {
164// rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
165// option (google.api.http) = {
166// put: "/v1/messages/{message_id}"
167// body: "message"
168// };
169// }
170// }
171// message UpdateMessageRequest {
172// string message_id = 1; // mapped to the URL
173// Message message = 2; // mapped to the body
174// }
175//
176//
177// The following HTTP JSON to RPC mapping is enabled, where the
178// representation of the JSON in the request body is determined by
179// protos JSON encoding:
180//
181// HTTP | RPC
182// -----|-----
183// `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" message { text: "Hi!" })`
184//
185// The special name `*` can be used in the body mapping to define that
186// every field not bound by the path template should be mapped to the
187// request body. This enables the following alternative definition of
188// the update method:
189//
190// service Messaging {
191// rpc UpdateMessage(Message) returns (Message) {
192// option (google.api.http) = {
193// put: "/v1/messages/{message_id}"
194// body: "*"
195// };
196// }
197// }
198// message Message {
199// string message_id = 1;
200// string text = 2;
201// }
202//
203//
204// The following HTTP JSON to RPC mapping is enabled:
205//
206// HTTP | RPC
207// -----|-----
208// `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" text: "Hi!")`
209//
210// Note that when using `*` in the body mapping, it is not possible to
211// have HTTP parameters, as all fields not bound by the path end in
212// the body. This makes this option more rarely used in practice of
213// defining REST APIs. The common usage of `*` is in custom methods
214// which don't use the URL at all for transferring data.
215//
216// It is possible to define multiple HTTP methods for one RPC by using
217// the `additional_bindings` option. Example:
218//
219// service Messaging {
220// rpc GetMessage(GetMessageRequest) returns (Message) {
221// option (google.api.http) = {
222// get: "/v1/messages/{message_id}"
223// additional_bindings {
224// get: "/v1/users/{user_id}/messages/{message_id}"
225// }
226// };
227// }
228// }
229// message GetMessageRequest {
230// string message_id = 1;
231// string user_id = 2;
232// }
233//
234//
235// This enables the following two alternative HTTP JSON to RPC
236// mappings:
237//
238// HTTP | RPC
239// -----|-----
240// `GET /v1/messages/123456` | `GetMessage(message_id: "123456")`
241// `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: "123456")`
242//
243// # Rules for HTTP mapping
244//
245// The rules for mapping HTTP path, query parameters, and body fields
246// to the request message are as follows:
247//
248// 1. The `body` field specifies either `*` or a field path, or is
249// omitted. If omitted, it indicates there is no HTTP request body.
250// 2. Leaf fields (recursive expansion of nested messages in the
251// request) can be classified into three types:
252// (a) Matched in the URL template.
253// (b) Covered by body (if body is `*`, everything except (a) fields;
254// else everything under the body field)
255// (c) All other fields.
256// 3. URL query parameters found in the HTTP request are mapped to (c) fields.
257// 4. Any body sent with an HTTP request can contain only (b) fields.
258//
259// The syntax of the path template is as follows:
260//
261// Template = "/" Segments [ Verb ] ;
262// Segments = Segment { "/" Segment } ;
263// Segment = "*" | "**" | LITERAL | Variable ;
264// Variable = "{" FieldPath [ "=" Segments ] "}" ;
265// FieldPath = IDENT { "." IDENT } ;
266// Verb = ":" LITERAL ;
267//
268// The syntax `*` matches a single path segment. The syntax `**` matches zero
269// or more path segments, which must be the last part of the path except the
270// `Verb`. The syntax `LITERAL` matches literal text in the path.
271//
272// The syntax `Variable` matches part of the URL path as specified by its
273// template. A variable template must not contain other variables. If a variable
274// matches a single path segment, its template may be omitted, e.g. `{var}`
275// is equivalent to `{var=*}`.
276//
277// If a variable contains exactly one path segment, such as `"{var}"` or
278// `"{var=*}"`, when such a variable is expanded into a URL path, all characters
279// except `[-_.~0-9a-zA-Z]` are percent-encoded. Such variables show up in the
280// Discovery Document as `{var}`.
281//
282// If a variable contains one or more path segments, such as `"{var=foo/*}"`
283// or `"{var=**}"`, when such a variable is expanded into a URL path, all
284// characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. Such variables
285// show up in the Discovery Document as `{+var}`.
286//
287// NOTE: While the single segment variable matches the semantics of
288// [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2
289// Simple String Expansion, the multi segment variable **does not** match
290// RFC 6570 Reserved Expansion. The reason is that the Reserved Expansion
291// does not expand special characters like `?` and `#`, which would lead
292// to invalid URLs.
293//
294// NOTE: the field paths in variables and in the `body` must not refer to
295// repeated fields or map fields.
296type HttpRule struct {
297 // Selects methods to which this rule applies.
298 //
299 // Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
300 Selector string `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"`
301 // Determines the URL pattern is matched by this rules. This pattern can be
302 // used with any of the {get|put|post|delete|patch} methods. A custom method
303 // can be defined using the 'custom' field.
304 //
305 // Types that are valid to be assigned to Pattern:
306 // *HttpRule_Get
307 // *HttpRule_Put
308 // *HttpRule_Post
309 // *HttpRule_Delete
310 // *HttpRule_Patch
311 // *HttpRule_Custom
312 Pattern isHttpRule_Pattern `protobuf_oneof:"pattern"`
313 // The name of the request field whose value is mapped to the HTTP body, or
314 // `*` for mapping all fields not captured by the path pattern to the HTTP
315 // body. NOTE: the referred field must not be a repeated field and must be
316 // present at the top-level of request message type.
317 Body string `protobuf:"bytes,7,opt,name=body,proto3" json:"body,omitempty"`
318 // Optional. The name of the response field whose value is mapped to the HTTP
319 // body of response. Other response fields are ignored. When
320 // not set, the response message will be used as HTTP body of response.
321 ResponseBody string `protobuf:"bytes,12,opt,name=response_body,json=responseBody,proto3" json:"response_body,omitempty"`
322 // Additional HTTP bindings for the selector. Nested bindings must
323 // not contain an `additional_bindings` field themselves (that is,
324 // the nesting may only be one level deep).
325 AdditionalBindings []*HttpRule `protobuf:"bytes,11,rep,name=additional_bindings,json=additionalBindings,proto3" json:"additional_bindings,omitempty"`
326 XXX_NoUnkeyedLiteral struct{} `json:"-"`
327 XXX_unrecognized []byte `json:"-"`
328 XXX_sizecache int32 `json:"-"`
329}
330
331func (m *HttpRule) Reset() { *m = HttpRule{} }
332func (m *HttpRule) String() string { return proto.CompactTextString(m) }
333func (*HttpRule) ProtoMessage() {}
334func (*HttpRule) Descriptor() ([]byte, []int) {
335 return fileDescriptor_http_e457621dddd7365b, []int{1}
336}
337func (m *HttpRule) XXX_Unmarshal(b []byte) error {
338 return xxx_messageInfo_HttpRule.Unmarshal(m, b)
339}
340func (m *HttpRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
341 return xxx_messageInfo_HttpRule.Marshal(b, m, deterministic)
342}
343func (dst *HttpRule) XXX_Merge(src proto.Message) {
344 xxx_messageInfo_HttpRule.Merge(dst, src)
345}
346func (m *HttpRule) XXX_Size() int {
347 return xxx_messageInfo_HttpRule.Size(m)
348}
349func (m *HttpRule) XXX_DiscardUnknown() {
350 xxx_messageInfo_HttpRule.DiscardUnknown(m)
351}
352
353var xxx_messageInfo_HttpRule proto.InternalMessageInfo
354
355func (m *HttpRule) GetSelector() string {
356 if m != nil {
357 return m.Selector
358 }
359 return ""
360}
361
362type isHttpRule_Pattern interface {
363 isHttpRule_Pattern()
364}
365
366type HttpRule_Get struct {
367 Get string `protobuf:"bytes,2,opt,name=get,proto3,oneof"`
368}
369
370type HttpRule_Put struct {
371 Put string `protobuf:"bytes,3,opt,name=put,proto3,oneof"`
372}
373
374type HttpRule_Post struct {
375 Post string `protobuf:"bytes,4,opt,name=post,proto3,oneof"`
376}
377
378type HttpRule_Delete struct {
379 Delete string `protobuf:"bytes,5,opt,name=delete,proto3,oneof"`
380}
381
382type HttpRule_Patch struct {
383 Patch string `protobuf:"bytes,6,opt,name=patch,proto3,oneof"`
384}
385
386type HttpRule_Custom struct {
387 Custom *CustomHttpPattern `protobuf:"bytes,8,opt,name=custom,proto3,oneof"`
388}
389
390func (*HttpRule_Get) isHttpRule_Pattern() {}
391
392func (*HttpRule_Put) isHttpRule_Pattern() {}
393
394func (*HttpRule_Post) isHttpRule_Pattern() {}
395
396func (*HttpRule_Delete) isHttpRule_Pattern() {}
397
398func (*HttpRule_Patch) isHttpRule_Pattern() {}
399
400func (*HttpRule_Custom) isHttpRule_Pattern() {}
401
402func (m *HttpRule) GetPattern() isHttpRule_Pattern {
403 if m != nil {
404 return m.Pattern
405 }
406 return nil
407}
408
409func (m *HttpRule) GetGet() string {
410 if x, ok := m.GetPattern().(*HttpRule_Get); ok {
411 return x.Get
412 }
413 return ""
414}
415
416func (m *HttpRule) GetPut() string {
417 if x, ok := m.GetPattern().(*HttpRule_Put); ok {
418 return x.Put
419 }
420 return ""
421}
422
423func (m *HttpRule) GetPost() string {
424 if x, ok := m.GetPattern().(*HttpRule_Post); ok {
425 return x.Post
426 }
427 return ""
428}
429
430func (m *HttpRule) GetDelete() string {
431 if x, ok := m.GetPattern().(*HttpRule_Delete); ok {
432 return x.Delete
433 }
434 return ""
435}
436
437func (m *HttpRule) GetPatch() string {
438 if x, ok := m.GetPattern().(*HttpRule_Patch); ok {
439 return x.Patch
440 }
441 return ""
442}
443
444func (m *HttpRule) GetCustom() *CustomHttpPattern {
445 if x, ok := m.GetPattern().(*HttpRule_Custom); ok {
446 return x.Custom
447 }
448 return nil
449}
450
451func (m *HttpRule) GetBody() string {
452 if m != nil {
453 return m.Body
454 }
455 return ""
456}
457
458func (m *HttpRule) GetResponseBody() string {
459 if m != nil {
460 return m.ResponseBody
461 }
462 return ""
463}
464
465func (m *HttpRule) GetAdditionalBindings() []*HttpRule {
466 if m != nil {
467 return m.AdditionalBindings
468 }
469 return nil
470}
471
472// XXX_OneofFuncs is for the internal use of the proto package.
473func (*HttpRule) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
474 return _HttpRule_OneofMarshaler, _HttpRule_OneofUnmarshaler, _HttpRule_OneofSizer, []interface{}{
475 (*HttpRule_Get)(nil),
476 (*HttpRule_Put)(nil),
477 (*HttpRule_Post)(nil),
478 (*HttpRule_Delete)(nil),
479 (*HttpRule_Patch)(nil),
480 (*HttpRule_Custom)(nil),
481 }
482}
483
484func _HttpRule_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
485 m := msg.(*HttpRule)
486 // pattern
487 switch x := m.Pattern.(type) {
488 case *HttpRule_Get:
489 b.EncodeVarint(2<<3 | proto.WireBytes)
490 b.EncodeStringBytes(x.Get)
491 case *HttpRule_Put:
492 b.EncodeVarint(3<<3 | proto.WireBytes)
493 b.EncodeStringBytes(x.Put)
494 case *HttpRule_Post:
495 b.EncodeVarint(4<<3 | proto.WireBytes)
496 b.EncodeStringBytes(x.Post)
497 case *HttpRule_Delete:
498 b.EncodeVarint(5<<3 | proto.WireBytes)
499 b.EncodeStringBytes(x.Delete)
500 case *HttpRule_Patch:
501 b.EncodeVarint(6<<3 | proto.WireBytes)
502 b.EncodeStringBytes(x.Patch)
503 case *HttpRule_Custom:
504 b.EncodeVarint(8<<3 | proto.WireBytes)
505 if err := b.EncodeMessage(x.Custom); err != nil {
506 return err
507 }
508 case nil:
509 default:
510 return fmt.Errorf("HttpRule.Pattern has unexpected type %T", x)
511 }
512 return nil
513}
514
515func _HttpRule_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
516 m := msg.(*HttpRule)
517 switch tag {
518 case 2: // pattern.get
519 if wire != proto.WireBytes {
520 return true, proto.ErrInternalBadWireType
521 }
522 x, err := b.DecodeStringBytes()
523 m.Pattern = &HttpRule_Get{x}
524 return true, err
525 case 3: // pattern.put
526 if wire != proto.WireBytes {
527 return true, proto.ErrInternalBadWireType
528 }
529 x, err := b.DecodeStringBytes()
530 m.Pattern = &HttpRule_Put{x}
531 return true, err
532 case 4: // pattern.post
533 if wire != proto.WireBytes {
534 return true, proto.ErrInternalBadWireType
535 }
536 x, err := b.DecodeStringBytes()
537 m.Pattern = &HttpRule_Post{x}
538 return true, err
539 case 5: // pattern.delete
540 if wire != proto.WireBytes {
541 return true, proto.ErrInternalBadWireType
542 }
543 x, err := b.DecodeStringBytes()
544 m.Pattern = &HttpRule_Delete{x}
545 return true, err
546 case 6: // pattern.patch
547 if wire != proto.WireBytes {
548 return true, proto.ErrInternalBadWireType
549 }
550 x, err := b.DecodeStringBytes()
551 m.Pattern = &HttpRule_Patch{x}
552 return true, err
553 case 8: // pattern.custom
554 if wire != proto.WireBytes {
555 return true, proto.ErrInternalBadWireType
556 }
557 msg := new(CustomHttpPattern)
558 err := b.DecodeMessage(msg)
559 m.Pattern = &HttpRule_Custom{msg}
560 return true, err
561 default:
562 return false, nil
563 }
564}
565
566func _HttpRule_OneofSizer(msg proto.Message) (n int) {
567 m := msg.(*HttpRule)
568 // pattern
569 switch x := m.Pattern.(type) {
570 case *HttpRule_Get:
571 n += 1 // tag and wire
572 n += proto.SizeVarint(uint64(len(x.Get)))
573 n += len(x.Get)
574 case *HttpRule_Put:
575 n += 1 // tag and wire
576 n += proto.SizeVarint(uint64(len(x.Put)))
577 n += len(x.Put)
578 case *HttpRule_Post:
579 n += 1 // tag and wire
580 n += proto.SizeVarint(uint64(len(x.Post)))
581 n += len(x.Post)
582 case *HttpRule_Delete:
583 n += 1 // tag and wire
584 n += proto.SizeVarint(uint64(len(x.Delete)))
585 n += len(x.Delete)
586 case *HttpRule_Patch:
587 n += 1 // tag and wire
588 n += proto.SizeVarint(uint64(len(x.Patch)))
589 n += len(x.Patch)
590 case *HttpRule_Custom:
591 s := proto.Size(x.Custom)
592 n += 1 // tag and wire
593 n += proto.SizeVarint(uint64(s))
594 n += s
595 case nil:
596 default:
597 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
598 }
599 return n
600}
601
602// A custom pattern is used for defining custom HTTP verb.
603type CustomHttpPattern struct {
604 // The name of this custom HTTP verb.
605 Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
606 // The path matched by this custom verb.
607 Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
608 XXX_NoUnkeyedLiteral struct{} `json:"-"`
609 XXX_unrecognized []byte `json:"-"`
610 XXX_sizecache int32 `json:"-"`
611}
612
613func (m *CustomHttpPattern) Reset() { *m = CustomHttpPattern{} }
614func (m *CustomHttpPattern) String() string { return proto.CompactTextString(m) }
615func (*CustomHttpPattern) ProtoMessage() {}
616func (*CustomHttpPattern) Descriptor() ([]byte, []int) {
617 return fileDescriptor_http_e457621dddd7365b, []int{2}
618}
619func (m *CustomHttpPattern) XXX_Unmarshal(b []byte) error {
620 return xxx_messageInfo_CustomHttpPattern.Unmarshal(m, b)
621}
622func (m *CustomHttpPattern) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
623 return xxx_messageInfo_CustomHttpPattern.Marshal(b, m, deterministic)
624}
625func (dst *CustomHttpPattern) XXX_Merge(src proto.Message) {
626 xxx_messageInfo_CustomHttpPattern.Merge(dst, src)
627}
628func (m *CustomHttpPattern) XXX_Size() int {
629 return xxx_messageInfo_CustomHttpPattern.Size(m)
630}
631func (m *CustomHttpPattern) XXX_DiscardUnknown() {
632 xxx_messageInfo_CustomHttpPattern.DiscardUnknown(m)
633}
634
635var xxx_messageInfo_CustomHttpPattern proto.InternalMessageInfo
636
637func (m *CustomHttpPattern) GetKind() string {
638 if m != nil {
639 return m.Kind
640 }
641 return ""
642}
643
644func (m *CustomHttpPattern) GetPath() string {
645 if m != nil {
646 return m.Path
647 }
648 return ""
649}
650
651func init() {
652 proto.RegisterType((*Http)(nil), "google.api.Http")
653 proto.RegisterType((*HttpRule)(nil), "google.api.HttpRule")
654 proto.RegisterType((*CustomHttpPattern)(nil), "google.api.CustomHttpPattern")
655}
656
657func init() { proto.RegisterFile("google/api/http.proto", fileDescriptor_http_e457621dddd7365b) }
658
659var fileDescriptor_http_e457621dddd7365b = []byte{
660 // 419 bytes of a gzipped FileDescriptorProto
661 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xc1, 0x8e, 0xd3, 0x30,
662 0x10, 0x86, 0x49, 0x9b, 0x76, 0xdb, 0xe9, 0x82, 0x84, 0x59, 0x90, 0x85, 0x40, 0x54, 0xe5, 0x52,
663 0x71, 0x48, 0xa5, 0xe5, 0xc0, 0x61, 0x4f, 0x1b, 0xa8, 0x58, 0x6e, 0x55, 0x8e, 0x5c, 0x22, 0x37,
664 0x1e, 0x52, 0x83, 0xd7, 0xb6, 0xe2, 0x09, 0xa2, 0xaf, 0xc3, 0x63, 0xf1, 0x24, 0x1c, 0x91, 0x9d,
665 0x84, 0x56, 0x42, 0xe2, 0x36, 0xf3, 0xff, 0x9f, 0xa7, 0x7f, 0x27, 0x03, 0x4f, 0x6b, 0x6b, 0x6b,
666 0x8d, 0x1b, 0xe1, 0xd4, 0xe6, 0x40, 0xe4, 0x32, 0xd7, 0x58, 0xb2, 0x0c, 0x3a, 0x39, 0x13, 0x4e,
667 0xad, 0x8e, 0x90, 0xde, 0x11, 0x39, 0xf6, 0x06, 0x26, 0x4d, 0xab, 0xd1, 0xf3, 0x64, 0x39, 0x5e,
668 0x2f, 0xae, 0xaf, 0xb2, 0x13, 0x93, 0x05, 0xa0, 0x68, 0x35, 0x16, 0x1d, 0xc2, 0xb6, 0xf0, 0xea,
669 0x4b, 0xab, 0xf5, 0xb1, 0x94, 0x58, 0x59, 0x89, 0x65, 0x83, 0x1e, 0x9b, 0xef, 0x28, 0x4b, 0xfc,
670 0xe1, 0x84, 0xf1, 0xca, 0x1a, 0x3e, 0x5a, 0x26, 0xeb, 0x59, 0xf1, 0x22, 0x62, 0x1f, 0x22, 0x55,
671 0xf4, 0xd0, 0x76, 0x60, 0x56, 0xbf, 0x46, 0x30, 0x1b, 0x46, 0xb3, 0xe7, 0x30, 0xf3, 0xa8, 0xb1,
672 0x22, 0xdb, 0xf0, 0x64, 0x99, 0xac, 0xe7, 0xc5, 0xdf, 0x9e, 0x31, 0x18, 0xd7, 0x48, 0x71, 0xe6,
673 0xfc, 0xee, 0x41, 0x11, 0x9a, 0xa0, 0xb9, 0x96, 0xf8, 0x78, 0xd0, 0x5c, 0x4b, 0xec, 0x0a, 0x52,
674 0x67, 0x3d, 0xf1, 0xb4, 0x17, 0x63, 0xc7, 0x38, 0x4c, 0x25, 0x6a, 0x24, 0xe4, 0x93, 0x5e, 0xef,
675 0x7b, 0xf6, 0x0c, 0x26, 0x4e, 0x50, 0x75, 0xe0, 0xd3, 0xde, 0xe8, 0x5a, 0xf6, 0x0e, 0xa6, 0x55,
676 0xeb, 0xc9, 0xde, 0xf3, 0xd9, 0x32, 0x59, 0x2f, 0xae, 0x5f, 0x9e, 0x2f, 0xe3, 0x7d, 0x74, 0x42,
677 0xee, 0x9d, 0x20, 0xc2, 0xc6, 0x84, 0x81, 0x1d, 0xce, 0x18, 0xa4, 0x7b, 0x2b, 0x8f, 0xfc, 0x22,
678 0xfe, 0x81, 0x58, 0xb3, 0xd7, 0xf0, 0xb0, 0x41, 0xef, 0xac, 0xf1, 0x58, 0x46, 0xf3, 0x32, 0x9a,
679 0x97, 0x83, 0x98, 0x07, 0x68, 0x0b, 0x4f, 0x84, 0x94, 0x8a, 0x94, 0x35, 0x42, 0x97, 0x7b, 0x65,
680 0xa4, 0x32, 0xb5, 0xe7, 0x8b, 0xff, 0x7c, 0x0b, 0x76, 0x7a, 0x90, 0xf7, 0x7c, 0x3e, 0x87, 0x0b,
681 0xd7, 0x85, 0x5a, 0xdd, 0xc0, 0xe3, 0x7f, 0x92, 0x86, 0x7c, 0xdf, 0x94, 0x91, 0xfd, 0x82, 0x63,
682 0x1d, 0x34, 0x27, 0xe8, 0xd0, 0x6d, 0xb7, 0x88, 0x75, 0xfe, 0x15, 0x1e, 0x55, 0xf6, 0xfe, 0xec,
683 0x67, 0xf3, 0x79, 0x1c, 0x13, 0xae, 0x67, 0x97, 0x7c, 0xbe, 0xed, 0x8d, 0xda, 0x6a, 0x61, 0xea,
684 0xcc, 0x36, 0xf5, 0xa6, 0x46, 0x13, 0x6f, 0x6b, 0xd3, 0x59, 0xc2, 0x29, 0x1f, 0xaf, 0x4e, 0x18,
685 0x63, 0x49, 0x84, 0x98, 0xfe, 0xe6, 0xac, 0xfe, 0x9d, 0x24, 0x3f, 0x47, 0xe9, 0xc7, 0xdb, 0xdd,
686 0xa7, 0xfd, 0x34, 0xbe, 0x7b, 0xfb, 0x27, 0x00, 0x00, 0xff, 0xff, 0xae, 0xde, 0xa1, 0xd0, 0xac,
687 0x02, 0x00, 0x00,
688}