You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

208 lines
7.9 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/api/context.proto
  3. package serviceconfig // import "google.golang.org/genproto/googleapis/api/serviceconfig"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. // Reference imports to suppress errors if they are not otherwise used.
  8. var _ = proto.Marshal
  9. var _ = fmt.Errorf
  10. var _ = math.Inf
  11. // This is a compile-time assertion to ensure that this generated file
  12. // is compatible with the proto package it is being compiled against.
  13. // A compilation error at this line likely means your copy of the
  14. // proto package needs to be updated.
  15. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  16. // `Context` defines which contexts an API requests.
  17. //
  18. // Example:
  19. //
  20. // context:
  21. // rules:
  22. // - selector: "*"
  23. // requested:
  24. // - google.rpc.context.ProjectContext
  25. // - google.rpc.context.OriginContext
  26. //
  27. // The above specifies that all methods in the API request
  28. // `google.rpc.context.ProjectContext` and
  29. // `google.rpc.context.OriginContext`.
  30. //
  31. // Available context types are defined in package
  32. // `google.rpc.context`.
  33. //
  34. // This also provides mechanism to whitelist any protobuf message extension that
  35. // can be sent in grpc metadata using “x-goog-ext-<extension_id>-bin” and
  36. // “x-goog-ext-<extension_id>-jspb” format. For example, list any service
  37. // specific protobuf types that can appear in grpc metadata as follows in your
  38. // yaml file:
  39. //
  40. // Example:
  41. //
  42. // context:
  43. // rules:
  44. // - selector: "google.example.library.v1.LibraryService.CreateBook"
  45. // allowed_request_extensions:
  46. // - google.foo.v1.NewExtension
  47. // allowed_response_extensions:
  48. // - google.foo.v1.NewExtension
  49. //
  50. // You can also specify extension ID instead of fully qualified extension name
  51. // here.
  52. type Context struct {
  53. // A list of RPC context rules that apply to individual API methods.
  54. //
  55. // **NOTE:** All service configuration rules follow "last one wins" order.
  56. Rules []*ContextRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
  57. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  58. XXX_unrecognized []byte `json:"-"`
  59. XXX_sizecache int32 `json:"-"`
  60. }
  61. func (m *Context) Reset() { *m = Context{} }
  62. func (m *Context) String() string { return proto.CompactTextString(m) }
  63. func (*Context) ProtoMessage() {}
  64. func (*Context) Descriptor() ([]byte, []int) {
  65. return fileDescriptor_context_18179baee0be03e4, []int{0}
  66. }
  67. func (m *Context) XXX_Unmarshal(b []byte) error {
  68. return xxx_messageInfo_Context.Unmarshal(m, b)
  69. }
  70. func (m *Context) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  71. return xxx_messageInfo_Context.Marshal(b, m, deterministic)
  72. }
  73. func (dst *Context) XXX_Merge(src proto.Message) {
  74. xxx_messageInfo_Context.Merge(dst, src)
  75. }
  76. func (m *Context) XXX_Size() int {
  77. return xxx_messageInfo_Context.Size(m)
  78. }
  79. func (m *Context) XXX_DiscardUnknown() {
  80. xxx_messageInfo_Context.DiscardUnknown(m)
  81. }
  82. var xxx_messageInfo_Context proto.InternalMessageInfo
  83. func (m *Context) GetRules() []*ContextRule {
  84. if m != nil {
  85. return m.Rules
  86. }
  87. return nil
  88. }
  89. // A context rule provides information about the context for an individual API
  90. // element.
  91. type ContextRule struct {
  92. // Selects the methods to which this rule applies.
  93. //
  94. // Refer to [selector][google.api.DocumentationRule.selector] for syntax
  95. // details.
  96. Selector string `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"`
  97. // A list of full type names of requested contexts.
  98. Requested []string `protobuf:"bytes,2,rep,name=requested,proto3" json:"requested,omitempty"`
  99. // A list of full type names of provided contexts.
  100. Provided []string `protobuf:"bytes,3,rep,name=provided,proto3" json:"provided,omitempty"`
  101. // A list of full type names or extension IDs of extensions allowed in grpc
  102. // side channel from client to backend.
  103. AllowedRequestExtensions []string `protobuf:"bytes,4,rep,name=allowed_request_extensions,json=allowedRequestExtensions,proto3" json:"allowed_request_extensions,omitempty"`
  104. // A list of full type names or extension IDs of extensions allowed in grpc
  105. // side channel from backend to client.
  106. AllowedResponseExtensions []string `protobuf:"bytes,5,rep,name=allowed_response_extensions,json=allowedResponseExtensions,proto3" json:"allowed_response_extensions,omitempty"`
  107. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  108. XXX_unrecognized []byte `json:"-"`
  109. XXX_sizecache int32 `json:"-"`
  110. }
  111. func (m *ContextRule) Reset() { *m = ContextRule{} }
  112. func (m *ContextRule) String() string { return proto.CompactTextString(m) }
  113. func (*ContextRule) ProtoMessage() {}
  114. func (*ContextRule) Descriptor() ([]byte, []int) {
  115. return fileDescriptor_context_18179baee0be03e4, []int{1}
  116. }
  117. func (m *ContextRule) XXX_Unmarshal(b []byte) error {
  118. return xxx_messageInfo_ContextRule.Unmarshal(m, b)
  119. }
  120. func (m *ContextRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  121. return xxx_messageInfo_ContextRule.Marshal(b, m, deterministic)
  122. }
  123. func (dst *ContextRule) XXX_Merge(src proto.Message) {
  124. xxx_messageInfo_ContextRule.Merge(dst, src)
  125. }
  126. func (m *ContextRule) XXX_Size() int {
  127. return xxx_messageInfo_ContextRule.Size(m)
  128. }
  129. func (m *ContextRule) XXX_DiscardUnknown() {
  130. xxx_messageInfo_ContextRule.DiscardUnknown(m)
  131. }
  132. var xxx_messageInfo_ContextRule proto.InternalMessageInfo
  133. func (m *ContextRule) GetSelector() string {
  134. if m != nil {
  135. return m.Selector
  136. }
  137. return ""
  138. }
  139. func (m *ContextRule) GetRequested() []string {
  140. if m != nil {
  141. return m.Requested
  142. }
  143. return nil
  144. }
  145. func (m *ContextRule) GetProvided() []string {
  146. if m != nil {
  147. return m.Provided
  148. }
  149. return nil
  150. }
  151. func (m *ContextRule) GetAllowedRequestExtensions() []string {
  152. if m != nil {
  153. return m.AllowedRequestExtensions
  154. }
  155. return nil
  156. }
  157. func (m *ContextRule) GetAllowedResponseExtensions() []string {
  158. if m != nil {
  159. return m.AllowedResponseExtensions
  160. }
  161. return nil
  162. }
  163. func init() {
  164. proto.RegisterType((*Context)(nil), "google.api.Context")
  165. proto.RegisterType((*ContextRule)(nil), "google.api.ContextRule")
  166. }
  167. func init() { proto.RegisterFile("google/api/context.proto", fileDescriptor_context_18179baee0be03e4) }
  168. var fileDescriptor_context_18179baee0be03e4 = []byte{
  169. // 281 bytes of a gzipped FileDescriptorProto
  170. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x91, 0xbd, 0x4e, 0xc3, 0x30,
  171. 0x10, 0x80, 0x95, 0xfe, 0x00, 0x71, 0x11, 0x83, 0x17, 0x4c, 0x61, 0x88, 0x3a, 0x65, 0x21, 0x91,
  172. 0x60, 0x41, 0x02, 0x21, 0x51, 0x54, 0x21, 0xb6, 0x28, 0x23, 0x4b, 0x15, 0x92, 0xc3, 0xb2, 0x64,
  173. 0x7c, 0xc6, 0x76, 0x4a, 0x9f, 0x87, 0x37, 0xe3, 0x4d, 0x50, 0xed, 0x28, 0x09, 0xe3, 0xdd, 0xf7,
  174. 0x7d, 0x83, 0xcf, 0x84, 0x71, 0x44, 0x2e, 0x21, 0xaf, 0xb4, 0xc8, 0x6b, 0x54, 0x0e, 0xf6, 0x2e,
  175. 0xd3, 0x06, 0x1d, 0x52, 0x12, 0x48, 0x56, 0x69, 0xb1, 0xba, 0x23, 0xc7, 0xcf, 0x01, 0xd2, 0x6b,
  176. 0x32, 0x37, 0xad, 0x04, 0xcb, 0xa2, 0x64, 0x9a, 0x2e, 0x6e, 0xce, 0xb3, 0x41, 0xcb, 0x3a, 0xa7,
  177. 0x6c, 0x25, 0x94, 0xc1, 0x5a, 0xfd, 0x46, 0x64, 0x31, 0x5a, 0xd3, 0x25, 0x39, 0xb1, 0x20, 0xa1,
  178. 0x76, 0x68, 0x58, 0x94, 0x44, 0x69, 0x5c, 0xf6, 0x33, 0xbd, 0x22, 0xb1, 0x81, 0xaf, 0x16, 0xac,
  179. 0x83, 0x86, 0x4d, 0x92, 0x69, 0x1a, 0x97, 0xc3, 0xe2, 0x50, 0x6a, 0x83, 0x3b, 0xd1, 0x40, 0xc3,
  180. 0xa6, 0x1e, 0xf6, 0x33, 0x7d, 0x20, 0xcb, 0x4a, 0x4a, 0xfc, 0x86, 0x66, 0xdb, 0x05, 0x5b, 0xd8,
  181. 0x3b, 0x50, 0x56, 0xa0, 0xb2, 0x6c, 0xe6, 0x6d, 0xd6, 0x19, 0x65, 0x10, 0x36, 0x3d, 0xa7, 0x8f,
  182. 0xe4, 0x72, 0xa8, 0xad, 0x46, 0x65, 0x61, 0x9c, 0xcf, 0x7d, 0x7e, 0xd1, 0xe7, 0xc1, 0x18, 0xfa,
  183. 0xb5, 0x22, 0x67, 0x35, 0x7e, 0x8e, 0x0e, 0xb1, 0x3e, 0xed, 0x9e, 0x5c, 0x1c, 0x2e, 0x59, 0x44,
  184. 0x6f, 0x9b, 0x8e, 0x71, 0x94, 0x95, 0xe2, 0x19, 0x1a, 0x9e, 0x73, 0x50, 0xfe, 0xce, 0x79, 0x40,
  185. 0x95, 0x16, 0xd6, 0x7f, 0x82, 0x05, 0xb3, 0x13, 0x35, 0xd4, 0xa8, 0x3e, 0x04, 0xbf, 0xff, 0x37,
  186. 0xfd, 0x4c, 0x66, 0x2f, 0x4f, 0xc5, 0xeb, 0xfb, 0x91, 0x0f, 0x6f, 0xff, 0x02, 0x00, 0x00, 0xff,
  187. 0xff, 0x00, 0x40, 0x95, 0xa9, 0xbc, 0x01, 0x00, 0x00,
  188. }