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.
 
 
 

221 lines
9.1 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/appengine/v1/service.proto
  3. package appengine // import "google.golang.org/genproto/googleapis/appengine/v1"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "google.golang.org/genproto/googleapis/api/annotations"
  8. // Reference imports to suppress errors if they are not otherwise used.
  9. var _ = proto.Marshal
  10. var _ = fmt.Errorf
  11. var _ = math.Inf
  12. // This is a compile-time assertion to ensure that this generated file
  13. // is compatible with the proto package it is being compiled against.
  14. // A compilation error at this line likely means your copy of the
  15. // proto package needs to be updated.
  16. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  17. // Available sharding mechanisms.
  18. type TrafficSplit_ShardBy int32
  19. const (
  20. // Diversion method unspecified.
  21. TrafficSplit_UNSPECIFIED TrafficSplit_ShardBy = 0
  22. // Diversion based on a specially named cookie, "GOOGAPPUID." The cookie
  23. // must be set by the application itself or no diversion will occur.
  24. TrafficSplit_COOKIE TrafficSplit_ShardBy = 1
  25. // Diversion based on applying the modulus operation to a fingerprint
  26. // of the IP address.
  27. TrafficSplit_IP TrafficSplit_ShardBy = 2
  28. )
  29. var TrafficSplit_ShardBy_name = map[int32]string{
  30. 0: "UNSPECIFIED",
  31. 1: "COOKIE",
  32. 2: "IP",
  33. }
  34. var TrafficSplit_ShardBy_value = map[string]int32{
  35. "UNSPECIFIED": 0,
  36. "COOKIE": 1,
  37. "IP": 2,
  38. }
  39. func (x TrafficSplit_ShardBy) String() string {
  40. return proto.EnumName(TrafficSplit_ShardBy_name, int32(x))
  41. }
  42. func (TrafficSplit_ShardBy) EnumDescriptor() ([]byte, []int) {
  43. return fileDescriptor_service_4cf1d18bc9c1fb44, []int{1, 0}
  44. }
  45. // A Service resource is a logical component of an application that can share
  46. // state and communicate in a secure fashion with other services.
  47. // For example, an application that handles customer requests might
  48. // include separate services to handle tasks such as backend data
  49. // analysis or API requests from mobile devices. Each service has a
  50. // collection of versions that define a specific set of code used to
  51. // implement the functionality of that service.
  52. type Service struct {
  53. // Full path to the Service resource in the API.
  54. // Example: `apps/myapp/services/default`.
  55. //
  56. // @OutputOnly
  57. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  58. // Relative name of the service within the application.
  59. // Example: `default`.
  60. //
  61. // @OutputOnly
  62. Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
  63. // Mapping that defines fractional HTTP traffic diversion to
  64. // different versions within the service.
  65. Split *TrafficSplit `protobuf:"bytes,3,opt,name=split,proto3" json:"split,omitempty"`
  66. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  67. XXX_unrecognized []byte `json:"-"`
  68. XXX_sizecache int32 `json:"-"`
  69. }
  70. func (m *Service) Reset() { *m = Service{} }
  71. func (m *Service) String() string { return proto.CompactTextString(m) }
  72. func (*Service) ProtoMessage() {}
  73. func (*Service) Descriptor() ([]byte, []int) {
  74. return fileDescriptor_service_4cf1d18bc9c1fb44, []int{0}
  75. }
  76. func (m *Service) XXX_Unmarshal(b []byte) error {
  77. return xxx_messageInfo_Service.Unmarshal(m, b)
  78. }
  79. func (m *Service) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  80. return xxx_messageInfo_Service.Marshal(b, m, deterministic)
  81. }
  82. func (dst *Service) XXX_Merge(src proto.Message) {
  83. xxx_messageInfo_Service.Merge(dst, src)
  84. }
  85. func (m *Service) XXX_Size() int {
  86. return xxx_messageInfo_Service.Size(m)
  87. }
  88. func (m *Service) XXX_DiscardUnknown() {
  89. xxx_messageInfo_Service.DiscardUnknown(m)
  90. }
  91. var xxx_messageInfo_Service proto.InternalMessageInfo
  92. func (m *Service) GetName() string {
  93. if m != nil {
  94. return m.Name
  95. }
  96. return ""
  97. }
  98. func (m *Service) GetId() string {
  99. if m != nil {
  100. return m.Id
  101. }
  102. return ""
  103. }
  104. func (m *Service) GetSplit() *TrafficSplit {
  105. if m != nil {
  106. return m.Split
  107. }
  108. return nil
  109. }
  110. // Traffic routing configuration for versions within a single service. Traffic
  111. // splits define how traffic directed to the service is assigned to versions.
  112. type TrafficSplit struct {
  113. // Mechanism used to determine which version a request is sent to.
  114. // The traffic selection algorithm will
  115. // be stable for either type until allocations are changed.
  116. ShardBy TrafficSplit_ShardBy `protobuf:"varint,1,opt,name=shard_by,json=shardBy,proto3,enum=google.appengine.v1.TrafficSplit_ShardBy" json:"shard_by,omitempty"`
  117. // Mapping from version IDs within the service to fractional
  118. // (0.000, 1] allocations of traffic for that version. Each version can
  119. // be specified only once, but some versions in the service may not
  120. // have any traffic allocation. Services that have traffic allocated
  121. // cannot be deleted until either the service is deleted or
  122. // their traffic allocation is removed. Allocations must sum to 1.
  123. // Up to two decimal place precision is supported for IP-based splits and
  124. // up to three decimal places is supported for cookie-based splits.
  125. Allocations map[string]float64 `protobuf:"bytes,2,rep,name=allocations,proto3" json:"allocations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"fixed64,2,opt,name=value,proto3"`
  126. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  127. XXX_unrecognized []byte `json:"-"`
  128. XXX_sizecache int32 `json:"-"`
  129. }
  130. func (m *TrafficSplit) Reset() { *m = TrafficSplit{} }
  131. func (m *TrafficSplit) String() string { return proto.CompactTextString(m) }
  132. func (*TrafficSplit) ProtoMessage() {}
  133. func (*TrafficSplit) Descriptor() ([]byte, []int) {
  134. return fileDescriptor_service_4cf1d18bc9c1fb44, []int{1}
  135. }
  136. func (m *TrafficSplit) XXX_Unmarshal(b []byte) error {
  137. return xxx_messageInfo_TrafficSplit.Unmarshal(m, b)
  138. }
  139. func (m *TrafficSplit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  140. return xxx_messageInfo_TrafficSplit.Marshal(b, m, deterministic)
  141. }
  142. func (dst *TrafficSplit) XXX_Merge(src proto.Message) {
  143. xxx_messageInfo_TrafficSplit.Merge(dst, src)
  144. }
  145. func (m *TrafficSplit) XXX_Size() int {
  146. return xxx_messageInfo_TrafficSplit.Size(m)
  147. }
  148. func (m *TrafficSplit) XXX_DiscardUnknown() {
  149. xxx_messageInfo_TrafficSplit.DiscardUnknown(m)
  150. }
  151. var xxx_messageInfo_TrafficSplit proto.InternalMessageInfo
  152. func (m *TrafficSplit) GetShardBy() TrafficSplit_ShardBy {
  153. if m != nil {
  154. return m.ShardBy
  155. }
  156. return TrafficSplit_UNSPECIFIED
  157. }
  158. func (m *TrafficSplit) GetAllocations() map[string]float64 {
  159. if m != nil {
  160. return m.Allocations
  161. }
  162. return nil
  163. }
  164. func init() {
  165. proto.RegisterType((*Service)(nil), "google.appengine.v1.Service")
  166. proto.RegisterType((*TrafficSplit)(nil), "google.appengine.v1.TrafficSplit")
  167. proto.RegisterMapType((map[string]float64)(nil), "google.appengine.v1.TrafficSplit.AllocationsEntry")
  168. proto.RegisterEnum("google.appengine.v1.TrafficSplit_ShardBy", TrafficSplit_ShardBy_name, TrafficSplit_ShardBy_value)
  169. }
  170. func init() {
  171. proto.RegisterFile("google/appengine/v1/service.proto", fileDescriptor_service_4cf1d18bc9c1fb44)
  172. }
  173. var fileDescriptor_service_4cf1d18bc9c1fb44 = []byte{
  174. // 356 bytes of a gzipped FileDescriptorProto
  175. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x51, 0x8b, 0xda, 0x40,
  176. 0x10, 0xc7, 0x9b, 0xb5, 0x6a, 0x3b, 0x11, 0x1b, 0xb6, 0x85, 0x06, 0xe9, 0x83, 0xfa, 0x64, 0x5f,
  177. 0x36, 0x98, 0x3e, 0xb4, 0xb4, 0xa5, 0x50, 0x35, 0x85, 0x50, 0x38, 0x43, 0xe2, 0xbd, 0xdc, 0xcb,
  178. 0xb1, 0xc6, 0x75, 0x6f, 0xb9, 0xb8, 0x1b, 0x92, 0x5c, 0x20, 0x5f, 0xe5, 0x3e, 0xed, 0x91, 0x6c,
  179. 0xf0, 0xbc, 0x43, 0xf0, 0x6d, 0x66, 0xf2, 0xfb, 0xff, 0x67, 0x32, 0xb3, 0x30, 0xe1, 0x4a, 0xf1,
  180. 0x84, 0x39, 0x34, 0x4d, 0x99, 0xe4, 0x42, 0x32, 0xa7, 0x9c, 0x3b, 0x39, 0xcb, 0x4a, 0x11, 0x33,
  181. 0x92, 0x66, 0xaa, 0x50, 0xf8, 0xa3, 0x46, 0xc8, 0x11, 0x21, 0xe5, 0x7c, 0xf4, 0xe5, 0xa8, 0x13,
  182. 0x0e, 0x95, 0x52, 0x15, 0xb4, 0x10, 0x4a, 0xe6, 0x5a, 0x32, 0xdd, 0x43, 0x3f, 0xd2, 0x1e, 0x18,
  183. 0xc3, 0x5b, 0x49, 0x0f, 0xcc, 0x36, 0xc6, 0xc6, 0xec, 0x7d, 0xd8, 0xc4, 0x78, 0x08, 0x48, 0xec,
  184. 0x6c, 0xd4, 0x54, 0x90, 0xd8, 0xe1, 0xef, 0xd0, 0xcd, 0xd3, 0x44, 0x14, 0x76, 0x67, 0x6c, 0xcc,
  185. 0x4c, 0x77, 0x42, 0xce, 0x74, 0x24, 0x9b, 0x8c, 0xee, 0xf7, 0x22, 0x8e, 0x6a, 0x30, 0xd4, 0xfc,
  186. 0xf4, 0x11, 0xc1, 0xe0, 0xb4, 0x8e, 0x57, 0xf0, 0x2e, 0xbf, 0xa3, 0xd9, 0xee, 0x76, 0x5b, 0x35,
  187. 0x1d, 0x87, 0xee, 0xd7, 0x8b, 0x66, 0x24, 0xaa, 0x15, 0x8b, 0x2a, 0xec, 0xe7, 0x3a, 0xc0, 0x1b,
  188. 0x30, 0x69, 0x92, 0xa8, 0x58, 0xff, 0x93, 0x8d, 0xc6, 0x9d, 0x99, 0xe9, 0xba, 0x97, 0x8d, 0xfe,
  189. 0x3e, 0x8b, 0x3c, 0x59, 0x64, 0x55, 0x78, 0x6a, 0x33, 0xfa, 0x03, 0xd6, 0x6b, 0x00, 0x5b, 0xd0,
  190. 0xb9, 0x67, 0x55, 0xbb, 0x9c, 0x3a, 0xc4, 0x9f, 0xa0, 0x5b, 0xd2, 0xe4, 0x81, 0x35, 0xeb, 0x31,
  191. 0x42, 0x9d, 0xfc, 0x44, 0x3f, 0x8c, 0x29, 0x81, 0x7e, 0x3b, 0x29, 0xfe, 0x00, 0xe6, 0xf5, 0x55,
  192. 0x14, 0x78, 0x4b, 0xff, 0x9f, 0xef, 0xad, 0xac, 0x37, 0x18, 0xa0, 0xb7, 0x5c, 0xaf, 0xff, 0xfb,
  193. 0x9e, 0x65, 0xe0, 0x1e, 0x20, 0x3f, 0xb0, 0xd0, 0x82, 0xc3, 0xe7, 0x58, 0x1d, 0xce, 0x4d, 0xbd,
  194. 0x18, 0xb4, 0xd7, 0x09, 0xea, 0x6b, 0x05, 0xc6, 0xcd, 0xef, 0x16, 0xe2, 0x2a, 0xa1, 0x92, 0x13,
  195. 0x95, 0x71, 0x87, 0x33, 0xd9, 0xdc, 0xd2, 0xd1, 0x9f, 0x68, 0x2a, 0xf2, 0x17, 0x8f, 0xe4, 0xd7,
  196. 0x31, 0xd9, 0xf6, 0x1a, 0xf0, 0xdb, 0x53, 0x00, 0x00, 0x00, 0xff, 0xff, 0x5f, 0xbc, 0x13, 0xf4,
  197. 0x4c, 0x02, 0x00, 0x00,
  198. }