1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/appengine/v1/service.proto
6 import proto "github.com/golang/protobuf/proto"
9 import _ "google.golang.org/genproto/googleapis/api/annotations"
11 // Reference imports to suppress errors if they are not otherwise used.
16 // Available sharding mechanisms.
17 type TrafficSplit_ShardBy int32
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
27 TrafficSplit_IP TrafficSplit_ShardBy = 2
30 var TrafficSplit_ShardBy_name = map[int32]string{
35 var TrafficSplit_ShardBy_value = map[string]int32{
41 func (x TrafficSplit_ShardBy) String() string {
42 return proto.EnumName(TrafficSplit_ShardBy_name, int32(x))
44 func (TrafficSplit_ShardBy) EnumDescriptor() ([]byte, []int) { return fileDescriptor7, []int{1, 0} }
46 // A Service resource is a logical component of an application that can share
47 // state and communicate in a secure fashion with other services.
48 // For example, an application that handles customer requests might
49 // include separate services to handle tasks such as backend data
50 // analysis or API requests from mobile devices. Each service has a
51 // collection of versions that define a specific set of code used to
52 // implement the functionality of that service.
54 // Full path to the Service resource in the API.
55 // Example: `apps/myapp/services/default`.
58 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
59 // Relative name of the service within the application.
60 // Example: `default`.
63 Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
64 // Mapping that defines fractional HTTP traffic diversion to
65 // different versions within the service.
66 Split *TrafficSplit `protobuf:"bytes,3,opt,name=split" json:"split,omitempty"`
69 func (m *Service) Reset() { *m = Service{} }
70 func (m *Service) String() string { return proto.CompactTextString(m) }
71 func (*Service) ProtoMessage() {}
72 func (*Service) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{0} }
74 func (m *Service) GetName() string {
81 func (m *Service) GetId() string {
88 func (m *Service) GetSplit() *TrafficSplit {
95 // Traffic routing configuration for versions within a single service. Traffic
96 // splits define how traffic directed to the service is assigned to versions.
97 type TrafficSplit struct {
98 // Mechanism used to determine which version a request is sent to.
99 // The traffic selection algorithm will
100 // be stable for either type until allocations are changed.
101 ShardBy TrafficSplit_ShardBy `protobuf:"varint,1,opt,name=shard_by,json=shardBy,enum=google.appengine.v1.TrafficSplit_ShardBy" json:"shard_by,omitempty"`
102 // Mapping from version IDs within the service to fractional
103 // (0.000, 1] allocations of traffic for that version. Each version can
104 // be specified only once, but some versions in the service may not
105 // have any traffic allocation. Services that have traffic allocated
106 // cannot be deleted until either the service is deleted or
107 // their traffic allocation is removed. Allocations must sum to 1.
108 // Up to two decimal place precision is supported for IP-based splits and
109 // up to three decimal places is supported for cookie-based splits.
110 Allocations map[string]float64 `protobuf:"bytes,2,rep,name=allocations" json:"allocations,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"`
113 func (m *TrafficSplit) Reset() { *m = TrafficSplit{} }
114 func (m *TrafficSplit) String() string { return proto.CompactTextString(m) }
115 func (*TrafficSplit) ProtoMessage() {}
116 func (*TrafficSplit) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{1} }
118 func (m *TrafficSplit) GetShardBy() TrafficSplit_ShardBy {
122 return TrafficSplit_UNSPECIFIED
125 func (m *TrafficSplit) GetAllocations() map[string]float64 {
133 proto.RegisterType((*Service)(nil), "google.appengine.v1.Service")
134 proto.RegisterType((*TrafficSplit)(nil), "google.appengine.v1.TrafficSplit")
135 proto.RegisterEnum("google.appengine.v1.TrafficSplit_ShardBy", TrafficSplit_ShardBy_name, TrafficSplit_ShardBy_value)
138 func init() { proto.RegisterFile("google/appengine/v1/service.proto", fileDescriptor7) }
140 var fileDescriptor7 = []byte{
141 // 356 bytes of a gzipped FileDescriptorProto
142 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x51, 0x8b, 0xda, 0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