290 lines
12 KiB
Go
290 lines
12 KiB
Go
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
|
// source: google/bigtable/admin/v2/instance.proto
|
||
|
|
||
|
package admin
|
||
|
|
||
|
import proto "github.com/golang/protobuf/proto"
|
||
|
import fmt "fmt"
|
||
|
import math "math"
|
||
|
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||
|
|
||
|
// Reference imports to suppress errors if they are not otherwise used.
|
||
|
var _ = proto.Marshal
|
||
|
var _ = fmt.Errorf
|
||
|
var _ = math.Inf
|
||
|
|
||
|
// Possible states of an instance.
|
||
|
type Instance_State int32
|
||
|
|
||
|
const (
|
||
|
// The state of the instance could not be determined.
|
||
|
Instance_STATE_NOT_KNOWN Instance_State = 0
|
||
|
// The instance has been successfully created and can serve requests
|
||
|
// to its tables.
|
||
|
Instance_READY Instance_State = 1
|
||
|
// The instance is currently being created, and may be destroyed
|
||
|
// if the creation process encounters an error.
|
||
|
Instance_CREATING Instance_State = 2
|
||
|
)
|
||
|
|
||
|
var Instance_State_name = map[int32]string{
|
||
|
0: "STATE_NOT_KNOWN",
|
||
|
1: "READY",
|
||
|
2: "CREATING",
|
||
|
}
|
||
|
var Instance_State_value = map[string]int32{
|
||
|
"STATE_NOT_KNOWN": 0,
|
||
|
"READY": 1,
|
||
|
"CREATING": 2,
|
||
|
}
|
||
|
|
||
|
func (x Instance_State) String() string {
|
||
|
return proto.EnumName(Instance_State_name, int32(x))
|
||
|
}
|
||
|
func (Instance_State) EnumDescriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 0} }
|
||
|
|
||
|
// The type of the instance.
|
||
|
type Instance_Type int32
|
||
|
|
||
|
const (
|
||
|
// The type of the instance is unspecified. If set when creating an
|
||
|
// instance, a `PRODUCTION` instance will be created. If set when updating
|
||
|
// an instance, the type will be left unchanged.
|
||
|
Instance_TYPE_UNSPECIFIED Instance_Type = 0
|
||
|
// An instance meant for production use. `serve_nodes` must be set
|
||
|
// on the cluster.
|
||
|
Instance_PRODUCTION Instance_Type = 1
|
||
|
// The instance is meant for development and testing purposes only; it has
|
||
|
// no performance or uptime guarantees and is not covered by SLA.
|
||
|
// After a development instance is created, it can be upgraded by
|
||
|
// updating the instance to type `PRODUCTION`. An instance created
|
||
|
// as a production instance cannot be changed to a development instance.
|
||
|
// When creating a development instance, `serve_nodes` on the cluster must
|
||
|
// not be set.
|
||
|
Instance_DEVELOPMENT Instance_Type = 2
|
||
|
)
|
||
|
|
||
|
var Instance_Type_name = map[int32]string{
|
||
|
0: "TYPE_UNSPECIFIED",
|
||
|
1: "PRODUCTION",
|
||
|
2: "DEVELOPMENT",
|
||
|
}
|
||
|
var Instance_Type_value = map[string]int32{
|
||
|
"TYPE_UNSPECIFIED": 0,
|
||
|
"PRODUCTION": 1,
|
||
|
"DEVELOPMENT": 2,
|
||
|
}
|
||
|
|
||
|
func (x Instance_Type) String() string {
|
||
|
return proto.EnumName(Instance_Type_name, int32(x))
|
||
|
}
|
||
|
func (Instance_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 1} }
|
||
|
|
||
|
// Possible states of a cluster.
|
||
|
type Cluster_State int32
|
||
|
|
||
|
const (
|
||
|
// The state of the cluster could not be determined.
|
||
|
Cluster_STATE_NOT_KNOWN Cluster_State = 0
|
||
|
// The cluster has been successfully created and is ready to serve requests.
|
||
|
Cluster_READY Cluster_State = 1
|
||
|
// The cluster is currently being created, and may be destroyed
|
||
|
// if the creation process encounters an error.
|
||
|
// A cluster may not be able to serve requests while being created.
|
||
|
Cluster_CREATING Cluster_State = 2
|
||
|
// The cluster is currently being resized, and may revert to its previous
|
||
|
// node count if the process encounters an error.
|
||
|
// A cluster is still capable of serving requests while being resized,
|
||
|
// but may exhibit performance as if its number of allocated nodes is
|
||
|
// between the starting and requested states.
|
||
|
Cluster_RESIZING Cluster_State = 3
|
||
|
// The cluster has no backing nodes. The data (tables) still
|
||
|
// exist, but no operations can be performed on the cluster.
|
||
|
Cluster_DISABLED Cluster_State = 4
|
||
|
)
|
||
|
|
||
|
var Cluster_State_name = map[int32]string{
|
||
|
0: "STATE_NOT_KNOWN",
|
||
|
1: "READY",
|
||
|
2: "CREATING",
|
||
|
3: "RESIZING",
|
||
|
4: "DISABLED",
|
||
|
}
|
||
|
var Cluster_State_value = map[string]int32{
|
||
|
"STATE_NOT_KNOWN": 0,
|
||
|
"READY": 1,
|
||
|
"CREATING": 2,
|
||
|
"RESIZING": 3,
|
||
|
"DISABLED": 4,
|
||
|
}
|
||
|
|
||
|
func (x Cluster_State) String() string {
|
||
|
return proto.EnumName(Cluster_State_name, int32(x))
|
||
|
}
|
||
|
func (Cluster_State) EnumDescriptor() ([]byte, []int) { return fileDescriptor3, []int{1, 0} }
|
||
|
|
||
|
// A collection of Bigtable [Tables][google.bigtable.admin.v2.Table] and
|
||
|
// the resources that serve them.
|
||
|
// All tables in an instance are served from a single
|
||
|
// [Cluster][google.bigtable.admin.v2.Cluster].
|
||
|
type Instance struct {
|
||
|
// (`OutputOnly`)
|
||
|
// The unique name of the instance. Values are of the form
|
||
|
// `projects/<project>/instances/[a-z][a-z0-9\\-]+[a-z0-9]`.
|
||
|
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
||
|
// The descriptive name for this instance as it appears in UIs.
|
||
|
// Can be changed at any time, but should be kept globally unique
|
||
|
// to avoid confusion.
|
||
|
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
|
||
|
// (`OutputOnly`)
|
||
|
// The current state of the instance.
|
||
|
State Instance_State `protobuf:"varint,3,opt,name=state,enum=google.bigtable.admin.v2.Instance_State" json:"state,omitempty"`
|
||
|
// The type of the instance. Defaults to `PRODUCTION`.
|
||
|
Type Instance_Type `protobuf:"varint,4,opt,name=type,enum=google.bigtable.admin.v2.Instance_Type" json:"type,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (m *Instance) Reset() { *m = Instance{} }
|
||
|
func (m *Instance) String() string { return proto.CompactTextString(m) }
|
||
|
func (*Instance) ProtoMessage() {}
|
||
|
func (*Instance) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }
|
||
|
|
||
|
func (m *Instance) GetName() string {
|
||
|
if m != nil {
|
||
|
return m.Name
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *Instance) GetDisplayName() string {
|
||
|
if m != nil {
|
||
|
return m.DisplayName
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *Instance) GetState() Instance_State {
|
||
|
if m != nil {
|
||
|
return m.State
|
||
|
}
|
||
|
return Instance_STATE_NOT_KNOWN
|
||
|
}
|
||
|
|
||
|
func (m *Instance) GetType() Instance_Type {
|
||
|
if m != nil {
|
||
|
return m.Type
|
||
|
}
|
||
|
return Instance_TYPE_UNSPECIFIED
|
||
|
}
|
||
|
|
||
|
// A resizable group of nodes in a particular cloud location, capable
|
||
|
// of serving all [Tables][google.bigtable.admin.v2.Table] in the parent
|
||
|
// [Instance][google.bigtable.admin.v2.Instance].
|
||
|
type Cluster struct {
|
||
|
// (`OutputOnly`)
|
||
|
// The unique name of the cluster. Values are of the form
|
||
|
// `projects/<project>/instances/<instance>/clusters/[a-z][-a-z0-9]*`.
|
||
|
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
||
|
// (`CreationOnly`)
|
||
|
// The location where this cluster's nodes and storage reside. For best
|
||
|
// performance, clients should be located as close as possible to this cluster.
|
||
|
// Currently only zones are supported, so values should be of the form
|
||
|
// `projects/<project>/locations/<zone>`.
|
||
|
Location string `protobuf:"bytes,2,opt,name=location" json:"location,omitempty"`
|
||
|
// (`OutputOnly`)
|
||
|
// The current state of the cluster.
|
||
|
State Cluster_State `protobuf:"varint,3,opt,name=state,enum=google.bigtable.admin.v2.Cluster_State" json:"state,omitempty"`
|
||
|
// The number of nodes allocated to this cluster. More nodes enable higher
|
||
|
// throughput and more consistent performance.
|
||
|
ServeNodes int32 `protobuf:"varint,4,opt,name=serve_nodes,json=serveNodes" json:"serve_nodes,omitempty"`
|
||
|
// (`CreationOnly`)
|
||
|
// The type of storage used by this cluster to serve its
|
||
|
// parent instance's tables, unless explicitly overridden.
|
||
|
DefaultStorageType StorageType `protobuf:"varint,5,opt,name=default_storage_type,json=defaultStorageType,enum=google.bigtable.admin.v2.StorageType" json:"default_storage_type,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (m *Cluster) Reset() { *m = Cluster{} }
|
||
|
func (m *Cluster) String() string { return proto.CompactTextString(m) }
|
||
|
func (*Cluster) ProtoMessage() {}
|
||
|
func (*Cluster) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{1} }
|
||
|
|
||
|
func (m *Cluster) GetName() string {
|
||
|
if m != nil {
|
||
|
return m.Name
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *Cluster) GetLocation() string {
|
||
|
if m != nil {
|
||
|
return m.Location
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *Cluster) GetState() Cluster_State {
|
||
|
if m != nil {
|
||
|
return m.State
|
||
|
}
|
||
|
return Cluster_STATE_NOT_KNOWN
|
||
|
}
|
||
|
|
||
|
func (m *Cluster) GetServeNodes() int32 {
|
||
|
if m != nil {
|
||
|
return m.ServeNodes
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *Cluster) GetDefaultStorageType() StorageType {
|
||
|
if m != nil {
|
||
|
return m.DefaultStorageType
|
||
|
}
|
||
|
return StorageType_STORAGE_TYPE_UNSPECIFIED
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
proto.RegisterType((*Instance)(nil), "google.bigtable.admin.v2.Instance")
|
||
|
proto.RegisterType((*Cluster)(nil), "google.bigtable.admin.v2.Cluster")
|
||
|
proto.RegisterEnum("google.bigtable.admin.v2.Instance_State", Instance_State_name, Instance_State_value)
|
||
|
proto.RegisterEnum("google.bigtable.admin.v2.Instance_Type", Instance_Type_name, Instance_Type_value)
|
||
|
proto.RegisterEnum("google.bigtable.admin.v2.Cluster_State", Cluster_State_name, Cluster_State_value)
|
||
|
}
|
||
|
|
||
|
func init() { proto.RegisterFile("google/bigtable/admin/v2/instance.proto", fileDescriptor3) }
|
||
|
|
||
|
var fileDescriptor3 = []byte{
|
||
|
// 498 bytes of a gzipped FileDescriptorProto
|
||
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x52, 0xdd, 0x6a, 0xdb, 0x30,
|
||
|
0x14, 0xae, 0xdd, 0x64, 0x4b, 0x4f, 0xba, 0xd6, 0x68, 0xbd, 0x08, 0xa1, 0x6c, 0x5d, 0xa0, 0x34,
|
||
|
0x57, 0x36, 0x64, 0xec, 0xaa, 0x64, 0x90, 0xd8, 0x5a, 0x31, 0xeb, 0x6c, 0xcf, 0x76, 0x5b, 0xda,
|
||
|
0x1b, 0xa3, 0xc4, 0x9a, 0x31, 0xd8, 0x92, 0xb1, 0x95, 0x40, 0x9e, 0x62, 0xef, 0xb1, 0xeb, 0xbd,
|
||
|
0xc2, 0xde, 0x6b, 0x58, 0x76, 0xc6, 0xca, 0x96, 0x31, 0x7a, 0xa7, 0x73, 0xce, 0xf7, 0x23, 0x7d,
|
||
|
0x3a, 0x70, 0x91, 0x70, 0x9e, 0x64, 0xd4, 0x58, 0xa4, 0x89, 0x20, 0x8b, 0x8c, 0x1a, 0x24, 0xce,
|
||
|
0x53, 0x66, 0xac, 0x27, 0x46, 0xca, 0x2a, 0x41, 0xd8, 0x92, 0xea, 0x45, 0xc9, 0x05, 0x47, 0x83,
|
||
|
0x06, 0xa8, 0x6f, 0x81, 0xba, 0x04, 0xea, 0xeb, 0xc9, 0xf0, 0xb4, 0x95, 0x20, 0x45, 0x6a, 0x10,
|
||
|
0xc6, 0xb8, 0x20, 0x22, 0xe5, 0xac, 0x6a, 0x78, 0xc3, 0xf3, 0x9d, 0x06, 0x4b, 0x9e, 0xe7, 0x9c,
|
||
|
0x35, 0xb0, 0x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