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.
 
 
 

211 satır
8.2 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/api/consumer.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. // Supported data type of the property values
  17. type Property_PropertyType int32
  18. const (
  19. // The type is unspecified, and will result in an error.
  20. Property_UNSPECIFIED Property_PropertyType = 0
  21. // The type is `int64`.
  22. Property_INT64 Property_PropertyType = 1
  23. // The type is `bool`.
  24. Property_BOOL Property_PropertyType = 2
  25. // The type is `string`.
  26. Property_STRING Property_PropertyType = 3
  27. // The type is 'double'.
  28. Property_DOUBLE Property_PropertyType = 4
  29. )
  30. var Property_PropertyType_name = map[int32]string{
  31. 0: "UNSPECIFIED",
  32. 1: "INT64",
  33. 2: "BOOL",
  34. 3: "STRING",
  35. 4: "DOUBLE",
  36. }
  37. var Property_PropertyType_value = map[string]int32{
  38. "UNSPECIFIED": 0,
  39. "INT64": 1,
  40. "BOOL": 2,
  41. "STRING": 3,
  42. "DOUBLE": 4,
  43. }
  44. func (x Property_PropertyType) String() string {
  45. return proto.EnumName(Property_PropertyType_name, int32(x))
  46. }
  47. func (Property_PropertyType) EnumDescriptor() ([]byte, []int) {
  48. return fileDescriptor_consumer_d0bb8e60fc017c6f, []int{1, 0}
  49. }
  50. // A descriptor for defining project properties for a service. One service may
  51. // have many consumer projects, and the service may want to behave differently
  52. // depending on some properties on the project. For example, a project may be
  53. // associated with a school, or a business, or a government agency, a business
  54. // type property on the project may affect how a service responds to the client.
  55. // This descriptor defines which properties are allowed to be set on a project.
  56. //
  57. // Example:
  58. //
  59. // project_properties:
  60. // properties:
  61. // - name: NO_WATERMARK
  62. // type: BOOL
  63. // description: Allows usage of the API without watermarks.
  64. // - name: EXTENDED_TILE_CACHE_PERIOD
  65. // type: INT64
  66. type ProjectProperties struct {
  67. // List of per consumer project-specific properties.
  68. Properties []*Property `protobuf:"bytes,1,rep,name=properties,proto3" json:"properties,omitempty"`
  69. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  70. XXX_unrecognized []byte `json:"-"`
  71. XXX_sizecache int32 `json:"-"`
  72. }
  73. func (m *ProjectProperties) Reset() { *m = ProjectProperties{} }
  74. func (m *ProjectProperties) String() string { return proto.CompactTextString(m) }
  75. func (*ProjectProperties) ProtoMessage() {}
  76. func (*ProjectProperties) Descriptor() ([]byte, []int) {
  77. return fileDescriptor_consumer_d0bb8e60fc017c6f, []int{0}
  78. }
  79. func (m *ProjectProperties) XXX_Unmarshal(b []byte) error {
  80. return xxx_messageInfo_ProjectProperties.Unmarshal(m, b)
  81. }
  82. func (m *ProjectProperties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  83. return xxx_messageInfo_ProjectProperties.Marshal(b, m, deterministic)
  84. }
  85. func (dst *ProjectProperties) XXX_Merge(src proto.Message) {
  86. xxx_messageInfo_ProjectProperties.Merge(dst, src)
  87. }
  88. func (m *ProjectProperties) XXX_Size() int {
  89. return xxx_messageInfo_ProjectProperties.Size(m)
  90. }
  91. func (m *ProjectProperties) XXX_DiscardUnknown() {
  92. xxx_messageInfo_ProjectProperties.DiscardUnknown(m)
  93. }
  94. var xxx_messageInfo_ProjectProperties proto.InternalMessageInfo
  95. func (m *ProjectProperties) GetProperties() []*Property {
  96. if m != nil {
  97. return m.Properties
  98. }
  99. return nil
  100. }
  101. // Defines project properties.
  102. //
  103. // API services can define properties that can be assigned to consumer projects
  104. // so that backends can perform response customization without having to make
  105. // additional calls or maintain additional storage. For example, Maps API
  106. // defines properties that controls map tile cache period, or whether to embed a
  107. // watermark in a result.
  108. //
  109. // These values can be set via API producer console. Only API providers can
  110. // define and set these properties.
  111. type Property struct {
  112. // The name of the property (a.k.a key).
  113. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  114. // The type of this property.
  115. Type Property_PropertyType `protobuf:"varint,2,opt,name=type,proto3,enum=google.api.Property_PropertyType" json:"type,omitempty"`
  116. // The description of the property
  117. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
  118. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  119. XXX_unrecognized []byte `json:"-"`
  120. XXX_sizecache int32 `json:"-"`
  121. }
  122. func (m *Property) Reset() { *m = Property{} }
  123. func (m *Property) String() string { return proto.CompactTextString(m) }
  124. func (*Property) ProtoMessage() {}
  125. func (*Property) Descriptor() ([]byte, []int) {
  126. return fileDescriptor_consumer_d0bb8e60fc017c6f, []int{1}
  127. }
  128. func (m *Property) XXX_Unmarshal(b []byte) error {
  129. return xxx_messageInfo_Property.Unmarshal(m, b)
  130. }
  131. func (m *Property) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  132. return xxx_messageInfo_Property.Marshal(b, m, deterministic)
  133. }
  134. func (dst *Property) XXX_Merge(src proto.Message) {
  135. xxx_messageInfo_Property.Merge(dst, src)
  136. }
  137. func (m *Property) XXX_Size() int {
  138. return xxx_messageInfo_Property.Size(m)
  139. }
  140. func (m *Property) XXX_DiscardUnknown() {
  141. xxx_messageInfo_Property.DiscardUnknown(m)
  142. }
  143. var xxx_messageInfo_Property proto.InternalMessageInfo
  144. func (m *Property) GetName() string {
  145. if m != nil {
  146. return m.Name
  147. }
  148. return ""
  149. }
  150. func (m *Property) GetType() Property_PropertyType {
  151. if m != nil {
  152. return m.Type
  153. }
  154. return Property_UNSPECIFIED
  155. }
  156. func (m *Property) GetDescription() string {
  157. if m != nil {
  158. return m.Description
  159. }
  160. return ""
  161. }
  162. func init() {
  163. proto.RegisterType((*ProjectProperties)(nil), "google.api.ProjectProperties")
  164. proto.RegisterType((*Property)(nil), "google.api.Property")
  165. proto.RegisterEnum("google.api.Property_PropertyType", Property_PropertyType_name, Property_PropertyType_value)
  166. }
  167. func init() { proto.RegisterFile("google/api/consumer.proto", fileDescriptor_consumer_d0bb8e60fc017c6f) }
  168. var fileDescriptor_consumer_d0bb8e60fc017c6f = []byte{
  169. // 299 bytes of a gzipped FileDescriptorProto
  170. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0x4f, 0x4f, 0xf2, 0x40,
  171. 0x10, 0xc6, 0xdf, 0x85, 0xbe, 0x04, 0x06, 0xc5, 0xba, 0xf1, 0x50, 0x6f, 0x95, 0x13, 0xa7, 0x36,
  172. 0x41, 0xf4, 0xe2, 0xad, 0x50, 0x4d, 0x13, 0x02, 0x4d, 0x81, 0x8b, 0xb7, 0x5a, 0xc7, 0x75, 0x0d,
  173. 0xec, 0x6c, 0xb6, 0xd5, 0x84, 0x0f, 0xe8, 0xf7, 0x32, 0x2c, 0x88, 0x35, 0xf1, 0xf6, 0xcc, 0x3e,
  174. 0x7f, 0xb2, 0xf9, 0xc1, 0xa5, 0x20, 0x12, 0x6b, 0x0c, 0x73, 0x2d, 0xc3, 0x82, 0x54, 0xf9, 0xbe,
  175. 0x41, 0x13, 0x68, 0x43, 0x15, 0x71, 0xd8, 0x5b, 0x41, 0xae, 0x65, 0x3f, 0x81, 0xf3, 0xd4, 0xd0,
  176. 0x1b, 0x16, 0x55, 0x6a, 0x48, 0xa3, 0xa9, 0x24, 0x96, 0x7c, 0x04, 0xa0, 0x8f, 0x97, 0xc7, 0xfc,
  177. 0xe6, 0xa0, 0x3b, 0xbc, 0x08, 0x7e, 0x5a, 0xc1, 0x21, 0xbb, 0xcd, 0x6a, 0xb9, 0xfe, 0x27, 0x83,
  178. 0xf6, 0xb7, 0xc1, 0x39, 0x38, 0x2a, 0xdf, 0xa0, 0xc7, 0x7c, 0x36, 0xe8, 0x64, 0x56, 0xf3, 0x1b,
  179. 0x70, 0xaa, 0xad, 0x46, 0xaf, 0xe1, 0xb3, 0x41, 0x6f, 0x78, 0xf5, 0xd7, 0xe0, 0x51, 0x2c, 0xb7,
  180. 0x1a, 0x33, 0x1b, 0xe7, 0x3e, 0x74, 0x9f, 0xb1, 0x2c, 0x8c, 0xd4, 0x95, 0x24, 0xe5, 0x35, 0xed,
  181. 0x62, 0xfd, 0xa9, 0x3f, 0x85, 0x93, 0x7a, 0x8f, 0x9f, 0x41, 0x77, 0x35, 0x5b, 0xa4, 0xf1, 0x38,
  182. 0xb9, 0x4f, 0xe2, 0x89, 0xfb, 0x8f, 0x77, 0xe0, 0x7f, 0x32, 0x5b, 0xde, 0x8e, 0x5c, 0xc6, 0xdb,
  183. 0xe0, 0x44, 0xf3, 0xf9, 0xd4, 0x6d, 0x70, 0x80, 0xd6, 0x62, 0x99, 0x25, 0xb3, 0x07, 0xb7, 0xb9,
  184. 0xd3, 0x93, 0xf9, 0x2a, 0x9a, 0xc6, 0xae, 0x13, 0xbd, 0x42, 0xaf, 0xa0, 0x4d, 0xed, 0x77, 0xd1,
  185. 0xe9, 0xf8, 0x00, 0x30, 0xdd, 0xf1, 0x4b, 0xd9, 0x63, 0x7c, 0x30, 0x05, 0xad, 0x73, 0x25, 0x02,
  186. 0x32, 0x22, 0x14, 0xa8, 0x2c, 0xdd, 0x70, 0x6f, 0xe5, 0x5a, 0x96, 0x96, 0x7d, 0x89, 0xe6, 0x43,
  187. 0x16, 0x58, 0x90, 0x7a, 0x91, 0xe2, 0xee, 0xd7, 0xf5, 0xd4, 0xb2, 0x8d, 0xeb, 0xaf, 0x00, 0x00,
  188. 0x00, 0xff, 0xff, 0xb7, 0xa4, 0x04, 0x2c, 0xac, 0x01, 0x00, 0x00,
  189. }