OSDN Git Service

new repo
[bytom/vapor.git] / vendor / google.golang.org / genproto / googleapis / api / serviceconfig / context.pb.go
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/api/context.proto
3
4 package serviceconfig
5
6 import proto "github.com/golang/protobuf/proto"
7 import fmt "fmt"
8 import math "math"
9
10 // Reference imports to suppress errors if they are not otherwise used.
11 var _ = proto.Marshal
12 var _ = fmt.Errorf
13 var _ = math.Inf
14
15 // `Context` defines which contexts an API requests.
16 //
17 // Example:
18 //
19 //     context:
20 //       rules:
21 //       - selector: "*"
22 //         requested:
23 //         - google.rpc.context.ProjectContext
24 //         - google.rpc.context.OriginContext
25 //
26 // The above specifies that all methods in the API request
27 // `google.rpc.context.ProjectContext` and
28 // `google.rpc.context.OriginContext`.
29 //
30 // Available context types are defined in package
31 // `google.rpc.context`.
32 type Context struct {
33         // A list of RPC context rules that apply to individual API methods.
34         //
35         // **NOTE:** All service configuration rules follow "last one wins" order.
36         Rules []*ContextRule `protobuf:"bytes,1,rep,name=rules" json:"rules,omitempty"`
37 }
38
39 func (m *Context) Reset()                    { *m = Context{} }
40 func (m *Context) String() string            { return proto.CompactTextString(m) }
41 func (*Context) ProtoMessage()               {}
42 func (*Context) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{0} }
43
44 func (m *Context) GetRules() []*ContextRule {
45         if m != nil {
46                 return m.Rules
47         }
48         return nil
49 }
50
51 // A context rule provides information about the context for an individual API
52 // element.
53 type ContextRule struct {
54         // Selects the methods to which this rule applies.
55         //
56         // Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
57         Selector string `protobuf:"bytes,1,opt,name=selector" json:"selector,omitempty"`
58         // A list of full type names of requested contexts.
59         Requested []string `protobuf:"bytes,2,rep,name=requested" json:"requested,omitempty"`
60         // A list of full type names of provided contexts.
61         Provided []string `protobuf:"bytes,3,rep,name=provided" json:"provided,omitempty"`
62 }
63
64 func (m *ContextRule) Reset()                    { *m = ContextRule{} }
65 func (m *ContextRule) String() string            { return proto.CompactTextString(m) }
66 func (*ContextRule) ProtoMessage()               {}
67 func (*ContextRule) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{1} }
68
69 func (m *ContextRule) GetSelector() string {
70         if m != nil {
71                 return m.Selector
72         }
73         return ""
74 }
75
76 func (m *ContextRule) GetRequested() []string {
77         if m != nil {
78                 return m.Requested
79         }
80         return nil
81 }
82
83 func (m *ContextRule) GetProvided() []string {
84         if m != nil {
85                 return m.Provided
86         }
87         return nil
88 }
89
90 func init() {
91         proto.RegisterType((*Context)(nil), "google.api.Context")
92         proto.RegisterType((*ContextRule)(nil), "google.api.ContextRule")
93 }
94
95 func init() { proto.RegisterFile("google/api/context.proto", fileDescriptor4) }
96
97 var fileDescriptor4 = []byte{
98         // 231 bytes of a gzipped FileDescriptorProto
99         0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x90, 0x4f, 0x4b, 0xc4, 0x30,
100         0x14, 0xc4, 0xe9, 0xd6, 0x7f, 0x7d, 0x2b, 0x1e, 0x7a, 0x31, 0x88, 0x87, 0xb2, 0xa7, 0x5e, 0x4c,
101         0x41, 0x2f, 0x82, 0x27, 0x57, 0x44, 0xbc, 0x95, 0x1e, 0xbd, 0xc5, 0xf4, 0x19, 0x02, 0x31, 0x2f,
102         0x26, 0xe9, 0xe2, 0xe7, 0xf1, 0x93, 0xca, 0x26, 0x65, 0xff, 0x1c, 0x67, 0x7e, 0x33, 0x24, 0xf3,
103         0x80, 0x29, 0x22, 0x65, 0xb0, 0x13, 0x4e, 0x77, 0x92, 0x6c, 0xc4, 0xdf, 0xc8, 0x9d, 0xa7, 0x48,
104         0x35, 0x64, 0xc2, 0x85, 0xd3, 0xab, 0x47, 0x38, 0x7f, 0xc9, 0xb0, 0xbe, 0x83, 0x53, 0x3f, 0x19,
105         0x0c, 0xac, 0x68, 0xca, 0x76, 0x79, 0x7f, 0xcd, 0xf7, 0x31, 0x3e, 0x67, 0x86, 0xc9, 0xe0, 0x90,
106         0x53, 0x2b, 0x09, 0xcb, 0x03, 0xb7, 0xbe, 0x81, 0x8b, 0x80, 0x06, 0x65, 0x24, 0xcf, 0x8a, 0xa6,
107         0x68, 0xab, 0x61, 0xa7, 0xeb, 0x5b, 0xa8, 0x3c, 0xfe, 0x4c, 0x18, 0x22, 0x8e, 0x6c, 0xd1, 0x94,
108         0x6d, 0x35, 0xec, 0x8d, 0x6d, 0xd3, 0x79, 0xda, 0xe8, 0x11, 0x47, 0x56, 0x26, 0xb8, 0xd3, 0x6b,
109         0x0b, 0x57, 0x92, 0xbe, 0x0f, 0x7e, 0xb2, 0xbe, 0x9c, 0x1f, 0xed, 0xb7, 0x53, 0xfa, 0xe2, 0xe3,
110         0x75, 0x66, 0x8a, 0x8c, 0xb0, 0x8a, 0x93, 0x57, 0x9d, 0x42, 0x9b, 0x86, 0x76, 0x19, 0x09, 0xa7,
111         0x43, 0xba, 0x42, 0x40, 0xbf, 0xd1, 0x12, 0x25, 0xd9, 0x2f, 0xad, 0x9e, 0x8e, 0xd4, 0xdf, 0xe2,
112         0xe4, 0xed, 0xb9, 0x7f, 0xff, 0x3c, 0x4b, 0xc5, 0x87, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb5,
113         0x18, 0x98, 0x7a, 0x3d, 0x01, 0x00, 0x00,
114 }