1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/api/context.proto
6 import proto "github.com/golang/protobuf/proto"
10 // Reference imports to suppress errors if they are not otherwise used.
15 // `Context` defines which contexts an API requests.
23 // - google.rpc.context.ProjectContext
24 // - google.rpc.context.OriginContext
26 // The above specifies that all methods in the API request
27 // `google.rpc.context.ProjectContext` and
28 // `google.rpc.context.OriginContext`.
30 // Available context types are defined in package
31 // `google.rpc.context`.
33 // A list of RPC context rules that apply to individual API methods.
35 // **NOTE:** All service configuration rules follow "last one wins" order.
36 Rules []*ContextRule `protobuf:"bytes,1,rep,name=rules" json:"rules,omitempty"`
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} }
44 func (m *Context) GetRules() []*ContextRule {
51 // A context rule provides information about the context for an individual API
53 type ContextRule struct {
54 // Selects the methods to which this rule applies.
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"`
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} }
69 func (m *ContextRule) GetSelector() string {
76 func (m *ContextRule) GetRequested() []string {
83 func (m *ContextRule) GetProvided() []string {
91 proto.RegisterType((*Context)(nil), "google.api.Context")
92 proto.RegisterType((*ContextRule)(nil), "google.api.ContextRule")
95 func init() { proto.RegisterFile("google/api/context.proto", fileDescriptor4) }
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,