OSDN Git Service

new repo
[bytom/vapor.git] / vendor / google.golang.org / genproto / googleapis / bigtable / admin / v2 / instance.pb.go
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/bigtable/admin/v2/instance.proto
3
4 package admin
5
6 import proto "github.com/golang/protobuf/proto"
7 import fmt "fmt"
8 import math "math"
9 import _ "google.golang.org/genproto/googleapis/api/annotations"
10
11 // Reference imports to suppress errors if they are not otherwise used.
12 var _ = proto.Marshal
13 var _ = fmt.Errorf
14 var _ = math.Inf
15
16 // Possible states of an instance.
17 type Instance_State int32
18
19 const (
20         // The state of the instance could not be determined.
21         Instance_STATE_NOT_KNOWN Instance_State = 0
22         // The instance has been successfully created and can serve requests
23         // to its tables.
24         Instance_READY Instance_State = 1
25         // The instance is currently being created, and may be destroyed
26         // if the creation process encounters an error.
27         Instance_CREATING Instance_State = 2
28 )
29
30 var Instance_State_name = map[int32]string{
31         0: "STATE_NOT_KNOWN",
32         1: "READY",
33         2: "CREATING",
34 }
35 var Instance_State_value = map[string]int32{
36         "STATE_NOT_KNOWN": 0,
37         "READY":           1,
38         "CREATING":        2,
39 }
40
41 func (x Instance_State) String() string {
42         return proto.EnumName(Instance_State_name, int32(x))
43 }
44 func (Instance_State) EnumDescriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 0} }
45
46 // The type of the instance.
47 type Instance_Type int32
48
49 const (
50         // The type of the instance is unspecified. If set when creating an
51         // instance, a `PRODUCTION` instance will be created. If set when updating
52         // an instance, the type will be left unchanged.
53         Instance_TYPE_UNSPECIFIED Instance_Type = 0
54         // An instance meant for production use. `serve_nodes` must be set
55         // on the cluster.
56         Instance_PRODUCTION Instance_Type = 1
57         // The instance is meant for development and testing purposes only; it has
58         // no performance or uptime guarantees and is not covered by SLA.
59         // After a development instance is created, it can be upgraded by
60         // updating the instance to type `PRODUCTION`. An instance created
61         // as a production instance cannot be changed to a development instance.
62         // When creating a development instance, `serve_nodes` on the cluster must
63         // not be set.
64         Instance_DEVELOPMENT Instance_Type = 2
65 )
66
67 var Instance_Type_name = map[int32]string{
68         0: "TYPE_UNSPECIFIED",
69         1: "PRODUCTION",
70         2: "DEVELOPMENT",
71 }
72 var Instance_Type_value = map[string]int32{
73         "TYPE_UNSPECIFIED": 0,
74         "PRODUCTION":       1,
75         "DEVELOPMENT":      2,
76 }
77
78 func (x Instance_Type) String() string {
79         return proto.EnumName(Instance_Type_name, int32(x))
80 }
81 func (Instance_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 1} }
82
83 // Possible states of a cluster.
84 type Cluster_State int32
85
86 const (
87         // The state of the cluster could not be determined.
88         Cluster_STATE_NOT_KNOWN Cluster_State = 0
89         // The cluster has been successfully created and is ready to serve requests.
90         Cluster_READY Cluster_State = 1
91         // The cluster is currently being created, and may be destroyed
92         // if the creation process encounters an error.
93         // A cluster may not be able to serve requests while being created.
94         Cluster_CREATING Cluster_State = 2
95         // The cluster is currently being resized, and may revert to its previous
96         // node count if the process encounters an error.
97         // A cluster is still capable of serving requests while being resized,
98         // but may exhibit performance as if its number of allocated nodes is
99         // between the starting and requested states.
100         Cluster_RESIZING Cluster_State = 3
101         // The cluster has no backing nodes. The data (tables) still
102         // exist, but no operations can be performed on the cluster.
103         Cluster_DISABLED Cluster_State = 4
104 )
105
106 var Cluster_State_name = map[int32]string{
107         0: "STATE_NOT_KNOWN",
108         1: "READY",
109         2: "CREATING",
110         3: "RESIZING",
111         4: "DISABLED",
112 }
113 var Cluster_State_value = map[string]int32{
114         "STATE_NOT_KNOWN": 0,
115         "READY":           1,
116         "CREATING":        2,
117         "RESIZING":        3,
118         "DISABLED":        4,
119 }
120
121 func (x Cluster_State) String() string {
122         return proto.EnumName(Cluster_State_name, int32(x))
123 }
124 func (Cluster_State) EnumDescriptor() ([]byte, []int) { return fileDescriptor3, []int{1, 0} }
125
126 // A collection of Bigtable [Tables][google.bigtable.admin.v2.Table] and
127 // the resources that serve them.
128 // All tables in an instance are served from a single
129 // [Cluster][google.bigtable.admin.v2.Cluster].
130 type Instance struct {
131         // (`OutputOnly`)
132         // The unique name of the instance. Values are of the form
133         // `projects/<project>/instances/[a-z][a-z0-9\\-]+[a-z0-9]`.
134         Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
135         // The descriptive name for this instance as it appears in UIs.
136         // Can be changed at any time, but should be kept globally unique
137         // to avoid confusion.
138         DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
139         // (`OutputOnly`)
140         // The current state of the instance.
141         State Instance_State `protobuf:"varint,3,opt,name=state,enum=google.bigtable.admin.v2.Instance_State" json:"state,omitempty"`
142         // The type of the instance. Defaults to `PRODUCTION`.
143         Type Instance_Type `protobuf:"varint,4,opt,name=type,enum=google.bigtable.admin.v2.Instance_Type" json:"type,omitempty"`
144 }
145
146 func (m *Instance) Reset()                    { *m = Instance{} }
147 func (m *Instance) String() string            { return proto.CompactTextString(m) }
148 func (*Instance) ProtoMessage()               {}
149 func (*Instance) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }
150
151 func (m *Instance) GetName() string {
152         if m != nil {
153                 return m.Name
154         }
155         return ""
156 }
157
158 func (m *Instance) GetDisplayName() string {
159         if m != nil {
160                 return m.DisplayName
161         }
162         return ""
163 }
164
165 func (m *Instance) GetState() Instance_State {
166         if m != nil {
167                 return m.State
168         }
169         return Instance_STATE_NOT_KNOWN
170 }
171
172 func (m *Instance) GetType() Instance_Type {
173         if m != nil {
174                 return m.Type
175         }
176         return Instance_TYPE_UNSPECIFIED
177 }
178
179 // A resizable group of nodes in a particular cloud location, capable
180 // of serving all [Tables][google.bigtable.admin.v2.Table] in the parent
181 // [Instance][google.bigtable.admin.v2.Instance].
182 type Cluster struct {
183         // (`OutputOnly`)
184         // The unique name of the cluster. Values are of the form
185         // `projects/<project>/instances/<instance>/clusters/[a-z][-a-z0-9]*`.
186         Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
187         // (`CreationOnly`)
188         // The location where this cluster's nodes and storage reside. For best
189         // performance, clients should be located as close as possible to this cluster.
190         // Currently only zones are supported, so values should be of the form
191         // `projects/<project>/locations/<zone>`.
192         Location string `protobuf:"bytes,2,opt,name=location" json:"location,omitempty"`
193         // (`OutputOnly`)
194         // The current state of the cluster.
195         State Cluster_State `protobuf:"varint,3,opt,name=state,enum=google.bigtable.admin.v2.Cluster_State" json:"state,omitempty"`
196         // The number of nodes allocated to this cluster. More nodes enable higher
197         // throughput and more consistent performance.
198         ServeNodes int32 `protobuf:"varint,4,opt,name=serve_nodes,json=serveNodes" json:"serve_nodes,omitempty"`
199         // (`CreationOnly`)
200         // The type of storage used by this cluster to serve its
201         // parent instance's tables, unless explicitly overridden.
202         DefaultStorageType StorageType `protobuf:"varint,5,opt,name=default_storage_type,json=defaultStorageType,enum=google.bigtable.admin.v2.StorageType" json:"default_storage_type,omitempty"`
203 }
204
205 func (m *Cluster) Reset()                    { *m = Cluster{} }
206 func (m *Cluster) String() string            { return proto.CompactTextString(m) }
207 func (*Cluster) ProtoMessage()               {}
208 func (*Cluster) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{1} }
209
210 func (m *Cluster) GetName() string {
211         if m != nil {
212                 return m.Name
213         }
214         return ""
215 }
216
217 func (m *Cluster) GetLocation() string {
218         if m != nil {
219                 return m.Location
220         }
221         return ""
222 }
223
224 func (m *Cluster) GetState() Cluster_State {
225         if m != nil {
226                 return m.State
227         }
228         return Cluster_STATE_NOT_KNOWN
229 }
230
231 func (m *Cluster) GetServeNodes() int32 {
232         if m != nil {
233                 return m.ServeNodes
234         }
235         return 0
236 }
237
238 func (m *Cluster) GetDefaultStorageType() StorageType {
239         if m != nil {
240                 return m.DefaultStorageType
241         }
242         return StorageType_STORAGE_TYPE_UNSPECIFIED
243 }
244
245 func init() {
246         proto.RegisterType((*Instance)(nil), "google.bigtable.admin.v2.Instance")
247         proto.RegisterType((*Cluster)(nil), "google.bigtable.admin.v2.Cluster")
248         proto.RegisterEnum("google.bigtable.admin.v2.Instance_State", Instance_State_name, Instance_State_value)
249         proto.RegisterEnum("google.bigtable.admin.v2.Instance_Type", Instance_Type_name, Instance_Type_value)
250         proto.RegisterEnum("google.bigtable.admin.v2.Cluster_State", Cluster_State_name, Cluster_State_value)
251 }
252
253 func init() { proto.RegisterFile("google/bigtable/admin/v2/instance.proto", fileDescriptor3) }
254
255 var fileDescriptor3 = []byte{
256         // 477 bytes of a gzipped FileDescriptorProto
257         0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0x51, 0x6b, 0xdb, 0x30,
258         0x10, 0xc7, 0xeb, 0xd4, 0xde, 0xd2, 0x4b, 0xd7, 0x1a, 0xad, 0x0f, 0x21, 0x14, 0xd6, 0x19, 0x4a,
259         0xf3, 0x64, 0x43, 0xc6, 0x9e, 0x4a, 0x06, 0x49, 0xac, 0x0d, 0xb3, 0xce, 0xf6, 0x6c, 0x77, 0xa5,
260         0x7d, 0x31, 0x4a, 0xa2, 0x19, 0x83, 0x2d, 0x19, 0x4b, 0x0d, 0xe4, 0x7b, 0xed, 0x2b, 0xec, 0x7b,
261         0x0d, 0xcb, 0xce, 0x58, 0xd9, 0x32, 0xc6, 0xde, 0x74, 0x77, 0xbf, 0xbb, 0xbf, 0xf4, 0xd7, 0xc1,
262         0x55, 0xc6, 0x79, 0x56, 0x50, 0x67, 0x99, 0x67, 0x92, 0x2c, 0x0b, 0xea, 0x90, 0x75, 0x99, 0x33,
263         0x67, 0x33, 0x71, 0x72, 0x26, 0x24, 0x61, 0x2b, 0x6a, 0x57, 0x35, 0x97, 0x1c, 0x0d, 0x5b, 0xd0,
264         0xde, 0x81, 0xb6, 0x02, 0xed, 0xcd, 0x64, 0x74, 0xde, 0x8d, 0x20, 0x55, 0xee, 0x10, 0xc6, 0xb8,
265         0x24, 0x32, 0xe7, 0x4c, 0xb4, 0x7d, 0xa3, 0xcb, 0xbd, 0x02, 0x2b, 0x5e, 0x96, 0x9c, 0xb5, 0x98,
266         0xf5, 0xad, 0x07, 0x7d, 0xaf, 0x53, 0x44, 0x08, 0x74, 0x46, 0x4a, 0x3a, 0xd4, 0x2e, 0xb4, 0xf1,
267         0x51, 0xa4, 0xce, 0xe8, 0x35, 0x1c, 0xaf, 0x73, 0x51, 0x15, 0x64, 0x9b, 0xaa, 0x5a, 0x4f, 0xd5,
268         0x06, 0x5d, 0xce, 0x6f, 0x90, 0x77, 0x60, 0x08, 0x49, 0x24, 0x1d, 0x1e, 0x5e, 0x68, 0xe3, 0x93,
269         0xc9, 0xd8, 0xde, 0x77, 0x65, 0x7b, 0xa7, 0x64, 0xc7, 0x0d, 0x1f, 0xb5, 0x6d, 0xe8, 0x1a, 0x74,
270         0xb9, 0xad, 0xe8, 0x50, 0x57, 0xed, 0x57, 0xff, 0xd0, 0x9e, 0x6c, 0x2b, 0x1a, 0xa9, 0x26, 0xeb,
271         0x2d, 0x18, 0x6a, 0x18, 0x7a, 0x09, 0xa7, 0x71, 0x32, 0x4b, 0x70, 0xea, 0x07, 0x49, 0xfa, 0xd1,
272         0x0f, 0xee, 0x7c, 0xf3, 0x00, 0x1d, 0x81, 0x11, 0xe1, 0x99, 0x7b, 0x6f, 0x6a, 0xe8, 0x18, 0xfa,
273         0x8b, 0x08, 0xcf, 0x12, 0xcf, 0xff, 0x60, 0xf6, 0xac, 0x29, 0xe8, 0xcd, 0x10, 0x74, 0x06, 0x66,
274         0x72, 0x1f, 0xe2, 0xf4, 0xd6, 0x8f, 0x43, 0xbc, 0xf0, 0xde, 0x7b, 0xd8, 0x35, 0x0f, 0xd0, 0x09,
275         0x40, 0x18, 0x05, 0xee, 0xed, 0x22, 0xf1, 0x02, 0xdf, 0xd4, 0xd0, 0x29, 0x0c, 0x5c, 0xfc, 0x05,
276         0xdf, 0x04, 0xe1, 0x27, 0xec, 0x27, 0x66, 0xcf, 0xfa, 0xde, 0x83, 0xe7, 0x8b, 0xe2, 0x51, 0x48,
277         0x5a, 0xff, 0xd1, 0xb5, 0x11, 0xf4, 0x0b, 0xbe, 0x52, 0x1f, 0xd2, 0x39, 0xf6, 0x33, 0x46, 0xd3,
278         0xa7, 0x76, 0xfd, 0xe5, 0xbd, 0x9d, 0xc2, 0x53, 0xb7, 0x5e, 0xc1, 0x40, 0xd0, 0x7a, 0x43, 0x53,
279         0xc6, 0xd7, 0x54, 0x28, 0xd3, 0x8c, 0x08, 0x54, 0xca, 0x6f, 0x32, 0xe8, 0x0e, 0xce, 0xd6, 0xf4,
280         0x2b, 0x79, 0x2c, 0x64, 0x2a, 0x24, 0xaf, 0x49, 0x46, 0x53, 0x65, 0xaf, 0xa1, 0xe4, 0x2e, 0xf7,
281         0xcb, 0xc5, 0x2d, 0xad, 0xcc, 0x45, 0xdd, 0x88, 0x5f, 0x72, 0xd6, 0xe7, 0xff, 0xb2, 0xba, 0x89,
282         0x22, 0x1c, 0x7b, 0x0f, 0x4d, 0x74, 0xd8, 0x44, 0xae, 0x17, 0xcf, 0xe6, 0x37, 0xd8, 0x35, 0xf5,
283         0x39, 0x83, 0xf3, 0x15, 0x2f, 0xf7, 0x5e, 0x69, 0xfe, 0x62, 0xf7, 0xe5, 0x61, 0xb3, 0xad, 0xa1,
284         0xf6, 0x30, 0xed, 0xd0, 0x8c, 0x17, 0x84, 0x65, 0x36, 0xaf, 0x33, 0x27, 0xa3, 0x4c, 0xed, 0xb2,
285         0xd3, 0x96, 0x48, 0x95, 0x8b, 0xdf, 0xb7, 0xfe, 0x5a, 0x1d, 0x96, 0xcf, 0x14, 0xf9, 0xe6, 0x47,
286         0x00, 0x00, 0x00, 0xff, 0xff, 0xce, 0x3d, 0x06, 0xe4, 0x7f, 0x03, 0x00, 0x00,
287 }