diff --git a/go/vt/proto/vtadmin/vtadmin.pb.go b/go/vt/proto/vtadmin/vtadmin.pb.go index 19279c8fc36..2a0a94788d8 100644 --- a/go/vt/proto/vtadmin/vtadmin.pb.go +++ b/go/vt/proto/vtadmin/vtadmin.pb.go @@ -88,7 +88,7 @@ func (x Tablet_ServingState) Number() protoreflect.EnumNumber { // Deprecated: Use Tablet_ServingState.Descriptor instead. func (Tablet_ServingState) EnumDescriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{7, 0} + return file_vtadmin_proto_rawDescGZIP(), []int{9, 0} } // Cluster represents information about a Vitess cluster. @@ -202,6 +202,127 @@ func (x *ClusterBackup) GetBackup() *mysqlctl.BackupInfo { return nil } +type ClusterCellsAliases struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Cluster *Cluster `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"` + Aliases map[string]*topodata.CellsAlias `protobuf:"bytes,2,rep,name=aliases,proto3" json:"aliases,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *ClusterCellsAliases) Reset() { + *x = ClusterCellsAliases{} + if protoimpl.UnsafeEnabled { + mi := &file_vtadmin_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ClusterCellsAliases) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ClusterCellsAliases) ProtoMessage() {} + +func (x *ClusterCellsAliases) ProtoReflect() protoreflect.Message { + mi := &file_vtadmin_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ClusterCellsAliases.ProtoReflect.Descriptor instead. +func (*ClusterCellsAliases) Descriptor() ([]byte, []int) { + return file_vtadmin_proto_rawDescGZIP(), []int{2} +} + +func (x *ClusterCellsAliases) GetCluster() *Cluster { + if x != nil { + return x.Cluster + } + return nil +} + +func (x *ClusterCellsAliases) GetAliases() map[string]*topodata.CellsAlias { + if x != nil { + return x.Aliases + } + return nil +} + +type ClusterCellInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Cluster *Cluster `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // CellInfo contains the data for the cell. + // + // It may be nil if the GetCellsInfosRequest specified NamesOnly. + CellInfo *topodata.CellInfo `protobuf:"bytes,3,opt,name=cell_info,json=cellInfo,proto3" json:"cell_info,omitempty"` +} + +func (x *ClusterCellInfo) Reset() { + *x = ClusterCellInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_vtadmin_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ClusterCellInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ClusterCellInfo) ProtoMessage() {} + +func (x *ClusterCellInfo) ProtoReflect() protoreflect.Message { + mi := &file_vtadmin_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ClusterCellInfo.ProtoReflect.Descriptor instead. +func (*ClusterCellInfo) Descriptor() ([]byte, []int) { + return file_vtadmin_proto_rawDescGZIP(), []int{3} +} + +func (x *ClusterCellInfo) GetCluster() *Cluster { + if x != nil { + return x.Cluster + } + return nil +} + +func (x *ClusterCellInfo) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ClusterCellInfo) GetCellInfo() *topodata.CellInfo { + if x != nil { + return x.CellInfo + } + return nil +} + type ClusterShardReplicationPosition struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -216,7 +337,7 @@ type ClusterShardReplicationPosition struct { func (x *ClusterShardReplicationPosition) Reset() { *x = ClusterShardReplicationPosition{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[2] + mi := &file_vtadmin_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -229,7 +350,7 @@ func (x *ClusterShardReplicationPosition) String() string { func (*ClusterShardReplicationPosition) ProtoMessage() {} func (x *ClusterShardReplicationPosition) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[2] + mi := &file_vtadmin_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -242,7 +363,7 @@ func (x *ClusterShardReplicationPosition) ProtoReflect() protoreflect.Message { // Deprecated: Use ClusterShardReplicationPosition.ProtoReflect.Descriptor instead. func (*ClusterShardReplicationPosition) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{2} + return file_vtadmin_proto_rawDescGZIP(), []int{4} } func (x *ClusterShardReplicationPosition) GetCluster() *Cluster { @@ -287,7 +408,7 @@ type ClusterWorkflows struct { func (x *ClusterWorkflows) Reset() { *x = ClusterWorkflows{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[3] + mi := &file_vtadmin_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -300,7 +421,7 @@ func (x *ClusterWorkflows) String() string { func (*ClusterWorkflows) ProtoMessage() {} func (x *ClusterWorkflows) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[3] + mi := &file_vtadmin_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -313,7 +434,7 @@ func (x *ClusterWorkflows) ProtoReflect() protoreflect.Message { // Deprecated: Use ClusterWorkflows.ProtoReflect.Descriptor instead. func (*ClusterWorkflows) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{3} + return file_vtadmin_proto_rawDescGZIP(), []int{5} } func (x *ClusterWorkflows) GetWorkflows() []*Workflow { @@ -345,7 +466,7 @@ type Keyspace struct { func (x *Keyspace) Reset() { *x = Keyspace{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[4] + mi := &file_vtadmin_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -358,7 +479,7 @@ func (x *Keyspace) String() string { func (*Keyspace) ProtoMessage() {} func (x *Keyspace) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[4] + mi := &file_vtadmin_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -371,7 +492,7 @@ func (x *Keyspace) ProtoReflect() protoreflect.Message { // Deprecated: Use Keyspace.ProtoReflect.Descriptor instead. func (*Keyspace) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{4} + return file_vtadmin_proto_rawDescGZIP(), []int{6} } func (x *Keyspace) GetCluster() *Cluster { @@ -410,7 +531,7 @@ type Schema struct { func (x *Schema) Reset() { *x = Schema{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[5] + mi := &file_vtadmin_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -423,7 +544,7 @@ func (x *Schema) String() string { func (*Schema) ProtoMessage() {} func (x *Schema) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[5] + mi := &file_vtadmin_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -436,7 +557,7 @@ func (x *Schema) ProtoReflect() protoreflect.Message { // Deprecated: Use Schema.ProtoReflect.Descriptor instead. func (*Schema) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{5} + return file_vtadmin_proto_rawDescGZIP(), []int{7} } func (x *Schema) GetCluster() *Cluster { @@ -480,7 +601,7 @@ type SrvVSchema struct { func (x *SrvVSchema) Reset() { *x = SrvVSchema{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[6] + mi := &file_vtadmin_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -493,7 +614,7 @@ func (x *SrvVSchema) String() string { func (*SrvVSchema) ProtoMessage() {} func (x *SrvVSchema) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[6] + mi := &file_vtadmin_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -506,7 +627,7 @@ func (x *SrvVSchema) ProtoReflect() protoreflect.Message { // Deprecated: Use SrvVSchema.ProtoReflect.Descriptor instead. func (*SrvVSchema) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{6} + return file_vtadmin_proto_rawDescGZIP(), []int{8} } func (x *SrvVSchema) GetCell() string { @@ -546,7 +667,7 @@ type Tablet struct { func (x *Tablet) Reset() { *x = Tablet{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[7] + mi := &file_vtadmin_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -559,7 +680,7 @@ func (x *Tablet) String() string { func (*Tablet) ProtoMessage() {} func (x *Tablet) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[7] + mi := &file_vtadmin_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -572,7 +693,7 @@ func (x *Tablet) ProtoReflect() protoreflect.Message { // Deprecated: Use Tablet.ProtoReflect.Descriptor instead. func (*Tablet) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{7} + return file_vtadmin_proto_rawDescGZIP(), []int{9} } func (x *Tablet) GetCluster() *Cluster { @@ -618,7 +739,7 @@ type VSchema struct { func (x *VSchema) Reset() { *x = VSchema{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[8] + mi := &file_vtadmin_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -631,7 +752,7 @@ func (x *VSchema) String() string { func (*VSchema) ProtoMessage() {} func (x *VSchema) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[8] + mi := &file_vtadmin_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -644,7 +765,7 @@ func (x *VSchema) ProtoReflect() protoreflect.Message { // Deprecated: Use VSchema.ProtoReflect.Descriptor instead. func (*VSchema) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{8} + return file_vtadmin_proto_rawDescGZIP(), []int{10} } func (x *VSchema) GetCluster() *Cluster { @@ -682,7 +803,7 @@ type Vtctld struct { func (x *Vtctld) Reset() { *x = Vtctld{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[9] + mi := &file_vtadmin_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -695,7 +816,7 @@ func (x *Vtctld) String() string { func (*Vtctld) ProtoMessage() {} func (x *Vtctld) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[9] + mi := &file_vtadmin_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -708,7 +829,7 @@ func (x *Vtctld) ProtoReflect() protoreflect.Message { // Deprecated: Use Vtctld.ProtoReflect.Descriptor instead. func (*Vtctld) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{9} + return file_vtadmin_proto_rawDescGZIP(), []int{11} } func (x *Vtctld) GetHostname() string { @@ -756,7 +877,7 @@ type VTGate struct { func (x *VTGate) Reset() { *x = VTGate{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[10] + mi := &file_vtadmin_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -769,7 +890,7 @@ func (x *VTGate) String() string { func (*VTGate) ProtoMessage() {} func (x *VTGate) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[10] + mi := &file_vtadmin_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -782,7 +903,7 @@ func (x *VTGate) ProtoReflect() protoreflect.Message { // Deprecated: Use VTGate.ProtoReflect.Descriptor instead. func (*VTGate) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{10} + return file_vtadmin_proto_rawDescGZIP(), []int{12} } func (x *VTGate) GetHostname() string { @@ -840,7 +961,7 @@ type Workflow struct { func (x *Workflow) Reset() { *x = Workflow{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[11] + mi := &file_vtadmin_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -853,7 +974,7 @@ func (x *Workflow) String() string { func (*Workflow) ProtoMessage() {} func (x *Workflow) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[11] + mi := &file_vtadmin_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -866,7 +987,7 @@ func (x *Workflow) ProtoReflect() protoreflect.Message { // Deprecated: Use Workflow.ProtoReflect.Descriptor instead. func (*Workflow) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{11} + return file_vtadmin_proto_rawDescGZIP(), []int{13} } func (x *Workflow) GetCluster() *Cluster { @@ -902,7 +1023,7 @@ type CreateKeyspaceRequest struct { func (x *CreateKeyspaceRequest) Reset() { *x = CreateKeyspaceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[12] + mi := &file_vtadmin_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -915,7 +1036,7 @@ func (x *CreateKeyspaceRequest) String() string { func (*CreateKeyspaceRequest) ProtoMessage() {} func (x *CreateKeyspaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[12] + mi := &file_vtadmin_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -928,7 +1049,7 @@ func (x *CreateKeyspaceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateKeyspaceRequest.ProtoReflect.Descriptor instead. func (*CreateKeyspaceRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{12} + return file_vtadmin_proto_rawDescGZIP(), []int{14} } func (x *CreateKeyspaceRequest) GetClusterId() string { @@ -956,7 +1077,7 @@ type CreateKeyspaceResponse struct { func (x *CreateKeyspaceResponse) Reset() { *x = CreateKeyspaceResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[13] + mi := &file_vtadmin_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -969,7 +1090,7 @@ func (x *CreateKeyspaceResponse) String() string { func (*CreateKeyspaceResponse) ProtoMessage() {} func (x *CreateKeyspaceResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[13] + mi := &file_vtadmin_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -982,7 +1103,7 @@ func (x *CreateKeyspaceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateKeyspaceResponse.ProtoReflect.Descriptor instead. func (*CreateKeyspaceResponse) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{13} + return file_vtadmin_proto_rawDescGZIP(), []int{15} } func (x *CreateKeyspaceResponse) GetKeyspace() *Keyspace { @@ -1004,7 +1125,7 @@ type CreateShardRequest struct { func (x *CreateShardRequest) Reset() { *x = CreateShardRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[14] + mi := &file_vtadmin_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1017,7 +1138,7 @@ func (x *CreateShardRequest) String() string { func (*CreateShardRequest) ProtoMessage() {} func (x *CreateShardRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[14] + mi := &file_vtadmin_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1030,7 +1151,7 @@ func (x *CreateShardRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateShardRequest.ProtoReflect.Descriptor instead. func (*CreateShardRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{14} + return file_vtadmin_proto_rawDescGZIP(), []int{16} } func (x *CreateShardRequest) GetClusterId() string { @@ -1059,7 +1180,7 @@ type DeleteKeyspaceRequest struct { func (x *DeleteKeyspaceRequest) Reset() { *x = DeleteKeyspaceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[15] + mi := &file_vtadmin_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1072,7 +1193,7 @@ func (x *DeleteKeyspaceRequest) String() string { func (*DeleteKeyspaceRequest) ProtoMessage() {} func (x *DeleteKeyspaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[15] + mi := &file_vtadmin_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1085,7 +1206,7 @@ func (x *DeleteKeyspaceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteKeyspaceRequest.ProtoReflect.Descriptor instead. func (*DeleteKeyspaceRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{15} + return file_vtadmin_proto_rawDescGZIP(), []int{17} } func (x *DeleteKeyspaceRequest) GetClusterId() string { @@ -1114,7 +1235,7 @@ type DeleteShardsRequest struct { func (x *DeleteShardsRequest) Reset() { *x = DeleteShardsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[16] + mi := &file_vtadmin_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1127,7 +1248,7 @@ func (x *DeleteShardsRequest) String() string { func (*DeleteShardsRequest) ProtoMessage() {} func (x *DeleteShardsRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[16] + mi := &file_vtadmin_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1140,7 +1261,7 @@ func (x *DeleteShardsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteShardsRequest.ProtoReflect.Descriptor instead. func (*DeleteShardsRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{16} + return file_vtadmin_proto_rawDescGZIP(), []int{18} } func (x *DeleteShardsRequest) GetClusterId() string { @@ -1169,7 +1290,7 @@ type DeleteTabletRequest struct { func (x *DeleteTabletRequest) Reset() { *x = DeleteTabletRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[17] + mi := &file_vtadmin_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1182,7 +1303,7 @@ func (x *DeleteTabletRequest) String() string { func (*DeleteTabletRequest) ProtoMessage() {} func (x *DeleteTabletRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[17] + mi := &file_vtadmin_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1195,7 +1316,7 @@ func (x *DeleteTabletRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteTabletRequest.ProtoReflect.Descriptor instead. func (*DeleteTabletRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{17} + return file_vtadmin_proto_rawDescGZIP(), []int{19} } func (x *DeleteTabletRequest) GetAlias() string { @@ -1223,7 +1344,7 @@ type DeleteTabletResponse struct { func (x *DeleteTabletResponse) Reset() { *x = DeleteTabletResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[18] + mi := &file_vtadmin_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1236,7 +1357,7 @@ func (x *DeleteTabletResponse) String() string { func (*DeleteTabletResponse) ProtoMessage() {} func (x *DeleteTabletResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[18] + mi := &file_vtadmin_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1249,7 +1370,7 @@ func (x *DeleteTabletResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteTabletResponse.ProtoReflect.Descriptor instead. func (*DeleteTabletResponse) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{18} + return file_vtadmin_proto_rawDescGZIP(), []int{20} } func (x *DeleteTabletResponse) GetStatus() string { @@ -1272,7 +1393,7 @@ type FindSchemaRequest struct { func (x *FindSchemaRequest) Reset() { *x = FindSchemaRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[19] + mi := &file_vtadmin_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1285,7 +1406,7 @@ func (x *FindSchemaRequest) String() string { func (*FindSchemaRequest) ProtoMessage() {} func (x *FindSchemaRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[19] + mi := &file_vtadmin_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1298,7 +1419,7 @@ func (x *FindSchemaRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use FindSchemaRequest.ProtoReflect.Descriptor instead. func (*FindSchemaRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{19} + return file_vtadmin_proto_rawDescGZIP(), []int{21} } func (x *FindSchemaRequest) GetTable() string { @@ -1347,7 +1468,7 @@ type GetBackupsRequest struct { func (x *GetBackupsRequest) Reset() { *x = GetBackupsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[20] + mi := &file_vtadmin_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1360,7 +1481,7 @@ func (x *GetBackupsRequest) String() string { func (*GetBackupsRequest) ProtoMessage() {} func (x *GetBackupsRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[20] + mi := &file_vtadmin_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1373,7 +1494,7 @@ func (x *GetBackupsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetBackupsRequest.ProtoReflect.Descriptor instead. func (*GetBackupsRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{20} + return file_vtadmin_proto_rawDescGZIP(), []int{22} } func (x *GetBackupsRequest) GetClusterIds() []string { @@ -1415,7 +1536,7 @@ type GetBackupsResponse struct { func (x *GetBackupsResponse) Reset() { *x = GetBackupsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[21] + mi := &file_vtadmin_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1428,7 +1549,7 @@ func (x *GetBackupsResponse) String() string { func (*GetBackupsResponse) ProtoMessage() {} func (x *GetBackupsResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[21] + mi := &file_vtadmin_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1441,7 +1562,7 @@ func (x *GetBackupsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetBackupsResponse.ProtoReflect.Descriptor instead. func (*GetBackupsResponse) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{21} + return file_vtadmin_proto_rawDescGZIP(), []int{23} } func (x *GetBackupsResponse) GetBackups() []*ClusterBackup { @@ -1451,29 +1572,41 @@ func (x *GetBackupsResponse) GetBackups() []*ClusterBackup { return nil } -type GetClustersRequest struct { +type GetCellInfosRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + ClusterIds []string `protobuf:"bytes,1,rep,name=cluster_ids,json=clusterIds,proto3" json:"cluster_ids,omitempty"` + // Cells, if specified, limits the response to include only CellInfo objects + // with those names. If omitted, all CellInfo objects in each cluster are + // returned. + // + // Mutually-exclusive with NamesOnly. If both are set, this field takes + // precedence. + Cells []string `protobuf:"bytes,2,rep,name=cells,proto3" json:"cells,omitempty"` + // Return only the cell names in each cluster; the actual CellInfo objects + // will be empty. + NamesOnly bool `protobuf:"varint,3,opt,name=names_only,json=namesOnly,proto3" json:"names_only,omitempty"` } -func (x *GetClustersRequest) Reset() { - *x = GetClustersRequest{} +func (x *GetCellInfosRequest) Reset() { + *x = GetCellInfosRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[22] + mi := &file_vtadmin_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *GetClustersRequest) String() string { +func (x *GetCellInfosRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetClustersRequest) ProtoMessage() {} +func (*GetCellInfosRequest) ProtoMessage() {} -func (x *GetClustersRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[22] +func (x *GetCellInfosRequest) ProtoReflect() protoreflect.Message { + mi := &file_vtadmin_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1484,36 +1617,236 @@ func (x *GetClustersRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetClustersRequest.ProtoReflect.Descriptor instead. -func (*GetClustersRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{22} +// Deprecated: Use GetCellInfosRequest.ProtoReflect.Descriptor instead. +func (*GetCellInfosRequest) Descriptor() ([]byte, []int) { + return file_vtadmin_proto_rawDescGZIP(), []int{24} } -type GetClustersResponse struct { +func (x *GetCellInfosRequest) GetClusterIds() []string { + if x != nil { + return x.ClusterIds + } + return nil +} + +func (x *GetCellInfosRequest) GetCells() []string { + if x != nil { + return x.Cells + } + return nil +} + +func (x *GetCellInfosRequest) GetNamesOnly() bool { + if x != nil { + return x.NamesOnly + } + return false +} + +type GetCellInfosResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Clusters []*Cluster `protobuf:"bytes,1,rep,name=clusters,proto3" json:"clusters,omitempty"` + CellInfos []*ClusterCellInfo `protobuf:"bytes,1,rep,name=cell_infos,json=cellInfos,proto3" json:"cell_infos,omitempty"` } -func (x *GetClustersResponse) Reset() { - *x = GetClustersResponse{} +func (x *GetCellInfosResponse) Reset() { + *x = GetCellInfosResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[23] + mi := &file_vtadmin_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *GetClustersResponse) String() string { +func (x *GetCellInfosResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetClustersResponse) ProtoMessage() {} +func (*GetCellInfosResponse) ProtoMessage() {} -func (x *GetClustersResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[23] +func (x *GetCellInfosResponse) ProtoReflect() protoreflect.Message { + mi := &file_vtadmin_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetCellInfosResponse.ProtoReflect.Descriptor instead. +func (*GetCellInfosResponse) Descriptor() ([]byte, []int) { + return file_vtadmin_proto_rawDescGZIP(), []int{25} +} + +func (x *GetCellInfosResponse) GetCellInfos() []*ClusterCellInfo { + if x != nil { + return x.CellInfos + } + return nil +} + +type GetCellsAliasesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ClusterIds []string `protobuf:"bytes,1,rep,name=cluster_ids,json=clusterIds,proto3" json:"cluster_ids,omitempty"` +} + +func (x *GetCellsAliasesRequest) Reset() { + *x = GetCellsAliasesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_vtadmin_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetCellsAliasesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetCellsAliasesRequest) ProtoMessage() {} + +func (x *GetCellsAliasesRequest) ProtoReflect() protoreflect.Message { + mi := &file_vtadmin_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetCellsAliasesRequest.ProtoReflect.Descriptor instead. +func (*GetCellsAliasesRequest) Descriptor() ([]byte, []int) { + return file_vtadmin_proto_rawDescGZIP(), []int{26} +} + +func (x *GetCellsAliasesRequest) GetClusterIds() []string { + if x != nil { + return x.ClusterIds + } + return nil +} + +type GetCellsAliasesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Aliases []*ClusterCellsAliases `protobuf:"bytes,1,rep,name=aliases,proto3" json:"aliases,omitempty"` +} + +func (x *GetCellsAliasesResponse) Reset() { + *x = GetCellsAliasesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_vtadmin_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetCellsAliasesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetCellsAliasesResponse) ProtoMessage() {} + +func (x *GetCellsAliasesResponse) ProtoReflect() protoreflect.Message { + mi := &file_vtadmin_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetCellsAliasesResponse.ProtoReflect.Descriptor instead. +func (*GetCellsAliasesResponse) Descriptor() ([]byte, []int) { + return file_vtadmin_proto_rawDescGZIP(), []int{27} +} + +func (x *GetCellsAliasesResponse) GetAliases() []*ClusterCellsAliases { + if x != nil { + return x.Aliases + } + return nil +} + +type GetClustersRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *GetClustersRequest) Reset() { + *x = GetClustersRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_vtadmin_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetClustersRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetClustersRequest) ProtoMessage() {} + +func (x *GetClustersRequest) ProtoReflect() protoreflect.Message { + mi := &file_vtadmin_proto_msgTypes[28] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetClustersRequest.ProtoReflect.Descriptor instead. +func (*GetClustersRequest) Descriptor() ([]byte, []int) { + return file_vtadmin_proto_rawDescGZIP(), []int{28} +} + +type GetClustersResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Clusters []*Cluster `protobuf:"bytes,1,rep,name=clusters,proto3" json:"clusters,omitempty"` +} + +func (x *GetClustersResponse) Reset() { + *x = GetClustersResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_vtadmin_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetClustersResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetClustersResponse) ProtoMessage() {} + +func (x *GetClustersResponse) ProtoReflect() protoreflect.Message { + mi := &file_vtadmin_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1526,7 +1859,7 @@ func (x *GetClustersResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetClustersResponse.ProtoReflect.Descriptor instead. func (*GetClustersResponse) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{23} + return file_vtadmin_proto_rawDescGZIP(), []int{29} } func (x *GetClustersResponse) GetClusters() []*Cluster { @@ -1547,7 +1880,7 @@ type GetGatesRequest struct { func (x *GetGatesRequest) Reset() { *x = GetGatesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[24] + mi := &file_vtadmin_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1560,7 +1893,7 @@ func (x *GetGatesRequest) String() string { func (*GetGatesRequest) ProtoMessage() {} func (x *GetGatesRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[24] + mi := &file_vtadmin_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1573,7 +1906,7 @@ func (x *GetGatesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetGatesRequest.ProtoReflect.Descriptor instead. func (*GetGatesRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{24} + return file_vtadmin_proto_rawDescGZIP(), []int{30} } func (x *GetGatesRequest) GetClusterIds() []string { @@ -1594,7 +1927,7 @@ type GetGatesResponse struct { func (x *GetGatesResponse) Reset() { *x = GetGatesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[25] + mi := &file_vtadmin_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1607,7 +1940,7 @@ func (x *GetGatesResponse) String() string { func (*GetGatesResponse) ProtoMessage() {} func (x *GetGatesResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[25] + mi := &file_vtadmin_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1620,7 +1953,7 @@ func (x *GetGatesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetGatesResponse.ProtoReflect.Descriptor instead. func (*GetGatesResponse) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{25} + return file_vtadmin_proto_rawDescGZIP(), []int{31} } func (x *GetGatesResponse) GetGates() []*VTGate { @@ -1642,7 +1975,7 @@ type GetKeyspaceRequest struct { func (x *GetKeyspaceRequest) Reset() { *x = GetKeyspaceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[26] + mi := &file_vtadmin_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1655,7 +1988,7 @@ func (x *GetKeyspaceRequest) String() string { func (*GetKeyspaceRequest) ProtoMessage() {} func (x *GetKeyspaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[26] + mi := &file_vtadmin_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1668,7 +2001,7 @@ func (x *GetKeyspaceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetKeyspaceRequest.ProtoReflect.Descriptor instead. func (*GetKeyspaceRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{26} + return file_vtadmin_proto_rawDescGZIP(), []int{32} } func (x *GetKeyspaceRequest) GetClusterId() string { @@ -1696,7 +2029,7 @@ type GetKeyspacesRequest struct { func (x *GetKeyspacesRequest) Reset() { *x = GetKeyspacesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[27] + mi := &file_vtadmin_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1709,7 +2042,7 @@ func (x *GetKeyspacesRequest) String() string { func (*GetKeyspacesRequest) ProtoMessage() {} func (x *GetKeyspacesRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[27] + mi := &file_vtadmin_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1722,7 +2055,7 @@ func (x *GetKeyspacesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetKeyspacesRequest.ProtoReflect.Descriptor instead. func (*GetKeyspacesRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{27} + return file_vtadmin_proto_rawDescGZIP(), []int{33} } func (x *GetKeyspacesRequest) GetClusterIds() []string { @@ -1743,7 +2076,7 @@ type GetKeyspacesResponse struct { func (x *GetKeyspacesResponse) Reset() { *x = GetKeyspacesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[28] + mi := &file_vtadmin_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1756,7 +2089,7 @@ func (x *GetKeyspacesResponse) String() string { func (*GetKeyspacesResponse) ProtoMessage() {} func (x *GetKeyspacesResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[28] + mi := &file_vtadmin_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1769,7 +2102,7 @@ func (x *GetKeyspacesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetKeyspacesResponse.ProtoReflect.Descriptor instead. func (*GetKeyspacesResponse) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{28} + return file_vtadmin_proto_rawDescGZIP(), []int{34} } func (x *GetKeyspacesResponse) GetKeyspaces() []*Keyspace { @@ -1793,7 +2126,7 @@ type GetSchemaRequest struct { func (x *GetSchemaRequest) Reset() { *x = GetSchemaRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[29] + mi := &file_vtadmin_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1806,7 +2139,7 @@ func (x *GetSchemaRequest) String() string { func (*GetSchemaRequest) ProtoMessage() {} func (x *GetSchemaRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[29] + mi := &file_vtadmin_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1819,7 +2152,7 @@ func (x *GetSchemaRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSchemaRequest.ProtoReflect.Descriptor instead. func (*GetSchemaRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{29} + return file_vtadmin_proto_rawDescGZIP(), []int{35} } func (x *GetSchemaRequest) GetClusterId() string { @@ -1862,7 +2195,7 @@ type GetSchemasRequest struct { func (x *GetSchemasRequest) Reset() { *x = GetSchemasRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[30] + mi := &file_vtadmin_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1875,7 +2208,7 @@ func (x *GetSchemasRequest) String() string { func (*GetSchemasRequest) ProtoMessage() {} func (x *GetSchemasRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[30] + mi := &file_vtadmin_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1888,7 +2221,7 @@ func (x *GetSchemasRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSchemasRequest.ProtoReflect.Descriptor instead. func (*GetSchemasRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{30} + return file_vtadmin_proto_rawDescGZIP(), []int{36} } func (x *GetSchemasRequest) GetClusterIds() []string { @@ -1916,7 +2249,7 @@ type GetSchemasResponse struct { func (x *GetSchemasResponse) Reset() { *x = GetSchemasResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[31] + mi := &file_vtadmin_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1929,7 +2262,7 @@ func (x *GetSchemasResponse) String() string { func (*GetSchemasResponse) ProtoMessage() {} func (x *GetSchemasResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[31] + mi := &file_vtadmin_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1942,7 +2275,7 @@ func (x *GetSchemasResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSchemasResponse.ProtoReflect.Descriptor instead. func (*GetSchemasResponse) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{31} + return file_vtadmin_proto_rawDescGZIP(), []int{37} } func (x *GetSchemasResponse) GetSchemas() []*Schema { @@ -1972,7 +2305,7 @@ type GetShardReplicationPositionsRequest struct { func (x *GetShardReplicationPositionsRequest) Reset() { *x = GetShardReplicationPositionsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[32] + mi := &file_vtadmin_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1985,7 +2318,7 @@ func (x *GetShardReplicationPositionsRequest) String() string { func (*GetShardReplicationPositionsRequest) ProtoMessage() {} func (x *GetShardReplicationPositionsRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[32] + mi := &file_vtadmin_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1998,7 +2331,7 @@ func (x *GetShardReplicationPositionsRequest) ProtoReflect() protoreflect.Messag // Deprecated: Use GetShardReplicationPositionsRequest.ProtoReflect.Descriptor instead. func (*GetShardReplicationPositionsRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{32} + return file_vtadmin_proto_rawDescGZIP(), []int{38} } func (x *GetShardReplicationPositionsRequest) GetClusterIds() []string { @@ -2033,7 +2366,7 @@ type GetShardReplicationPositionsResponse struct { func (x *GetShardReplicationPositionsResponse) Reset() { *x = GetShardReplicationPositionsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[33] + mi := &file_vtadmin_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2046,7 +2379,7 @@ func (x *GetShardReplicationPositionsResponse) String() string { func (*GetShardReplicationPositionsResponse) ProtoMessage() {} func (x *GetShardReplicationPositionsResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[33] + mi := &file_vtadmin_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2059,7 +2392,7 @@ func (x *GetShardReplicationPositionsResponse) ProtoReflect() protoreflect.Messa // Deprecated: Use GetShardReplicationPositionsResponse.ProtoReflect.Descriptor instead. func (*GetShardReplicationPositionsResponse) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{33} + return file_vtadmin_proto_rawDescGZIP(), []int{39} } func (x *GetShardReplicationPositionsResponse) GetReplicationPositions() []*ClusterShardReplicationPosition { @@ -2081,7 +2414,7 @@ type GetSrvVSchemaRequest struct { func (x *GetSrvVSchemaRequest) Reset() { *x = GetSrvVSchemaRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[34] + mi := &file_vtadmin_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2094,7 +2427,7 @@ func (x *GetSrvVSchemaRequest) String() string { func (*GetSrvVSchemaRequest) ProtoMessage() {} func (x *GetSrvVSchemaRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[34] + mi := &file_vtadmin_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2107,7 +2440,7 @@ func (x *GetSrvVSchemaRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSrvVSchemaRequest.ProtoReflect.Descriptor instead. func (*GetSrvVSchemaRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{34} + return file_vtadmin_proto_rawDescGZIP(), []int{40} } func (x *GetSrvVSchemaRequest) GetClusterId() string { @@ -2136,7 +2469,7 @@ type GetSrvVSchemasRequest struct { func (x *GetSrvVSchemasRequest) Reset() { *x = GetSrvVSchemasRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[35] + mi := &file_vtadmin_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2149,7 +2482,7 @@ func (x *GetSrvVSchemasRequest) String() string { func (*GetSrvVSchemasRequest) ProtoMessage() {} func (x *GetSrvVSchemasRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[35] + mi := &file_vtadmin_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2162,7 +2495,7 @@ func (x *GetSrvVSchemasRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSrvVSchemasRequest.ProtoReflect.Descriptor instead. func (*GetSrvVSchemasRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{35} + return file_vtadmin_proto_rawDescGZIP(), []int{41} } func (x *GetSrvVSchemasRequest) GetClusterIds() []string { @@ -2190,7 +2523,7 @@ type GetSrvVSchemasResponse struct { func (x *GetSrvVSchemasResponse) Reset() { *x = GetSrvVSchemasResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[36] + mi := &file_vtadmin_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2203,7 +2536,7 @@ func (x *GetSrvVSchemasResponse) String() string { func (*GetSrvVSchemasResponse) ProtoMessage() {} func (x *GetSrvVSchemasResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[36] + mi := &file_vtadmin_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2216,7 +2549,7 @@ func (x *GetSrvVSchemasResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSrvVSchemasResponse.ProtoReflect.Descriptor instead. func (*GetSrvVSchemasResponse) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{36} + return file_vtadmin_proto_rawDescGZIP(), []int{42} } func (x *GetSrvVSchemasResponse) GetSrvVSchemas() []*SrvVSchema { @@ -2238,7 +2571,7 @@ type GetSchemaTableSizeOptions struct { func (x *GetSchemaTableSizeOptions) Reset() { *x = GetSchemaTableSizeOptions{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[37] + mi := &file_vtadmin_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2251,7 +2584,7 @@ func (x *GetSchemaTableSizeOptions) String() string { func (*GetSchemaTableSizeOptions) ProtoMessage() {} func (x *GetSchemaTableSizeOptions) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[37] + mi := &file_vtadmin_proto_msgTypes[43] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2264,7 +2597,7 @@ func (x *GetSchemaTableSizeOptions) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSchemaTableSizeOptions.ProtoReflect.Descriptor instead. func (*GetSchemaTableSizeOptions) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{37} + return file_vtadmin_proto_rawDescGZIP(), []int{43} } func (x *GetSchemaTableSizeOptions) GetAggregateSizes() bool { @@ -2297,7 +2630,7 @@ type GetTabletRequest struct { func (x *GetTabletRequest) Reset() { *x = GetTabletRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[38] + mi := &file_vtadmin_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2310,7 +2643,7 @@ func (x *GetTabletRequest) String() string { func (*GetTabletRequest) ProtoMessage() {} func (x *GetTabletRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[38] + mi := &file_vtadmin_proto_msgTypes[44] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2323,7 +2656,7 @@ func (x *GetTabletRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTabletRequest.ProtoReflect.Descriptor instead. func (*GetTabletRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{38} + return file_vtadmin_proto_rawDescGZIP(), []int{44} } func (x *GetTabletRequest) GetAlias() string { @@ -2351,7 +2684,7 @@ type GetTabletsRequest struct { func (x *GetTabletsRequest) Reset() { *x = GetTabletsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[39] + mi := &file_vtadmin_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2364,7 +2697,7 @@ func (x *GetTabletsRequest) String() string { func (*GetTabletsRequest) ProtoMessage() {} func (x *GetTabletsRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[39] + mi := &file_vtadmin_proto_msgTypes[45] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2377,7 +2710,7 @@ func (x *GetTabletsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTabletsRequest.ProtoReflect.Descriptor instead. func (*GetTabletsRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{39} + return file_vtadmin_proto_rawDescGZIP(), []int{45} } func (x *GetTabletsRequest) GetClusterIds() []string { @@ -2398,7 +2731,7 @@ type GetTabletsResponse struct { func (x *GetTabletsResponse) Reset() { *x = GetTabletsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[40] + mi := &file_vtadmin_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2411,7 +2744,7 @@ func (x *GetTabletsResponse) String() string { func (*GetTabletsResponse) ProtoMessage() {} func (x *GetTabletsResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[40] + mi := &file_vtadmin_proto_msgTypes[46] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2424,7 +2757,7 @@ func (x *GetTabletsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTabletsResponse.ProtoReflect.Descriptor instead. func (*GetTabletsResponse) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{40} + return file_vtadmin_proto_rawDescGZIP(), []int{46} } func (x *GetTabletsResponse) GetTablets() []*Tablet { @@ -2446,7 +2779,7 @@ type GetVSchemaRequest struct { func (x *GetVSchemaRequest) Reset() { *x = GetVSchemaRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[41] + mi := &file_vtadmin_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2459,7 +2792,7 @@ func (x *GetVSchemaRequest) String() string { func (*GetVSchemaRequest) ProtoMessage() {} func (x *GetVSchemaRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[41] + mi := &file_vtadmin_proto_msgTypes[47] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2472,7 +2805,7 @@ func (x *GetVSchemaRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetVSchemaRequest.ProtoReflect.Descriptor instead. func (*GetVSchemaRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{41} + return file_vtadmin_proto_rawDescGZIP(), []int{47} } func (x *GetVSchemaRequest) GetClusterId() string { @@ -2500,7 +2833,7 @@ type GetVSchemasRequest struct { func (x *GetVSchemasRequest) Reset() { *x = GetVSchemasRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[42] + mi := &file_vtadmin_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2513,7 +2846,7 @@ func (x *GetVSchemasRequest) String() string { func (*GetVSchemasRequest) ProtoMessage() {} func (x *GetVSchemasRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[42] + mi := &file_vtadmin_proto_msgTypes[48] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2526,7 +2859,7 @@ func (x *GetVSchemasRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetVSchemasRequest.ProtoReflect.Descriptor instead. func (*GetVSchemasRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{42} + return file_vtadmin_proto_rawDescGZIP(), []int{48} } func (x *GetVSchemasRequest) GetClusterIds() []string { @@ -2547,7 +2880,7 @@ type GetVSchemasResponse struct { func (x *GetVSchemasResponse) Reset() { *x = GetVSchemasResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[43] + mi := &file_vtadmin_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2560,7 +2893,7 @@ func (x *GetVSchemasResponse) String() string { func (*GetVSchemasResponse) ProtoMessage() {} func (x *GetVSchemasResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[43] + mi := &file_vtadmin_proto_msgTypes[49] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2573,7 +2906,7 @@ func (x *GetVSchemasResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetVSchemasResponse.ProtoReflect.Descriptor instead. func (*GetVSchemasResponse) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{43} + return file_vtadmin_proto_rawDescGZIP(), []int{49} } func (x *GetVSchemasResponse) GetVSchemas() []*VSchema { @@ -2594,7 +2927,7 @@ type GetVtctldsRequest struct { func (x *GetVtctldsRequest) Reset() { *x = GetVtctldsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[44] + mi := &file_vtadmin_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2607,7 +2940,7 @@ func (x *GetVtctldsRequest) String() string { func (*GetVtctldsRequest) ProtoMessage() {} func (x *GetVtctldsRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[44] + mi := &file_vtadmin_proto_msgTypes[50] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2620,7 +2953,7 @@ func (x *GetVtctldsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetVtctldsRequest.ProtoReflect.Descriptor instead. func (*GetVtctldsRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{44} + return file_vtadmin_proto_rawDescGZIP(), []int{50} } func (x *GetVtctldsRequest) GetClusterIds() []string { @@ -2641,7 +2974,7 @@ type GetVtctldsResponse struct { func (x *GetVtctldsResponse) Reset() { *x = GetVtctldsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[45] + mi := &file_vtadmin_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2654,7 +2987,7 @@ func (x *GetVtctldsResponse) String() string { func (*GetVtctldsResponse) ProtoMessage() {} func (x *GetVtctldsResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[45] + mi := &file_vtadmin_proto_msgTypes[51] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2667,7 +3000,7 @@ func (x *GetVtctldsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetVtctldsResponse.ProtoReflect.Descriptor instead. func (*GetVtctldsResponse) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{45} + return file_vtadmin_proto_rawDescGZIP(), []int{51} } func (x *GetVtctldsResponse) GetVtctlds() []*Vtctld { @@ -2691,7 +3024,7 @@ type GetWorkflowRequest struct { func (x *GetWorkflowRequest) Reset() { *x = GetWorkflowRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[46] + mi := &file_vtadmin_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2704,7 +3037,7 @@ func (x *GetWorkflowRequest) String() string { func (*GetWorkflowRequest) ProtoMessage() {} func (x *GetWorkflowRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[46] + mi := &file_vtadmin_proto_msgTypes[52] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2717,7 +3050,7 @@ func (x *GetWorkflowRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetWorkflowRequest.ProtoReflect.Descriptor instead. func (*GetWorkflowRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{46} + return file_vtadmin_proto_rawDescGZIP(), []int{52} } func (x *GetWorkflowRequest) GetClusterId() string { @@ -2777,7 +3110,7 @@ type GetWorkflowsRequest struct { func (x *GetWorkflowsRequest) Reset() { *x = GetWorkflowsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[47] + mi := &file_vtadmin_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2790,7 +3123,7 @@ func (x *GetWorkflowsRequest) String() string { func (*GetWorkflowsRequest) ProtoMessage() {} func (x *GetWorkflowsRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[47] + mi := &file_vtadmin_proto_msgTypes[53] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2803,7 +3136,7 @@ func (x *GetWorkflowsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetWorkflowsRequest.ProtoReflect.Descriptor instead. func (*GetWorkflowsRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{47} + return file_vtadmin_proto_rawDescGZIP(), []int{53} } func (x *GetWorkflowsRequest) GetClusterIds() []string { @@ -2845,7 +3178,7 @@ type GetWorkflowsResponse struct { func (x *GetWorkflowsResponse) Reset() { *x = GetWorkflowsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[48] + mi := &file_vtadmin_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2858,7 +3191,7 @@ func (x *GetWorkflowsResponse) String() string { func (*GetWorkflowsResponse) ProtoMessage() {} func (x *GetWorkflowsResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[48] + mi := &file_vtadmin_proto_msgTypes[54] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2871,7 +3204,7 @@ func (x *GetWorkflowsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetWorkflowsResponse.ProtoReflect.Descriptor instead. func (*GetWorkflowsResponse) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{48} + return file_vtadmin_proto_rawDescGZIP(), []int{54} } func (x *GetWorkflowsResponse) GetWorkflowsByCluster() map[string]*ClusterWorkflows { @@ -2897,7 +3230,7 @@ type PingTabletRequest struct { func (x *PingTabletRequest) Reset() { *x = PingTabletRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[49] + mi := &file_vtadmin_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2910,7 +3243,7 @@ func (x *PingTabletRequest) String() string { func (*PingTabletRequest) ProtoMessage() {} func (x *PingTabletRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[49] + mi := &file_vtadmin_proto_msgTypes[55] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2923,7 +3256,7 @@ func (x *PingTabletRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use PingTabletRequest.ProtoReflect.Descriptor instead. func (*PingTabletRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{49} + return file_vtadmin_proto_rawDescGZIP(), []int{55} } func (x *PingTabletRequest) GetAlias() string { @@ -2951,7 +3284,7 @@ type PingTabletResponse struct { func (x *PingTabletResponse) Reset() { *x = PingTabletResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[50] + mi := &file_vtadmin_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2964,7 +3297,7 @@ func (x *PingTabletResponse) String() string { func (*PingTabletResponse) ProtoMessage() {} func (x *PingTabletResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[50] + mi := &file_vtadmin_proto_msgTypes[56] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2977,7 +3310,7 @@ func (x *PingTabletResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use PingTabletResponse.ProtoReflect.Descriptor instead. func (*PingTabletResponse) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{50} + return file_vtadmin_proto_rawDescGZIP(), []int{56} } func (x *PingTabletResponse) GetStatus() string { @@ -2999,7 +3332,7 @@ type RefreshStateRequest struct { func (x *RefreshStateRequest) Reset() { *x = RefreshStateRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[51] + mi := &file_vtadmin_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3012,7 +3345,7 @@ func (x *RefreshStateRequest) String() string { func (*RefreshStateRequest) ProtoMessage() {} func (x *RefreshStateRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[51] + mi := &file_vtadmin_proto_msgTypes[57] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3025,7 +3358,7 @@ func (x *RefreshStateRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RefreshStateRequest.ProtoReflect.Descriptor instead. func (*RefreshStateRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{51} + return file_vtadmin_proto_rawDescGZIP(), []int{57} } func (x *RefreshStateRequest) GetAlias() string { @@ -3053,7 +3386,7 @@ type RefreshStateResponse struct { func (x *RefreshStateResponse) Reset() { *x = RefreshStateResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[52] + mi := &file_vtadmin_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3066,7 +3399,7 @@ func (x *RefreshStateResponse) String() string { func (*RefreshStateResponse) ProtoMessage() {} func (x *RefreshStateResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[52] + mi := &file_vtadmin_proto_msgTypes[58] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3079,7 +3412,7 @@ func (x *RefreshStateResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RefreshStateResponse.ProtoReflect.Descriptor instead. func (*RefreshStateResponse) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{52} + return file_vtadmin_proto_rawDescGZIP(), []int{58} } func (x *RefreshStateResponse) GetStatus() string { @@ -3101,7 +3434,7 @@ type ReparentTabletRequest struct { func (x *ReparentTabletRequest) Reset() { *x = ReparentTabletRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[53] + mi := &file_vtadmin_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3114,7 +3447,7 @@ func (x *ReparentTabletRequest) String() string { func (*ReparentTabletRequest) ProtoMessage() {} func (x *ReparentTabletRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[53] + mi := &file_vtadmin_proto_msgTypes[59] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3127,7 +3460,7 @@ func (x *ReparentTabletRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ReparentTabletRequest.ProtoReflect.Descriptor instead. func (*ReparentTabletRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{53} + return file_vtadmin_proto_rawDescGZIP(), []int{59} } func (x *ReparentTabletRequest) GetAlias() string { @@ -3157,7 +3490,7 @@ type ReparentTabletResponse struct { func (x *ReparentTabletResponse) Reset() { *x = ReparentTabletResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[54] + mi := &file_vtadmin_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3170,7 +3503,7 @@ func (x *ReparentTabletResponse) String() string { func (*ReparentTabletResponse) ProtoMessage() {} func (x *ReparentTabletResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[54] + mi := &file_vtadmin_proto_msgTypes[60] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3183,7 +3516,7 @@ func (x *ReparentTabletResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ReparentTabletResponse.ProtoReflect.Descriptor instead. func (*ReparentTabletResponse) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{54} + return file_vtadmin_proto_rawDescGZIP(), []int{60} } func (x *ReparentTabletResponse) GetKeyspace() string { @@ -3219,7 +3552,7 @@ type RunHealthCheckRequest struct { func (x *RunHealthCheckRequest) Reset() { *x = RunHealthCheckRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[55] + mi := &file_vtadmin_proto_msgTypes[61] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3232,7 +3565,7 @@ func (x *RunHealthCheckRequest) String() string { func (*RunHealthCheckRequest) ProtoMessage() {} func (x *RunHealthCheckRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[55] + mi := &file_vtadmin_proto_msgTypes[61] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3245,7 +3578,7 @@ func (x *RunHealthCheckRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RunHealthCheckRequest.ProtoReflect.Descriptor instead. func (*RunHealthCheckRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{55} + return file_vtadmin_proto_rawDescGZIP(), []int{61} } func (x *RunHealthCheckRequest) GetAlias() string { @@ -3273,7 +3606,7 @@ type RunHealthCheckResponse struct { func (x *RunHealthCheckResponse) Reset() { *x = RunHealthCheckResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[56] + mi := &file_vtadmin_proto_msgTypes[62] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3286,7 +3619,7 @@ func (x *RunHealthCheckResponse) String() string { func (*RunHealthCheckResponse) ProtoMessage() {} func (x *RunHealthCheckResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[56] + mi := &file_vtadmin_proto_msgTypes[62] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3299,7 +3632,7 @@ func (x *RunHealthCheckResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RunHealthCheckResponse.ProtoReflect.Descriptor instead. func (*RunHealthCheckResponse) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{56} + return file_vtadmin_proto_rawDescGZIP(), []int{62} } func (x *RunHealthCheckResponse) GetStatus() string { @@ -3321,7 +3654,7 @@ type SetReadOnlyRequest struct { func (x *SetReadOnlyRequest) Reset() { *x = SetReadOnlyRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[57] + mi := &file_vtadmin_proto_msgTypes[63] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3334,7 +3667,7 @@ func (x *SetReadOnlyRequest) String() string { func (*SetReadOnlyRequest) ProtoMessage() {} func (x *SetReadOnlyRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[57] + mi := &file_vtadmin_proto_msgTypes[63] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3347,7 +3680,7 @@ func (x *SetReadOnlyRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SetReadOnlyRequest.ProtoReflect.Descriptor instead. func (*SetReadOnlyRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{57} + return file_vtadmin_proto_rawDescGZIP(), []int{63} } func (x *SetReadOnlyRequest) GetAlias() string { @@ -3373,7 +3706,7 @@ type SetReadOnlyResponse struct { func (x *SetReadOnlyResponse) Reset() { *x = SetReadOnlyResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[58] + mi := &file_vtadmin_proto_msgTypes[64] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3386,7 +3719,7 @@ func (x *SetReadOnlyResponse) String() string { func (*SetReadOnlyResponse) ProtoMessage() {} func (x *SetReadOnlyResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[58] + mi := &file_vtadmin_proto_msgTypes[64] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3399,7 +3732,7 @@ func (x *SetReadOnlyResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SetReadOnlyResponse.ProtoReflect.Descriptor instead. func (*SetReadOnlyResponse) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{58} + return file_vtadmin_proto_rawDescGZIP(), []int{64} } type SetReadWriteRequest struct { @@ -3414,7 +3747,7 @@ type SetReadWriteRequest struct { func (x *SetReadWriteRequest) Reset() { *x = SetReadWriteRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[59] + mi := &file_vtadmin_proto_msgTypes[65] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3427,7 +3760,7 @@ func (x *SetReadWriteRequest) String() string { func (*SetReadWriteRequest) ProtoMessage() {} func (x *SetReadWriteRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[59] + mi := &file_vtadmin_proto_msgTypes[65] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3440,7 +3773,7 @@ func (x *SetReadWriteRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SetReadWriteRequest.ProtoReflect.Descriptor instead. func (*SetReadWriteRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{59} + return file_vtadmin_proto_rawDescGZIP(), []int{65} } func (x *SetReadWriteRequest) GetAlias() string { @@ -3466,7 +3799,7 @@ type SetReadWriteResponse struct { func (x *SetReadWriteResponse) Reset() { *x = SetReadWriteResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[60] + mi := &file_vtadmin_proto_msgTypes[66] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3479,7 +3812,7 @@ func (x *SetReadWriteResponse) String() string { func (*SetReadWriteResponse) ProtoMessage() {} func (x *SetReadWriteResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[60] + mi := &file_vtadmin_proto_msgTypes[66] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3492,7 +3825,7 @@ func (x *SetReadWriteResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SetReadWriteResponse.ProtoReflect.Descriptor instead. func (*SetReadWriteResponse) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{60} + return file_vtadmin_proto_rawDescGZIP(), []int{66} } type StartReplicationRequest struct { @@ -3507,7 +3840,7 @@ type StartReplicationRequest struct { func (x *StartReplicationRequest) Reset() { *x = StartReplicationRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[61] + mi := &file_vtadmin_proto_msgTypes[67] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3520,7 +3853,7 @@ func (x *StartReplicationRequest) String() string { func (*StartReplicationRequest) ProtoMessage() {} func (x *StartReplicationRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[61] + mi := &file_vtadmin_proto_msgTypes[67] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3533,7 +3866,7 @@ func (x *StartReplicationRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use StartReplicationRequest.ProtoReflect.Descriptor instead. func (*StartReplicationRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{61} + return file_vtadmin_proto_rawDescGZIP(), []int{67} } func (x *StartReplicationRequest) GetAlias() string { @@ -3561,7 +3894,7 @@ type StartReplicationResponse struct { func (x *StartReplicationResponse) Reset() { *x = StartReplicationResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[62] + mi := &file_vtadmin_proto_msgTypes[68] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3574,7 +3907,7 @@ func (x *StartReplicationResponse) String() string { func (*StartReplicationResponse) ProtoMessage() {} func (x *StartReplicationResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[62] + mi := &file_vtadmin_proto_msgTypes[68] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3587,7 +3920,7 @@ func (x *StartReplicationResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use StartReplicationResponse.ProtoReflect.Descriptor instead. func (*StartReplicationResponse) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{62} + return file_vtadmin_proto_rawDescGZIP(), []int{68} } func (x *StartReplicationResponse) GetStatus() string { @@ -3609,7 +3942,7 @@ type StopReplicationRequest struct { func (x *StopReplicationRequest) Reset() { *x = StopReplicationRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[63] + mi := &file_vtadmin_proto_msgTypes[69] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3622,7 +3955,7 @@ func (x *StopReplicationRequest) String() string { func (*StopReplicationRequest) ProtoMessage() {} func (x *StopReplicationRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[63] + mi := &file_vtadmin_proto_msgTypes[69] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3635,7 +3968,7 @@ func (x *StopReplicationRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use StopReplicationRequest.ProtoReflect.Descriptor instead. func (*StopReplicationRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{63} + return file_vtadmin_proto_rawDescGZIP(), []int{69} } func (x *StopReplicationRequest) GetAlias() string { @@ -3663,7 +3996,7 @@ type StopReplicationResponse struct { func (x *StopReplicationResponse) Reset() { *x = StopReplicationResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[64] + mi := &file_vtadmin_proto_msgTypes[70] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3676,7 +4009,7 @@ func (x *StopReplicationResponse) String() string { func (*StopReplicationResponse) ProtoMessage() {} func (x *StopReplicationResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[64] + mi := &file_vtadmin_proto_msgTypes[70] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3689,7 +4022,7 @@ func (x *StopReplicationResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use StopReplicationResponse.ProtoReflect.Descriptor instead. func (*StopReplicationResponse) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{64} + return file_vtadmin_proto_rawDescGZIP(), []int{70} } func (x *StopReplicationResponse) GetStatus() string { @@ -3712,7 +4045,7 @@ type ValidateKeyspaceRequest struct { func (x *ValidateKeyspaceRequest) Reset() { *x = ValidateKeyspaceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[65] + mi := &file_vtadmin_proto_msgTypes[71] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3725,7 +4058,7 @@ func (x *ValidateKeyspaceRequest) String() string { func (*ValidateKeyspaceRequest) ProtoMessage() {} func (x *ValidateKeyspaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[65] + mi := &file_vtadmin_proto_msgTypes[71] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3738,7 +4071,7 @@ func (x *ValidateKeyspaceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ValidateKeyspaceRequest.ProtoReflect.Descriptor instead. func (*ValidateKeyspaceRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{65} + return file_vtadmin_proto_rawDescGZIP(), []int{71} } func (x *ValidateKeyspaceRequest) GetClusterId() string { @@ -3774,7 +4107,7 @@ type ValidateSchemaKeyspaceRequest struct { func (x *ValidateSchemaKeyspaceRequest) Reset() { *x = ValidateSchemaKeyspaceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[66] + mi := &file_vtadmin_proto_msgTypes[72] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3787,7 +4120,7 @@ func (x *ValidateSchemaKeyspaceRequest) String() string { func (*ValidateSchemaKeyspaceRequest) ProtoMessage() {} func (x *ValidateSchemaKeyspaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[66] + mi := &file_vtadmin_proto_msgTypes[72] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3800,7 +4133,7 @@ func (x *ValidateSchemaKeyspaceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ValidateSchemaKeyspaceRequest.ProtoReflect.Descriptor instead. func (*ValidateSchemaKeyspaceRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{66} + return file_vtadmin_proto_rawDescGZIP(), []int{72} } func (x *ValidateSchemaKeyspaceRequest) GetClusterId() string { @@ -3829,7 +4162,7 @@ type ValidateVersionKeyspaceRequest struct { func (x *ValidateVersionKeyspaceRequest) Reset() { *x = ValidateVersionKeyspaceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[67] + mi := &file_vtadmin_proto_msgTypes[73] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3842,7 +4175,7 @@ func (x *ValidateVersionKeyspaceRequest) String() string { func (*ValidateVersionKeyspaceRequest) ProtoMessage() {} func (x *ValidateVersionKeyspaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[67] + mi := &file_vtadmin_proto_msgTypes[73] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3855,7 +4188,7 @@ func (x *ValidateVersionKeyspaceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ValidateVersionKeyspaceRequest.ProtoReflect.Descriptor instead. func (*ValidateVersionKeyspaceRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{67} + return file_vtadmin_proto_rawDescGZIP(), []int{73} } func (x *ValidateVersionKeyspaceRequest) GetClusterId() string { @@ -3885,7 +4218,7 @@ type VTExplainRequest struct { func (x *VTExplainRequest) Reset() { *x = VTExplainRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[68] + mi := &file_vtadmin_proto_msgTypes[74] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3898,7 +4231,7 @@ func (x *VTExplainRequest) String() string { func (*VTExplainRequest) ProtoMessage() {} func (x *VTExplainRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[68] + mi := &file_vtadmin_proto_msgTypes[74] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3911,7 +4244,7 @@ func (x *VTExplainRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use VTExplainRequest.ProtoReflect.Descriptor instead. func (*VTExplainRequest) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{68} + return file_vtadmin_proto_rawDescGZIP(), []int{74} } func (x *VTExplainRequest) GetCluster() string { @@ -3946,7 +4279,7 @@ type VTExplainResponse struct { func (x *VTExplainResponse) Reset() { *x = VTExplainResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[69] + mi := &file_vtadmin_proto_msgTypes[75] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3959,7 +4292,7 @@ func (x *VTExplainResponse) String() string { func (*VTExplainResponse) ProtoMessage() {} func (x *VTExplainResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[69] + mi := &file_vtadmin_proto_msgTypes[75] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3972,7 +4305,7 @@ func (x *VTExplainResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use VTExplainResponse.ProtoReflect.Descriptor instead. func (*VTExplainResponse) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{69} + return file_vtadmin_proto_rawDescGZIP(), []int{75} } func (x *VTExplainResponse) GetResponse() string { @@ -3994,7 +4327,7 @@ type Schema_ShardTableSize struct { func (x *Schema_ShardTableSize) Reset() { *x = Schema_ShardTableSize{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[72] + mi := &file_vtadmin_proto_msgTypes[79] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4007,7 +4340,7 @@ func (x *Schema_ShardTableSize) String() string { func (*Schema_ShardTableSize) ProtoMessage() {} func (x *Schema_ShardTableSize) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[72] + mi := &file_vtadmin_proto_msgTypes[79] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4020,7 +4353,7 @@ func (x *Schema_ShardTableSize) ProtoReflect() protoreflect.Message { // Deprecated: Use Schema_ShardTableSize.ProtoReflect.Descriptor instead. func (*Schema_ShardTableSize) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{5, 1} + return file_vtadmin_proto_rawDescGZIP(), []int{7, 1} } func (x *Schema_ShardTableSize) GetRowCount() uint64 { @@ -4052,7 +4385,7 @@ type Schema_TableSize struct { func (x *Schema_TableSize) Reset() { *x = Schema_TableSize{} if protoimpl.UnsafeEnabled { - mi := &file_vtadmin_proto_msgTypes[73] + mi := &file_vtadmin_proto_msgTypes[80] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4065,7 +4398,7 @@ func (x *Schema_TableSize) String() string { func (*Schema_TableSize) ProtoMessage() {} func (x *Schema_TableSize) ProtoReflect() protoreflect.Message { - mi := &file_vtadmin_proto_msgTypes[73] + mi := &file_vtadmin_proto_msgTypes[80] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4078,7 +4411,7 @@ func (x *Schema_TableSize) ProtoReflect() protoreflect.Message { // Deprecated: Use Schema_TableSize.ProtoReflect.Descriptor instead. func (*Schema_TableSize) Descriptor() ([]byte, []int) { - return file_vtadmin_proto_rawDescGZIP(), []int{5, 2} + return file_vtadmin_proto_rawDescGZIP(), []int{7, 2} } func (x *Schema_TableSize) GetRowCount() uint64 { @@ -4121,7 +4454,29 @@ var file_vtadmin_proto_rawDesc = []byte{ 0x73, 0x74, 0x65, 0x72, 0x52, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x2c, 0x0a, 0x06, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x63, 0x74, 0x6c, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x49, - 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x22, 0xd2, 0x01, 0x0a, 0x1f, + 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x22, 0xd8, 0x01, 0x0a, 0x13, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, + 0x73, 0x65, 0x73, 0x12, 0x2a, 0x0a, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, + 0x43, 0x0a, 0x07, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x29, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x2e, 0x41, + 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x61, 0x6c, 0x69, + 0x61, 0x73, 0x65, 0x73, 0x1a, 0x50, 0x0a, 0x0c, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x82, 0x01, 0x0a, 0x0f, 0x43, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2a, 0x0a, 0x07, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x74, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x07, 0x63, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x65, + 0x6c, 0x6c, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, + 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, + 0x6f, 0x52, 0x08, 0x63, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0xd2, 0x01, 0x0a, 0x1f, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, @@ -4319,432 +4674,463 @@ var file_vtadmin_proto_rawDesc = []byte{ 0x07, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x07, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x22, - 0x14, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x43, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x08, - 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, - 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x52, 0x08, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x22, 0x32, 0x0a, 0x0f, 0x47, 0x65, - 0x74, 0x47, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, + 0x6b, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x12, 0x1d, 0x0a, + 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x4f, 0x0a, 0x14, + 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0a, 0x63, 0x65, 0x6c, 0x6c, 0x5f, 0x69, 0x6e, 0x66, + 0x6f, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, + 0x66, 0x6f, 0x52, 0x09, 0x63, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x22, 0x39, 0x0a, + 0x16, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x73, 0x22, 0x51, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x43, + 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, + 0x65, 0x73, 0x52, 0x07, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x22, 0x14, 0x0a, 0x12, 0x47, + 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x22, 0x43, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x08, 0x63, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x74, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x08, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x22, 0x32, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x47, 0x61, 0x74, + 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x73, 0x22, 0x39, 0x0a, 0x10, 0x47, 0x65, + 0x74, 0x47, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, + 0x0a, 0x05, 0x67, 0x61, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, + 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x54, 0x47, 0x61, 0x74, 0x65, 0x52, 0x05, + 0x67, 0x61, 0x74, 0x65, 0x73, 0x22, 0x4f, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, + 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, + 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x36, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x73, 0x22, 0x39, - 0x0a, 0x10, 0x47, 0x65, 0x74, 0x47, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x25, 0x0a, 0x05, 0x67, 0x61, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x0f, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x54, 0x47, 0x61, - 0x74, 0x65, 0x52, 0x05, 0x67, 0x61, 0x74, 0x65, 0x73, 0x22, 0x4f, 0x0a, 0x12, 0x47, 0x65, 0x74, - 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, - 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x36, 0x0a, 0x13, 0x47, 0x65, - 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x73, 0x22, 0x47, + 0x0a, 0x14, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x76, 0x74, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x09, 0x6b, 0x65, + 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x22, 0xb5, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x53, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6b, + 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, + 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x50, 0x0a, + 0x12, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x76, 0x74, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x54, 0x61, 0x62, + 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x10, 0x74, + 0x61, 0x62, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, + 0x86, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x49, 0x64, 0x73, 0x12, 0x50, 0x0a, 0x12, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, + 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, + 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x10, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x69, 0x7a, + 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x3f, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x53, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, + 0x0a, 0x07, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x0f, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x52, 0x07, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x22, 0x8d, 0x01, 0x0a, 0x23, 0x47, 0x65, + 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, - 0x64, 0x73, 0x22, 0x47, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x09, 0x6b, 0x65, - 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, - 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x52, 0x09, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x22, 0xb5, 0x01, 0x0a, 0x10, - 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, - 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, - 0x65, 0x12, 0x50, 0x0a, 0x12, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x5f, - 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, - 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x52, 0x10, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x4f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x22, 0x86, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, - 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x73, 0x12, 0x50, 0x0a, 0x12, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x53, - 0x69, 0x7a, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x10, 0x74, 0x61, 0x62, 0x6c, - 0x65, 0x53, 0x69, 0x7a, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x3f, 0x0a, 0x12, - 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x29, 0x0a, 0x07, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x52, 0x07, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x22, 0x8d, 0x01, - 0x0a, 0x23, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, + 0x64, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, + 0x12, 0x27, 0x0a, 0x0f, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x73, 0x68, 0x61, + 0x72, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x6b, 0x65, 0x79, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x73, 0x22, 0x85, 0x01, 0x0a, 0x24, 0x47, 0x65, + 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x15, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x28, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x14, 0x72, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x22, 0x49, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x65, 0x6c, 0x6c, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x65, 0x6c, 0x6c, 0x22, 0x4e, 0x0a, 0x15, + 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x49, 0x64, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x6b, 0x65, 0x79, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x5f, 0x73, 0x68, 0x61, 0x72, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x6b, - 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x73, 0x22, 0x85, 0x01, - 0x0a, 0x24, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x15, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x14, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x73, 0x69, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x49, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, - 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, - 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, - 0x63, 0x65, 0x6c, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x65, 0x6c, 0x6c, - 0x22, 0x4e, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, - 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x65, - 0x6c, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, - 0x22, 0x51, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0d, 0x73, 0x72, - 0x76, 0x5f, 0x76, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x13, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x72, 0x76, 0x56, - 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x0b, 0x73, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x73, 0x22, 0x81, 0x01, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x73, - 0x69, 0x7a, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x61, 0x67, 0x67, 0x72, - 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x73, 0x12, 0x3b, 0x0a, 0x1a, 0x69, 0x6e, - 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x6e, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x6e, - 0x67, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x64, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, - 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x4e, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x6e, - 0x67, 0x53, 0x68, 0x61, 0x72, 0x64, 0x73, 0x22, 0x49, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x54, 0x61, - 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, - 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, - 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, - 0x64, 0x73, 0x22, 0x34, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, + 0x74, 0x65, 0x72, 0x49, 0x64, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x22, 0x51, 0x0a, 0x16, + 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0d, 0x73, 0x72, 0x76, 0x5f, 0x76, 0x5f, + 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, + 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x52, 0x0b, 0x73, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x22, + 0x81, 0x01, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x54, 0x61, 0x62, + 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x27, 0x0a, + 0x0f, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, + 0x65, 0x53, 0x69, 0x7a, 0x65, 0x73, 0x12, 0x3b, 0x0a, 0x1a, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, + 0x65, 0x5f, 0x6e, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x68, + 0x61, 0x72, 0x64, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x69, 0x6e, 0x63, 0x6c, + 0x75, 0x64, 0x65, 0x4e, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x53, 0x68, 0x61, + 0x72, 0x64, 0x73, 0x22, 0x49, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x1f, 0x0a, + 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x73, 0x22, 0x34, + 0x0a, 0x11, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x49, 0x64, 0x73, 0x22, 0x3f, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x07, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x76, 0x74, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x07, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x74, 0x73, 0x22, 0x4e, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x56, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x35, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x56, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x73, 0x22, 0x44, 0x0a, 0x13, + 0x47, 0x65, 0x74, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x09, 0x76, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x08, 0x76, 0x53, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x73, 0x22, 0x34, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x56, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x73, 0x22, 0x3f, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x54, - 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, - 0x0a, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x0f, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, - 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x22, 0x4e, 0x0a, 0x11, 0x47, 0x65, 0x74, - 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, - 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, - 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x35, 0x0a, 0x12, 0x47, 0x65, 0x74, - 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x73, - 0x22, 0x44, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x09, 0x76, 0x5f, 0x73, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x74, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x08, 0x76, 0x53, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x22, 0x34, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x56, 0x74, 0x63, - 0x74, 0x6c, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, - 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x73, 0x22, 0x3f, 0x0a, 0x12, - 0x47, 0x65, 0x74, 0x56, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x29, 0x0a, 0x07, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x74, - 0x63, 0x74, 0x6c, 0x64, 0x52, 0x07, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x73, 0x22, 0x84, 0x01, - 0x0a, 0x12, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, - 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x6f, 0x6e, - 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, - 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0xa0, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, - 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, - 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x73, 0x12, 0x1f, 0x0a, - 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x1c, - 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x09, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x12, 0x29, 0x0a, 0x10, - 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, - 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x4b, 0x65, - 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x22, 0xe1, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x57, - 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x67, 0x0a, 0x14, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x5f, 0x62, 0x79, - 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, - 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, - 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x57, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, - 0x42, 0x79, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x1a, 0x60, 0x0a, 0x17, 0x57, 0x6f, 0x72, - 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x4a, 0x0a, 0x11, 0x50, - 0x69, 0x6e, 0x67, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x73, 0x22, 0x2c, 0x0a, 0x12, 0x50, 0x69, 0x6e, 0x67, 0x54, - 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, - 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x4c, 0x0a, 0x13, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, - 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, - 0x61, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, - 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x49, 0x64, 0x73, 0x22, 0x2e, 0x0a, 0x14, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x22, 0x4e, 0x0a, 0x15, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x54, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x73, 0x22, 0x3f, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x56, + 0x74, 0x63, 0x74, 0x6c, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, + 0x0a, 0x07, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x0f, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x74, 0x63, 0x74, 0x6c, 0x64, + 0x52, 0x07, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x73, 0x22, 0x84, 0x01, 0x0a, 0x12, 0x47, 0x65, + 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, + 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x1f, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4f, 0x6e, 0x6c, 0x79, + 0x22, 0xa0, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x63, 0x74, + 0x69, 0x76, 0x65, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, + 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x6b, 0x65, + 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x6b, + 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x12, 0x29, 0x0a, 0x10, 0x69, 0x67, 0x6e, 0x6f, + 0x72, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x0f, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x73, 0x22, 0xe1, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x67, 0x0a, 0x14, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x5f, 0x62, 0x79, 0x5f, 0x63, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x76, 0x74, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x52, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x42, 0x79, 0x43, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x1a, 0x60, 0x0a, 0x17, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, + 0x65, 0x79, 0x12, 0x2f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x4a, 0x0a, 0x11, 0x50, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x49, 0x64, 0x73, 0x22, 0x64, 0x0a, 0x16, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x54, - 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, - 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, - 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x12, - 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x22, 0x4e, 0x0a, 0x15, 0x52, 0x75, 0x6e, - 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x49, 0x64, 0x73, 0x22, 0x2c, 0x0a, 0x12, 0x50, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x22, 0x4c, 0x0a, 0x13, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x1f, + 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x73, 0x22, + 0x2e, 0x0a, 0x14, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, + 0x4e, 0x0a, 0x15, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x1f, + 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x73, 0x22, + 0x64, 0x0a, 0x16, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x70, + 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, + 0x69, 0x6d, 0x61, 0x72, 0x79, 0x22, 0x4e, 0x0a, 0x15, 0x52, 0x75, 0x6e, 0x48, 0x65, 0x61, 0x6c, + 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, + 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, + 0x6c, 0x69, 0x61, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, + 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x49, 0x64, 0x73, 0x22, 0x30, 0x0a, 0x16, 0x52, 0x75, 0x6e, 0x48, 0x65, 0x61, 0x6c, + 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x4b, 0x0a, 0x12, 0x53, 0x65, 0x74, 0x52, 0x65, + 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, + 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, + 0x69, 0x61, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x49, 0x64, 0x73, 0x22, 0x15, 0x0a, 0x13, 0x53, 0x65, 0x74, 0x52, 0x65, 0x61, 0x64, 0x4f, + 0x6e, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4c, 0x0a, 0x13, 0x53, + 0x65, 0x74, 0x52, 0x65, 0x61, 0x64, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x73, 0x22, 0x30, 0x0a, 0x16, 0x52, 0x75, 0x6e, - 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x4b, 0x0a, 0x12, 0x53, - 0x65, 0x74, 0x52, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x73, 0x22, 0x16, 0x0a, 0x14, 0x53, 0x65, 0x74, + 0x52, 0x65, 0x61, 0x64, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x50, 0x0a, 0x17, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, + 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, + 0x61, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x49, 0x64, 0x73, 0x22, 0x32, 0x0a, 0x18, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x4f, 0x0a, 0x16, 0x53, 0x74, 0x6f, 0x70, 0x52, + 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x73, 0x22, 0x15, 0x0a, 0x13, 0x53, 0x65, 0x74, 0x52, - 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x4c, 0x0a, 0x13, 0x53, 0x65, 0x74, 0x52, 0x65, 0x61, 0x64, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x1f, 0x0a, 0x0b, - 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x73, 0x22, 0x16, 0x0a, - 0x14, 0x53, 0x65, 0x74, 0x52, 0x65, 0x61, 0x64, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x50, 0x0a, 0x17, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x73, 0x22, 0x32, 0x0a, 0x18, 0x53, 0x74, 0x61, 0x72, 0x74, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x73, 0x22, 0x31, 0x0a, 0x17, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x4f, 0x0a, 0x16, 0x53, - 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, - 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x73, 0x22, 0x31, 0x0a, 0x17, - 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, - 0x77, 0x0a, 0x17, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x70, 0x69, 0x6e, - 0x67, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x22, 0x5a, 0x0a, 0x1d, 0x56, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x22, 0x5b, 0x0a, 0x1e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, - 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x77, 0x0a, 0x17, 0x56, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x22, 0x5a, 0x0a, 0x10, 0x56, 0x54, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, - 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, - 0x71, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x71, 0x6c, 0x22, 0x2f, 0x0a, - 0x11, 0x56, 0x54, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xe2, - 0x15, 0x0a, 0x07, 0x56, 0x54, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x53, 0x0a, 0x0e, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1e, 0x2e, 0x76, - 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x76, - 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x4c, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x12, 0x1b, - 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, - 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x76, 0x74, - 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, - 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x55, 0x0a, - 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, - 0x1e, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x68, - 0x61, 0x72, 0x64, 0x73, 0x12, 0x1c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, - 0x61, 0x62, 0x6c, 0x65, 0x74, 0x12, 0x1c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x3b, 0x0a, 0x0a, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x12, 0x1a, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x46, 0x69, 0x6e, - 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, - 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, - 0x00, 0x12, 0x47, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x12, - 0x1a, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x61, 0x63, - 0x6b, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x76, 0x74, + 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, + 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x70, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x62, + 0x6c, 0x65, 0x74, 0x73, 0x22, 0x5a, 0x0a, 0x1d, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, + 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x22, 0x5b, 0x0a, 0x1e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, + 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x5a, 0x0a, + 0x10, 0x56, 0x54, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6b, + 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, + 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x71, 0x6c, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x71, 0x6c, 0x22, 0x2f, 0x0a, 0x11, 0x56, 0x54, 0x45, + 0x78, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, + 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x89, 0x17, 0x0a, 0x07, 0x56, + 0x54, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x53, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1e, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x0b, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x12, 0x1b, 0x2e, 0x76, 0x74, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x55, 0x0a, 0x0e, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1e, 0x2e, 0x76, 0x74, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x74, + 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4b, 0x65, + 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x4f, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x73, + 0x12, 0x1c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, + 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x4d, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x74, 0x12, 0x1c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x1d, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x3b, 0x0a, 0x0a, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1a, + 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x76, 0x74, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x00, 0x12, 0x47, 0x0a, + 0x0a, 0x47, 0x65, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x12, 0x1a, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4a, 0x0a, 0x0b, 0x47, 0x65, - 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, + 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x12, 0x1c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, + 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x56, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, + 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x12, 0x1f, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, + 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x76, 0x74, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, + 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4a, 0x0a, + 0x0b, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1b, 0x2e, 0x76, + 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x41, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x47, 0x61, 0x74, - 0x65, 0x73, 0x12, 0x18, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, - 0x47, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x76, - 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x61, 0x74, 0x65, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x0b, 0x47, 0x65, 0x74, - 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x0c, 0x47, 0x65, - 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x12, 0x1c, 0x2e, 0x76, 0x74, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x39, 0x0a, 0x09, 0x47, 0x65, 0x74, - 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x19, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x0f, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x73, 0x12, 0x1a, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, - 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, - 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7d, 0x0a, - 0x1c, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2c, 0x2e, - 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, - 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x73, 0x69, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x76, 0x74, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x45, 0x0a, 0x0d, - 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1d, 0x2e, - 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x76, - 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x22, 0x00, 0x12, 0x53, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x73, 0x12, 0x1e, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x39, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x54, - 0x61, 0x62, 0x6c, 0x65, 0x74, 0x12, 0x19, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x0f, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, - 0x74, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, - 0x73, 0x12, 0x1a, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, - 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, - 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, - 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x0a, - 0x47, 0x65, 0x74, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1a, 0x2e, 0x76, 0x74, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x00, 0x12, 0x4a, 0x0a, 0x0b, 0x47, 0x65, - 0x74, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x12, 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x41, 0x0a, 0x08, 0x47, 0x65, 0x74, + 0x47, 0x61, 0x74, 0x65, 0x73, 0x12, 0x18, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x47, 0x65, 0x74, 0x47, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x19, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x61, 0x74, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x0b, + 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1b, 0x2e, 0x76, 0x74, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a, + 0x0c, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x12, 0x1c, 0x2e, + 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x76, 0x74, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x39, 0x0a, 0x09, + 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x19, 0x2e, 0x76, 0x74, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x53, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x73, 0x12, 0x1a, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x7d, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x12, 0x2c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x68, + 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, + 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, + 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, + 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x73, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x45, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x12, 0x1d, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x72, + 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x13, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x22, 0x00, 0x12, 0x53, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, + 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x12, 0x1e, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x39, 0x0a, 0x09, 0x47, + 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x12, 0x19, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x74, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, + 0x6c, 0x65, 0x74, 0x73, 0x12, 0x1a, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, + 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x3c, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1a, 0x2e, + 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x76, 0x74, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x00, 0x12, 0x4a, 0x0a, + 0x0b, 0x47, 0x65, 0x74, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x12, 0x1b, 0x2e, 0x76, + 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x47, 0x65, 0x74, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x56, 0x74, 0x63, - 0x74, 0x6c, 0x64, 0x73, 0x12, 0x1a, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, - 0x65, 0x74, 0x56, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x74, - 0x63, 0x74, 0x6c, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x3f, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x1b, - 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, - 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x76, 0x74, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x22, 0x00, - 0x12, 0x4d, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, - 0x12, 0x1c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, - 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, - 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x47, 0x0a, 0x0a, 0x50, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x12, 0x1a, 0x2e, - 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x0c, 0x52, 0x65, 0x66, 0x72, - 0x65, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x53, 0x0a, 0x0e, 0x52, 0x65, 0x70, 0x61, 0x72, - 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x12, 0x1e, 0x2e, 0x76, 0x74, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x76, 0x74, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x53, 0x0a, 0x0e, - 0x52, 0x75, 0x6e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x1e, - 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x75, 0x6e, 0x48, 0x65, 0x61, 0x6c, - 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, - 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x75, 0x6e, 0x48, 0x65, 0x61, 0x6c, - 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x4a, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x52, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, - 0x12, 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, - 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, - 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x61, 0x64, 0x4f, - 0x6e, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a, - 0x0c, 0x53, 0x65, 0x74, 0x52, 0x65, 0x61, 0x64, 0x57, 0x72, 0x69, 0x74, 0x65, 0x12, 0x1c, 0x2e, - 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x61, 0x64, 0x57, - 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x76, 0x74, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x61, 0x64, 0x57, 0x72, 0x69, - 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x59, 0x0a, 0x10, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x0a, 0x47, 0x65, 0x74, + 0x56, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x73, 0x12, 0x1a, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, + 0x74, 0x56, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x12, 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, + 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x73, 0x12, 0x1c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, + 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1d, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x47, 0x0a, 0x0a, 0x50, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, + 0x12, 0x1a, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x54, + 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x76, + 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x0c, 0x52, + 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x2e, 0x76, 0x74, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x76, 0x74, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x53, 0x0a, 0x0e, 0x52, 0x65, + 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x12, 0x1e, 0x2e, 0x76, + 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x54, + 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x76, + 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x54, + 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x53, 0x0a, 0x0e, 0x52, 0x75, 0x6e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, + 0x6b, 0x12, 0x1e, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x75, 0x6e, 0x48, + 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1f, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x75, 0x6e, 0x48, + 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x4a, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x52, 0x65, 0x61, 0x64, 0x4f, + 0x6e, 0x6c, 0x79, 0x12, 0x1b, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x65, + 0x74, 0x52, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, + 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x4d, 0x0a, 0x0c, 0x53, 0x65, 0x74, 0x52, 0x65, 0x61, 0x64, 0x57, 0x72, 0x69, 0x74, 0x65, + 0x12, 0x1c, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, + 0x61, 0x64, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, + 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x61, 0x64, + 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x59, 0x0a, 0x10, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x74, + 0x61, 0x72, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x20, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, - 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x74, 0x61, - 0x72, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x56, 0x0a, 0x0f, 0x53, 0x74, 0x6f, 0x70, 0x52, - 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x2e, 0x76, 0x74, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x76, 0x74, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x5b, 0x0a, 0x10, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x12, 0x20, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6d, 0x0a, 0x16, - 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4b, 0x65, - 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x26, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4b, - 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, - 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, - 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x70, 0x0a, 0x17, 0x56, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x56, 0x0a, 0x0f, 0x53, 0x74, + 0x6f, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x2e, + 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, + 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x5b, 0x0a, 0x10, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, + 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x20, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x6d, 0x0a, 0x16, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x26, 0x2e, 0x76, 0x74, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x29, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4b, 0x65, 0x79, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x70, + 0x0a, 0x17, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x27, 0x2e, 0x76, 0x74, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4b, 0x65, - 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x27, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2a, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x44, 0x0a, - 0x09, 0x56, 0x54, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x12, 0x19, 0x2e, 0x76, 0x74, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x54, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x56, 0x54, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x42, 0x26, 0x5a, 0x24, 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6f, - 0x2f, 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x74, 0x2f, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x44, 0x0a, 0x09, 0x56, 0x54, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x12, 0x19, 0x2e, + 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x54, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x69, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x76, 0x74, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x56, 0x54, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x26, 0x5a, 0x24, 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, + 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x74, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x74, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -4760,229 +5146,249 @@ func file_vtadmin_proto_rawDescGZIP() []byte { } var file_vtadmin_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_vtadmin_proto_msgTypes = make([]protoimpl.MessageInfo, 76) +var file_vtadmin_proto_msgTypes = make([]protoimpl.MessageInfo, 83) var file_vtadmin_proto_goTypes = []interface{}{ (Tablet_ServingState)(0), // 0: vtadmin.Tablet.ServingState (*Cluster)(nil), // 1: vtadmin.Cluster (*ClusterBackup)(nil), // 2: vtadmin.ClusterBackup - (*ClusterShardReplicationPosition)(nil), // 3: vtadmin.ClusterShardReplicationPosition - (*ClusterWorkflows)(nil), // 4: vtadmin.ClusterWorkflows - (*Keyspace)(nil), // 5: vtadmin.Keyspace - (*Schema)(nil), // 6: vtadmin.Schema - (*SrvVSchema)(nil), // 7: vtadmin.SrvVSchema - (*Tablet)(nil), // 8: vtadmin.Tablet - (*VSchema)(nil), // 9: vtadmin.VSchema - (*Vtctld)(nil), // 10: vtadmin.Vtctld - (*VTGate)(nil), // 11: vtadmin.VTGate - (*Workflow)(nil), // 12: vtadmin.Workflow - (*CreateKeyspaceRequest)(nil), // 13: vtadmin.CreateKeyspaceRequest - (*CreateKeyspaceResponse)(nil), // 14: vtadmin.CreateKeyspaceResponse - (*CreateShardRequest)(nil), // 15: vtadmin.CreateShardRequest - (*DeleteKeyspaceRequest)(nil), // 16: vtadmin.DeleteKeyspaceRequest - (*DeleteShardsRequest)(nil), // 17: vtadmin.DeleteShardsRequest - (*DeleteTabletRequest)(nil), // 18: vtadmin.DeleteTabletRequest - (*DeleteTabletResponse)(nil), // 19: vtadmin.DeleteTabletResponse - (*FindSchemaRequest)(nil), // 20: vtadmin.FindSchemaRequest - (*GetBackupsRequest)(nil), // 21: vtadmin.GetBackupsRequest - (*GetBackupsResponse)(nil), // 22: vtadmin.GetBackupsResponse - (*GetClustersRequest)(nil), // 23: vtadmin.GetClustersRequest - (*GetClustersResponse)(nil), // 24: vtadmin.GetClustersResponse - (*GetGatesRequest)(nil), // 25: vtadmin.GetGatesRequest - (*GetGatesResponse)(nil), // 26: vtadmin.GetGatesResponse - (*GetKeyspaceRequest)(nil), // 27: vtadmin.GetKeyspaceRequest - (*GetKeyspacesRequest)(nil), // 28: vtadmin.GetKeyspacesRequest - (*GetKeyspacesResponse)(nil), // 29: vtadmin.GetKeyspacesResponse - (*GetSchemaRequest)(nil), // 30: vtadmin.GetSchemaRequest - (*GetSchemasRequest)(nil), // 31: vtadmin.GetSchemasRequest - (*GetSchemasResponse)(nil), // 32: vtadmin.GetSchemasResponse - (*GetShardReplicationPositionsRequest)(nil), // 33: vtadmin.GetShardReplicationPositionsRequest - (*GetShardReplicationPositionsResponse)(nil), // 34: vtadmin.GetShardReplicationPositionsResponse - (*GetSrvVSchemaRequest)(nil), // 35: vtadmin.GetSrvVSchemaRequest - (*GetSrvVSchemasRequest)(nil), // 36: vtadmin.GetSrvVSchemasRequest - (*GetSrvVSchemasResponse)(nil), // 37: vtadmin.GetSrvVSchemasResponse - (*GetSchemaTableSizeOptions)(nil), // 38: vtadmin.GetSchemaTableSizeOptions - (*GetTabletRequest)(nil), // 39: vtadmin.GetTabletRequest - (*GetTabletsRequest)(nil), // 40: vtadmin.GetTabletsRequest - (*GetTabletsResponse)(nil), // 41: vtadmin.GetTabletsResponse - (*GetVSchemaRequest)(nil), // 42: vtadmin.GetVSchemaRequest - (*GetVSchemasRequest)(nil), // 43: vtadmin.GetVSchemasRequest - (*GetVSchemasResponse)(nil), // 44: vtadmin.GetVSchemasResponse - (*GetVtctldsRequest)(nil), // 45: vtadmin.GetVtctldsRequest - (*GetVtctldsResponse)(nil), // 46: vtadmin.GetVtctldsResponse - (*GetWorkflowRequest)(nil), // 47: vtadmin.GetWorkflowRequest - (*GetWorkflowsRequest)(nil), // 48: vtadmin.GetWorkflowsRequest - (*GetWorkflowsResponse)(nil), // 49: vtadmin.GetWorkflowsResponse - (*PingTabletRequest)(nil), // 50: vtadmin.PingTabletRequest - (*PingTabletResponse)(nil), // 51: vtadmin.PingTabletResponse - (*RefreshStateRequest)(nil), // 52: vtadmin.RefreshStateRequest - (*RefreshStateResponse)(nil), // 53: vtadmin.RefreshStateResponse - (*ReparentTabletRequest)(nil), // 54: vtadmin.ReparentTabletRequest - (*ReparentTabletResponse)(nil), // 55: vtadmin.ReparentTabletResponse - (*RunHealthCheckRequest)(nil), // 56: vtadmin.RunHealthCheckRequest - (*RunHealthCheckResponse)(nil), // 57: vtadmin.RunHealthCheckResponse - (*SetReadOnlyRequest)(nil), // 58: vtadmin.SetReadOnlyRequest - (*SetReadOnlyResponse)(nil), // 59: vtadmin.SetReadOnlyResponse - (*SetReadWriteRequest)(nil), // 60: vtadmin.SetReadWriteRequest - (*SetReadWriteResponse)(nil), // 61: vtadmin.SetReadWriteResponse - (*StartReplicationRequest)(nil), // 62: vtadmin.StartReplicationRequest - (*StartReplicationResponse)(nil), // 63: vtadmin.StartReplicationResponse - (*StopReplicationRequest)(nil), // 64: vtadmin.StopReplicationRequest - (*StopReplicationResponse)(nil), // 65: vtadmin.StopReplicationResponse - (*ValidateKeyspaceRequest)(nil), // 66: vtadmin.ValidateKeyspaceRequest - (*ValidateSchemaKeyspaceRequest)(nil), // 67: vtadmin.ValidateSchemaKeyspaceRequest - (*ValidateVersionKeyspaceRequest)(nil), // 68: vtadmin.ValidateVersionKeyspaceRequest - (*VTExplainRequest)(nil), // 69: vtadmin.VTExplainRequest - (*VTExplainResponse)(nil), // 70: vtadmin.VTExplainResponse - nil, // 71: vtadmin.Keyspace.ShardsEntry - nil, // 72: vtadmin.Schema.TableSizesEntry - (*Schema_ShardTableSize)(nil), // 73: vtadmin.Schema.ShardTableSize - (*Schema_TableSize)(nil), // 74: vtadmin.Schema.TableSize - nil, // 75: vtadmin.Schema.TableSize.ByShardEntry - nil, // 76: vtadmin.GetWorkflowsResponse.WorkflowsByClusterEntry - (*mysqlctl.BackupInfo)(nil), // 77: mysqlctl.BackupInfo - (*vtctldata.ShardReplicationPositionsResponse)(nil), // 78: vtctldata.ShardReplicationPositionsResponse - (*vtctldata.Keyspace)(nil), // 79: vtctldata.Keyspace - (*tabletmanagerdata.TableDefinition)(nil), // 80: tabletmanagerdata.TableDefinition - (*vschema.SrvVSchema)(nil), // 81: vschema.SrvVSchema - (*topodata.Tablet)(nil), // 82: topodata.Tablet - (*vschema.Keyspace)(nil), // 83: vschema.Keyspace - (*vtctldata.Workflow)(nil), // 84: vtctldata.Workflow - (*vtctldata.CreateKeyspaceRequest)(nil), // 85: vtctldata.CreateKeyspaceRequest - (*vtctldata.CreateShardRequest)(nil), // 86: vtctldata.CreateShardRequest - (*vtctldata.DeleteKeyspaceRequest)(nil), // 87: vtctldata.DeleteKeyspaceRequest - (*vtctldata.DeleteShardsRequest)(nil), // 88: vtctldata.DeleteShardsRequest - (*vtctldata.GetBackupsRequest)(nil), // 89: vtctldata.GetBackupsRequest - (*vtctldata.Shard)(nil), // 90: vtctldata.Shard - (*vtctldata.CreateShardResponse)(nil), // 91: vtctldata.CreateShardResponse - (*vtctldata.DeleteKeyspaceResponse)(nil), // 92: vtctldata.DeleteKeyspaceResponse - (*vtctldata.DeleteShardsResponse)(nil), // 93: vtctldata.DeleteShardsResponse - (*vtctldata.ValidateKeyspaceResponse)(nil), // 94: vtctldata.ValidateKeyspaceResponse - (*vtctldata.ValidateSchemaKeyspaceResponse)(nil), // 95: vtctldata.ValidateSchemaKeyspaceResponse - (*vtctldata.ValidateVersionKeyspaceResponse)(nil), // 96: vtctldata.ValidateVersionKeyspaceResponse + (*ClusterCellsAliases)(nil), // 3: vtadmin.ClusterCellsAliases + (*ClusterCellInfo)(nil), // 4: vtadmin.ClusterCellInfo + (*ClusterShardReplicationPosition)(nil), // 5: vtadmin.ClusterShardReplicationPosition + (*ClusterWorkflows)(nil), // 6: vtadmin.ClusterWorkflows + (*Keyspace)(nil), // 7: vtadmin.Keyspace + (*Schema)(nil), // 8: vtadmin.Schema + (*SrvVSchema)(nil), // 9: vtadmin.SrvVSchema + (*Tablet)(nil), // 10: vtadmin.Tablet + (*VSchema)(nil), // 11: vtadmin.VSchema + (*Vtctld)(nil), // 12: vtadmin.Vtctld + (*VTGate)(nil), // 13: vtadmin.VTGate + (*Workflow)(nil), // 14: vtadmin.Workflow + (*CreateKeyspaceRequest)(nil), // 15: vtadmin.CreateKeyspaceRequest + (*CreateKeyspaceResponse)(nil), // 16: vtadmin.CreateKeyspaceResponse + (*CreateShardRequest)(nil), // 17: vtadmin.CreateShardRequest + (*DeleteKeyspaceRequest)(nil), // 18: vtadmin.DeleteKeyspaceRequest + (*DeleteShardsRequest)(nil), // 19: vtadmin.DeleteShardsRequest + (*DeleteTabletRequest)(nil), // 20: vtadmin.DeleteTabletRequest + (*DeleteTabletResponse)(nil), // 21: vtadmin.DeleteTabletResponse + (*FindSchemaRequest)(nil), // 22: vtadmin.FindSchemaRequest + (*GetBackupsRequest)(nil), // 23: vtadmin.GetBackupsRequest + (*GetBackupsResponse)(nil), // 24: vtadmin.GetBackupsResponse + (*GetCellInfosRequest)(nil), // 25: vtadmin.GetCellInfosRequest + (*GetCellInfosResponse)(nil), // 26: vtadmin.GetCellInfosResponse + (*GetCellsAliasesRequest)(nil), // 27: vtadmin.GetCellsAliasesRequest + (*GetCellsAliasesResponse)(nil), // 28: vtadmin.GetCellsAliasesResponse + (*GetClustersRequest)(nil), // 29: vtadmin.GetClustersRequest + (*GetClustersResponse)(nil), // 30: vtadmin.GetClustersResponse + (*GetGatesRequest)(nil), // 31: vtadmin.GetGatesRequest + (*GetGatesResponse)(nil), // 32: vtadmin.GetGatesResponse + (*GetKeyspaceRequest)(nil), // 33: vtadmin.GetKeyspaceRequest + (*GetKeyspacesRequest)(nil), // 34: vtadmin.GetKeyspacesRequest + (*GetKeyspacesResponse)(nil), // 35: vtadmin.GetKeyspacesResponse + (*GetSchemaRequest)(nil), // 36: vtadmin.GetSchemaRequest + (*GetSchemasRequest)(nil), // 37: vtadmin.GetSchemasRequest + (*GetSchemasResponse)(nil), // 38: vtadmin.GetSchemasResponse + (*GetShardReplicationPositionsRequest)(nil), // 39: vtadmin.GetShardReplicationPositionsRequest + (*GetShardReplicationPositionsResponse)(nil), // 40: vtadmin.GetShardReplicationPositionsResponse + (*GetSrvVSchemaRequest)(nil), // 41: vtadmin.GetSrvVSchemaRequest + (*GetSrvVSchemasRequest)(nil), // 42: vtadmin.GetSrvVSchemasRequest + (*GetSrvVSchemasResponse)(nil), // 43: vtadmin.GetSrvVSchemasResponse + (*GetSchemaTableSizeOptions)(nil), // 44: vtadmin.GetSchemaTableSizeOptions + (*GetTabletRequest)(nil), // 45: vtadmin.GetTabletRequest + (*GetTabletsRequest)(nil), // 46: vtadmin.GetTabletsRequest + (*GetTabletsResponse)(nil), // 47: vtadmin.GetTabletsResponse + (*GetVSchemaRequest)(nil), // 48: vtadmin.GetVSchemaRequest + (*GetVSchemasRequest)(nil), // 49: vtadmin.GetVSchemasRequest + (*GetVSchemasResponse)(nil), // 50: vtadmin.GetVSchemasResponse + (*GetVtctldsRequest)(nil), // 51: vtadmin.GetVtctldsRequest + (*GetVtctldsResponse)(nil), // 52: vtadmin.GetVtctldsResponse + (*GetWorkflowRequest)(nil), // 53: vtadmin.GetWorkflowRequest + (*GetWorkflowsRequest)(nil), // 54: vtadmin.GetWorkflowsRequest + (*GetWorkflowsResponse)(nil), // 55: vtadmin.GetWorkflowsResponse + (*PingTabletRequest)(nil), // 56: vtadmin.PingTabletRequest + (*PingTabletResponse)(nil), // 57: vtadmin.PingTabletResponse + (*RefreshStateRequest)(nil), // 58: vtadmin.RefreshStateRequest + (*RefreshStateResponse)(nil), // 59: vtadmin.RefreshStateResponse + (*ReparentTabletRequest)(nil), // 60: vtadmin.ReparentTabletRequest + (*ReparentTabletResponse)(nil), // 61: vtadmin.ReparentTabletResponse + (*RunHealthCheckRequest)(nil), // 62: vtadmin.RunHealthCheckRequest + (*RunHealthCheckResponse)(nil), // 63: vtadmin.RunHealthCheckResponse + (*SetReadOnlyRequest)(nil), // 64: vtadmin.SetReadOnlyRequest + (*SetReadOnlyResponse)(nil), // 65: vtadmin.SetReadOnlyResponse + (*SetReadWriteRequest)(nil), // 66: vtadmin.SetReadWriteRequest + (*SetReadWriteResponse)(nil), // 67: vtadmin.SetReadWriteResponse + (*StartReplicationRequest)(nil), // 68: vtadmin.StartReplicationRequest + (*StartReplicationResponse)(nil), // 69: vtadmin.StartReplicationResponse + (*StopReplicationRequest)(nil), // 70: vtadmin.StopReplicationRequest + (*StopReplicationResponse)(nil), // 71: vtadmin.StopReplicationResponse + (*ValidateKeyspaceRequest)(nil), // 72: vtadmin.ValidateKeyspaceRequest + (*ValidateSchemaKeyspaceRequest)(nil), // 73: vtadmin.ValidateSchemaKeyspaceRequest + (*ValidateVersionKeyspaceRequest)(nil), // 74: vtadmin.ValidateVersionKeyspaceRequest + (*VTExplainRequest)(nil), // 75: vtadmin.VTExplainRequest + (*VTExplainResponse)(nil), // 76: vtadmin.VTExplainResponse + nil, // 77: vtadmin.ClusterCellsAliases.AliasesEntry + nil, // 78: vtadmin.Keyspace.ShardsEntry + nil, // 79: vtadmin.Schema.TableSizesEntry + (*Schema_ShardTableSize)(nil), // 80: vtadmin.Schema.ShardTableSize + (*Schema_TableSize)(nil), // 81: vtadmin.Schema.TableSize + nil, // 82: vtadmin.Schema.TableSize.ByShardEntry + nil, // 83: vtadmin.GetWorkflowsResponse.WorkflowsByClusterEntry + (*mysqlctl.BackupInfo)(nil), // 84: mysqlctl.BackupInfo + (*topodata.CellInfo)(nil), // 85: topodata.CellInfo + (*vtctldata.ShardReplicationPositionsResponse)(nil), // 86: vtctldata.ShardReplicationPositionsResponse + (*vtctldata.Keyspace)(nil), // 87: vtctldata.Keyspace + (*tabletmanagerdata.TableDefinition)(nil), // 88: tabletmanagerdata.TableDefinition + (*vschema.SrvVSchema)(nil), // 89: vschema.SrvVSchema + (*topodata.Tablet)(nil), // 90: topodata.Tablet + (*vschema.Keyspace)(nil), // 91: vschema.Keyspace + (*vtctldata.Workflow)(nil), // 92: vtctldata.Workflow + (*vtctldata.CreateKeyspaceRequest)(nil), // 93: vtctldata.CreateKeyspaceRequest + (*vtctldata.CreateShardRequest)(nil), // 94: vtctldata.CreateShardRequest + (*vtctldata.DeleteKeyspaceRequest)(nil), // 95: vtctldata.DeleteKeyspaceRequest + (*vtctldata.DeleteShardsRequest)(nil), // 96: vtctldata.DeleteShardsRequest + (*vtctldata.GetBackupsRequest)(nil), // 97: vtctldata.GetBackupsRequest + (*topodata.CellsAlias)(nil), // 98: topodata.CellsAlias + (*vtctldata.Shard)(nil), // 99: vtctldata.Shard + (*vtctldata.CreateShardResponse)(nil), // 100: vtctldata.CreateShardResponse + (*vtctldata.DeleteKeyspaceResponse)(nil), // 101: vtctldata.DeleteKeyspaceResponse + (*vtctldata.DeleteShardsResponse)(nil), // 102: vtctldata.DeleteShardsResponse + (*vtctldata.ValidateKeyspaceResponse)(nil), // 103: vtctldata.ValidateKeyspaceResponse + (*vtctldata.ValidateSchemaKeyspaceResponse)(nil), // 104: vtctldata.ValidateSchemaKeyspaceResponse + (*vtctldata.ValidateVersionKeyspaceResponse)(nil), // 105: vtctldata.ValidateVersionKeyspaceResponse } var file_vtadmin_proto_depIdxs = []int32{ - 1, // 0: vtadmin.ClusterBackup.cluster:type_name -> vtadmin.Cluster - 77, // 1: vtadmin.ClusterBackup.backup:type_name -> mysqlctl.BackupInfo - 1, // 2: vtadmin.ClusterShardReplicationPosition.cluster:type_name -> vtadmin.Cluster - 78, // 3: vtadmin.ClusterShardReplicationPosition.position_info:type_name -> vtctldata.ShardReplicationPositionsResponse - 12, // 4: vtadmin.ClusterWorkflows.workflows:type_name -> vtadmin.Workflow - 1, // 5: vtadmin.Keyspace.cluster:type_name -> vtadmin.Cluster - 79, // 6: vtadmin.Keyspace.keyspace:type_name -> vtctldata.Keyspace - 71, // 7: vtadmin.Keyspace.shards:type_name -> vtadmin.Keyspace.ShardsEntry - 1, // 8: vtadmin.Schema.cluster:type_name -> vtadmin.Cluster - 80, // 9: vtadmin.Schema.table_definitions:type_name -> tabletmanagerdata.TableDefinition - 72, // 10: vtadmin.Schema.table_sizes:type_name -> vtadmin.Schema.TableSizesEntry - 1, // 11: vtadmin.SrvVSchema.cluster:type_name -> vtadmin.Cluster - 81, // 12: vtadmin.SrvVSchema.srv_v_schema:type_name -> vschema.SrvVSchema - 1, // 13: vtadmin.Tablet.cluster:type_name -> vtadmin.Cluster - 82, // 14: vtadmin.Tablet.tablet:type_name -> topodata.Tablet - 0, // 15: vtadmin.Tablet.state:type_name -> vtadmin.Tablet.ServingState - 1, // 16: vtadmin.VSchema.cluster:type_name -> vtadmin.Cluster - 83, // 17: vtadmin.VSchema.v_schema:type_name -> vschema.Keyspace - 1, // 18: vtadmin.Vtctld.cluster:type_name -> vtadmin.Cluster - 1, // 19: vtadmin.VTGate.cluster:type_name -> vtadmin.Cluster - 1, // 20: vtadmin.Workflow.cluster:type_name -> vtadmin.Cluster - 84, // 21: vtadmin.Workflow.workflow:type_name -> vtctldata.Workflow - 85, // 22: vtadmin.CreateKeyspaceRequest.options:type_name -> vtctldata.CreateKeyspaceRequest - 5, // 23: vtadmin.CreateKeyspaceResponse.keyspace:type_name -> vtadmin.Keyspace - 86, // 24: vtadmin.CreateShardRequest.options:type_name -> vtctldata.CreateShardRequest - 87, // 25: vtadmin.DeleteKeyspaceRequest.options:type_name -> vtctldata.DeleteKeyspaceRequest - 88, // 26: vtadmin.DeleteShardsRequest.options:type_name -> vtctldata.DeleteShardsRequest - 38, // 27: vtadmin.FindSchemaRequest.table_size_options:type_name -> vtadmin.GetSchemaTableSizeOptions - 89, // 28: vtadmin.GetBackupsRequest.request_options:type_name -> vtctldata.GetBackupsRequest - 2, // 29: vtadmin.GetBackupsResponse.backups:type_name -> vtadmin.ClusterBackup - 1, // 30: vtadmin.GetClustersResponse.clusters:type_name -> vtadmin.Cluster - 11, // 31: vtadmin.GetGatesResponse.gates:type_name -> vtadmin.VTGate - 5, // 32: vtadmin.GetKeyspacesResponse.keyspaces:type_name -> vtadmin.Keyspace - 38, // 33: vtadmin.GetSchemaRequest.table_size_options:type_name -> vtadmin.GetSchemaTableSizeOptions - 38, // 34: vtadmin.GetSchemasRequest.table_size_options:type_name -> vtadmin.GetSchemaTableSizeOptions - 6, // 35: vtadmin.GetSchemasResponse.schemas:type_name -> vtadmin.Schema - 3, // 36: vtadmin.GetShardReplicationPositionsResponse.replication_positions:type_name -> vtadmin.ClusterShardReplicationPosition - 7, // 37: vtadmin.GetSrvVSchemasResponse.srv_v_schemas:type_name -> vtadmin.SrvVSchema - 8, // 38: vtadmin.GetTabletsResponse.tablets:type_name -> vtadmin.Tablet - 9, // 39: vtadmin.GetVSchemasResponse.v_schemas:type_name -> vtadmin.VSchema - 10, // 40: vtadmin.GetVtctldsResponse.vtctlds:type_name -> vtadmin.Vtctld - 76, // 41: vtadmin.GetWorkflowsResponse.workflows_by_cluster:type_name -> vtadmin.GetWorkflowsResponse.WorkflowsByClusterEntry - 90, // 42: vtadmin.Keyspace.ShardsEntry.value:type_name -> vtctldata.Shard - 74, // 43: vtadmin.Schema.TableSizesEntry.value:type_name -> vtadmin.Schema.TableSize - 75, // 44: vtadmin.Schema.TableSize.by_shard:type_name -> vtadmin.Schema.TableSize.ByShardEntry - 73, // 45: vtadmin.Schema.TableSize.ByShardEntry.value:type_name -> vtadmin.Schema.ShardTableSize - 4, // 46: vtadmin.GetWorkflowsResponse.WorkflowsByClusterEntry.value:type_name -> vtadmin.ClusterWorkflows - 13, // 47: vtadmin.VTAdmin.CreateKeyspace:input_type -> vtadmin.CreateKeyspaceRequest - 15, // 48: vtadmin.VTAdmin.CreateShard:input_type -> vtadmin.CreateShardRequest - 16, // 49: vtadmin.VTAdmin.DeleteKeyspace:input_type -> vtadmin.DeleteKeyspaceRequest - 17, // 50: vtadmin.VTAdmin.DeleteShards:input_type -> vtadmin.DeleteShardsRequest - 18, // 51: vtadmin.VTAdmin.DeleteTablet:input_type -> vtadmin.DeleteTabletRequest - 20, // 52: vtadmin.VTAdmin.FindSchema:input_type -> vtadmin.FindSchemaRequest - 21, // 53: vtadmin.VTAdmin.GetBackups:input_type -> vtadmin.GetBackupsRequest - 23, // 54: vtadmin.VTAdmin.GetClusters:input_type -> vtadmin.GetClustersRequest - 25, // 55: vtadmin.VTAdmin.GetGates:input_type -> vtadmin.GetGatesRequest - 27, // 56: vtadmin.VTAdmin.GetKeyspace:input_type -> vtadmin.GetKeyspaceRequest - 28, // 57: vtadmin.VTAdmin.GetKeyspaces:input_type -> vtadmin.GetKeyspacesRequest - 30, // 58: vtadmin.VTAdmin.GetSchema:input_type -> vtadmin.GetSchemaRequest - 31, // 59: vtadmin.VTAdmin.GetSchemas:input_type -> vtadmin.GetSchemasRequest - 33, // 60: vtadmin.VTAdmin.GetShardReplicationPositions:input_type -> vtadmin.GetShardReplicationPositionsRequest - 35, // 61: vtadmin.VTAdmin.GetSrvVSchema:input_type -> vtadmin.GetSrvVSchemaRequest - 36, // 62: vtadmin.VTAdmin.GetSrvVSchemas:input_type -> vtadmin.GetSrvVSchemasRequest - 39, // 63: vtadmin.VTAdmin.GetTablet:input_type -> vtadmin.GetTabletRequest - 40, // 64: vtadmin.VTAdmin.GetTablets:input_type -> vtadmin.GetTabletsRequest - 42, // 65: vtadmin.VTAdmin.GetVSchema:input_type -> vtadmin.GetVSchemaRequest - 43, // 66: vtadmin.VTAdmin.GetVSchemas:input_type -> vtadmin.GetVSchemasRequest - 45, // 67: vtadmin.VTAdmin.GetVtctlds:input_type -> vtadmin.GetVtctldsRequest - 47, // 68: vtadmin.VTAdmin.GetWorkflow:input_type -> vtadmin.GetWorkflowRequest - 48, // 69: vtadmin.VTAdmin.GetWorkflows:input_type -> vtadmin.GetWorkflowsRequest - 50, // 70: vtadmin.VTAdmin.PingTablet:input_type -> vtadmin.PingTabletRequest - 52, // 71: vtadmin.VTAdmin.RefreshState:input_type -> vtadmin.RefreshStateRequest - 54, // 72: vtadmin.VTAdmin.ReparentTablet:input_type -> vtadmin.ReparentTabletRequest - 56, // 73: vtadmin.VTAdmin.RunHealthCheck:input_type -> vtadmin.RunHealthCheckRequest - 58, // 74: vtadmin.VTAdmin.SetReadOnly:input_type -> vtadmin.SetReadOnlyRequest - 60, // 75: vtadmin.VTAdmin.SetReadWrite:input_type -> vtadmin.SetReadWriteRequest - 62, // 76: vtadmin.VTAdmin.StartReplication:input_type -> vtadmin.StartReplicationRequest - 64, // 77: vtadmin.VTAdmin.StopReplication:input_type -> vtadmin.StopReplicationRequest - 66, // 78: vtadmin.VTAdmin.ValidateKeyspace:input_type -> vtadmin.ValidateKeyspaceRequest - 67, // 79: vtadmin.VTAdmin.ValidateSchemaKeyspace:input_type -> vtadmin.ValidateSchemaKeyspaceRequest - 68, // 80: vtadmin.VTAdmin.ValidateVersionKeyspace:input_type -> vtadmin.ValidateVersionKeyspaceRequest - 69, // 81: vtadmin.VTAdmin.VTExplain:input_type -> vtadmin.VTExplainRequest - 14, // 82: vtadmin.VTAdmin.CreateKeyspace:output_type -> vtadmin.CreateKeyspaceResponse - 91, // 83: vtadmin.VTAdmin.CreateShard:output_type -> vtctldata.CreateShardResponse - 92, // 84: vtadmin.VTAdmin.DeleteKeyspace:output_type -> vtctldata.DeleteKeyspaceResponse - 93, // 85: vtadmin.VTAdmin.DeleteShards:output_type -> vtctldata.DeleteShardsResponse - 19, // 86: vtadmin.VTAdmin.DeleteTablet:output_type -> vtadmin.DeleteTabletResponse - 6, // 87: vtadmin.VTAdmin.FindSchema:output_type -> vtadmin.Schema - 22, // 88: vtadmin.VTAdmin.GetBackups:output_type -> vtadmin.GetBackupsResponse - 24, // 89: vtadmin.VTAdmin.GetClusters:output_type -> vtadmin.GetClustersResponse - 26, // 90: vtadmin.VTAdmin.GetGates:output_type -> vtadmin.GetGatesResponse - 5, // 91: vtadmin.VTAdmin.GetKeyspace:output_type -> vtadmin.Keyspace - 29, // 92: vtadmin.VTAdmin.GetKeyspaces:output_type -> vtadmin.GetKeyspacesResponse - 6, // 93: vtadmin.VTAdmin.GetSchema:output_type -> vtadmin.Schema - 32, // 94: vtadmin.VTAdmin.GetSchemas:output_type -> vtadmin.GetSchemasResponse - 34, // 95: vtadmin.VTAdmin.GetShardReplicationPositions:output_type -> vtadmin.GetShardReplicationPositionsResponse - 7, // 96: vtadmin.VTAdmin.GetSrvVSchema:output_type -> vtadmin.SrvVSchema - 37, // 97: vtadmin.VTAdmin.GetSrvVSchemas:output_type -> vtadmin.GetSrvVSchemasResponse - 8, // 98: vtadmin.VTAdmin.GetTablet:output_type -> vtadmin.Tablet - 41, // 99: vtadmin.VTAdmin.GetTablets:output_type -> vtadmin.GetTabletsResponse - 9, // 100: vtadmin.VTAdmin.GetVSchema:output_type -> vtadmin.VSchema - 44, // 101: vtadmin.VTAdmin.GetVSchemas:output_type -> vtadmin.GetVSchemasResponse - 46, // 102: vtadmin.VTAdmin.GetVtctlds:output_type -> vtadmin.GetVtctldsResponse - 12, // 103: vtadmin.VTAdmin.GetWorkflow:output_type -> vtadmin.Workflow - 49, // 104: vtadmin.VTAdmin.GetWorkflows:output_type -> vtadmin.GetWorkflowsResponse - 51, // 105: vtadmin.VTAdmin.PingTablet:output_type -> vtadmin.PingTabletResponse - 53, // 106: vtadmin.VTAdmin.RefreshState:output_type -> vtadmin.RefreshStateResponse - 55, // 107: vtadmin.VTAdmin.ReparentTablet:output_type -> vtadmin.ReparentTabletResponse - 57, // 108: vtadmin.VTAdmin.RunHealthCheck:output_type -> vtadmin.RunHealthCheckResponse - 59, // 109: vtadmin.VTAdmin.SetReadOnly:output_type -> vtadmin.SetReadOnlyResponse - 61, // 110: vtadmin.VTAdmin.SetReadWrite:output_type -> vtadmin.SetReadWriteResponse - 63, // 111: vtadmin.VTAdmin.StartReplication:output_type -> vtadmin.StartReplicationResponse - 65, // 112: vtadmin.VTAdmin.StopReplication:output_type -> vtadmin.StopReplicationResponse - 94, // 113: vtadmin.VTAdmin.ValidateKeyspace:output_type -> vtctldata.ValidateKeyspaceResponse - 95, // 114: vtadmin.VTAdmin.ValidateSchemaKeyspace:output_type -> vtctldata.ValidateSchemaKeyspaceResponse - 96, // 115: vtadmin.VTAdmin.ValidateVersionKeyspace:output_type -> vtctldata.ValidateVersionKeyspaceResponse - 70, // 116: vtadmin.VTAdmin.VTExplain:output_type -> vtadmin.VTExplainResponse - 82, // [82:117] is the sub-list for method output_type - 47, // [47:82] is the sub-list for method input_type - 47, // [47:47] is the sub-list for extension type_name - 47, // [47:47] is the sub-list for extension extendee - 0, // [0:47] is the sub-list for field type_name + 1, // 0: vtadmin.ClusterBackup.cluster:type_name -> vtadmin.Cluster + 84, // 1: vtadmin.ClusterBackup.backup:type_name -> mysqlctl.BackupInfo + 1, // 2: vtadmin.ClusterCellsAliases.cluster:type_name -> vtadmin.Cluster + 77, // 3: vtadmin.ClusterCellsAliases.aliases:type_name -> vtadmin.ClusterCellsAliases.AliasesEntry + 1, // 4: vtadmin.ClusterCellInfo.cluster:type_name -> vtadmin.Cluster + 85, // 5: vtadmin.ClusterCellInfo.cell_info:type_name -> topodata.CellInfo + 1, // 6: vtadmin.ClusterShardReplicationPosition.cluster:type_name -> vtadmin.Cluster + 86, // 7: vtadmin.ClusterShardReplicationPosition.position_info:type_name -> vtctldata.ShardReplicationPositionsResponse + 14, // 8: vtadmin.ClusterWorkflows.workflows:type_name -> vtadmin.Workflow + 1, // 9: vtadmin.Keyspace.cluster:type_name -> vtadmin.Cluster + 87, // 10: vtadmin.Keyspace.keyspace:type_name -> vtctldata.Keyspace + 78, // 11: vtadmin.Keyspace.shards:type_name -> vtadmin.Keyspace.ShardsEntry + 1, // 12: vtadmin.Schema.cluster:type_name -> vtadmin.Cluster + 88, // 13: vtadmin.Schema.table_definitions:type_name -> tabletmanagerdata.TableDefinition + 79, // 14: vtadmin.Schema.table_sizes:type_name -> vtadmin.Schema.TableSizesEntry + 1, // 15: vtadmin.SrvVSchema.cluster:type_name -> vtadmin.Cluster + 89, // 16: vtadmin.SrvVSchema.srv_v_schema:type_name -> vschema.SrvVSchema + 1, // 17: vtadmin.Tablet.cluster:type_name -> vtadmin.Cluster + 90, // 18: vtadmin.Tablet.tablet:type_name -> topodata.Tablet + 0, // 19: vtadmin.Tablet.state:type_name -> vtadmin.Tablet.ServingState + 1, // 20: vtadmin.VSchema.cluster:type_name -> vtadmin.Cluster + 91, // 21: vtadmin.VSchema.v_schema:type_name -> vschema.Keyspace + 1, // 22: vtadmin.Vtctld.cluster:type_name -> vtadmin.Cluster + 1, // 23: vtadmin.VTGate.cluster:type_name -> vtadmin.Cluster + 1, // 24: vtadmin.Workflow.cluster:type_name -> vtadmin.Cluster + 92, // 25: vtadmin.Workflow.workflow:type_name -> vtctldata.Workflow + 93, // 26: vtadmin.CreateKeyspaceRequest.options:type_name -> vtctldata.CreateKeyspaceRequest + 7, // 27: vtadmin.CreateKeyspaceResponse.keyspace:type_name -> vtadmin.Keyspace + 94, // 28: vtadmin.CreateShardRequest.options:type_name -> vtctldata.CreateShardRequest + 95, // 29: vtadmin.DeleteKeyspaceRequest.options:type_name -> vtctldata.DeleteKeyspaceRequest + 96, // 30: vtadmin.DeleteShardsRequest.options:type_name -> vtctldata.DeleteShardsRequest + 44, // 31: vtadmin.FindSchemaRequest.table_size_options:type_name -> vtadmin.GetSchemaTableSizeOptions + 97, // 32: vtadmin.GetBackupsRequest.request_options:type_name -> vtctldata.GetBackupsRequest + 2, // 33: vtadmin.GetBackupsResponse.backups:type_name -> vtadmin.ClusterBackup + 4, // 34: vtadmin.GetCellInfosResponse.cell_infos:type_name -> vtadmin.ClusterCellInfo + 3, // 35: vtadmin.GetCellsAliasesResponse.aliases:type_name -> vtadmin.ClusterCellsAliases + 1, // 36: vtadmin.GetClustersResponse.clusters:type_name -> vtadmin.Cluster + 13, // 37: vtadmin.GetGatesResponse.gates:type_name -> vtadmin.VTGate + 7, // 38: vtadmin.GetKeyspacesResponse.keyspaces:type_name -> vtadmin.Keyspace + 44, // 39: vtadmin.GetSchemaRequest.table_size_options:type_name -> vtadmin.GetSchemaTableSizeOptions + 44, // 40: vtadmin.GetSchemasRequest.table_size_options:type_name -> vtadmin.GetSchemaTableSizeOptions + 8, // 41: vtadmin.GetSchemasResponse.schemas:type_name -> vtadmin.Schema + 5, // 42: vtadmin.GetShardReplicationPositionsResponse.replication_positions:type_name -> vtadmin.ClusterShardReplicationPosition + 9, // 43: vtadmin.GetSrvVSchemasResponse.srv_v_schemas:type_name -> vtadmin.SrvVSchema + 10, // 44: vtadmin.GetTabletsResponse.tablets:type_name -> vtadmin.Tablet + 11, // 45: vtadmin.GetVSchemasResponse.v_schemas:type_name -> vtadmin.VSchema + 12, // 46: vtadmin.GetVtctldsResponse.vtctlds:type_name -> vtadmin.Vtctld + 83, // 47: vtadmin.GetWorkflowsResponse.workflows_by_cluster:type_name -> vtadmin.GetWorkflowsResponse.WorkflowsByClusterEntry + 98, // 48: vtadmin.ClusterCellsAliases.AliasesEntry.value:type_name -> topodata.CellsAlias + 99, // 49: vtadmin.Keyspace.ShardsEntry.value:type_name -> vtctldata.Shard + 81, // 50: vtadmin.Schema.TableSizesEntry.value:type_name -> vtadmin.Schema.TableSize + 82, // 51: vtadmin.Schema.TableSize.by_shard:type_name -> vtadmin.Schema.TableSize.ByShardEntry + 80, // 52: vtadmin.Schema.TableSize.ByShardEntry.value:type_name -> vtadmin.Schema.ShardTableSize + 6, // 53: vtadmin.GetWorkflowsResponse.WorkflowsByClusterEntry.value:type_name -> vtadmin.ClusterWorkflows + 15, // 54: vtadmin.VTAdmin.CreateKeyspace:input_type -> vtadmin.CreateKeyspaceRequest + 17, // 55: vtadmin.VTAdmin.CreateShard:input_type -> vtadmin.CreateShardRequest + 18, // 56: vtadmin.VTAdmin.DeleteKeyspace:input_type -> vtadmin.DeleteKeyspaceRequest + 19, // 57: vtadmin.VTAdmin.DeleteShards:input_type -> vtadmin.DeleteShardsRequest + 20, // 58: vtadmin.VTAdmin.DeleteTablet:input_type -> vtadmin.DeleteTabletRequest + 22, // 59: vtadmin.VTAdmin.FindSchema:input_type -> vtadmin.FindSchemaRequest + 23, // 60: vtadmin.VTAdmin.GetBackups:input_type -> vtadmin.GetBackupsRequest + 25, // 61: vtadmin.VTAdmin.GetCellInfos:input_type -> vtadmin.GetCellInfosRequest + 27, // 62: vtadmin.VTAdmin.GetCellsAliases:input_type -> vtadmin.GetCellsAliasesRequest + 29, // 63: vtadmin.VTAdmin.GetClusters:input_type -> vtadmin.GetClustersRequest + 31, // 64: vtadmin.VTAdmin.GetGates:input_type -> vtadmin.GetGatesRequest + 33, // 65: vtadmin.VTAdmin.GetKeyspace:input_type -> vtadmin.GetKeyspaceRequest + 34, // 66: vtadmin.VTAdmin.GetKeyspaces:input_type -> vtadmin.GetKeyspacesRequest + 36, // 67: vtadmin.VTAdmin.GetSchema:input_type -> vtadmin.GetSchemaRequest + 37, // 68: vtadmin.VTAdmin.GetSchemas:input_type -> vtadmin.GetSchemasRequest + 39, // 69: vtadmin.VTAdmin.GetShardReplicationPositions:input_type -> vtadmin.GetShardReplicationPositionsRequest + 41, // 70: vtadmin.VTAdmin.GetSrvVSchema:input_type -> vtadmin.GetSrvVSchemaRequest + 42, // 71: vtadmin.VTAdmin.GetSrvVSchemas:input_type -> vtadmin.GetSrvVSchemasRequest + 45, // 72: vtadmin.VTAdmin.GetTablet:input_type -> vtadmin.GetTabletRequest + 46, // 73: vtadmin.VTAdmin.GetTablets:input_type -> vtadmin.GetTabletsRequest + 48, // 74: vtadmin.VTAdmin.GetVSchema:input_type -> vtadmin.GetVSchemaRequest + 49, // 75: vtadmin.VTAdmin.GetVSchemas:input_type -> vtadmin.GetVSchemasRequest + 51, // 76: vtadmin.VTAdmin.GetVtctlds:input_type -> vtadmin.GetVtctldsRequest + 53, // 77: vtadmin.VTAdmin.GetWorkflow:input_type -> vtadmin.GetWorkflowRequest + 54, // 78: vtadmin.VTAdmin.GetWorkflows:input_type -> vtadmin.GetWorkflowsRequest + 56, // 79: vtadmin.VTAdmin.PingTablet:input_type -> vtadmin.PingTabletRequest + 58, // 80: vtadmin.VTAdmin.RefreshState:input_type -> vtadmin.RefreshStateRequest + 60, // 81: vtadmin.VTAdmin.ReparentTablet:input_type -> vtadmin.ReparentTabletRequest + 62, // 82: vtadmin.VTAdmin.RunHealthCheck:input_type -> vtadmin.RunHealthCheckRequest + 64, // 83: vtadmin.VTAdmin.SetReadOnly:input_type -> vtadmin.SetReadOnlyRequest + 66, // 84: vtadmin.VTAdmin.SetReadWrite:input_type -> vtadmin.SetReadWriteRequest + 68, // 85: vtadmin.VTAdmin.StartReplication:input_type -> vtadmin.StartReplicationRequest + 70, // 86: vtadmin.VTAdmin.StopReplication:input_type -> vtadmin.StopReplicationRequest + 72, // 87: vtadmin.VTAdmin.ValidateKeyspace:input_type -> vtadmin.ValidateKeyspaceRequest + 73, // 88: vtadmin.VTAdmin.ValidateSchemaKeyspace:input_type -> vtadmin.ValidateSchemaKeyspaceRequest + 74, // 89: vtadmin.VTAdmin.ValidateVersionKeyspace:input_type -> vtadmin.ValidateVersionKeyspaceRequest + 75, // 90: vtadmin.VTAdmin.VTExplain:input_type -> vtadmin.VTExplainRequest + 16, // 91: vtadmin.VTAdmin.CreateKeyspace:output_type -> vtadmin.CreateKeyspaceResponse + 100, // 92: vtadmin.VTAdmin.CreateShard:output_type -> vtctldata.CreateShardResponse + 101, // 93: vtadmin.VTAdmin.DeleteKeyspace:output_type -> vtctldata.DeleteKeyspaceResponse + 102, // 94: vtadmin.VTAdmin.DeleteShards:output_type -> vtctldata.DeleteShardsResponse + 21, // 95: vtadmin.VTAdmin.DeleteTablet:output_type -> vtadmin.DeleteTabletResponse + 8, // 96: vtadmin.VTAdmin.FindSchema:output_type -> vtadmin.Schema + 24, // 97: vtadmin.VTAdmin.GetBackups:output_type -> vtadmin.GetBackupsResponse + 26, // 98: vtadmin.VTAdmin.GetCellInfos:output_type -> vtadmin.GetCellInfosResponse + 28, // 99: vtadmin.VTAdmin.GetCellsAliases:output_type -> vtadmin.GetCellsAliasesResponse + 30, // 100: vtadmin.VTAdmin.GetClusters:output_type -> vtadmin.GetClustersResponse + 32, // 101: vtadmin.VTAdmin.GetGates:output_type -> vtadmin.GetGatesResponse + 7, // 102: vtadmin.VTAdmin.GetKeyspace:output_type -> vtadmin.Keyspace + 35, // 103: vtadmin.VTAdmin.GetKeyspaces:output_type -> vtadmin.GetKeyspacesResponse + 8, // 104: vtadmin.VTAdmin.GetSchema:output_type -> vtadmin.Schema + 38, // 105: vtadmin.VTAdmin.GetSchemas:output_type -> vtadmin.GetSchemasResponse + 40, // 106: vtadmin.VTAdmin.GetShardReplicationPositions:output_type -> vtadmin.GetShardReplicationPositionsResponse + 9, // 107: vtadmin.VTAdmin.GetSrvVSchema:output_type -> vtadmin.SrvVSchema + 43, // 108: vtadmin.VTAdmin.GetSrvVSchemas:output_type -> vtadmin.GetSrvVSchemasResponse + 10, // 109: vtadmin.VTAdmin.GetTablet:output_type -> vtadmin.Tablet + 47, // 110: vtadmin.VTAdmin.GetTablets:output_type -> vtadmin.GetTabletsResponse + 11, // 111: vtadmin.VTAdmin.GetVSchema:output_type -> vtadmin.VSchema + 50, // 112: vtadmin.VTAdmin.GetVSchemas:output_type -> vtadmin.GetVSchemasResponse + 52, // 113: vtadmin.VTAdmin.GetVtctlds:output_type -> vtadmin.GetVtctldsResponse + 14, // 114: vtadmin.VTAdmin.GetWorkflow:output_type -> vtadmin.Workflow + 55, // 115: vtadmin.VTAdmin.GetWorkflows:output_type -> vtadmin.GetWorkflowsResponse + 57, // 116: vtadmin.VTAdmin.PingTablet:output_type -> vtadmin.PingTabletResponse + 59, // 117: vtadmin.VTAdmin.RefreshState:output_type -> vtadmin.RefreshStateResponse + 61, // 118: vtadmin.VTAdmin.ReparentTablet:output_type -> vtadmin.ReparentTabletResponse + 63, // 119: vtadmin.VTAdmin.RunHealthCheck:output_type -> vtadmin.RunHealthCheckResponse + 65, // 120: vtadmin.VTAdmin.SetReadOnly:output_type -> vtadmin.SetReadOnlyResponse + 67, // 121: vtadmin.VTAdmin.SetReadWrite:output_type -> vtadmin.SetReadWriteResponse + 69, // 122: vtadmin.VTAdmin.StartReplication:output_type -> vtadmin.StartReplicationResponse + 71, // 123: vtadmin.VTAdmin.StopReplication:output_type -> vtadmin.StopReplicationResponse + 103, // 124: vtadmin.VTAdmin.ValidateKeyspace:output_type -> vtctldata.ValidateKeyspaceResponse + 104, // 125: vtadmin.VTAdmin.ValidateSchemaKeyspace:output_type -> vtctldata.ValidateSchemaKeyspaceResponse + 105, // 126: vtadmin.VTAdmin.ValidateVersionKeyspace:output_type -> vtctldata.ValidateVersionKeyspaceResponse + 76, // 127: vtadmin.VTAdmin.VTExplain:output_type -> vtadmin.VTExplainResponse + 91, // [91:128] is the sub-list for method output_type + 54, // [54:91] is the sub-list for method input_type + 54, // [54:54] is the sub-list for extension type_name + 54, // [54:54] is the sub-list for extension extendee + 0, // [0:54] is the sub-list for field type_name } func init() { file_vtadmin_proto_init() } @@ -5016,7 +5422,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClusterShardReplicationPosition); i { + switch v := v.(*ClusterCellsAliases); i { case 0: return &v.state case 1: @@ -5028,7 +5434,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClusterWorkflows); i { + switch v := v.(*ClusterCellInfo); i { case 0: return &v.state case 1: @@ -5040,7 +5446,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Keyspace); i { + switch v := v.(*ClusterShardReplicationPosition); i { case 0: return &v.state case 1: @@ -5052,7 +5458,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Schema); i { + switch v := v.(*ClusterWorkflows); i { case 0: return &v.state case 1: @@ -5064,7 +5470,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SrvVSchema); i { + switch v := v.(*Keyspace); i { case 0: return &v.state case 1: @@ -5076,7 +5482,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Tablet); i { + switch v := v.(*Schema); i { case 0: return &v.state case 1: @@ -5088,7 +5494,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VSchema); i { + switch v := v.(*SrvVSchema); i { case 0: return &v.state case 1: @@ -5100,7 +5506,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Vtctld); i { + switch v := v.(*Tablet); i { case 0: return &v.state case 1: @@ -5112,7 +5518,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VTGate); i { + switch v := v.(*VSchema); i { case 0: return &v.state case 1: @@ -5124,7 +5530,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Workflow); i { + switch v := v.(*Vtctld); i { case 0: return &v.state case 1: @@ -5136,7 +5542,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateKeyspaceRequest); i { + switch v := v.(*VTGate); i { case 0: return &v.state case 1: @@ -5148,7 +5554,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateKeyspaceResponse); i { + switch v := v.(*Workflow); i { case 0: return &v.state case 1: @@ -5160,7 +5566,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateShardRequest); i { + switch v := v.(*CreateKeyspaceRequest); i { case 0: return &v.state case 1: @@ -5172,7 +5578,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteKeyspaceRequest); i { + switch v := v.(*CreateKeyspaceResponse); i { case 0: return &v.state case 1: @@ -5184,7 +5590,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteShardsRequest); i { + switch v := v.(*CreateShardRequest); i { case 0: return &v.state case 1: @@ -5196,7 +5602,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteTabletRequest); i { + switch v := v.(*DeleteKeyspaceRequest); i { case 0: return &v.state case 1: @@ -5208,7 +5614,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteTabletResponse); i { + switch v := v.(*DeleteShardsRequest); i { case 0: return &v.state case 1: @@ -5220,7 +5626,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindSchemaRequest); i { + switch v := v.(*DeleteTabletRequest); i { case 0: return &v.state case 1: @@ -5232,7 +5638,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBackupsRequest); i { + switch v := v.(*DeleteTabletResponse); i { case 0: return &v.state case 1: @@ -5244,7 +5650,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBackupsResponse); i { + switch v := v.(*FindSchemaRequest); i { case 0: return &v.state case 1: @@ -5256,7 +5662,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetClustersRequest); i { + switch v := v.(*GetBackupsRequest); i { case 0: return &v.state case 1: @@ -5268,7 +5674,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetClustersResponse); i { + switch v := v.(*GetBackupsResponse); i { case 0: return &v.state case 1: @@ -5280,7 +5686,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetGatesRequest); i { + switch v := v.(*GetCellInfosRequest); i { case 0: return &v.state case 1: @@ -5292,7 +5698,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetGatesResponse); i { + switch v := v.(*GetCellInfosResponse); i { case 0: return &v.state case 1: @@ -5304,7 +5710,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetKeyspaceRequest); i { + switch v := v.(*GetCellsAliasesRequest); i { case 0: return &v.state case 1: @@ -5316,7 +5722,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetKeyspacesRequest); i { + switch v := v.(*GetCellsAliasesResponse); i { case 0: return &v.state case 1: @@ -5328,7 +5734,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetKeyspacesResponse); i { + switch v := v.(*GetClustersRequest); i { case 0: return &v.state case 1: @@ -5340,7 +5746,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetSchemaRequest); i { + switch v := v.(*GetClustersResponse); i { case 0: return &v.state case 1: @@ -5352,7 +5758,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetSchemasRequest); i { + switch v := v.(*GetGatesRequest); i { case 0: return &v.state case 1: @@ -5364,7 +5770,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetSchemasResponse); i { + switch v := v.(*GetGatesResponse); i { case 0: return &v.state case 1: @@ -5376,7 +5782,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetShardReplicationPositionsRequest); i { + switch v := v.(*GetKeyspaceRequest); i { case 0: return &v.state case 1: @@ -5388,7 +5794,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetShardReplicationPositionsResponse); i { + switch v := v.(*GetKeyspacesRequest); i { case 0: return &v.state case 1: @@ -5400,7 +5806,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetSrvVSchemaRequest); i { + switch v := v.(*GetKeyspacesResponse); i { case 0: return &v.state case 1: @@ -5412,7 +5818,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetSrvVSchemasRequest); i { + switch v := v.(*GetSchemaRequest); i { case 0: return &v.state case 1: @@ -5424,7 +5830,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetSrvVSchemasResponse); i { + switch v := v.(*GetSchemasRequest); i { case 0: return &v.state case 1: @@ -5436,7 +5842,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetSchemaTableSizeOptions); i { + switch v := v.(*GetSchemasResponse); i { case 0: return &v.state case 1: @@ -5448,7 +5854,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTabletRequest); i { + switch v := v.(*GetShardReplicationPositionsRequest); i { case 0: return &v.state case 1: @@ -5460,7 +5866,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTabletsRequest); i { + switch v := v.(*GetShardReplicationPositionsResponse); i { case 0: return &v.state case 1: @@ -5472,7 +5878,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTabletsResponse); i { + switch v := v.(*GetSrvVSchemaRequest); i { case 0: return &v.state case 1: @@ -5484,7 +5890,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetVSchemaRequest); i { + switch v := v.(*GetSrvVSchemasRequest); i { case 0: return &v.state case 1: @@ -5496,7 +5902,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetVSchemasRequest); i { + switch v := v.(*GetSrvVSchemasResponse); i { case 0: return &v.state case 1: @@ -5508,7 +5914,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetVSchemasResponse); i { + switch v := v.(*GetSchemaTableSizeOptions); i { case 0: return &v.state case 1: @@ -5520,7 +5926,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetVtctldsRequest); i { + switch v := v.(*GetTabletRequest); i { case 0: return &v.state case 1: @@ -5532,7 +5938,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetVtctldsResponse); i { + switch v := v.(*GetTabletsRequest); i { case 0: return &v.state case 1: @@ -5544,7 +5950,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetWorkflowRequest); i { + switch v := v.(*GetTabletsResponse); i { case 0: return &v.state case 1: @@ -5556,7 +5962,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetWorkflowsRequest); i { + switch v := v.(*GetVSchemaRequest); i { case 0: return &v.state case 1: @@ -5568,7 +5974,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetWorkflowsResponse); i { + switch v := v.(*GetVSchemasRequest); i { case 0: return &v.state case 1: @@ -5580,7 +5986,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PingTabletRequest); i { + switch v := v.(*GetVSchemasResponse); i { case 0: return &v.state case 1: @@ -5592,7 +5998,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PingTabletResponse); i { + switch v := v.(*GetVtctldsRequest); i { case 0: return &v.state case 1: @@ -5604,7 +6010,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RefreshStateRequest); i { + switch v := v.(*GetVtctldsResponse); i { case 0: return &v.state case 1: @@ -5616,7 +6022,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RefreshStateResponse); i { + switch v := v.(*GetWorkflowRequest); i { case 0: return &v.state case 1: @@ -5628,7 +6034,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReparentTabletRequest); i { + switch v := v.(*GetWorkflowsRequest); i { case 0: return &v.state case 1: @@ -5640,7 +6046,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReparentTabletResponse); i { + switch v := v.(*GetWorkflowsResponse); i { case 0: return &v.state case 1: @@ -5652,7 +6058,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RunHealthCheckRequest); i { + switch v := v.(*PingTabletRequest); i { case 0: return &v.state case 1: @@ -5664,7 +6070,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RunHealthCheckResponse); i { + switch v := v.(*PingTabletResponse); i { case 0: return &v.state case 1: @@ -5676,7 +6082,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetReadOnlyRequest); i { + switch v := v.(*RefreshStateRequest); i { case 0: return &v.state case 1: @@ -5688,7 +6094,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetReadOnlyResponse); i { + switch v := v.(*RefreshStateResponse); i { case 0: return &v.state case 1: @@ -5700,7 +6106,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetReadWriteRequest); i { + switch v := v.(*ReparentTabletRequest); i { case 0: return &v.state case 1: @@ -5712,7 +6118,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetReadWriteResponse); i { + switch v := v.(*ReparentTabletResponse); i { case 0: return &v.state case 1: @@ -5724,7 +6130,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartReplicationRequest); i { + switch v := v.(*RunHealthCheckRequest); i { case 0: return &v.state case 1: @@ -5736,7 +6142,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartReplicationResponse); i { + switch v := v.(*RunHealthCheckResponse); i { case 0: return &v.state case 1: @@ -5748,7 +6154,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StopReplicationRequest); i { + switch v := v.(*SetReadOnlyRequest); i { case 0: return &v.state case 1: @@ -5760,7 +6166,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StopReplicationResponse); i { + switch v := v.(*SetReadOnlyResponse); i { case 0: return &v.state case 1: @@ -5772,7 +6178,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateKeyspaceRequest); i { + switch v := v.(*SetReadWriteRequest); i { case 0: return &v.state case 1: @@ -5784,7 +6190,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateSchemaKeyspaceRequest); i { + switch v := v.(*SetReadWriteResponse); i { case 0: return &v.state case 1: @@ -5796,7 +6202,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateVersionKeyspaceRequest); i { + switch v := v.(*StartReplicationRequest); i { case 0: return &v.state case 1: @@ -5808,7 +6214,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VTExplainRequest); i { + switch v := v.(*StartReplicationResponse); i { case 0: return &v.state case 1: @@ -5820,7 +6226,31 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VTExplainResponse); i { + switch v := v.(*StopReplicationRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_vtadmin_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StopReplicationResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_vtadmin_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidateKeyspaceRequest); i { case 0: return &v.state case 1: @@ -5832,7 +6262,7 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Schema_ShardTableSize); i { + switch v := v.(*ValidateSchemaKeyspaceRequest); i { case 0: return &v.state case 1: @@ -5844,6 +6274,54 @@ func file_vtadmin_proto_init() { } } file_vtadmin_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidateVersionKeyspaceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_vtadmin_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VTExplainRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_vtadmin_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VTExplainResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_vtadmin_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Schema_ShardTableSize); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_vtadmin_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Schema_TableSize); i { case 0: return &v.state @@ -5862,7 +6340,7 @@ func file_vtadmin_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_vtadmin_proto_rawDesc, NumEnums: 1, - NumMessages: 76, + NumMessages: 83, NumExtensions: 0, NumServices: 1, }, diff --git a/go/vt/proto/vtadmin/vtadmin_grpc.pb.go b/go/vt/proto/vtadmin/vtadmin_grpc.pb.go index 68ef37a346c..48771c23144 100644 --- a/go/vt/proto/vtadmin/vtadmin_grpc.pb.go +++ b/go/vt/proto/vtadmin/vtadmin_grpc.pb.go @@ -42,6 +42,13 @@ type VTAdminClient interface { FindSchema(ctx context.Context, in *FindSchemaRequest, opts ...grpc.CallOption) (*Schema, error) // GetBackups returns backups grouped by cluster. GetBackups(ctx context.Context, in *GetBackupsRequest, opts ...grpc.CallOption) (*GetBackupsResponse, error) + // GetCellInfos returns the CellInfo objects for the specified clusters. + // + // Callers may optionally restrict the set of CellInfos, or restrict the + // response to include only cell names. + GetCellInfos(ctx context.Context, in *GetCellInfosRequest, opts ...grpc.CallOption) (*GetCellInfosResponse, error) + // GetCellsAliases returns the CellsAliases data for the specified clusters. + GetCellsAliases(ctx context.Context, in *GetCellsAliasesRequest, opts ...grpc.CallOption) (*GetCellsAliasesResponse, error) // GetClusters returns all configured clusters. GetClusters(ctx context.Context, in *GetClustersRequest, opts ...grpc.CallOption) (*GetClustersResponse, error) // GetGates returns all gates across all the specified clusters. @@ -176,6 +183,24 @@ func (c *vTAdminClient) GetBackups(ctx context.Context, in *GetBackupsRequest, o return out, nil } +func (c *vTAdminClient) GetCellInfos(ctx context.Context, in *GetCellInfosRequest, opts ...grpc.CallOption) (*GetCellInfosResponse, error) { + out := new(GetCellInfosResponse) + err := c.cc.Invoke(ctx, "/vtadmin.VTAdmin/GetCellInfos", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *vTAdminClient) GetCellsAliases(ctx context.Context, in *GetCellsAliasesRequest, opts ...grpc.CallOption) (*GetCellsAliasesResponse, error) { + out := new(GetCellsAliasesResponse) + err := c.cc.Invoke(ctx, "/vtadmin.VTAdmin/GetCellsAliases", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *vTAdminClient) GetClusters(ctx context.Context, in *GetClustersRequest, opts ...grpc.CallOption) (*GetClustersResponse, error) { out := new(GetClustersResponse) err := c.cc.Invoke(ctx, "/vtadmin.VTAdmin/GetClusters", in, out, opts...) @@ -451,6 +476,13 @@ type VTAdminServer interface { FindSchema(context.Context, *FindSchemaRequest) (*Schema, error) // GetBackups returns backups grouped by cluster. GetBackups(context.Context, *GetBackupsRequest) (*GetBackupsResponse, error) + // GetCellInfos returns the CellInfo objects for the specified clusters. + // + // Callers may optionally restrict the set of CellInfos, or restrict the + // response to include only cell names. + GetCellInfos(context.Context, *GetCellInfosRequest) (*GetCellInfosResponse, error) + // GetCellsAliases returns the CellsAliases data for the specified clusters. + GetCellsAliases(context.Context, *GetCellsAliasesRequest) (*GetCellsAliasesResponse, error) // GetClusters returns all configured clusters. GetClusters(context.Context, *GetClustersRequest) (*GetClustersResponse, error) // GetGates returns all gates across all the specified clusters. @@ -540,6 +572,12 @@ func (UnimplementedVTAdminServer) FindSchema(context.Context, *FindSchemaRequest func (UnimplementedVTAdminServer) GetBackups(context.Context, *GetBackupsRequest) (*GetBackupsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetBackups not implemented") } +func (UnimplementedVTAdminServer) GetCellInfos(context.Context, *GetCellInfosRequest) (*GetCellInfosResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetCellInfos not implemented") +} +func (UnimplementedVTAdminServer) GetCellsAliases(context.Context, *GetCellsAliasesRequest) (*GetCellsAliasesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetCellsAliases not implemented") +} func (UnimplementedVTAdminServer) GetClusters(context.Context, *GetClustersRequest) (*GetClustersResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetClusters not implemented") } @@ -763,6 +801,42 @@ func _VTAdmin_GetBackups_Handler(srv interface{}, ctx context.Context, dec func( return interceptor(ctx, in, info, handler) } +func _VTAdmin_GetCellInfos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetCellInfosRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VTAdminServer).GetCellInfos(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vtadmin.VTAdmin/GetCellInfos", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VTAdminServer).GetCellInfos(ctx, req.(*GetCellInfosRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _VTAdmin_GetCellsAliases_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetCellsAliasesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VTAdminServer).GetCellsAliases(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vtadmin.VTAdmin/GetCellsAliases", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VTAdminServer).GetCellsAliases(ctx, req.(*GetCellsAliasesRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _VTAdmin_GetClusters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetClustersRequest) if err := dec(in); err != nil { @@ -1302,6 +1376,14 @@ var VTAdmin_ServiceDesc = grpc.ServiceDesc{ MethodName: "GetBackups", Handler: _VTAdmin_GetBackups_Handler, }, + { + MethodName: "GetCellInfos", + Handler: _VTAdmin_GetCellInfos_Handler, + }, + { + MethodName: "GetCellsAliases", + Handler: _VTAdmin_GetCellsAliases_Handler, + }, { MethodName: "GetClusters", Handler: _VTAdmin_GetClusters_Handler, diff --git a/go/vt/proto/vtadmin/vtadmin_vtproto.pb.go b/go/vt/proto/vtadmin/vtadmin_vtproto.pb.go index 518a9465df7..f681f055971 100644 --- a/go/vt/proto/vtadmin/vtadmin_vtproto.pb.go +++ b/go/vt/proto/vtadmin/vtadmin_vtproto.pb.go @@ -123,6 +123,131 @@ func (m *ClusterBackup) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *ClusterCellsAliases) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ClusterCellsAliases) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ClusterCellsAliases) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Aliases) > 0 { + for k := range m.Aliases { + v := m.Aliases[k] + baseI := i + size, err := v.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarint(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x12 + } + } + if m.Cluster != nil { + size, err := m.Cluster.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ClusterCellInfo) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ClusterCellInfo) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ClusterCellInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.CellInfo != nil { + size, err := m.CellInfo.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if m.Cluster != nil { + size, err := m.Cluster.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func (m *ClusterShardReplicationPosition) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil @@ -1399,7 +1524,7 @@ func (m *GetBackupsResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *GetClustersRequest) MarshalVT() (dAtA []byte, err error) { +func (m *GetCellInfosRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -1412,12 +1537,12 @@ func (m *GetClustersRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetClustersRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *GetCellInfosRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *GetClustersRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *GetCellInfosRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -1429,10 +1554,38 @@ func (m *GetClustersRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if m.NamesOnly { + i-- + if m.NamesOnly { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.Cells) > 0 { + for iNdEx := len(m.Cells) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Cells[iNdEx]) + copy(dAtA[i:], m.Cells[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.Cells[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.ClusterIds) > 0 { + for iNdEx := len(m.ClusterIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ClusterIds[iNdEx]) + copy(dAtA[i:], m.ClusterIds[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } return len(dAtA) - i, nil } -func (m *GetClustersResponse) MarshalVT() (dAtA []byte, err error) { +func (m *GetCellInfosResponse) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -1445,12 +1598,12 @@ func (m *GetClustersResponse) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetClustersResponse) MarshalToVT(dAtA []byte) (int, error) { +func (m *GetCellInfosResponse) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *GetClustersResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *GetCellInfosResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -1462,9 +1615,9 @@ func (m *GetClustersResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Clusters) > 0 { - for iNdEx := len(m.Clusters) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Clusters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if len(m.CellInfos) > 0 { + for iNdEx := len(m.CellInfos) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.CellInfos[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -1477,7 +1630,7 @@ func (m *GetClustersResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *GetGatesRequest) MarshalVT() (dAtA []byte, err error) { +func (m *GetCellsAliasesRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -1490,12 +1643,12 @@ func (m *GetGatesRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetGatesRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *GetCellsAliasesRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *GetGatesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *GetCellsAliasesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -1519,7 +1672,7 @@ func (m *GetGatesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *GetGatesResponse) MarshalVT() (dAtA []byte, err error) { +func (m *GetCellsAliasesResponse) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -1532,12 +1685,12 @@ func (m *GetGatesResponse) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetGatesResponse) MarshalToVT(dAtA []byte) (int, error) { +func (m *GetCellsAliasesResponse) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *GetGatesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *GetCellsAliasesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -1549,9 +1702,9 @@ func (m *GetGatesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Gates) > 0 { - for iNdEx := len(m.Gates) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Gates[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if len(m.Aliases) > 0 { + for iNdEx := len(m.Aliases) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Aliases[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -1564,7 +1717,7 @@ func (m *GetGatesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *GetKeyspaceRequest) MarshalVT() (dAtA []byte, err error) { +func (m *GetClustersRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -1577,12 +1730,12 @@ func (m *GetKeyspaceRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetKeyspaceRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *GetClustersRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *GetKeyspaceRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *GetClustersRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -1594,24 +1747,55 @@ func (m *GetKeyspaceRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Keyspace) > 0 { - i -= len(m.Keyspace) - copy(dAtA[i:], m.Keyspace) - i = encodeVarint(dAtA, i, uint64(len(m.Keyspace))) - i-- - dAtA[i] = 0x12 + return len(dAtA) - i, nil +} + +func (m *GetClustersResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil } - if len(m.ClusterId) > 0 { - i -= len(m.ClusterId) - copy(dAtA[i:], m.ClusterId) - i = encodeVarint(dAtA, i, uint64(len(m.ClusterId))) - i-- - dAtA[i] = 0xa + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetClustersResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *GetClustersResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Clusters) > 0 { + for iNdEx := len(m.Clusters) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Clusters[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } } return len(dAtA) - i, nil } -func (m *GetKeyspacesRequest) MarshalVT() (dAtA []byte, err error) { +func (m *GetGatesRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -1624,12 +1808,12 @@ func (m *GetKeyspacesRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetKeyspacesRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *GetGatesRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *GetKeyspacesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *GetGatesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -1653,7 +1837,7 @@ func (m *GetKeyspacesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *GetKeyspacesResponse) MarshalVT() (dAtA []byte, err error) { +func (m *GetGatesResponse) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -1666,12 +1850,12 @@ func (m *GetKeyspacesResponse) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetKeyspacesResponse) MarshalToVT(dAtA []byte) (int, error) { +func (m *GetGatesResponse) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *GetKeyspacesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *GetGatesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -1683,9 +1867,9 @@ func (m *GetKeyspacesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Keyspaces) > 0 { - for iNdEx := len(m.Keyspaces) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Keyspaces[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if len(m.Gates) > 0 { + for iNdEx := len(m.Gates) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Gates[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -1698,7 +1882,7 @@ func (m *GetKeyspacesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *GetSchemaRequest) MarshalVT() (dAtA []byte, err error) { +func (m *GetKeyspaceRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -1711,12 +1895,12 @@ func (m *GetSchemaRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetSchemaRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *GetKeyspaceRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *GetSchemaRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *GetKeyspaceRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -1728,15 +1912,149 @@ func (m *GetSchemaRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.TableSizeOptions != nil { - size, err := m.TableSizeOptions.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarint(dAtA, i, uint64(size)) + if len(m.Keyspace) > 0 { + i -= len(m.Keyspace) + copy(dAtA[i:], m.Keyspace) + i = encodeVarint(dAtA, i, uint64(len(m.Keyspace))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x12 + } + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetKeyspacesRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetKeyspacesRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *GetKeyspacesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ClusterIds) > 0 { + for iNdEx := len(m.ClusterIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ClusterIds[iNdEx]) + copy(dAtA[i:], m.ClusterIds[iNdEx]) + i = encodeVarint(dAtA, i, uint64(len(m.ClusterIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *GetKeyspacesResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetKeyspacesResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *GetKeyspacesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Keyspaces) > 0 { + for iNdEx := len(m.Keyspaces) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Keyspaces[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *GetSchemaRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetSchemaRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *GetSchemaRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.TableSizeOptions != nil { + size, err := m.TableSizeOptions.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 } if len(m.Table) > 0 { i -= len(m.Table) @@ -3714,6 +4032,59 @@ func (m *ClusterBackup) SizeVT() (n int) { return n } +func (m *ClusterCellsAliases) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Cluster != nil { + l = m.Cluster.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if len(m.Aliases) > 0 { + for k, v := range m.Aliases { + _ = k + _ = v + l = 0 + if v != nil { + l = v.SizeVT() + } + l += 1 + sov(uint64(l)) + mapEntrySize := 1 + len(k) + sov(uint64(len(k))) + l + n += mapEntrySize + 1 + sov(uint64(mapEntrySize)) + } + } + if m.unknownFields != nil { + n += len(m.unknownFields) + } + return n +} + +func (m *ClusterCellInfo) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Cluster != nil { + l = m.Cluster.SizeVT() + n += 1 + l + sov(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sov(uint64(l)) + } + if m.CellInfo != nil { + l = m.CellInfo.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if m.unknownFields != nil { + n += len(m.unknownFields) + } + return n +} + func (m *ClusterShardReplicationPosition) SizeVT() (n int) { if m == nil { return 0 @@ -4260,6 +4631,87 @@ func (m *GetBackupsResponse) SizeVT() (n int) { return n } +func (m *GetCellInfosRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ClusterIds) > 0 { + for _, s := range m.ClusterIds { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if len(m.Cells) > 0 { + for _, s := range m.Cells { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if m.NamesOnly { + n += 2 + } + if m.unknownFields != nil { + n += len(m.unknownFields) + } + return n +} + +func (m *GetCellInfosResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.CellInfos) > 0 { + for _, e := range m.CellInfos { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if m.unknownFields != nil { + n += len(m.unknownFields) + } + return n +} + +func (m *GetCellsAliasesRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ClusterIds) > 0 { + for _, s := range m.ClusterIds { + l = len(s) + n += 1 + l + sov(uint64(l)) + } + } + if m.unknownFields != nil { + n += len(m.unknownFields) + } + return n +} + +func (m *GetCellsAliasesResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Aliases) > 0 { + for _, e := range m.Aliases { + l = e.SizeVT() + n += 1 + l + sov(uint64(l)) + } + } + if m.unknownFields != nil { + n += len(m.unknownFields) + } + return n +} + func (m *GetClustersRequest) SizeVT() (n int) { if m == nil { return 0 @@ -5464,6 +5916,377 @@ func (m *ClusterBackup) UnmarshalVT(dAtA []byte) error { } return nil } +func (m *ClusterCellsAliases) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ClusterCellsAliases: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ClusterCellsAliases: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Cluster == nil { + m.Cluster = &Cluster{} + } + if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Aliases", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Aliases == nil { + m.Aliases = make(map[string]*topodata.CellsAlias) + } + var mapkey string + var mapvalue *topodata.CellsAlias + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLength + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return ErrInvalidLength + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &topodata.CellsAlias{} + if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Aliases[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ClusterCellInfo) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ClusterCellInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ClusterCellInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Cluster == nil { + m.Cluster = &Cluster{} + } + if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CellInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CellInfo == nil { + m.CellInfo = &topodata.CellInfo{} + } + if err := m.CellInfo.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *ClusterShardReplicationPosition) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -7103,28 +7926,243 @@ func (m *Vtctld) UnmarshalVT(dAtA []byte) error { if shift >= 64 { return ErrIntOverflow } - if iNdEx >= l { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Vtctld: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Vtctld: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Hostname = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Cluster == nil { + m.Cluster = &Cluster{} + } + if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FQDN", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FQDN = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VTGate) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VTGate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VTGate: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Hostname = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pool", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Vtctld: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Vtctld: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + m.Pool = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cell", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7152,9 +8190,9 @@ func (m *Vtctld) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Hostname = string(dAtA[iNdEx:postIndex]) + m.Cell = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) } @@ -7190,7 +8228,39 @@ func (m *Vtctld) UnmarshalVT(dAtA []byte) error { return err } iNdEx = postIndex - case 3: + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Keyspaces", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Keyspaces = append(m.Keyspaces, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field FQDN", wireType) } @@ -7244,7 +8314,7 @@ func (m *Vtctld) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *VTGate) UnmarshalVT(dAtA []byte) error { +func (m *Workflow) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7267,17 +8337,17 @@ func (m *VTGate) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: VTGate: wiretype end group for non-group") + return fmt.Errorf("proto: Workflow: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: VTGate: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Workflow: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflow @@ -7287,27 +8357,31 @@ func (m *VTGate) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Hostname = string(dAtA[iNdEx:postIndex]) + if m.Cluster == nil { + m.Cluster = &Cluster{} + } + if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pool", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7335,13 +8409,13 @@ func (m *VTGate) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Pool = string(dAtA[iNdEx:postIndex]) + m.Keyspace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cell", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflow @@ -7351,63 +8425,82 @@ func (m *VTGate) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Cell = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) + if m.Workflow == nil { + m.Workflow = &vtctldata.Workflow{} } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } + if err := m.Workflow.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - if msglen < 0 { - return ErrInvalidLength + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - if m.Cluster == nil { - m.Cluster = &Cluster{} + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateKeyspaceRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow } - if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + if iNdEx >= l { + return io.ErrUnexpectedEOF } - iNdEx = postIndex - case 5: + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateKeyspaceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspaces", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7435,13 +8528,13 @@ func (m *VTGate) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspaces = append(m.Keyspaces, string(dAtA[iNdEx:postIndex])) + m.ClusterId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 6: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FQDN", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflow @@ -7451,23 +8544,27 @@ func (m *VTGate) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.FQDN = string(dAtA[iNdEx:postIndex]) + if m.Options == nil { + m.Options = &vtctldata.CreateKeyspaceRequest{} + } + if err := m.Options.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -7491,7 +8588,7 @@ func (m *VTGate) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *Workflow) UnmarshalVT(dAtA []byte) error { +func (m *CreateKeyspaceResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7514,15 +8611,15 @@ func (m *Workflow) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Workflow: wiretype end group for non-group") + return fmt.Errorf("proto: CreateKeyspaceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Workflow: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CreateKeyspaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -7549,16 +8646,67 @@ func (m *Workflow) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Cluster == nil { - m.Cluster = &Cluster{} + if m.Keyspace == nil { + m.Keyspace = &Keyspace{} } - if err := m.Cluster.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Keyspace.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { return err } - iNdEx = postIndex - case 2: + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateShardRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateShardRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7586,11 +8734,11 @@ func (m *Workflow) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyspace = string(dAtA[iNdEx:postIndex]) + m.ClusterId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Workflow", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -7617,10 +8765,10 @@ func (m *Workflow) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Workflow == nil { - m.Workflow = &vtctldata.Workflow{} + if m.Options == nil { + m.Options = &vtctldata.CreateShardRequest{} } - if err := m.Workflow.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Options.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -7646,7 +8794,7 @@ func (m *Workflow) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *CreateKeyspaceRequest) UnmarshalVT(dAtA []byte) error { +func (m *DeleteKeyspaceRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7669,10 +8817,10 @@ func (m *CreateKeyspaceRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CreateKeyspaceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: DeleteKeyspaceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CreateKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DeleteKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7737,7 +8885,7 @@ func (m *CreateKeyspaceRequest) UnmarshalVT(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Options == nil { - m.Options = &vtctldata.CreateKeyspaceRequest{} + m.Options = &vtctldata.DeleteKeyspaceRequest{} } if err := m.Options.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err @@ -7765,7 +8913,7 @@ func (m *CreateKeyspaceRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *CreateKeyspaceResponse) UnmarshalVT(dAtA []byte) error { +func (m *DeleteShardsRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7788,15 +8936,47 @@ func (m *CreateKeyspaceResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CreateKeyspaceResponse: wiretype end group for non-group") + return fmt.Errorf("proto: DeleteShardsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CreateKeyspaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DeleteShardsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -7823,10 +9003,10 @@ func (m *CreateKeyspaceResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Keyspace == nil { - m.Keyspace = &Keyspace{} + if m.Options == nil { + m.Options = &vtctldata.DeleteShardsRequest{} } - if err := m.Keyspace.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Options.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -7852,7 +9032,7 @@ func (m *CreateKeyspaceResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *CreateShardRequest) UnmarshalVT(dAtA []byte) error { +func (m *DeleteTabletRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7875,15 +9055,15 @@ func (m *CreateShardRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CreateShardRequest: wiretype end group for non-group") + return fmt.Errorf("proto: DeleteTabletRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CreateShardRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DeleteTabletRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7911,13 +9091,13 @@ func (m *CreateShardRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) + m.Alias = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflow @@ -7927,27 +9107,23 @@ func (m *CreateShardRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Options == nil { - m.Options = &vtctldata.CreateShardRequest{} - } - if err := m.Options.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -7971,7 +9147,7 @@ func (m *CreateShardRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *DeleteKeyspaceRequest) UnmarshalVT(dAtA []byte) error { +func (m *DeleteTabletResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7994,15 +9170,15 @@ func (m *DeleteKeyspaceRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DeleteKeyspaceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: DeleteTabletResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteKeyspaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DeleteTabletResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8030,43 +9206,7 @@ func (m *DeleteKeyspaceRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Options == nil { - m.Options = &vtctldata.DeleteKeyspaceRequest{} - } - if err := m.Options.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Status = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -8090,7 +9230,7 @@ func (m *DeleteKeyspaceRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *DeleteShardsRequest) UnmarshalVT(dAtA []byte) error { +func (m *FindSchemaRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8113,15 +9253,15 @@ func (m *DeleteShardsRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DeleteShardsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: FindSchemaRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteShardsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: FindSchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Table", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8149,11 +9289,43 @@ func (m *DeleteShardsRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterId = string(dAtA[iNdEx:postIndex]) + m.Table = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TableSizeOptions", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8180,10 +9352,10 @@ func (m *DeleteShardsRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Options == nil { - m.Options = &vtctldata.DeleteShardsRequest{} + if m.TableSizeOptions == nil { + m.TableSizeOptions = &GetSchemaTableSizeOptions{} } - if err := m.Options.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.TableSizeOptions.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -8209,7 +9381,7 @@ func (m *DeleteShardsRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *DeleteTabletRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetBackupsRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8222,25 +9394,57 @@ func (m *DeleteTabletRequest) UnmarshalVT(dAtA []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetBackupsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetBackupsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeleteTabletRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteTabletRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyspaces", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8268,11 +9472,11 @@ func (m *DeleteTabletRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Alias = string(dAtA[iNdEx:postIndex]) + m.Keyspaces = append(m.Keyspaces, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 2: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceShards", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8300,7 +9504,43 @@ func (m *DeleteTabletRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) + m.KeyspaceShards = append(m.KeyspaceShards, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestOptions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RequestOptions == nil { + m.RequestOptions = &vtctldata.GetBackupsRequest{} + } + if err := m.RequestOptions.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -8324,7 +9564,7 @@ func (m *DeleteTabletRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *DeleteTabletResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetBackupsResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8347,17 +9587,17 @@ func (m *DeleteTabletResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DeleteTabletResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetBackupsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteTabletResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetBackupsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Backups", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflow @@ -8367,23 +9607,25 @@ func (m *DeleteTabletResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Status = string(dAtA[iNdEx:postIndex]) + m.Backups = append(m.Backups, &ClusterBackup{}) + if err := m.Backups[len(m.Backups)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -8407,7 +9649,7 @@ func (m *DeleteTabletResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *FindSchemaRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetCellInfosRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8430,15 +9672,15 @@ func (m *FindSchemaRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: FindSchemaRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetCellInfosRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: FindSchemaRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetCellInfosRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Table", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8466,11 +9708,11 @@ func (m *FindSchemaRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Table = string(dAtA[iNdEx:postIndex]) + m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cells", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8498,13 +9740,13 @@ func (m *FindSchemaRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) + m.Cells = append(m.Cells, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TableSizeOptions", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NamesOnly", wireType) } - var msglen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflow @@ -8514,28 +9756,12 @@ func (m *FindSchemaRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TableSizeOptions == nil { - m.TableSizeOptions = &GetSchemaTableSizeOptions{} - } - if err := m.TableSizeOptions.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex + m.NamesOnly = bool(v != 0) default: iNdEx = preIndex skippy, err := skip(dAtA[iNdEx:]) @@ -8558,7 +9784,7 @@ func (m *FindSchemaRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetBackupsRequest) UnmarshalVT(dAtA []byte) error { +func (m *GetCellInfosResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8581,17 +9807,17 @@ func (m *GetBackupsRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetBackupsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetCellInfosResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetBackupsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetCellInfosResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CellInfos", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflow @@ -8601,59 +9827,80 @@ func (m *GetBackupsRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyspaces", wireType) + m.CellInfos = append(m.CellInfos, &ClusterCellInfo{}) + if err := m.CellInfos[len(m.CellInfos)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err } - intStringLen := int(stringLen) - if intStringLen < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLength } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLength + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - if postIndex > l { + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetCellsAliasesRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { return io.ErrUnexpectedEOF } - m.Keyspaces = append(m.Keyspaces, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetCellsAliasesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetCellsAliasesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceShards", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIds", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8681,43 +9928,7 @@ func (m *GetBackupsRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.KeyspaceShards = append(m.KeyspaceShards, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RequestOptions == nil { - m.RequestOptions = &vtctldata.GetBackupsRequest{} - } - if err := m.RequestOptions.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.ClusterIds = append(m.ClusterIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -8741,7 +9952,7 @@ func (m *GetBackupsRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetBackupsResponse) UnmarshalVT(dAtA []byte) error { +func (m *GetCellsAliasesResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8764,15 +9975,15 @@ func (m *GetBackupsResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetBackupsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetCellsAliasesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetBackupsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetCellsAliasesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Backups", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Aliases", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8799,8 +10010,8 @@ func (m *GetBackupsResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Backups = append(m.Backups, &ClusterBackup{}) - if err := m.Backups[len(m.Backups)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.Aliases = append(m.Aliases, &ClusterCellsAliases{}) + if err := m.Aliases[len(m.Aliases)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/go/vt/vtadmin/api.go b/go/vt/vtadmin/api.go index e35e47e3921..875787e34c7 100644 --- a/go/vt/vtadmin/api.go +++ b/go/vt/vtadmin/api.go @@ -310,6 +310,8 @@ func (api *API) Handler() http.Handler { httpAPI := vtadminhttp.NewAPI(api, api.options.HTTPOpts) router.HandleFunc("/backups", httpAPI.Adapt(vtadminhttp.GetBackups)).Name("API.GetBackups") + router.HandleFunc("/cells", httpAPI.Adapt(vtadminhttp.GetCellInfos)).Name("API.GetCellInfos") + router.HandleFunc("/cells_aliases", httpAPI.Adapt(vtadminhttp.GetCellsAliases)).Name("API.GetCellsAliases") router.HandleFunc("/clusters", httpAPI.Adapt(vtadminhttp.GetClusters)).Name("API.GetClusters") router.HandleFunc("/gates", httpAPI.Adapt(vtadminhttp.GetGates)).Name("API.GetGates") router.HandleFunc("/keyspace/{cluster_id}", httpAPI.Adapt(vtadminhttp.CreateKeyspace)).Name("API.CreateKeyspace").Methods("POST") @@ -573,6 +575,96 @@ func (api *API) GetBackups(ctx context.Context, req *vtadminpb.GetBackupsRequest }, nil } +// GetCellInfos is part of the vtadminpb.VTAdminServer interface. +func (api *API) GetCellInfos(ctx context.Context, req *vtadminpb.GetCellInfosRequest) (*vtadminpb.GetCellInfosResponse, error) { + span, ctx := trace.NewSpan(ctx, "API.GetCellInfos") + defer span.Finish() + + clusters, _ := api.getClustersForRequest(req.ClusterIds) + + var ( + m sync.Mutex + wg sync.WaitGroup + rec concurrency.AllErrorRecorder + cellInfos []*vtadminpb.ClusterCellInfo + ) + + for _, c := range clusters { + if !api.authz.IsAuthorized(ctx, c.ID, rbac.CellInfoResource, rbac.GetAction) { + continue + } + + wg.Add(1) + go func(c *cluster.Cluster) { + defer wg.Done() + + clusterCellInfos, err := c.GetCellInfos(ctx, req) + if err != nil { + rec.RecordError(fmt.Errorf("failed to GetCellInfos for cluster %s: %w", c.ID, err)) + return + } + + m.Lock() + defer m.Unlock() + cellInfos = append(cellInfos, clusterCellInfos...) + }(c) + } + + wg.Wait() + if rec.HasErrors() { + return nil, rec.Error() + } + + return &vtadminpb.GetCellInfosResponse{ + CellInfos: cellInfos, + }, nil +} + +// GetCellsAliases is part of the vtadminpb.VTAdminServer interface. +func (api *API) GetCellsAliases(ctx context.Context, req *vtadminpb.GetCellsAliasesRequest) (*vtadminpb.GetCellsAliasesResponse, error) { + span, ctx := trace.NewSpan(ctx, "API.GetCellsAliases") + defer span.Finish() + + clusters, _ := api.getClustersForRequest(req.ClusterIds) + + var ( + m sync.Mutex + wg sync.WaitGroup + rec concurrency.AllErrorRecorder + aliases []*vtadminpb.ClusterCellsAliases + ) + + for _, c := range clusters { + if !api.authz.IsAuthorized(ctx, c.ID, rbac.CellsAliasResource, rbac.GetAction) { + continue + } + + wg.Add(1) + go func(c *cluster.Cluster) { + defer wg.Done() + + clusterAliases, err := c.GetCellsAliases(ctx) + if err != nil { + rec.RecordError(fmt.Errorf("failed to GetCellsAliases for cluster %s: %w", c.ID, err)) + return + } + + m.Lock() + defer m.Unlock() + aliases = append(aliases, clusterAliases) + }(c) + } + + wg.Wait() + if rec.HasErrors() { + return nil, rec.Error() + } + + return &vtadminpb.GetCellsAliasesResponse{ + Aliases: aliases, + }, nil +} + // GetClusters is part of the vtadminpb.VTAdminServer interface. func (api *API) GetClusters(ctx context.Context, req *vtadminpb.GetClustersRequest) (*vtadminpb.GetClustersResponse, error) { span, _ := trace.NewSpan(ctx, "API.GetClusters") diff --git a/go/vt/vtadmin/cluster/cluster.go b/go/vt/vtadmin/cluster/cluster.go index 4648ff0324b..73218bdb14a 100644 --- a/go/vt/vtadmin/cluster/cluster.go +++ b/go/vt/vtadmin/cluster/cluster.go @@ -762,6 +762,104 @@ func (c *Cluster) getShardSets(ctx context.Context, keyspaces []string, keyspace return shardsByKeyspace, nil } +// GetCellInfos returns a list of ClusterCellInfo objects for cells in the +// given cluster. +// +// If req.Cells is set, cells are restricted only to cells with those names. +// Note: specifying a cell name that does not exist in the cluster fails the +// overall request. +// +// If req.NamesOnly is set, each ClusterCellInfo will only contain the Cluster +// and Name fields. req.Cells takes precedence over this option. +func (c *Cluster) GetCellInfos(ctx context.Context, req *vtadminpb.GetCellInfosRequest) ([]*vtadminpb.ClusterCellInfo, error) { + span, ctx := trace.NewSpan(ctx, "Cluster.GetCellInfos") + defer span.Finish() + + names := req.Cells + if len(names) == 0 { + resp, err := c.Vtctld.GetCellInfoNames(ctx, &vtctldatapb.GetCellInfoNamesRequest{}) + if err != nil { + return nil, fmt.Errorf("failed to GetCellInfoNames: %w", err) + } + + names = resp.Names + } + + namesOnly := req.NamesOnly + if namesOnly && len(req.Cells) > 0 { + log.Warning("Cluster.GetCellInfos: req.Cells and req.NamesOnly set, ignoring NamesOnly") + namesOnly = false + } + + span.Annotate("names_only", namesOnly) + span.Annotate("cells", req.Cells) // deliberately not the cellnames we (maybe) fetched above + + cpb := c.ToProto() + infos := make([]*vtadminpb.ClusterCellInfo, 0, len(names)) + if namesOnly { + for _, name := range names { + infos = append(infos, &vtadminpb.ClusterCellInfo{ + Cluster: cpb, + Name: name, + }) + } + + return infos, nil + } + + var ( + m sync.Mutex + wg sync.WaitGroup + rec concurrency.AllErrorRecorder + ) + + for _, name := range names { + wg.Add(1) + go func(name string) { + defer wg.Done() + + resp, err := c.Vtctld.GetCellInfo(ctx, &vtctldatapb.GetCellInfoRequest{ + Cell: name, + }) + if err != nil { + rec.RecordError(fmt.Errorf("GetCellInfo(%s) failed: %w", name, err)) + return + } + + m.Lock() + defer m.Unlock() + infos = append(infos, &vtadminpb.ClusterCellInfo{ + Cluster: cpb, + Name: name, + CellInfo: resp.CellInfo, + }) + }(name) + } + + wg.Wait() + if rec.HasErrors() { + return nil, rec.Error() + } + + return infos, nil +} + +// GetCellsAliases returns all CellsAliases in the cluster. +func (c *Cluster) GetCellsAliases(ctx context.Context) (*vtadminpb.ClusterCellsAliases, error) { + span, ctx := trace.NewSpan(ctx, "Cluster.GetCellsAliases") + defer span.Finish() + + resp, err := c.Vtctld.GetCellsAliases(ctx, &vtctldatapb.GetCellsAliasesRequest{}) + if err != nil { + return nil, err + } + + return &vtadminpb.ClusterCellsAliases{ + Cluster: c.ToProto(), + Aliases: resp.Aliases, + }, nil +} + // GetGates returns the list of all VTGates in the cluster. func (c *Cluster) GetGates(ctx context.Context) ([]*vtadminpb.VTGate, error) { // (TODO|@ajm188) Support tags in the vtadmin RPC request and pass them diff --git a/go/vt/vtadmin/cluster/cluster_test.go b/go/vt/vtadmin/cluster/cluster_test.go index c61490f1609..1872098c424 100644 --- a/go/vt/vtadmin/cluster/cluster_test.go +++ b/go/vt/vtadmin/cluster/cluster_test.go @@ -21,6 +21,7 @@ import ( "database/sql" "errors" "fmt" + "sort" "strings" "testing" "time" @@ -1218,6 +1219,367 @@ func TestFindWorkflows(t *testing.T) { } } +func TestGetCellInfos(t *testing.T) { + t.Parallel() + + cpb := &vtadminpb.Cluster{ + Id: "test", + Name: "test", + } + + tests := []struct { + name string + vtctld *fakevtctldclient.VtctldClient + req *vtadminpb.GetCellInfosRequest + expected []*vtadminpb.ClusterCellInfo + shouldErr bool + }{ + { + name: "all cells - ok", + vtctld: &fakevtctldclient.VtctldClient{ + GetCellInfoNamesResults: &struct { + Response *vtctldatapb.GetCellInfoNamesResponse + Error error + }{ + Response: &vtctldatapb.GetCellInfoNamesResponse{ + Names: []string{"c1", "c2"}, + }, + }, + GetCellInfoResults: map[string]struct { + Response *vtctldatapb.GetCellInfoResponse + Error error + }{ + "c1": { + Response: &vtctldatapb.GetCellInfoResponse{ + CellInfo: &topodatapb.CellInfo{ + ServerAddress: "http://cell1", + Root: "/vitess/cell1", + }, + }, + }, + "c2": { + Response: &vtctldatapb.GetCellInfoResponse{ + CellInfo: &topodatapb.CellInfo{ + ServerAddress: "http://cell2", + Root: "/vitess/cell2", + }, + }, + }, + }, + }, + req: &vtadminpb.GetCellInfosRequest{}, + expected: []*vtadminpb.ClusterCellInfo{ + { + Cluster: cpb, + Name: "c1", + CellInfo: &topodatapb.CellInfo{ + ServerAddress: "http://cell1", + Root: "/vitess/cell1", + }, + }, + { + Cluster: cpb, + Name: "c2", + CellInfo: &topodatapb.CellInfo{ + ServerAddress: "http://cell2", + Root: "/vitess/cell2", + }, + }, + }, + }, + { + name: "all cells - names only", + vtctld: &fakevtctldclient.VtctldClient{ + GetCellInfoNamesResults: &struct { + Response *vtctldatapb.GetCellInfoNamesResponse + Error error + }{ + Response: &vtctldatapb.GetCellInfoNamesResponse{ + Names: []string{"c1", "c2"}, + }, + }, + GetCellInfoResults: map[string]struct { + Response *vtctldatapb.GetCellInfoResponse + Error error + }{ + "c1": { + Response: &vtctldatapb.GetCellInfoResponse{ + CellInfo: &topodatapb.CellInfo{ + ServerAddress: "http://cell1", + Root: "/vitess/cell1", + }, + }, + }, + "c2": { + Response: &vtctldatapb.GetCellInfoResponse{ + CellInfo: &topodatapb.CellInfo{ + ServerAddress: "http://cell2", + Root: "/vitess/cell2", + }, + }, + }, + }, + }, + req: &vtadminpb.GetCellInfosRequest{ + NamesOnly: true, + }, + expected: []*vtadminpb.ClusterCellInfo{ + { + Cluster: cpb, + Name: "c1", + }, + { + Cluster: cpb, + Name: "c2", + }, + }, + }, + { + name: "all cells - fail", + vtctld: &fakevtctldclient.VtctldClient{ + GetCellInfoNamesResults: &struct { + Response *vtctldatapb.GetCellInfoNamesResponse + Error error + }{ + Error: fmt.Errorf("getcellinfonames failed"), + }, + }, + req: &vtadminpb.GetCellInfosRequest{}, + shouldErr: true, + }, + { + name: "cells - ok", + vtctld: &fakevtctldclient.VtctldClient{ + GetCellInfoNamesResults: &struct { + Response *vtctldatapb.GetCellInfoNamesResponse + Error error + }{ + Response: &vtctldatapb.GetCellInfoNamesResponse{ + Names: []string{"c1", "c2"}, + }, + }, + GetCellInfoResults: map[string]struct { + Response *vtctldatapb.GetCellInfoResponse + Error error + }{ + "c1": { + Response: &vtctldatapb.GetCellInfoResponse{ + CellInfo: &topodatapb.CellInfo{ + ServerAddress: "http://cell1", + Root: "/vitess/cell1", + }, + }, + }, + "c2": { + Response: &vtctldatapb.GetCellInfoResponse{ + CellInfo: &topodatapb.CellInfo{ + ServerAddress: "http://cell2", + Root: "/vitess/cell2", + }, + }, + }, + }, + }, + req: &vtadminpb.GetCellInfosRequest{ + Cells: []string{"c1"}, + }, + expected: []*vtadminpb.ClusterCellInfo{ + { + Cluster: cpb, + Name: "c1", + CellInfo: &topodatapb.CellInfo{ + ServerAddress: "http://cell1", + Root: "/vitess/cell1", + }, + }, + }, + }, + { + name: "getcellinfo - fail", + vtctld: &fakevtctldclient.VtctldClient{ + GetCellInfoNamesResults: &struct { + Response *vtctldatapb.GetCellInfoNamesResponse + Error error + }{ + Response: &vtctldatapb.GetCellInfoNamesResponse{ + Names: []string{"c1", "c2"}, + }, + }, + GetCellInfoResults: map[string]struct { + Response *vtctldatapb.GetCellInfoResponse + Error error + }{ + "c1": { + Error: fmt.Errorf("GetCellInfo(c1) fail"), + }, + "c2": { + Response: &vtctldatapb.GetCellInfoResponse{ + CellInfo: &topodatapb.CellInfo{ + ServerAddress: "http://cell2", + Root: "/vitess/cell2", + }, + }, + }, + }, + }, + req: &vtadminpb.GetCellInfosRequest{ + Cells: []string{"c1", "c2"}, + }, + shouldErr: true, + }, + { + name: "cells with names only still gives full info", + vtctld: &fakevtctldclient.VtctldClient{ + GetCellInfoNamesResults: &struct { + Response *vtctldatapb.GetCellInfoNamesResponse + Error error + }{ + Response: &vtctldatapb.GetCellInfoNamesResponse{ + Names: []string{"c1", "c2"}, + }, + }, + GetCellInfoResults: map[string]struct { + Response *vtctldatapb.GetCellInfoResponse + Error error + }{ + "c1": { + Response: &vtctldatapb.GetCellInfoResponse{ + CellInfo: &topodatapb.CellInfo{ + ServerAddress: "http://cell1", + Root: "/vitess/cell1", + }, + }, + }, + "c2": { + Response: &vtctldatapb.GetCellInfoResponse{ + CellInfo: &topodatapb.CellInfo{ + ServerAddress: "http://cell2", + Root: "/vitess/cell2", + }, + }, + }, + }, + }, + req: &vtadminpb.GetCellInfosRequest{ + Cells: []string{"c1"}, + NamesOnly: true, + }, + expected: []*vtadminpb.ClusterCellInfo{ + { + Cluster: cpb, + Name: "c1", + CellInfo: &topodatapb.CellInfo{ + ServerAddress: "http://cell1", + Root: "/vitess/cell1", + }, + }, + }, + }, + } + + for _, tt := range tests { + tt := tt + t.Run(tt.name, func(t *testing.T) { + t.Parallel() + + c := testutil.BuildCluster(t, testutil.TestClusterConfig{ + Cluster: cpb, + VtctldClient: tt.vtctld, + }) + cellInfos, err := c.GetCellInfos(context.Background(), tt.req) + if tt.shouldErr { + assert.Error(t, err) + return + } + + require.NoError(t, err) + + sort.Slice(tt.expected, func(i, j int) bool { + return tt.expected[i].Name < tt.expected[j].Name + }) + sort.Slice(cellInfos, func(i, j int) bool { + return cellInfos[i].Name < cellInfos[j].Name + }) + + utils.MustMatch(t, tt.expected, cellInfos) + }) + } +} + +func TestGetCellsAliases(t *testing.T) { + t.Parallel() + + cpb := &vtadminpb.Cluster{ + Id: "test", + Name: "test", + } + + tests := []struct { + name string + vtctld *fakevtctldclient.VtctldClient + expected *vtadminpb.ClusterCellsAliases + shouldErr bool + }{ + { + name: "ok", + vtctld: &fakevtctldclient.VtctldClient{ + GetCellsAliasesResults: &struct { + Response *vtctldatapb.GetCellsAliasesResponse + Error error + }{ + Response: &vtctldatapb.GetCellsAliasesResponse{ + Aliases: map[string]*topodatapb.CellsAlias{ + "a1": { + Cells: []string{"c1", "c2"}, + }, + }, + }, + }, + }, + expected: &vtadminpb.ClusterCellsAliases{ + Cluster: cpb, + Aliases: map[string]*topodatapb.CellsAlias{ + "a1": { + Cells: []string{"c1", "c2"}, + }, + }, + }, + }, + { + name: "error", + vtctld: &fakevtctldclient.VtctldClient{ + GetCellsAliasesResults: &struct { + Response *vtctldatapb.GetCellsAliasesResponse + Error error + }{ + Error: fmt.Errorf("this should fail"), + }, + }, + shouldErr: true, + }, + } + + for _, tt := range tests { + tt := tt + t.Run(tt.name, func(t *testing.T) { + t.Parallel() + + c := testutil.BuildCluster(t, testutil.TestClusterConfig{ + Cluster: cpb, + VtctldClient: tt.vtctld, + }) + cellsAliases, err := c.GetCellsAliases(context.Background()) + if tt.shouldErr { + assert.Error(t, err) + return + } + + require.NoError(t, err) + utils.MustMatch(t, tt.expected, cellsAliases) + }) + } +} + func TestGetSchema(t *testing.T) { t.Parallel() diff --git a/go/vt/vtadmin/http/cells.go b/go/vt/vtadmin/http/cells.go new file mode 100644 index 00000000000..7c0ade5ce2d --- /dev/null +++ b/go/vt/vtadmin/http/cells.go @@ -0,0 +1,49 @@ +/* +Copyright 2022 The Vitess Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package http + +import ( + "context" + + vtadminpb "vitess.io/vitess/go/vt/proto/vtadmin" +) + +// GetCellInfos implements the http wrapper for the +// /cells[?cluster=[&cluster=...]?cell=[&cell=...]&names_only=(true|false)] route. +func GetCellInfos(ctx context.Context, r Request, api *API) *JSONResponse { + namesOnly, err := r.ParseQueryParamAsBool("names_only", false) + if err != nil { + return NewJSONResponse(nil, err) + } + + cellInfos, err := api.server.GetCellInfos(ctx, &vtadminpb.GetCellInfosRequest{ + ClusterIds: r.URL.Query()["cluster"], + Cells: r.URL.Query()["cell"], + NamesOnly: namesOnly, + }) + return NewJSONResponse(cellInfos, err) +} + +// GetCellsAliases implements the http wrapper for the +// /cells_aliases[?cluster=[&cluster=]] route. +func GetCellsAliases(ctx context.Context, r Request, api *API) *JSONResponse { + cellsAliases, err := api.server.GetCellsAliases(ctx, &vtadminpb.GetCellsAliasesRequest{ + ClusterIds: r.URL.Query()["cluster"], + }) + + return NewJSONResponse(cellsAliases, err) +} diff --git a/go/vt/vtadmin/rbac/rbac.go b/go/vt/vtadmin/rbac/rbac.go index aa9e492b37c..3d639e3084a 100644 --- a/go/vt/vtadmin/rbac/rbac.go +++ b/go/vt/vtadmin/rbac/rbac.go @@ -79,11 +79,13 @@ const ( /* generic topo resources */ - KeyspaceResource Resource = "Keyspace" - ShardResource Resource = "Shard" - TabletResource Resource = "Tablet" - VTGateResource Resource = "VTGate" - VtctldResource Resource = "Vtctld" + CellInfoResource Resource = "CellInfo" + CellsAliasResource Resource = "CellsAlias" + KeyspaceResource Resource = "Keyspace" + ShardResource Resource = "Shard" + TabletResource Resource = "Tablet" + VTGateResource Resource = "VTGate" + VtctldResource Resource = "Vtctld" /* vschema resources */ diff --git a/go/vt/vtadmin/vtctldclient/fakevtctldclient/vtctldclient.go b/go/vt/vtadmin/vtctldclient/fakevtctldclient/vtctldclient.go index c767cf797ff..a4a12e4ae84 100644 --- a/go/vt/vtadmin/vtctldclient/fakevtctldclient/vtctldclient.go +++ b/go/vt/vtadmin/vtctldclient/fakevtctldclient/vtctldclient.go @@ -41,6 +41,18 @@ type VtctldClient struct { Response *vtctldatapb.FindAllShardsInKeyspaceResponse Error error } + GetCellInfoNamesResults *struct { + Response *vtctldatapb.GetCellInfoNamesResponse + Error error + } + GetCellInfoResults map[string]struct { + Response *vtctldatapb.GetCellInfoResponse + Error error + } + GetCellsAliasesResults *struct { + Response *vtctldatapb.GetCellsAliasesResponse + Error error + } GetKeyspaceResults map[string]struct { Response *vtctldatapb.GetKeyspaceResponse Error error @@ -129,6 +141,37 @@ func (fake *VtctldClient) GetKeyspace(ctx context.Context, req *vtctldatapb.GetK return nil, fmt.Errorf("%w: no result set for keyspace %s", assert.AnError, req.Keyspace) } +// GetCellInfo is part of the vtctldclient.VtctldClient interface. +func (fake *VtctldClient) GetCellInfo(ctx context.Context, req *vtctldatapb.GetCellInfoRequest, opts ...grpc.CallOption) (*vtctldatapb.GetCellInfoResponse, error) { + if fake.GetCellInfoResults == nil { + return nil, fmt.Errorf("%w: GetCellInfoResults not set on fake vtctldclient", assert.AnError) + } + + if result, ok := fake.GetCellInfoResults[req.Cell]; ok { + return result.Response, result.Error + } + + return nil, fmt.Errorf("%w: GetCellInfoResults no result set for %s", assert.AnError, req.Cell) +} + +// GetCellInfoNames is part of the vtctldclient.VtctldClient interface. +func (fake *VtctldClient) GetCellInfoNames(ctx context.Context, req *vtctldatapb.GetCellInfoNamesRequest, opts ...grpc.CallOption) (*vtctldatapb.GetCellInfoNamesResponse, error) { + if fake.GetCellInfoNamesResults == nil { + return nil, fmt.Errorf("%w: GetCellInfoNames not set of fake vtctldclient", assert.AnError) + } + + return fake.GetCellInfoNamesResults.Response, fake.GetCellInfoNamesResults.Error +} + +// GetCellsAliases is part of the vtctldclient.VtctldClient interface. +func (fake *VtctldClient) GetCellsAliases(ctx context.Context, req *vtctldatapb.GetCellsAliasesRequest, opts ...grpc.CallOption) (*vtctldatapb.GetCellsAliasesResponse, error) { + if fake.GetCellsAliasesResults == nil { + return nil, fmt.Errorf("%w: GetCellsAliases not set of fake vtctldclient", assert.AnError) + } + + return fake.GetCellsAliasesResults.Response, fake.GetCellsAliasesResults.Error +} + // GetKeyspaces is part of the vtctldclient.VtctldClient interface. func (fake *VtctldClient) GetKeyspaces(ctx context.Context, req *vtctldatapb.GetKeyspacesRequest, opts ...grpc.CallOption) (*vtctldatapb.GetKeyspacesResponse, error) { if fake.GetKeyspacesResults.Error != nil { diff --git a/proto/vtadmin.proto b/proto/vtadmin.proto index d465385d1a1..3dfc2dd274c 100644 --- a/proto/vtadmin.proto +++ b/proto/vtadmin.proto @@ -51,6 +51,13 @@ service VTAdmin { rpc FindSchema(FindSchemaRequest) returns (Schema) {}; // GetBackups returns backups grouped by cluster. rpc GetBackups(GetBackupsRequest) returns (GetBackupsResponse) {}; + // GetCellInfos returns the CellInfo objects for the specified clusters. + // + // Callers may optionally restrict the set of CellInfos, or restrict the + // response to include only cell names. + rpc GetCellInfos(GetCellInfosRequest) returns (GetCellInfosResponse) {}; + // GetCellsAliases returns the CellsAliases data for the specified clusters. + rpc GetCellsAliases(GetCellsAliasesRequest) returns (GetCellsAliasesResponse) {}; // GetClusters returns all configured clusters. rpc GetClusters(GetClustersRequest) returns (GetClustersResponse) {}; // GetGates returns all gates across all the specified clusters. @@ -127,6 +134,20 @@ message ClusterBackup { mysqlctl.BackupInfo backup = 2; } +message ClusterCellsAliases { + Cluster cluster = 1; + map aliases = 2; +} + +message ClusterCellInfo { + Cluster cluster = 1; + string name = 2; + // CellInfo contains the data for the cell. + // + // It may be nil if the GetCellsInfosRequest specified NamesOnly. + topodata.CellInfo cell_info = 3; +} + message ClusterShardReplicationPosition { Cluster cluster = 1; string keyspace = 2; @@ -294,6 +315,32 @@ message GetBackupsResponse { repeated ClusterBackup backups = 1; } +message GetCellInfosRequest { + repeated string cluster_ids = 1; + // Cells, if specified, limits the response to include only CellInfo objects + // with those names. If omitted, all CellInfo objects in each cluster are + // returned. + // + // Mutually-exclusive with NamesOnly. If both are set, this field takes + // precedence. + repeated string cells = 2; + // Return only the cell names in each cluster; the actual CellInfo objects + // will be empty. + bool names_only = 3; +} + +message GetCellInfosResponse { + repeated ClusterCellInfo cell_infos = 1; +} + +message GetCellsAliasesRequest { + repeated string cluster_ids = 1; +} + +message GetCellsAliasesResponse { + repeated ClusterCellsAliases aliases = 1; +} + message GetClustersRequest {} message GetClustersResponse { diff --git a/web/vtadmin/src/proto/vtadmin.d.ts b/web/vtadmin/src/proto/vtadmin.d.ts index d331f9eff3c..2868e7d757d 100644 --- a/web/vtadmin/src/proto/vtadmin.d.ts +++ b/web/vtadmin/src/proto/vtadmin.d.ts @@ -120,6 +120,34 @@ export namespace vtadmin { */ public getBackups(request: vtadmin.IGetBackupsRequest): Promise; + /** + * Calls GetCellInfos. + * @param request GetCellInfosRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GetCellInfosResponse + */ + public getCellInfos(request: vtadmin.IGetCellInfosRequest, callback: vtadmin.VTAdmin.GetCellInfosCallback): void; + + /** + * Calls GetCellInfos. + * @param request GetCellInfosRequest message or plain object + * @returns Promise + */ + public getCellInfos(request: vtadmin.IGetCellInfosRequest): Promise; + + /** + * Calls GetCellsAliases. + * @param request GetCellsAliasesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GetCellsAliasesResponse + */ + public getCellsAliases(request: vtadmin.IGetCellsAliasesRequest, callback: vtadmin.VTAdmin.GetCellsAliasesCallback): void; + + /** + * Calls GetCellsAliases. + * @param request GetCellsAliasesRequest message or plain object + * @returns Promise + */ + public getCellsAliases(request: vtadmin.IGetCellsAliasesRequest): Promise; + /** * Calls GetClusters. * @param request GetClustersRequest message or plain object @@ -564,6 +592,20 @@ export namespace vtadmin { */ type GetBackupsCallback = (error: (Error|null), response?: vtadmin.GetBackupsResponse) => void; + /** + * Callback as used by {@link vtadmin.VTAdmin#getCellInfos}. + * @param error Error, if any + * @param [response] GetCellInfosResponse + */ + type GetCellInfosCallback = (error: (Error|null), response?: vtadmin.GetCellInfosResponse) => void; + + /** + * Callback as used by {@link vtadmin.VTAdmin#getCellsAliases}. + * @param error Error, if any + * @param [response] GetCellsAliasesResponse + */ + type GetCellsAliasesCallback = (error: (Error|null), response?: vtadmin.GetCellsAliasesResponse) => void; + /** * Callback as used by {@link vtadmin.VTAdmin#getClusters}. * @param error Error, if any @@ -953,6 +995,204 @@ export namespace vtadmin { public toJSON(): { [k: string]: any }; } + /** Properties of a ClusterCellsAliases. */ + interface IClusterCellsAliases { + + /** ClusterCellsAliases cluster */ + cluster?: (vtadmin.ICluster|null); + + /** ClusterCellsAliases aliases */ + aliases?: ({ [k: string]: topodata.ICellsAlias }|null); + } + + /** Represents a ClusterCellsAliases. */ + class ClusterCellsAliases implements IClusterCellsAliases { + + /** + * Constructs a new ClusterCellsAliases. + * @param [properties] Properties to set + */ + constructor(properties?: vtadmin.IClusterCellsAliases); + + /** ClusterCellsAliases cluster. */ + public cluster?: (vtadmin.ICluster|null); + + /** ClusterCellsAliases aliases. */ + public aliases: { [k: string]: topodata.ICellsAlias }; + + /** + * Creates a new ClusterCellsAliases instance using the specified properties. + * @param [properties] Properties to set + * @returns ClusterCellsAliases instance + */ + public static create(properties?: vtadmin.IClusterCellsAliases): vtadmin.ClusterCellsAliases; + + /** + * Encodes the specified ClusterCellsAliases message. Does not implicitly {@link vtadmin.ClusterCellsAliases.verify|verify} messages. + * @param message ClusterCellsAliases message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtadmin.IClusterCellsAliases, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ClusterCellsAliases message, length delimited. Does not implicitly {@link vtadmin.ClusterCellsAliases.verify|verify} messages. + * @param message ClusterCellsAliases message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtadmin.IClusterCellsAliases, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ClusterCellsAliases message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ClusterCellsAliases + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtadmin.ClusterCellsAliases; + + /** + * Decodes a ClusterCellsAliases message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ClusterCellsAliases + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtadmin.ClusterCellsAliases; + + /** + * Verifies a ClusterCellsAliases message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ClusterCellsAliases message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ClusterCellsAliases + */ + public static fromObject(object: { [k: string]: any }): vtadmin.ClusterCellsAliases; + + /** + * Creates a plain object from a ClusterCellsAliases message. Also converts values to other types if specified. + * @param message ClusterCellsAliases + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtadmin.ClusterCellsAliases, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ClusterCellsAliases to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ClusterCellInfo. */ + interface IClusterCellInfo { + + /** ClusterCellInfo cluster */ + cluster?: (vtadmin.ICluster|null); + + /** ClusterCellInfo name */ + name?: (string|null); + + /** ClusterCellInfo cell_info */ + cell_info?: (topodata.ICellInfo|null); + } + + /** Represents a ClusterCellInfo. */ + class ClusterCellInfo implements IClusterCellInfo { + + /** + * Constructs a new ClusterCellInfo. + * @param [properties] Properties to set + */ + constructor(properties?: vtadmin.IClusterCellInfo); + + /** ClusterCellInfo cluster. */ + public cluster?: (vtadmin.ICluster|null); + + /** ClusterCellInfo name. */ + public name: string; + + /** ClusterCellInfo cell_info. */ + public cell_info?: (topodata.ICellInfo|null); + + /** + * Creates a new ClusterCellInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns ClusterCellInfo instance + */ + public static create(properties?: vtadmin.IClusterCellInfo): vtadmin.ClusterCellInfo; + + /** + * Encodes the specified ClusterCellInfo message. Does not implicitly {@link vtadmin.ClusterCellInfo.verify|verify} messages. + * @param message ClusterCellInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtadmin.IClusterCellInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ClusterCellInfo message, length delimited. Does not implicitly {@link vtadmin.ClusterCellInfo.verify|verify} messages. + * @param message ClusterCellInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtadmin.IClusterCellInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ClusterCellInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ClusterCellInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtadmin.ClusterCellInfo; + + /** + * Decodes a ClusterCellInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ClusterCellInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtadmin.ClusterCellInfo; + + /** + * Verifies a ClusterCellInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ClusterCellInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ClusterCellInfo + */ + public static fromObject(object: { [k: string]: any }): vtadmin.ClusterCellInfo; + + /** + * Creates a plain object from a ClusterCellInfo message. Also converts values to other types if specified. + * @param message ClusterCellInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtadmin.ClusterCellInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ClusterCellInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a ClusterShardReplicationPosition. */ interface IClusterShardReplicationPosition { @@ -3174,6 +3414,378 @@ export namespace vtadmin { public toJSON(): { [k: string]: any }; } + /** Properties of a GetCellInfosRequest. */ + interface IGetCellInfosRequest { + + /** GetCellInfosRequest cluster_ids */ + cluster_ids?: (string[]|null); + + /** GetCellInfosRequest cells */ + cells?: (string[]|null); + + /** GetCellInfosRequest names_only */ + names_only?: (boolean|null); + } + + /** Represents a GetCellInfosRequest. */ + class GetCellInfosRequest implements IGetCellInfosRequest { + + /** + * Constructs a new GetCellInfosRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtadmin.IGetCellInfosRequest); + + /** GetCellInfosRequest cluster_ids. */ + public cluster_ids: string[]; + + /** GetCellInfosRequest cells. */ + public cells: string[]; + + /** GetCellInfosRequest names_only. */ + public names_only: boolean; + + /** + * Creates a new GetCellInfosRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetCellInfosRequest instance + */ + public static create(properties?: vtadmin.IGetCellInfosRequest): vtadmin.GetCellInfosRequest; + + /** + * Encodes the specified GetCellInfosRequest message. Does not implicitly {@link vtadmin.GetCellInfosRequest.verify|verify} messages. + * @param message GetCellInfosRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtadmin.IGetCellInfosRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetCellInfosRequest message, length delimited. Does not implicitly {@link vtadmin.GetCellInfosRequest.verify|verify} messages. + * @param message GetCellInfosRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtadmin.IGetCellInfosRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetCellInfosRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetCellInfosRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtadmin.GetCellInfosRequest; + + /** + * Decodes a GetCellInfosRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetCellInfosRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtadmin.GetCellInfosRequest; + + /** + * Verifies a GetCellInfosRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetCellInfosRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetCellInfosRequest + */ + public static fromObject(object: { [k: string]: any }): vtadmin.GetCellInfosRequest; + + /** + * Creates a plain object from a GetCellInfosRequest message. Also converts values to other types if specified. + * @param message GetCellInfosRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtadmin.GetCellInfosRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetCellInfosRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetCellInfosResponse. */ + interface IGetCellInfosResponse { + + /** GetCellInfosResponse cell_infos */ + cell_infos?: (vtadmin.IClusterCellInfo[]|null); + } + + /** Represents a GetCellInfosResponse. */ + class GetCellInfosResponse implements IGetCellInfosResponse { + + /** + * Constructs a new GetCellInfosResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtadmin.IGetCellInfosResponse); + + /** GetCellInfosResponse cell_infos. */ + public cell_infos: vtadmin.IClusterCellInfo[]; + + /** + * Creates a new GetCellInfosResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetCellInfosResponse instance + */ + public static create(properties?: vtadmin.IGetCellInfosResponse): vtadmin.GetCellInfosResponse; + + /** + * Encodes the specified GetCellInfosResponse message. Does not implicitly {@link vtadmin.GetCellInfosResponse.verify|verify} messages. + * @param message GetCellInfosResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtadmin.IGetCellInfosResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetCellInfosResponse message, length delimited. Does not implicitly {@link vtadmin.GetCellInfosResponse.verify|verify} messages. + * @param message GetCellInfosResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtadmin.IGetCellInfosResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetCellInfosResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetCellInfosResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtadmin.GetCellInfosResponse; + + /** + * Decodes a GetCellInfosResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetCellInfosResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtadmin.GetCellInfosResponse; + + /** + * Verifies a GetCellInfosResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetCellInfosResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetCellInfosResponse + */ + public static fromObject(object: { [k: string]: any }): vtadmin.GetCellInfosResponse; + + /** + * Creates a plain object from a GetCellInfosResponse message. Also converts values to other types if specified. + * @param message GetCellInfosResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtadmin.GetCellInfosResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetCellInfosResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetCellsAliasesRequest. */ + interface IGetCellsAliasesRequest { + + /** GetCellsAliasesRequest cluster_ids */ + cluster_ids?: (string[]|null); + } + + /** Represents a GetCellsAliasesRequest. */ + class GetCellsAliasesRequest implements IGetCellsAliasesRequest { + + /** + * Constructs a new GetCellsAliasesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtadmin.IGetCellsAliasesRequest); + + /** GetCellsAliasesRequest cluster_ids. */ + public cluster_ids: string[]; + + /** + * Creates a new GetCellsAliasesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetCellsAliasesRequest instance + */ + public static create(properties?: vtadmin.IGetCellsAliasesRequest): vtadmin.GetCellsAliasesRequest; + + /** + * Encodes the specified GetCellsAliasesRequest message. Does not implicitly {@link vtadmin.GetCellsAliasesRequest.verify|verify} messages. + * @param message GetCellsAliasesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtadmin.IGetCellsAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetCellsAliasesRequest message, length delimited. Does not implicitly {@link vtadmin.GetCellsAliasesRequest.verify|verify} messages. + * @param message GetCellsAliasesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtadmin.IGetCellsAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetCellsAliasesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetCellsAliasesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtadmin.GetCellsAliasesRequest; + + /** + * Decodes a GetCellsAliasesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetCellsAliasesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtadmin.GetCellsAliasesRequest; + + /** + * Verifies a GetCellsAliasesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetCellsAliasesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetCellsAliasesRequest + */ + public static fromObject(object: { [k: string]: any }): vtadmin.GetCellsAliasesRequest; + + /** + * Creates a plain object from a GetCellsAliasesRequest message. Also converts values to other types if specified. + * @param message GetCellsAliasesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtadmin.GetCellsAliasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetCellsAliasesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetCellsAliasesResponse. */ + interface IGetCellsAliasesResponse { + + /** GetCellsAliasesResponse aliases */ + aliases?: (vtadmin.IClusterCellsAliases[]|null); + } + + /** Represents a GetCellsAliasesResponse. */ + class GetCellsAliasesResponse implements IGetCellsAliasesResponse { + + /** + * Constructs a new GetCellsAliasesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtadmin.IGetCellsAliasesResponse); + + /** GetCellsAliasesResponse aliases. */ + public aliases: vtadmin.IClusterCellsAliases[]; + + /** + * Creates a new GetCellsAliasesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetCellsAliasesResponse instance + */ + public static create(properties?: vtadmin.IGetCellsAliasesResponse): vtadmin.GetCellsAliasesResponse; + + /** + * Encodes the specified GetCellsAliasesResponse message. Does not implicitly {@link vtadmin.GetCellsAliasesResponse.verify|verify} messages. + * @param message GetCellsAliasesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtadmin.IGetCellsAliasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetCellsAliasesResponse message, length delimited. Does not implicitly {@link vtadmin.GetCellsAliasesResponse.verify|verify} messages. + * @param message GetCellsAliasesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtadmin.IGetCellsAliasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetCellsAliasesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetCellsAliasesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtadmin.GetCellsAliasesResponse; + + /** + * Decodes a GetCellsAliasesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetCellsAliasesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtadmin.GetCellsAliasesResponse; + + /** + * Verifies a GetCellsAliasesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetCellsAliasesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetCellsAliasesResponse + */ + public static fromObject(object: { [k: string]: any }): vtadmin.GetCellsAliasesResponse; + + /** + * Creates a plain object from a GetCellsAliasesResponse message. Also converts values to other types if specified. + * @param message GetCellsAliasesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtadmin.GetCellsAliasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetCellsAliasesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a GetClustersRequest. */ interface IGetClustersRequest { } diff --git a/web/vtadmin/src/proto/vtadmin.js b/web/vtadmin/src/proto/vtadmin.js index e7661676c18..3468bf80692 100644 --- a/web/vtadmin/src/proto/vtadmin.js +++ b/web/vtadmin/src/proto/vtadmin.js @@ -281,6 +281,72 @@ $root.vtadmin = (function() { * @variation 2 */ + /** + * Callback as used by {@link vtadmin.VTAdmin#getCellInfos}. + * @memberof vtadmin.VTAdmin + * @typedef GetCellInfosCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {vtadmin.GetCellInfosResponse} [response] GetCellInfosResponse + */ + + /** + * Calls GetCellInfos. + * @function getCellInfos + * @memberof vtadmin.VTAdmin + * @instance + * @param {vtadmin.IGetCellInfosRequest} request GetCellInfosRequest message or plain object + * @param {vtadmin.VTAdmin.GetCellInfosCallback} callback Node-style callback called with the error, if any, and GetCellInfosResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VTAdmin.prototype.getCellInfos = function getCellInfos(request, callback) { + return this.rpcCall(getCellInfos, $root.vtadmin.GetCellInfosRequest, $root.vtadmin.GetCellInfosResponse, request, callback); + }, "name", { value: "GetCellInfos" }); + + /** + * Calls GetCellInfos. + * @function getCellInfos + * @memberof vtadmin.VTAdmin + * @instance + * @param {vtadmin.IGetCellInfosRequest} request GetCellInfosRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link vtadmin.VTAdmin#getCellsAliases}. + * @memberof vtadmin.VTAdmin + * @typedef GetCellsAliasesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {vtadmin.GetCellsAliasesResponse} [response] GetCellsAliasesResponse + */ + + /** + * Calls GetCellsAliases. + * @function getCellsAliases + * @memberof vtadmin.VTAdmin + * @instance + * @param {vtadmin.IGetCellsAliasesRequest} request GetCellsAliasesRequest message or plain object + * @param {vtadmin.VTAdmin.GetCellsAliasesCallback} callback Node-style callback called with the error, if any, and GetCellsAliasesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VTAdmin.prototype.getCellsAliases = function getCellsAliases(request, callback) { + return this.rpcCall(getCellsAliases, $root.vtadmin.GetCellsAliasesRequest, $root.vtadmin.GetCellsAliasesResponse, request, callback); + }, "name", { value: "GetCellsAliases" }); + + /** + * Calls GetCellsAliases. + * @function getCellsAliases + * @memberof vtadmin.VTAdmin + * @instance + * @param {vtadmin.IGetCellsAliasesRequest} request GetCellsAliasesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link vtadmin.VTAdmin#getClusters}. * @memberof vtadmin.VTAdmin @@ -1638,27 +1704,26 @@ $root.vtadmin = (function() { return ClusterBackup; })(); - vtadmin.ClusterShardReplicationPosition = (function() { + vtadmin.ClusterCellsAliases = (function() { /** - * Properties of a ClusterShardReplicationPosition. + * Properties of a ClusterCellsAliases. * @memberof vtadmin - * @interface IClusterShardReplicationPosition - * @property {vtadmin.ICluster|null} [cluster] ClusterShardReplicationPosition cluster - * @property {string|null} [keyspace] ClusterShardReplicationPosition keyspace - * @property {string|null} [shard] ClusterShardReplicationPosition shard - * @property {vtctldata.IShardReplicationPositionsResponse|null} [position_info] ClusterShardReplicationPosition position_info + * @interface IClusterCellsAliases + * @property {vtadmin.ICluster|null} [cluster] ClusterCellsAliases cluster + * @property {Object.|null} [aliases] ClusterCellsAliases aliases */ /** - * Constructs a new ClusterShardReplicationPosition. + * Constructs a new ClusterCellsAliases. * @memberof vtadmin - * @classdesc Represents a ClusterShardReplicationPosition. - * @implements IClusterShardReplicationPosition + * @classdesc Represents a ClusterCellsAliases. + * @implements IClusterCellsAliases * @constructor - * @param {vtadmin.IClusterShardReplicationPosition=} [properties] Properties to set + * @param {vtadmin.IClusterCellsAliases=} [properties] Properties to set */ - function ClusterShardReplicationPosition(properties) { + function ClusterCellsAliases(properties) { + this.aliases = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1666,100 +1731,83 @@ $root.vtadmin = (function() { } /** - * ClusterShardReplicationPosition cluster. + * ClusterCellsAliases cluster. * @member {vtadmin.ICluster|null|undefined} cluster - * @memberof vtadmin.ClusterShardReplicationPosition - * @instance - */ - ClusterShardReplicationPosition.prototype.cluster = null; - - /** - * ClusterShardReplicationPosition keyspace. - * @member {string} keyspace - * @memberof vtadmin.ClusterShardReplicationPosition - * @instance - */ - ClusterShardReplicationPosition.prototype.keyspace = ""; - - /** - * ClusterShardReplicationPosition shard. - * @member {string} shard - * @memberof vtadmin.ClusterShardReplicationPosition + * @memberof vtadmin.ClusterCellsAliases * @instance */ - ClusterShardReplicationPosition.prototype.shard = ""; + ClusterCellsAliases.prototype.cluster = null; /** - * ClusterShardReplicationPosition position_info. - * @member {vtctldata.IShardReplicationPositionsResponse|null|undefined} position_info - * @memberof vtadmin.ClusterShardReplicationPosition + * ClusterCellsAliases aliases. + * @member {Object.} aliases + * @memberof vtadmin.ClusterCellsAliases * @instance */ - ClusterShardReplicationPosition.prototype.position_info = null; + ClusterCellsAliases.prototype.aliases = $util.emptyObject; /** - * Creates a new ClusterShardReplicationPosition instance using the specified properties. + * Creates a new ClusterCellsAliases instance using the specified properties. * @function create - * @memberof vtadmin.ClusterShardReplicationPosition + * @memberof vtadmin.ClusterCellsAliases * @static - * @param {vtadmin.IClusterShardReplicationPosition=} [properties] Properties to set - * @returns {vtadmin.ClusterShardReplicationPosition} ClusterShardReplicationPosition instance + * @param {vtadmin.IClusterCellsAliases=} [properties] Properties to set + * @returns {vtadmin.ClusterCellsAliases} ClusterCellsAliases instance */ - ClusterShardReplicationPosition.create = function create(properties) { - return new ClusterShardReplicationPosition(properties); + ClusterCellsAliases.create = function create(properties) { + return new ClusterCellsAliases(properties); }; /** - * Encodes the specified ClusterShardReplicationPosition message. Does not implicitly {@link vtadmin.ClusterShardReplicationPosition.verify|verify} messages. + * Encodes the specified ClusterCellsAliases message. Does not implicitly {@link vtadmin.ClusterCellsAliases.verify|verify} messages. * @function encode - * @memberof vtadmin.ClusterShardReplicationPosition + * @memberof vtadmin.ClusterCellsAliases * @static - * @param {vtadmin.IClusterShardReplicationPosition} message ClusterShardReplicationPosition message or plain object to encode + * @param {vtadmin.IClusterCellsAliases} message ClusterCellsAliases message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClusterShardReplicationPosition.encode = function encode(message, writer) { + ClusterCellsAliases.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) $root.vtadmin.Cluster.encode(message.cluster, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.keyspace); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.shard); - if (message.position_info != null && Object.hasOwnProperty.call(message, "position_info")) - $root.vtctldata.ShardReplicationPositionsResponse.encode(message.position_info, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.aliases != null && Object.hasOwnProperty.call(message, "aliases")) + for (var keys = Object.keys(message.aliases), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.topodata.CellsAlias.encode(message.aliases[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified ClusterShardReplicationPosition message, length delimited. Does not implicitly {@link vtadmin.ClusterShardReplicationPosition.verify|verify} messages. + * Encodes the specified ClusterCellsAliases message, length delimited. Does not implicitly {@link vtadmin.ClusterCellsAliases.verify|verify} messages. * @function encodeDelimited - * @memberof vtadmin.ClusterShardReplicationPosition + * @memberof vtadmin.ClusterCellsAliases * @static - * @param {vtadmin.IClusterShardReplicationPosition} message ClusterShardReplicationPosition message or plain object to encode + * @param {vtadmin.IClusterCellsAliases} message ClusterCellsAliases message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClusterShardReplicationPosition.encodeDelimited = function encodeDelimited(message, writer) { + ClusterCellsAliases.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ClusterShardReplicationPosition message from the specified reader or buffer. + * Decodes a ClusterCellsAliases message from the specified reader or buffer. * @function decode - * @memberof vtadmin.ClusterShardReplicationPosition + * @memberof vtadmin.ClusterCellsAliases * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtadmin.ClusterShardReplicationPosition} ClusterShardReplicationPosition + * @returns {vtadmin.ClusterCellsAliases} ClusterCellsAliases * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClusterShardReplicationPosition.decode = function decode(reader, length) { + ClusterCellsAliases.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.ClusterShardReplicationPosition(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.ClusterCellsAliases(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -1767,13 +1815,26 @@ $root.vtadmin = (function() { message.cluster = $root.vtadmin.Cluster.decode(reader, reader.uint32()); break; case 2: - message.keyspace = reader.string(); - break; - case 3: - message.shard = reader.string(); - break; - case 4: - message.position_info = $root.vtctldata.ShardReplicationPositionsResponse.decode(reader, reader.uint32()); + if (message.aliases === $util.emptyObject) + message.aliases = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.topodata.CellsAlias.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.aliases[key] = value; break; default: reader.skipType(tag & 7); @@ -1784,30 +1845,30 @@ $root.vtadmin = (function() { }; /** - * Decodes a ClusterShardReplicationPosition message from the specified reader or buffer, length delimited. + * Decodes a ClusterCellsAliases message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtadmin.ClusterShardReplicationPosition + * @memberof vtadmin.ClusterCellsAliases * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtadmin.ClusterShardReplicationPosition} ClusterShardReplicationPosition + * @returns {vtadmin.ClusterCellsAliases} ClusterCellsAliases * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClusterShardReplicationPosition.decodeDelimited = function decodeDelimited(reader) { + ClusterCellsAliases.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ClusterShardReplicationPosition message. + * Verifies a ClusterCellsAliases message. * @function verify - * @memberof vtadmin.ClusterShardReplicationPosition + * @memberof vtadmin.ClusterCellsAliases * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ClusterShardReplicationPosition.verify = function verify(message) { + ClusterCellsAliases.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.cluster != null && message.hasOwnProperty("cluster")) { @@ -1815,114 +1876,111 @@ $root.vtadmin = (function() { if (error) return "cluster." + error; } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.shard != null && message.hasOwnProperty("shard")) - if (!$util.isString(message.shard)) - return "shard: string expected"; - if (message.position_info != null && message.hasOwnProperty("position_info")) { - var error = $root.vtctldata.ShardReplicationPositionsResponse.verify(message.position_info); - if (error) - return "position_info." + error; + if (message.aliases != null && message.hasOwnProperty("aliases")) { + if (!$util.isObject(message.aliases)) + return "aliases: object expected"; + var key = Object.keys(message.aliases); + for (var i = 0; i < key.length; ++i) { + var error = $root.topodata.CellsAlias.verify(message.aliases[key[i]]); + if (error) + return "aliases." + error; + } } return null; }; /** - * Creates a ClusterShardReplicationPosition message from a plain object. Also converts values to their respective internal types. + * Creates a ClusterCellsAliases message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtadmin.ClusterShardReplicationPosition + * @memberof vtadmin.ClusterCellsAliases * @static * @param {Object.} object Plain object - * @returns {vtadmin.ClusterShardReplicationPosition} ClusterShardReplicationPosition + * @returns {vtadmin.ClusterCellsAliases} ClusterCellsAliases */ - ClusterShardReplicationPosition.fromObject = function fromObject(object) { - if (object instanceof $root.vtadmin.ClusterShardReplicationPosition) + ClusterCellsAliases.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.ClusterCellsAliases) return object; - var message = new $root.vtadmin.ClusterShardReplicationPosition(); + var message = new $root.vtadmin.ClusterCellsAliases(); if (object.cluster != null) { if (typeof object.cluster !== "object") - throw TypeError(".vtadmin.ClusterShardReplicationPosition.cluster: object expected"); + throw TypeError(".vtadmin.ClusterCellsAliases.cluster: object expected"); message.cluster = $root.vtadmin.Cluster.fromObject(object.cluster); } - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.position_info != null) { - if (typeof object.position_info !== "object") - throw TypeError(".vtadmin.ClusterShardReplicationPosition.position_info: object expected"); - message.position_info = $root.vtctldata.ShardReplicationPositionsResponse.fromObject(object.position_info); + if (object.aliases) { + if (typeof object.aliases !== "object") + throw TypeError(".vtadmin.ClusterCellsAliases.aliases: object expected"); + message.aliases = {}; + for (var keys = Object.keys(object.aliases), i = 0; i < keys.length; ++i) { + if (typeof object.aliases[keys[i]] !== "object") + throw TypeError(".vtadmin.ClusterCellsAliases.aliases: object expected"); + message.aliases[keys[i]] = $root.topodata.CellsAlias.fromObject(object.aliases[keys[i]]); + } } return message; }; /** - * Creates a plain object from a ClusterShardReplicationPosition message. Also converts values to other types if specified. + * Creates a plain object from a ClusterCellsAliases message. Also converts values to other types if specified. * @function toObject - * @memberof vtadmin.ClusterShardReplicationPosition + * @memberof vtadmin.ClusterCellsAliases * @static - * @param {vtadmin.ClusterShardReplicationPosition} message ClusterShardReplicationPosition + * @param {vtadmin.ClusterCellsAliases} message ClusterCellsAliases * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ClusterShardReplicationPosition.toObject = function toObject(message, options) { + ClusterCellsAliases.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.objects || options.defaults) + object.aliases = {}; + if (options.defaults) object.cluster = null; - object.keyspace = ""; - object.shard = ""; - object.position_info = null; - } if (message.cluster != null && message.hasOwnProperty("cluster")) object.cluster = $root.vtadmin.Cluster.toObject(message.cluster, options); - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.position_info != null && message.hasOwnProperty("position_info")) - object.position_info = $root.vtctldata.ShardReplicationPositionsResponse.toObject(message.position_info, options); + var keys2; + if (message.aliases && (keys2 = Object.keys(message.aliases)).length) { + object.aliases = {}; + for (var j = 0; j < keys2.length; ++j) + object.aliases[keys2[j]] = $root.topodata.CellsAlias.toObject(message.aliases[keys2[j]], options); + } return object; }; /** - * Converts this ClusterShardReplicationPosition to JSON. + * Converts this ClusterCellsAliases to JSON. * @function toJSON - * @memberof vtadmin.ClusterShardReplicationPosition + * @memberof vtadmin.ClusterCellsAliases * @instance * @returns {Object.} JSON object */ - ClusterShardReplicationPosition.prototype.toJSON = function toJSON() { + ClusterCellsAliases.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ClusterShardReplicationPosition; + return ClusterCellsAliases; })(); - vtadmin.ClusterWorkflows = (function() { + vtadmin.ClusterCellInfo = (function() { /** - * Properties of a ClusterWorkflows. + * Properties of a ClusterCellInfo. * @memberof vtadmin - * @interface IClusterWorkflows - * @property {Array.|null} [workflows] ClusterWorkflows workflows - * @property {Array.|null} [warnings] ClusterWorkflows warnings + * @interface IClusterCellInfo + * @property {vtadmin.ICluster|null} [cluster] ClusterCellInfo cluster + * @property {string|null} [name] ClusterCellInfo name + * @property {topodata.ICellInfo|null} [cell_info] ClusterCellInfo cell_info */ /** - * Constructs a new ClusterWorkflows. + * Constructs a new ClusterCellInfo. * @memberof vtadmin - * @classdesc Represents a ClusterWorkflows. - * @implements IClusterWorkflows + * @classdesc Represents a ClusterCellInfo. + * @implements IClusterCellInfo * @constructor - * @param {vtadmin.IClusterWorkflows=} [properties] Properties to set + * @param {vtadmin.IClusterCellInfo=} [properties] Properties to set */ - function ClusterWorkflows(properties) { - this.workflows = []; - this.warnings = []; + function ClusterCellInfo(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1930,94 +1988,101 @@ $root.vtadmin = (function() { } /** - * ClusterWorkflows workflows. - * @member {Array.} workflows - * @memberof vtadmin.ClusterWorkflows + * ClusterCellInfo cluster. + * @member {vtadmin.ICluster|null|undefined} cluster + * @memberof vtadmin.ClusterCellInfo * @instance */ - ClusterWorkflows.prototype.workflows = $util.emptyArray; + ClusterCellInfo.prototype.cluster = null; /** - * ClusterWorkflows warnings. - * @member {Array.} warnings - * @memberof vtadmin.ClusterWorkflows + * ClusterCellInfo name. + * @member {string} name + * @memberof vtadmin.ClusterCellInfo * @instance */ - ClusterWorkflows.prototype.warnings = $util.emptyArray; + ClusterCellInfo.prototype.name = ""; /** - * Creates a new ClusterWorkflows instance using the specified properties. + * ClusterCellInfo cell_info. + * @member {topodata.ICellInfo|null|undefined} cell_info + * @memberof vtadmin.ClusterCellInfo + * @instance + */ + ClusterCellInfo.prototype.cell_info = null; + + /** + * Creates a new ClusterCellInfo instance using the specified properties. * @function create - * @memberof vtadmin.ClusterWorkflows + * @memberof vtadmin.ClusterCellInfo * @static - * @param {vtadmin.IClusterWorkflows=} [properties] Properties to set - * @returns {vtadmin.ClusterWorkflows} ClusterWorkflows instance + * @param {vtadmin.IClusterCellInfo=} [properties] Properties to set + * @returns {vtadmin.ClusterCellInfo} ClusterCellInfo instance */ - ClusterWorkflows.create = function create(properties) { - return new ClusterWorkflows(properties); + ClusterCellInfo.create = function create(properties) { + return new ClusterCellInfo(properties); }; /** - * Encodes the specified ClusterWorkflows message. Does not implicitly {@link vtadmin.ClusterWorkflows.verify|verify} messages. + * Encodes the specified ClusterCellInfo message. Does not implicitly {@link vtadmin.ClusterCellInfo.verify|verify} messages. * @function encode - * @memberof vtadmin.ClusterWorkflows + * @memberof vtadmin.ClusterCellInfo * @static - * @param {vtadmin.IClusterWorkflows} message ClusterWorkflows message or plain object to encode + * @param {vtadmin.IClusterCellInfo} message ClusterCellInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClusterWorkflows.encode = function encode(message, writer) { + ClusterCellInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.workflows != null && message.workflows.length) - for (var i = 0; i < message.workflows.length; ++i) - $root.vtadmin.Workflow.encode(message.workflows[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.warnings != null && message.warnings.length) - for (var i = 0; i < message.warnings.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.warnings[i]); + if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) + $root.vtadmin.Cluster.encode(message.cluster, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + if (message.cell_info != null && Object.hasOwnProperty.call(message, "cell_info")) + $root.topodata.CellInfo.encode(message.cell_info, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ClusterWorkflows message, length delimited. Does not implicitly {@link vtadmin.ClusterWorkflows.verify|verify} messages. + * Encodes the specified ClusterCellInfo message, length delimited. Does not implicitly {@link vtadmin.ClusterCellInfo.verify|verify} messages. * @function encodeDelimited - * @memberof vtadmin.ClusterWorkflows + * @memberof vtadmin.ClusterCellInfo * @static - * @param {vtadmin.IClusterWorkflows} message ClusterWorkflows message or plain object to encode + * @param {vtadmin.IClusterCellInfo} message ClusterCellInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClusterWorkflows.encodeDelimited = function encodeDelimited(message, writer) { + ClusterCellInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ClusterWorkflows message from the specified reader or buffer. + * Decodes a ClusterCellInfo message from the specified reader or buffer. * @function decode - * @memberof vtadmin.ClusterWorkflows + * @memberof vtadmin.ClusterCellInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtadmin.ClusterWorkflows} ClusterWorkflows + * @returns {vtadmin.ClusterCellInfo} ClusterCellInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClusterWorkflows.decode = function decode(reader, length) { + ClusterCellInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.ClusterWorkflows(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.ClusterCellInfo(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.workflows && message.workflows.length)) - message.workflows = []; - message.workflows.push($root.vtadmin.Workflow.decode(reader, reader.uint32())); + message.cluster = $root.vtadmin.Cluster.decode(reader, reader.uint32()); break; case 2: - if (!(message.warnings && message.warnings.length)) - message.warnings = []; - message.warnings.push(reader.string()); + message.name = reader.string(); + break; + case 3: + message.cell_info = $root.topodata.CellInfo.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -2028,148 +2093,137 @@ $root.vtadmin = (function() { }; /** - * Decodes a ClusterWorkflows message from the specified reader or buffer, length delimited. + * Decodes a ClusterCellInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtadmin.ClusterWorkflows + * @memberof vtadmin.ClusterCellInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtadmin.ClusterWorkflows} ClusterWorkflows + * @returns {vtadmin.ClusterCellInfo} ClusterCellInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClusterWorkflows.decodeDelimited = function decodeDelimited(reader) { + ClusterCellInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ClusterWorkflows message. + * Verifies a ClusterCellInfo message. * @function verify - * @memberof vtadmin.ClusterWorkflows + * @memberof vtadmin.ClusterCellInfo * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ClusterWorkflows.verify = function verify(message) { + ClusterCellInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.workflows != null && message.hasOwnProperty("workflows")) { - if (!Array.isArray(message.workflows)) - return "workflows: array expected"; - for (var i = 0; i < message.workflows.length; ++i) { - var error = $root.vtadmin.Workflow.verify(message.workflows[i]); - if (error) - return "workflows." + error; - } + if (message.cluster != null && message.hasOwnProperty("cluster")) { + var error = $root.vtadmin.Cluster.verify(message.cluster); + if (error) + return "cluster." + error; } - if (message.warnings != null && message.hasOwnProperty("warnings")) { - if (!Array.isArray(message.warnings)) - return "warnings: array expected"; - for (var i = 0; i < message.warnings.length; ++i) - if (!$util.isString(message.warnings[i])) - return "warnings: string[] expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.cell_info != null && message.hasOwnProperty("cell_info")) { + var error = $root.topodata.CellInfo.verify(message.cell_info); + if (error) + return "cell_info." + error; } return null; }; /** - * Creates a ClusterWorkflows message from a plain object. Also converts values to their respective internal types. + * Creates a ClusterCellInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtadmin.ClusterWorkflows + * @memberof vtadmin.ClusterCellInfo * @static * @param {Object.} object Plain object - * @returns {vtadmin.ClusterWorkflows} ClusterWorkflows + * @returns {vtadmin.ClusterCellInfo} ClusterCellInfo */ - ClusterWorkflows.fromObject = function fromObject(object) { - if (object instanceof $root.vtadmin.ClusterWorkflows) + ClusterCellInfo.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.ClusterCellInfo) return object; - var message = new $root.vtadmin.ClusterWorkflows(); - if (object.workflows) { - if (!Array.isArray(object.workflows)) - throw TypeError(".vtadmin.ClusterWorkflows.workflows: array expected"); - message.workflows = []; - for (var i = 0; i < object.workflows.length; ++i) { - if (typeof object.workflows[i] !== "object") - throw TypeError(".vtadmin.ClusterWorkflows.workflows: object expected"); - message.workflows[i] = $root.vtadmin.Workflow.fromObject(object.workflows[i]); - } + var message = new $root.vtadmin.ClusterCellInfo(); + if (object.cluster != null) { + if (typeof object.cluster !== "object") + throw TypeError(".vtadmin.ClusterCellInfo.cluster: object expected"); + message.cluster = $root.vtadmin.Cluster.fromObject(object.cluster); } - if (object.warnings) { - if (!Array.isArray(object.warnings)) - throw TypeError(".vtadmin.ClusterWorkflows.warnings: array expected"); - message.warnings = []; - for (var i = 0; i < object.warnings.length; ++i) - message.warnings[i] = String(object.warnings[i]); + if (object.name != null) + message.name = String(object.name); + if (object.cell_info != null) { + if (typeof object.cell_info !== "object") + throw TypeError(".vtadmin.ClusterCellInfo.cell_info: object expected"); + message.cell_info = $root.topodata.CellInfo.fromObject(object.cell_info); } return message; }; /** - * Creates a plain object from a ClusterWorkflows message. Also converts values to other types if specified. + * Creates a plain object from a ClusterCellInfo message. Also converts values to other types if specified. * @function toObject - * @memberof vtadmin.ClusterWorkflows + * @memberof vtadmin.ClusterCellInfo * @static - * @param {vtadmin.ClusterWorkflows} message ClusterWorkflows + * @param {vtadmin.ClusterCellInfo} message ClusterCellInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ClusterWorkflows.toObject = function toObject(message, options) { + ClusterCellInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.workflows = []; - object.warnings = []; - } - if (message.workflows && message.workflows.length) { - object.workflows = []; - for (var j = 0; j < message.workflows.length; ++j) - object.workflows[j] = $root.vtadmin.Workflow.toObject(message.workflows[j], options); - } - if (message.warnings && message.warnings.length) { - object.warnings = []; - for (var j = 0; j < message.warnings.length; ++j) - object.warnings[j] = message.warnings[j]; + if (options.defaults) { + object.cluster = null; + object.name = ""; + object.cell_info = null; } + if (message.cluster != null && message.hasOwnProperty("cluster")) + object.cluster = $root.vtadmin.Cluster.toObject(message.cluster, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.cell_info != null && message.hasOwnProperty("cell_info")) + object.cell_info = $root.topodata.CellInfo.toObject(message.cell_info, options); return object; }; /** - * Converts this ClusterWorkflows to JSON. + * Converts this ClusterCellInfo to JSON. * @function toJSON - * @memberof vtadmin.ClusterWorkflows + * @memberof vtadmin.ClusterCellInfo * @instance * @returns {Object.} JSON object */ - ClusterWorkflows.prototype.toJSON = function toJSON() { + ClusterCellInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ClusterWorkflows; + return ClusterCellInfo; })(); - vtadmin.Keyspace = (function() { + vtadmin.ClusterShardReplicationPosition = (function() { /** - * Properties of a Keyspace. + * Properties of a ClusterShardReplicationPosition. * @memberof vtadmin - * @interface IKeyspace - * @property {vtadmin.ICluster|null} [cluster] Keyspace cluster - * @property {vtctldata.IKeyspace|null} [keyspace] Keyspace keyspace - * @property {Object.|null} [shards] Keyspace shards + * @interface IClusterShardReplicationPosition + * @property {vtadmin.ICluster|null} [cluster] ClusterShardReplicationPosition cluster + * @property {string|null} [keyspace] ClusterShardReplicationPosition keyspace + * @property {string|null} [shard] ClusterShardReplicationPosition shard + * @property {vtctldata.IShardReplicationPositionsResponse|null} [position_info] ClusterShardReplicationPosition position_info */ /** - * Constructs a new Keyspace. + * Constructs a new ClusterShardReplicationPosition. * @memberof vtadmin - * @classdesc Represents a Keyspace. - * @implements IKeyspace + * @classdesc Represents a ClusterShardReplicationPosition. + * @implements IClusterShardReplicationPosition * @constructor - * @param {vtadmin.IKeyspace=} [properties] Properties to set + * @param {vtadmin.IClusterShardReplicationPosition=} [properties] Properties to set */ - function Keyspace(properties) { - this.shards = {}; + function ClusterShardReplicationPosition(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -2177,93 +2231,100 @@ $root.vtadmin = (function() { } /** - * Keyspace cluster. + * ClusterShardReplicationPosition cluster. * @member {vtadmin.ICluster|null|undefined} cluster - * @memberof vtadmin.Keyspace + * @memberof vtadmin.ClusterShardReplicationPosition * @instance */ - Keyspace.prototype.cluster = null; + ClusterShardReplicationPosition.prototype.cluster = null; /** - * Keyspace keyspace. - * @member {vtctldata.IKeyspace|null|undefined} keyspace - * @memberof vtadmin.Keyspace + * ClusterShardReplicationPosition keyspace. + * @member {string} keyspace + * @memberof vtadmin.ClusterShardReplicationPosition * @instance */ - Keyspace.prototype.keyspace = null; + ClusterShardReplicationPosition.prototype.keyspace = ""; /** - * Keyspace shards. - * @member {Object.} shards - * @memberof vtadmin.Keyspace + * ClusterShardReplicationPosition shard. + * @member {string} shard + * @memberof vtadmin.ClusterShardReplicationPosition * @instance */ - Keyspace.prototype.shards = $util.emptyObject; + ClusterShardReplicationPosition.prototype.shard = ""; /** - * Creates a new Keyspace instance using the specified properties. + * ClusterShardReplicationPosition position_info. + * @member {vtctldata.IShardReplicationPositionsResponse|null|undefined} position_info + * @memberof vtadmin.ClusterShardReplicationPosition + * @instance + */ + ClusterShardReplicationPosition.prototype.position_info = null; + + /** + * Creates a new ClusterShardReplicationPosition instance using the specified properties. * @function create - * @memberof vtadmin.Keyspace + * @memberof vtadmin.ClusterShardReplicationPosition * @static - * @param {vtadmin.IKeyspace=} [properties] Properties to set - * @returns {vtadmin.Keyspace} Keyspace instance + * @param {vtadmin.IClusterShardReplicationPosition=} [properties] Properties to set + * @returns {vtadmin.ClusterShardReplicationPosition} ClusterShardReplicationPosition instance */ - Keyspace.create = function create(properties) { - return new Keyspace(properties); + ClusterShardReplicationPosition.create = function create(properties) { + return new ClusterShardReplicationPosition(properties); }; /** - * Encodes the specified Keyspace message. Does not implicitly {@link vtadmin.Keyspace.verify|verify} messages. + * Encodes the specified ClusterShardReplicationPosition message. Does not implicitly {@link vtadmin.ClusterShardReplicationPosition.verify|verify} messages. * @function encode - * @memberof vtadmin.Keyspace + * @memberof vtadmin.ClusterShardReplicationPosition * @static - * @param {vtadmin.IKeyspace} message Keyspace message or plain object to encode + * @param {vtadmin.IClusterShardReplicationPosition} message ClusterShardReplicationPosition message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Keyspace.encode = function encode(message, writer) { + ClusterShardReplicationPosition.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) $root.vtadmin.Cluster.encode(message.cluster, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - $root.vtctldata.Keyspace.encode(message.keyspace, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.shards != null && Object.hasOwnProperty.call(message, "shards")) - for (var keys = Object.keys(message.shards), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.vtctldata.Shard.encode(message.shards[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + writer.uint32(/* id 2, wireType 2 =*/18).string(message.keyspace); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.shard); + if (message.position_info != null && Object.hasOwnProperty.call(message, "position_info")) + $root.vtctldata.ShardReplicationPositionsResponse.encode(message.position_info, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vtadmin.Keyspace.verify|verify} messages. + * Encodes the specified ClusterShardReplicationPosition message, length delimited. Does not implicitly {@link vtadmin.ClusterShardReplicationPosition.verify|verify} messages. * @function encodeDelimited - * @memberof vtadmin.Keyspace + * @memberof vtadmin.ClusterShardReplicationPosition * @static - * @param {vtadmin.IKeyspace} message Keyspace message or plain object to encode + * @param {vtadmin.IClusterShardReplicationPosition} message ClusterShardReplicationPosition message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Keyspace.encodeDelimited = function encodeDelimited(message, writer) { + ClusterShardReplicationPosition.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Keyspace message from the specified reader or buffer. + * Decodes a ClusterShardReplicationPosition message from the specified reader or buffer. * @function decode - * @memberof vtadmin.Keyspace + * @memberof vtadmin.ClusterShardReplicationPosition * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtadmin.Keyspace} Keyspace + * @returns {vtadmin.ClusterShardReplicationPosition} ClusterShardReplicationPosition * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Keyspace.decode = function decode(reader, length) { + ClusterShardReplicationPosition.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.Keyspace(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.ClusterShardReplicationPosition(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -2271,29 +2332,13 @@ $root.vtadmin = (function() { message.cluster = $root.vtadmin.Cluster.decode(reader, reader.uint32()); break; case 2: - message.keyspace = $root.vtctldata.Keyspace.decode(reader, reader.uint32()); + message.keyspace = reader.string(); break; case 3: - if (message.shards === $util.emptyObject) - message.shards = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.vtctldata.Shard.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.shards[key] = value; + message.shard = reader.string(); + break; + case 4: + message.position_info = $root.vtctldata.ShardReplicationPositionsResponse.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -2304,30 +2349,30 @@ $root.vtadmin = (function() { }; /** - * Decodes a Keyspace message from the specified reader or buffer, length delimited. + * Decodes a ClusterShardReplicationPosition message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtadmin.Keyspace + * @memberof vtadmin.ClusterShardReplicationPosition * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtadmin.Keyspace} Keyspace + * @returns {vtadmin.ClusterShardReplicationPosition} ClusterShardReplicationPosition * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Keyspace.decodeDelimited = function decodeDelimited(reader) { + ClusterShardReplicationPosition.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Keyspace message. + * Verifies a ClusterShardReplicationPosition message. * @function verify - * @memberof vtadmin.Keyspace + * @memberof vtadmin.ClusterShardReplicationPosition * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Keyspace.verify = function verify(message) { + ClusterShardReplicationPosition.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.cluster != null && message.hasOwnProperty("cluster")) { @@ -2335,128 +2380,114 @@ $root.vtadmin = (function() { if (error) return "cluster." + error; } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) { - var error = $root.vtctldata.Keyspace.verify(message.keyspace); + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.position_info != null && message.hasOwnProperty("position_info")) { + var error = $root.vtctldata.ShardReplicationPositionsResponse.verify(message.position_info); if (error) - return "keyspace." + error; - } - if (message.shards != null && message.hasOwnProperty("shards")) { - if (!$util.isObject(message.shards)) - return "shards: object expected"; - var key = Object.keys(message.shards); - for (var i = 0; i < key.length; ++i) { - var error = $root.vtctldata.Shard.verify(message.shards[key[i]]); - if (error) - return "shards." + error; - } + return "position_info." + error; } return null; }; /** - * Creates a Keyspace message from a plain object. Also converts values to their respective internal types. + * Creates a ClusterShardReplicationPosition message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtadmin.Keyspace + * @memberof vtadmin.ClusterShardReplicationPosition * @static * @param {Object.} object Plain object - * @returns {vtadmin.Keyspace} Keyspace + * @returns {vtadmin.ClusterShardReplicationPosition} ClusterShardReplicationPosition */ - Keyspace.fromObject = function fromObject(object) { - if (object instanceof $root.vtadmin.Keyspace) + ClusterShardReplicationPosition.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.ClusterShardReplicationPosition) return object; - var message = new $root.vtadmin.Keyspace(); + var message = new $root.vtadmin.ClusterShardReplicationPosition(); if (object.cluster != null) { if (typeof object.cluster !== "object") - throw TypeError(".vtadmin.Keyspace.cluster: object expected"); + throw TypeError(".vtadmin.ClusterShardReplicationPosition.cluster: object expected"); message.cluster = $root.vtadmin.Cluster.fromObject(object.cluster); } - if (object.keyspace != null) { - if (typeof object.keyspace !== "object") - throw TypeError(".vtadmin.Keyspace.keyspace: object expected"); - message.keyspace = $root.vtctldata.Keyspace.fromObject(object.keyspace); - } - if (object.shards) { - if (typeof object.shards !== "object") - throw TypeError(".vtadmin.Keyspace.shards: object expected"); - message.shards = {}; - for (var keys = Object.keys(object.shards), i = 0; i < keys.length; ++i) { - if (typeof object.shards[keys[i]] !== "object") - throw TypeError(".vtadmin.Keyspace.shards: object expected"); - message.shards[keys[i]] = $root.vtctldata.Shard.fromObject(object.shards[keys[i]]); - } + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + if (object.position_info != null) { + if (typeof object.position_info !== "object") + throw TypeError(".vtadmin.ClusterShardReplicationPosition.position_info: object expected"); + message.position_info = $root.vtctldata.ShardReplicationPositionsResponse.fromObject(object.position_info); } return message; }; /** - * Creates a plain object from a Keyspace message. Also converts values to other types if specified. + * Creates a plain object from a ClusterShardReplicationPosition message. Also converts values to other types if specified. * @function toObject - * @memberof vtadmin.Keyspace + * @memberof vtadmin.ClusterShardReplicationPosition * @static - * @param {vtadmin.Keyspace} message Keyspace + * @param {vtadmin.ClusterShardReplicationPosition} message ClusterShardReplicationPosition * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Keyspace.toObject = function toObject(message, options) { + ClusterShardReplicationPosition.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.shards = {}; if (options.defaults) { object.cluster = null; - object.keyspace = null; + object.keyspace = ""; + object.shard = ""; + object.position_info = null; } if (message.cluster != null && message.hasOwnProperty("cluster")) object.cluster = $root.vtadmin.Cluster.toObject(message.cluster, options); if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = $root.vtctldata.Keyspace.toObject(message.keyspace, options); - var keys2; - if (message.shards && (keys2 = Object.keys(message.shards)).length) { - object.shards = {}; - for (var j = 0; j < keys2.length; ++j) - object.shards[keys2[j]] = $root.vtctldata.Shard.toObject(message.shards[keys2[j]], options); - } + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.position_info != null && message.hasOwnProperty("position_info")) + object.position_info = $root.vtctldata.ShardReplicationPositionsResponse.toObject(message.position_info, options); return object; }; /** - * Converts this Keyspace to JSON. + * Converts this ClusterShardReplicationPosition to JSON. * @function toJSON - * @memberof vtadmin.Keyspace + * @memberof vtadmin.ClusterShardReplicationPosition * @instance * @returns {Object.} JSON object */ - Keyspace.prototype.toJSON = function toJSON() { + ClusterShardReplicationPosition.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Keyspace; + return ClusterShardReplicationPosition; })(); - vtadmin.Schema = (function() { + vtadmin.ClusterWorkflows = (function() { /** - * Properties of a Schema. + * Properties of a ClusterWorkflows. * @memberof vtadmin - * @interface ISchema - * @property {vtadmin.ICluster|null} [cluster] Schema cluster - * @property {string|null} [keyspace] Schema keyspace - * @property {Array.|null} [table_definitions] Schema table_definitions - * @property {Object.|null} [table_sizes] Schema table_sizes + * @interface IClusterWorkflows + * @property {Array.|null} [workflows] ClusterWorkflows workflows + * @property {Array.|null} [warnings] ClusterWorkflows warnings */ /** - * Constructs a new Schema. + * Constructs a new ClusterWorkflows. * @memberof vtadmin - * @classdesc Represents a Schema. - * @implements ISchema + * @classdesc Represents a ClusterWorkflows. + * @implements IClusterWorkflows * @constructor - * @param {vtadmin.ISchema=} [properties] Properties to set + * @param {vtadmin.IClusterWorkflows=} [properties] Properties to set */ - function Schema(properties) { - this.table_definitions = []; - this.table_sizes = {}; + function ClusterWorkflows(properties) { + this.workflows = []; + this.warnings = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -2464,139 +2495,94 @@ $root.vtadmin = (function() { } /** - * Schema cluster. - * @member {vtadmin.ICluster|null|undefined} cluster - * @memberof vtadmin.Schema - * @instance - */ - Schema.prototype.cluster = null; - - /** - * Schema keyspace. - * @member {string} keyspace - * @memberof vtadmin.Schema - * @instance - */ - Schema.prototype.keyspace = ""; - - /** - * Schema table_definitions. - * @member {Array.} table_definitions - * @memberof vtadmin.Schema + * ClusterWorkflows workflows. + * @member {Array.} workflows + * @memberof vtadmin.ClusterWorkflows * @instance */ - Schema.prototype.table_definitions = $util.emptyArray; + ClusterWorkflows.prototype.workflows = $util.emptyArray; /** - * Schema table_sizes. - * @member {Object.} table_sizes - * @memberof vtadmin.Schema + * ClusterWorkflows warnings. + * @member {Array.} warnings + * @memberof vtadmin.ClusterWorkflows * @instance */ - Schema.prototype.table_sizes = $util.emptyObject; + ClusterWorkflows.prototype.warnings = $util.emptyArray; /** - * Creates a new Schema instance using the specified properties. + * Creates a new ClusterWorkflows instance using the specified properties. * @function create - * @memberof vtadmin.Schema + * @memberof vtadmin.ClusterWorkflows * @static - * @param {vtadmin.ISchema=} [properties] Properties to set - * @returns {vtadmin.Schema} Schema instance + * @param {vtadmin.IClusterWorkflows=} [properties] Properties to set + * @returns {vtadmin.ClusterWorkflows} ClusterWorkflows instance */ - Schema.create = function create(properties) { - return new Schema(properties); + ClusterWorkflows.create = function create(properties) { + return new ClusterWorkflows(properties); }; /** - * Encodes the specified Schema message. Does not implicitly {@link vtadmin.Schema.verify|verify} messages. + * Encodes the specified ClusterWorkflows message. Does not implicitly {@link vtadmin.ClusterWorkflows.verify|verify} messages. * @function encode - * @memberof vtadmin.Schema + * @memberof vtadmin.ClusterWorkflows * @static - * @param {vtadmin.ISchema} message Schema message or plain object to encode + * @param {vtadmin.IClusterWorkflows} message ClusterWorkflows message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Schema.encode = function encode(message, writer) { + ClusterWorkflows.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) - $root.vtadmin.Cluster.encode(message.cluster, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.keyspace); - if (message.table_definitions != null && message.table_definitions.length) - for (var i = 0; i < message.table_definitions.length; ++i) - $root.tabletmanagerdata.TableDefinition.encode(message.table_definitions[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.table_sizes != null && Object.hasOwnProperty.call(message, "table_sizes")) - for (var keys = Object.keys(message.table_sizes), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.vtadmin.Schema.TableSize.encode(message.table_sizes[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.workflows != null && message.workflows.length) + for (var i = 0; i < message.workflows.length; ++i) + $root.vtadmin.Workflow.encode(message.workflows[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.warnings != null && message.warnings.length) + for (var i = 0; i < message.warnings.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.warnings[i]); return writer; }; /** - * Encodes the specified Schema message, length delimited. Does not implicitly {@link vtadmin.Schema.verify|verify} messages. + * Encodes the specified ClusterWorkflows message, length delimited. Does not implicitly {@link vtadmin.ClusterWorkflows.verify|verify} messages. * @function encodeDelimited - * @memberof vtadmin.Schema + * @memberof vtadmin.ClusterWorkflows * @static - * @param {vtadmin.ISchema} message Schema message or plain object to encode + * @param {vtadmin.IClusterWorkflows} message ClusterWorkflows message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Schema.encodeDelimited = function encodeDelimited(message, writer) { + ClusterWorkflows.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Schema message from the specified reader or buffer. + * Decodes a ClusterWorkflows message from the specified reader or buffer. * @function decode - * @memberof vtadmin.Schema + * @memberof vtadmin.ClusterWorkflows * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtadmin.Schema} Schema + * @returns {vtadmin.ClusterWorkflows} ClusterWorkflows * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Schema.decode = function decode(reader, length) { + ClusterWorkflows.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.Schema(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.ClusterWorkflows(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.cluster = $root.vtadmin.Cluster.decode(reader, reader.uint32()); + if (!(message.workflows && message.workflows.length)) + message.workflows = []; + message.workflows.push($root.vtadmin.Workflow.decode(reader, reader.uint32())); break; case 2: - message.keyspace = reader.string(); - break; - case 3: - if (!(message.table_definitions && message.table_definitions.length)) - message.table_definitions = []; - message.table_definitions.push($root.tabletmanagerdata.TableDefinition.decode(reader, reader.uint32())); - break; - case 4: - if (message.table_sizes === $util.emptyObject) - message.table_sizes = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.vtadmin.Schema.TableSize.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.table_sizes[key] = value; + if (!(message.warnings && message.warnings.length)) + message.warnings = []; + message.warnings.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -2607,718 +2593,2320 @@ $root.vtadmin = (function() { }; /** - * Decodes a Schema message from the specified reader or buffer, length delimited. + * Decodes a ClusterWorkflows message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtadmin.Schema + * @memberof vtadmin.ClusterWorkflows * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtadmin.Schema} Schema + * @returns {vtadmin.ClusterWorkflows} ClusterWorkflows * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Schema.decodeDelimited = function decodeDelimited(reader) { + ClusterWorkflows.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Schema message. + * Verifies a ClusterWorkflows message. * @function verify - * @memberof vtadmin.Schema + * @memberof vtadmin.ClusterWorkflows * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Schema.verify = function verify(message) { + ClusterWorkflows.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.cluster != null && message.hasOwnProperty("cluster")) { - var error = $root.vtadmin.Cluster.verify(message.cluster); - if (error) - return "cluster." + error; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.table_definitions != null && message.hasOwnProperty("table_definitions")) { - if (!Array.isArray(message.table_definitions)) - return "table_definitions: array expected"; - for (var i = 0; i < message.table_definitions.length; ++i) { - var error = $root.tabletmanagerdata.TableDefinition.verify(message.table_definitions[i]); + if (message.workflows != null && message.hasOwnProperty("workflows")) { + if (!Array.isArray(message.workflows)) + return "workflows: array expected"; + for (var i = 0; i < message.workflows.length; ++i) { + var error = $root.vtadmin.Workflow.verify(message.workflows[i]); if (error) - return "table_definitions." + error; + return "workflows." + error; } } - if (message.table_sizes != null && message.hasOwnProperty("table_sizes")) { - if (!$util.isObject(message.table_sizes)) - return "table_sizes: object expected"; - var key = Object.keys(message.table_sizes); - for (var i = 0; i < key.length; ++i) { - var error = $root.vtadmin.Schema.TableSize.verify(message.table_sizes[key[i]]); - if (error) - return "table_sizes." + error; - } + if (message.warnings != null && message.hasOwnProperty("warnings")) { + if (!Array.isArray(message.warnings)) + return "warnings: array expected"; + for (var i = 0; i < message.warnings.length; ++i) + if (!$util.isString(message.warnings[i])) + return "warnings: string[] expected"; } return null; }; /** - * Creates a Schema message from a plain object. Also converts values to their respective internal types. + * Creates a ClusterWorkflows message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtadmin.Schema + * @memberof vtadmin.ClusterWorkflows * @static * @param {Object.} object Plain object - * @returns {vtadmin.Schema} Schema + * @returns {vtadmin.ClusterWorkflows} ClusterWorkflows */ - Schema.fromObject = function fromObject(object) { - if (object instanceof $root.vtadmin.Schema) + ClusterWorkflows.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.ClusterWorkflows) return object; - var message = new $root.vtadmin.Schema(); - if (object.cluster != null) { - if (typeof object.cluster !== "object") - throw TypeError(".vtadmin.Schema.cluster: object expected"); - message.cluster = $root.vtadmin.Cluster.fromObject(object.cluster); - } - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.table_definitions) { - if (!Array.isArray(object.table_definitions)) - throw TypeError(".vtadmin.Schema.table_definitions: array expected"); - message.table_definitions = []; - for (var i = 0; i < object.table_definitions.length; ++i) { - if (typeof object.table_definitions[i] !== "object") - throw TypeError(".vtadmin.Schema.table_definitions: object expected"); - message.table_definitions[i] = $root.tabletmanagerdata.TableDefinition.fromObject(object.table_definitions[i]); + var message = new $root.vtadmin.ClusterWorkflows(); + if (object.workflows) { + if (!Array.isArray(object.workflows)) + throw TypeError(".vtadmin.ClusterWorkflows.workflows: array expected"); + message.workflows = []; + for (var i = 0; i < object.workflows.length; ++i) { + if (typeof object.workflows[i] !== "object") + throw TypeError(".vtadmin.ClusterWorkflows.workflows: object expected"); + message.workflows[i] = $root.vtadmin.Workflow.fromObject(object.workflows[i]); } } - if (object.table_sizes) { - if (typeof object.table_sizes !== "object") - throw TypeError(".vtadmin.Schema.table_sizes: object expected"); - message.table_sizes = {}; - for (var keys = Object.keys(object.table_sizes), i = 0; i < keys.length; ++i) { - if (typeof object.table_sizes[keys[i]] !== "object") - throw TypeError(".vtadmin.Schema.table_sizes: object expected"); - message.table_sizes[keys[i]] = $root.vtadmin.Schema.TableSize.fromObject(object.table_sizes[keys[i]]); - } + if (object.warnings) { + if (!Array.isArray(object.warnings)) + throw TypeError(".vtadmin.ClusterWorkflows.warnings: array expected"); + message.warnings = []; + for (var i = 0; i < object.warnings.length; ++i) + message.warnings[i] = String(object.warnings[i]); } return message; }; /** - * Creates a plain object from a Schema message. Also converts values to other types if specified. + * Creates a plain object from a ClusterWorkflows message. Also converts values to other types if specified. * @function toObject - * @memberof vtadmin.Schema + * @memberof vtadmin.ClusterWorkflows * @static - * @param {vtadmin.Schema} message Schema + * @param {vtadmin.ClusterWorkflows} message ClusterWorkflows * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Schema.toObject = function toObject(message, options) { + ClusterWorkflows.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.table_definitions = []; - if (options.objects || options.defaults) - object.table_sizes = {}; - if (options.defaults) { - object.cluster = null; - object.keyspace = ""; + if (options.arrays || options.defaults) { + object.workflows = []; + object.warnings = []; } - if (message.cluster != null && message.hasOwnProperty("cluster")) - object.cluster = $root.vtadmin.Cluster.toObject(message.cluster, options); - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.table_definitions && message.table_definitions.length) { - object.table_definitions = []; - for (var j = 0; j < message.table_definitions.length; ++j) - object.table_definitions[j] = $root.tabletmanagerdata.TableDefinition.toObject(message.table_definitions[j], options); + if (message.workflows && message.workflows.length) { + object.workflows = []; + for (var j = 0; j < message.workflows.length; ++j) + object.workflows[j] = $root.vtadmin.Workflow.toObject(message.workflows[j], options); } - var keys2; - if (message.table_sizes && (keys2 = Object.keys(message.table_sizes)).length) { - object.table_sizes = {}; - for (var j = 0; j < keys2.length; ++j) - object.table_sizes[keys2[j]] = $root.vtadmin.Schema.TableSize.toObject(message.table_sizes[keys2[j]], options); + if (message.warnings && message.warnings.length) { + object.warnings = []; + for (var j = 0; j < message.warnings.length; ++j) + object.warnings[j] = message.warnings[j]; } return object; }; /** - * Converts this Schema to JSON. + * Converts this ClusterWorkflows to JSON. * @function toJSON - * @memberof vtadmin.Schema + * @memberof vtadmin.ClusterWorkflows * @instance * @returns {Object.} JSON object */ - Schema.prototype.toJSON = function toJSON() { + ClusterWorkflows.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - Schema.ShardTableSize = (function() { - - /** - * Properties of a ShardTableSize. - * @memberof vtadmin.Schema - * @interface IShardTableSize - * @property {number|Long|null} [row_count] ShardTableSize row_count - * @property {number|Long|null} [data_length] ShardTableSize data_length - */ + return ClusterWorkflows; + })(); - /** - * Constructs a new ShardTableSize. - * @memberof vtadmin.Schema - * @classdesc Represents a ShardTableSize. - * @implements IShardTableSize - * @constructor - * @param {vtadmin.Schema.IShardTableSize=} [properties] Properties to set - */ - function ShardTableSize(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + vtadmin.Keyspace = (function() { - /** - * ShardTableSize row_count. - * @member {number|Long} row_count - * @memberof vtadmin.Schema.ShardTableSize - * @instance - */ - ShardTableSize.prototype.row_count = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + /** + * Properties of a Keyspace. + * @memberof vtadmin + * @interface IKeyspace + * @property {vtadmin.ICluster|null} [cluster] Keyspace cluster + * @property {vtctldata.IKeyspace|null} [keyspace] Keyspace keyspace + * @property {Object.|null} [shards] Keyspace shards + */ - /** - * ShardTableSize data_length. - * @member {number|Long} data_length - * @memberof vtadmin.Schema.ShardTableSize - * @instance - */ - ShardTableSize.prototype.data_length = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + /** + * Constructs a new Keyspace. + * @memberof vtadmin + * @classdesc Represents a Keyspace. + * @implements IKeyspace + * @constructor + * @param {vtadmin.IKeyspace=} [properties] Properties to set + */ + function Keyspace(properties) { + this.shards = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new ShardTableSize instance using the specified properties. - * @function create - * @memberof vtadmin.Schema.ShardTableSize - * @static - * @param {vtadmin.Schema.IShardTableSize=} [properties] Properties to set - * @returns {vtadmin.Schema.ShardTableSize} ShardTableSize instance - */ - ShardTableSize.create = function create(properties) { - return new ShardTableSize(properties); - }; + /** + * Keyspace cluster. + * @member {vtadmin.ICluster|null|undefined} cluster + * @memberof vtadmin.Keyspace + * @instance + */ + Keyspace.prototype.cluster = null; - /** - * Encodes the specified ShardTableSize message. Does not implicitly {@link vtadmin.Schema.ShardTableSize.verify|verify} messages. - * @function encode - * @memberof vtadmin.Schema.ShardTableSize - * @static - * @param {vtadmin.Schema.IShardTableSize} message ShardTableSize message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ShardTableSize.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.row_count != null && Object.hasOwnProperty.call(message, "row_count")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.row_count); - if (message.data_length != null && Object.hasOwnProperty.call(message, "data_length")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.data_length); - return writer; - }; + /** + * Keyspace keyspace. + * @member {vtctldata.IKeyspace|null|undefined} keyspace + * @memberof vtadmin.Keyspace + * @instance + */ + Keyspace.prototype.keyspace = null; - /** - * Encodes the specified ShardTableSize message, length delimited. Does not implicitly {@link vtadmin.Schema.ShardTableSize.verify|verify} messages. - * @function encodeDelimited - * @memberof vtadmin.Schema.ShardTableSize - * @static - * @param {vtadmin.Schema.IShardTableSize} message ShardTableSize message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ShardTableSize.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Keyspace shards. + * @member {Object.} shards + * @memberof vtadmin.Keyspace + * @instance + */ + Keyspace.prototype.shards = $util.emptyObject; - /** - * Decodes a ShardTableSize message from the specified reader or buffer. - * @function decode - * @memberof vtadmin.Schema.ShardTableSize - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vtadmin.Schema.ShardTableSize} ShardTableSize - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ShardTableSize.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.Schema.ShardTableSize(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.row_count = reader.uint64(); - break; - case 2: - message.data_length = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ShardTableSize message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtadmin.Schema.ShardTableSize - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtadmin.Schema.ShardTableSize} ShardTableSize - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ShardTableSize.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a new Keyspace instance using the specified properties. + * @function create + * @memberof vtadmin.Keyspace + * @static + * @param {vtadmin.IKeyspace=} [properties] Properties to set + * @returns {vtadmin.Keyspace} Keyspace instance + */ + Keyspace.create = function create(properties) { + return new Keyspace(properties); + }; - /** - * Verifies a ShardTableSize message. - * @function verify - * @memberof vtadmin.Schema.ShardTableSize - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ShardTableSize.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.row_count != null && message.hasOwnProperty("row_count")) - if (!$util.isInteger(message.row_count) && !(message.row_count && $util.isInteger(message.row_count.low) && $util.isInteger(message.row_count.high))) - return "row_count: integer|Long expected"; - if (message.data_length != null && message.hasOwnProperty("data_length")) - if (!$util.isInteger(message.data_length) && !(message.data_length && $util.isInteger(message.data_length.low) && $util.isInteger(message.data_length.high))) - return "data_length: integer|Long expected"; - return null; - }; + /** + * Encodes the specified Keyspace message. Does not implicitly {@link vtadmin.Keyspace.verify|verify} messages. + * @function encode + * @memberof vtadmin.Keyspace + * @static + * @param {vtadmin.IKeyspace} message Keyspace message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Keyspace.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) + $root.vtadmin.Cluster.encode(message.cluster, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + $root.vtctldata.Keyspace.encode(message.keyspace, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.shards != null && Object.hasOwnProperty.call(message, "shards")) + for (var keys = Object.keys(message.shards), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.vtctldata.Shard.encode(message.shards[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; - /** - * Creates a ShardTableSize message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtadmin.Schema.ShardTableSize - * @static - * @param {Object.} object Plain object - * @returns {vtadmin.Schema.ShardTableSize} ShardTableSize - */ - ShardTableSize.fromObject = function fromObject(object) { - if (object instanceof $root.vtadmin.Schema.ShardTableSize) - return object; - var message = new $root.vtadmin.Schema.ShardTableSize(); - if (object.row_count != null) - if ($util.Long) - (message.row_count = $util.Long.fromValue(object.row_count)).unsigned = true; - else if (typeof object.row_count === "string") - message.row_count = parseInt(object.row_count, 10); - else if (typeof object.row_count === "number") - message.row_count = object.row_count; - else if (typeof object.row_count === "object") - message.row_count = new $util.LongBits(object.row_count.low >>> 0, object.row_count.high >>> 0).toNumber(true); - if (object.data_length != null) - if ($util.Long) - (message.data_length = $util.Long.fromValue(object.data_length)).unsigned = true; - else if (typeof object.data_length === "string") - message.data_length = parseInt(object.data_length, 10); - else if (typeof object.data_length === "number") - message.data_length = object.data_length; - else if (typeof object.data_length === "object") - message.data_length = new $util.LongBits(object.data_length.low >>> 0, object.data_length.high >>> 0).toNumber(true); - return message; - }; + /** + * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vtadmin.Keyspace.verify|verify} messages. + * @function encodeDelimited + * @memberof vtadmin.Keyspace + * @static + * @param {vtadmin.IKeyspace} message Keyspace message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Keyspace.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a plain object from a ShardTableSize message. Also converts values to other types if specified. - * @function toObject - * @memberof vtadmin.Schema.ShardTableSize - * @static - * @param {vtadmin.Schema.ShardTableSize} message ShardTableSize - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ShardTableSize.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.row_count = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.row_count = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.data_length = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.data_length = options.longs === String ? "0" : 0; + /** + * Decodes a Keyspace message from the specified reader or buffer. + * @function decode + * @memberof vtadmin.Keyspace + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtadmin.Keyspace} Keyspace + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Keyspace.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.Keyspace(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.cluster = $root.vtadmin.Cluster.decode(reader, reader.uint32()); + break; + case 2: + message.keyspace = $root.vtctldata.Keyspace.decode(reader, reader.uint32()); + break; + case 3: + if (message.shards === $util.emptyObject) + message.shards = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.vtctldata.Shard.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.shards[key] = value; + break; + default: + reader.skipType(tag & 7); + break; } - if (message.row_count != null && message.hasOwnProperty("row_count")) - if (typeof message.row_count === "number") - object.row_count = options.longs === String ? String(message.row_count) : message.row_count; - else - object.row_count = options.longs === String ? $util.Long.prototype.toString.call(message.row_count) : options.longs === Number ? new $util.LongBits(message.row_count.low >>> 0, message.row_count.high >>> 0).toNumber(true) : message.row_count; - if (message.data_length != null && message.hasOwnProperty("data_length")) - if (typeof message.data_length === "number") - object.data_length = options.longs === String ? String(message.data_length) : message.data_length; - else - object.data_length = options.longs === String ? $util.Long.prototype.toString.call(message.data_length) : options.longs === Number ? new $util.LongBits(message.data_length.low >>> 0, message.data_length.high >>> 0).toNumber(true) : message.data_length; - return object; - }; + } + return message; + }; - /** - * Converts this ShardTableSize to JSON. - * @function toJSON - * @memberof vtadmin.Schema.ShardTableSize - * @instance - * @returns {Object.} JSON object - */ - ShardTableSize.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a Keyspace message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtadmin.Keyspace + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtadmin.Keyspace} Keyspace + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Keyspace.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - return ShardTableSize; - })(); - - Schema.TableSize = (function() { + /** + * Verifies a Keyspace message. + * @function verify + * @memberof vtadmin.Keyspace + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Keyspace.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.cluster != null && message.hasOwnProperty("cluster")) { + var error = $root.vtadmin.Cluster.verify(message.cluster); + if (error) + return "cluster." + error; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) { + var error = $root.vtctldata.Keyspace.verify(message.keyspace); + if (error) + return "keyspace." + error; + } + if (message.shards != null && message.hasOwnProperty("shards")) { + if (!$util.isObject(message.shards)) + return "shards: object expected"; + var key = Object.keys(message.shards); + for (var i = 0; i < key.length; ++i) { + var error = $root.vtctldata.Shard.verify(message.shards[key[i]]); + if (error) + return "shards." + error; + } + } + return null; + }; - /** - * Properties of a TableSize. - * @memberof vtadmin.Schema - * @interface ITableSize - * @property {number|Long|null} [row_count] TableSize row_count - * @property {number|Long|null} [data_length] TableSize data_length - * @property {Object.|null} [by_shard] TableSize by_shard - */ + /** + * Creates a Keyspace message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtadmin.Keyspace + * @static + * @param {Object.} object Plain object + * @returns {vtadmin.Keyspace} Keyspace + */ + Keyspace.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.Keyspace) + return object; + var message = new $root.vtadmin.Keyspace(); + if (object.cluster != null) { + if (typeof object.cluster !== "object") + throw TypeError(".vtadmin.Keyspace.cluster: object expected"); + message.cluster = $root.vtadmin.Cluster.fromObject(object.cluster); + } + if (object.keyspace != null) { + if (typeof object.keyspace !== "object") + throw TypeError(".vtadmin.Keyspace.keyspace: object expected"); + message.keyspace = $root.vtctldata.Keyspace.fromObject(object.keyspace); + } + if (object.shards) { + if (typeof object.shards !== "object") + throw TypeError(".vtadmin.Keyspace.shards: object expected"); + message.shards = {}; + for (var keys = Object.keys(object.shards), i = 0; i < keys.length; ++i) { + if (typeof object.shards[keys[i]] !== "object") + throw TypeError(".vtadmin.Keyspace.shards: object expected"); + message.shards[keys[i]] = $root.vtctldata.Shard.fromObject(object.shards[keys[i]]); + } + } + return message; + }; - /** - * Constructs a new TableSize. - * @memberof vtadmin.Schema - * @classdesc Represents a TableSize. - * @implements ITableSize - * @constructor - * @param {vtadmin.Schema.ITableSize=} [properties] Properties to set - */ - function TableSize(properties) { - this.by_shard = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Creates a plain object from a Keyspace message. Also converts values to other types if specified. + * @function toObject + * @memberof vtadmin.Keyspace + * @static + * @param {vtadmin.Keyspace} message Keyspace + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Keyspace.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.shards = {}; + if (options.defaults) { + object.cluster = null; + object.keyspace = null; + } + if (message.cluster != null && message.hasOwnProperty("cluster")) + object.cluster = $root.vtadmin.Cluster.toObject(message.cluster, options); + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = $root.vtctldata.Keyspace.toObject(message.keyspace, options); + var keys2; + if (message.shards && (keys2 = Object.keys(message.shards)).length) { + object.shards = {}; + for (var j = 0; j < keys2.length; ++j) + object.shards[keys2[j]] = $root.vtctldata.Shard.toObject(message.shards[keys2[j]], options); } + return object; + }; - /** - * TableSize row_count. - * @member {number|Long} row_count - * @memberof vtadmin.Schema.TableSize - * @instance - */ - TableSize.prototype.row_count = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + /** + * Converts this Keyspace to JSON. + * @function toJSON + * @memberof vtadmin.Keyspace + * @instance + * @returns {Object.} JSON object + */ + Keyspace.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * TableSize data_length. - * @member {number|Long} data_length - * @memberof vtadmin.Schema.TableSize - * @instance - */ - TableSize.prototype.data_length = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + return Keyspace; + })(); - /** - * TableSize by_shard. - * @member {Object.} by_shard - * @memberof vtadmin.Schema.TableSize - * @instance - */ - TableSize.prototype.by_shard = $util.emptyObject; + vtadmin.Schema = (function() { - /** - * Creates a new TableSize instance using the specified properties. - * @function create - * @memberof vtadmin.Schema.TableSize - * @static - * @param {vtadmin.Schema.ITableSize=} [properties] Properties to set - * @returns {vtadmin.Schema.TableSize} TableSize instance - */ - TableSize.create = function create(properties) { - return new TableSize(properties); - }; + /** + * Properties of a Schema. + * @memberof vtadmin + * @interface ISchema + * @property {vtadmin.ICluster|null} [cluster] Schema cluster + * @property {string|null} [keyspace] Schema keyspace + * @property {Array.|null} [table_definitions] Schema table_definitions + * @property {Object.|null} [table_sizes] Schema table_sizes + */ - /** - * Encodes the specified TableSize message. Does not implicitly {@link vtadmin.Schema.TableSize.verify|verify} messages. - * @function encode - * @memberof vtadmin.Schema.TableSize - * @static - * @param {vtadmin.Schema.ITableSize} message TableSize message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TableSize.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.row_count != null && Object.hasOwnProperty.call(message, "row_count")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.row_count); - if (message.data_length != null && Object.hasOwnProperty.call(message, "data_length")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.data_length); - if (message.by_shard != null && Object.hasOwnProperty.call(message, "by_shard")) - for (var keys = Object.keys(message.by_shard), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.vtadmin.Schema.ShardTableSize.encode(message.by_shard[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; + /** + * Constructs a new Schema. + * @memberof vtadmin + * @classdesc Represents a Schema. + * @implements ISchema + * @constructor + * @param {vtadmin.ISchema=} [properties] Properties to set + */ + function Schema(properties) { + this.table_definitions = []; + this.table_sizes = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified TableSize message, length delimited. Does not implicitly {@link vtadmin.Schema.TableSize.verify|verify} messages. - * @function encodeDelimited - * @memberof vtadmin.Schema.TableSize - * @static - * @param {vtadmin.Schema.ITableSize} message TableSize message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TableSize.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Schema cluster. + * @member {vtadmin.ICluster|null|undefined} cluster + * @memberof vtadmin.Schema + * @instance + */ + Schema.prototype.cluster = null; - /** - * Decodes a TableSize message from the specified reader or buffer. - * @function decode - * @memberof vtadmin.Schema.TableSize - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vtadmin.Schema.TableSize} TableSize - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TableSize.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.Schema.TableSize(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.row_count = reader.uint64(); - break; - case 2: - message.data_length = reader.uint64(); - break; - case 3: - if (message.by_shard === $util.emptyObject) - message.by_shard = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.vtadmin.Schema.ShardTableSize.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.by_shard[key] = value; - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Schema keyspace. + * @member {string} keyspace + * @memberof vtadmin.Schema + * @instance + */ + Schema.prototype.keyspace = ""; - /** - * Decodes a TableSize message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtadmin.Schema.TableSize - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtadmin.Schema.TableSize} TableSize - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TableSize.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Schema table_definitions. + * @member {Array.} table_definitions + * @memberof vtadmin.Schema + * @instance + */ + Schema.prototype.table_definitions = $util.emptyArray; - /** - * Verifies a TableSize message. - * @function verify - * @memberof vtadmin.Schema.TableSize - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TableSize.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.row_count != null && message.hasOwnProperty("row_count")) - if (!$util.isInteger(message.row_count) && !(message.row_count && $util.isInteger(message.row_count.low) && $util.isInteger(message.row_count.high))) - return "row_count: integer|Long expected"; - if (message.data_length != null && message.hasOwnProperty("data_length")) - if (!$util.isInteger(message.data_length) && !(message.data_length && $util.isInteger(message.data_length.low) && $util.isInteger(message.data_length.high))) - return "data_length: integer|Long expected"; - if (message.by_shard != null && message.hasOwnProperty("by_shard")) { - if (!$util.isObject(message.by_shard)) - return "by_shard: object expected"; - var key = Object.keys(message.by_shard); - for (var i = 0; i < key.length; ++i) { - var error = $root.vtadmin.Schema.ShardTableSize.verify(message.by_shard[key[i]]); - if (error) - return "by_shard." + error; - } + /** + * Schema table_sizes. + * @member {Object.} table_sizes + * @memberof vtadmin.Schema + * @instance + */ + Schema.prototype.table_sizes = $util.emptyObject; + + /** + * Creates a new Schema instance using the specified properties. + * @function create + * @memberof vtadmin.Schema + * @static + * @param {vtadmin.ISchema=} [properties] Properties to set + * @returns {vtadmin.Schema} Schema instance + */ + Schema.create = function create(properties) { + return new Schema(properties); + }; + + /** + * Encodes the specified Schema message. Does not implicitly {@link vtadmin.Schema.verify|verify} messages. + * @function encode + * @memberof vtadmin.Schema + * @static + * @param {vtadmin.ISchema} message Schema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Schema.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) + $root.vtadmin.Cluster.encode(message.cluster, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.keyspace); + if (message.table_definitions != null && message.table_definitions.length) + for (var i = 0; i < message.table_definitions.length; ++i) + $root.tabletmanagerdata.TableDefinition.encode(message.table_definitions[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.table_sizes != null && Object.hasOwnProperty.call(message, "table_sizes")) + for (var keys = Object.keys(message.table_sizes), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.vtadmin.Schema.TableSize.encode(message.table_sizes[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); } - return null; - }; + return writer; + }; - /** - * Creates a TableSize message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtadmin.Schema.TableSize - * @static - * @param {Object.} object Plain object - * @returns {vtadmin.Schema.TableSize} TableSize - */ - TableSize.fromObject = function fromObject(object) { - if (object instanceof $root.vtadmin.Schema.TableSize) - return object; - var message = new $root.vtadmin.Schema.TableSize(); - if (object.row_count != null) - if ($util.Long) - (message.row_count = $util.Long.fromValue(object.row_count)).unsigned = true; - else if (typeof object.row_count === "string") - message.row_count = parseInt(object.row_count, 10); - else if (typeof object.row_count === "number") - message.row_count = object.row_count; - else if (typeof object.row_count === "object") - message.row_count = new $util.LongBits(object.row_count.low >>> 0, object.row_count.high >>> 0).toNumber(true); - if (object.data_length != null) - if ($util.Long) - (message.data_length = $util.Long.fromValue(object.data_length)).unsigned = true; - else if (typeof object.data_length === "string") - message.data_length = parseInt(object.data_length, 10); - else if (typeof object.data_length === "number") - message.data_length = object.data_length; - else if (typeof object.data_length === "object") - message.data_length = new $util.LongBits(object.data_length.low >>> 0, object.data_length.high >>> 0).toNumber(true); - if (object.by_shard) { - if (typeof object.by_shard !== "object") - throw TypeError(".vtadmin.Schema.TableSize.by_shard: object expected"); - message.by_shard = {}; - for (var keys = Object.keys(object.by_shard), i = 0; i < keys.length; ++i) { - if (typeof object.by_shard[keys[i]] !== "object") - throw TypeError(".vtadmin.Schema.TableSize.by_shard: object expected"); - message.by_shard[keys[i]] = $root.vtadmin.Schema.ShardTableSize.fromObject(object.by_shard[keys[i]]); + /** + * Encodes the specified Schema message, length delimited. Does not implicitly {@link vtadmin.Schema.verify|verify} messages. + * @function encodeDelimited + * @memberof vtadmin.Schema + * @static + * @param {vtadmin.ISchema} message Schema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Schema.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Schema message from the specified reader or buffer. + * @function decode + * @memberof vtadmin.Schema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtadmin.Schema} Schema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Schema.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.Schema(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.cluster = $root.vtadmin.Cluster.decode(reader, reader.uint32()); + break; + case 2: + message.keyspace = reader.string(); + break; + case 3: + if (!(message.table_definitions && message.table_definitions.length)) + message.table_definitions = []; + message.table_definitions.push($root.tabletmanagerdata.TableDefinition.decode(reader, reader.uint32())); + break; + case 4: + if (message.table_sizes === $util.emptyObject) + message.table_sizes = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.vtadmin.Schema.TableSize.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } } + message.table_sizes[key] = value; + break; + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Creates a plain object from a TableSize message. Also converts values to other types if specified. - * @function toObject - * @memberof vtadmin.Schema.TableSize - * @static - * @param {vtadmin.Schema.TableSize} message TableSize - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TableSize.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) - object.by_shard = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.row_count = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.row_count = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.data_length = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.data_length = options.longs === String ? "0" : 0; + /** + * Decodes a Schema message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtadmin.Schema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtadmin.Schema} Schema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Schema.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Schema message. + * @function verify + * @memberof vtadmin.Schema + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Schema.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.cluster != null && message.hasOwnProperty("cluster")) { + var error = $root.vtadmin.Cluster.verify(message.cluster); + if (error) + return "cluster." + error; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.table_definitions != null && message.hasOwnProperty("table_definitions")) { + if (!Array.isArray(message.table_definitions)) + return "table_definitions: array expected"; + for (var i = 0; i < message.table_definitions.length; ++i) { + var error = $root.tabletmanagerdata.TableDefinition.verify(message.table_definitions[i]); + if (error) + return "table_definitions." + error; } - if (message.row_count != null && message.hasOwnProperty("row_count")) - if (typeof message.row_count === "number") - object.row_count = options.longs === String ? String(message.row_count) : message.row_count; - else - object.row_count = options.longs === String ? $util.Long.prototype.toString.call(message.row_count) : options.longs === Number ? new $util.LongBits(message.row_count.low >>> 0, message.row_count.high >>> 0).toNumber(true) : message.row_count; - if (message.data_length != null && message.hasOwnProperty("data_length")) - if (typeof message.data_length === "number") - object.data_length = options.longs === String ? String(message.data_length) : message.data_length; - else - object.data_length = options.longs === String ? $util.Long.prototype.toString.call(message.data_length) : options.longs === Number ? new $util.LongBits(message.data_length.low >>> 0, message.data_length.high >>> 0).toNumber(true) : message.data_length; - var keys2; - if (message.by_shard && (keys2 = Object.keys(message.by_shard)).length) { - object.by_shard = {}; - for (var j = 0; j < keys2.length; ++j) - object.by_shard[keys2[j]] = $root.vtadmin.Schema.ShardTableSize.toObject(message.by_shard[keys2[j]], options); + } + if (message.table_sizes != null && message.hasOwnProperty("table_sizes")) { + if (!$util.isObject(message.table_sizes)) + return "table_sizes: object expected"; + var key = Object.keys(message.table_sizes); + for (var i = 0; i < key.length; ++i) { + var error = $root.vtadmin.Schema.TableSize.verify(message.table_sizes[key[i]]); + if (error) + return "table_sizes." + error; + } + } + return null; + }; + + /** + * Creates a Schema message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtadmin.Schema + * @static + * @param {Object.} object Plain object + * @returns {vtadmin.Schema} Schema + */ + Schema.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.Schema) + return object; + var message = new $root.vtadmin.Schema(); + if (object.cluster != null) { + if (typeof object.cluster !== "object") + throw TypeError(".vtadmin.Schema.cluster: object expected"); + message.cluster = $root.vtadmin.Cluster.fromObject(object.cluster); + } + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.table_definitions) { + if (!Array.isArray(object.table_definitions)) + throw TypeError(".vtadmin.Schema.table_definitions: array expected"); + message.table_definitions = []; + for (var i = 0; i < object.table_definitions.length; ++i) { + if (typeof object.table_definitions[i] !== "object") + throw TypeError(".vtadmin.Schema.table_definitions: object expected"); + message.table_definitions[i] = $root.tabletmanagerdata.TableDefinition.fromObject(object.table_definitions[i]); + } + } + if (object.table_sizes) { + if (typeof object.table_sizes !== "object") + throw TypeError(".vtadmin.Schema.table_sizes: object expected"); + message.table_sizes = {}; + for (var keys = Object.keys(object.table_sizes), i = 0; i < keys.length; ++i) { + if (typeof object.table_sizes[keys[i]] !== "object") + throw TypeError(".vtadmin.Schema.table_sizes: object expected"); + message.table_sizes[keys[i]] = $root.vtadmin.Schema.TableSize.fromObject(object.table_sizes[keys[i]]); } + } + return message; + }; + + /** + * Creates a plain object from a Schema message. Also converts values to other types if specified. + * @function toObject + * @memberof vtadmin.Schema + * @static + * @param {vtadmin.Schema} message Schema + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Schema.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.table_definitions = []; + if (options.objects || options.defaults) + object.table_sizes = {}; + if (options.defaults) { + object.cluster = null; + object.keyspace = ""; + } + if (message.cluster != null && message.hasOwnProperty("cluster")) + object.cluster = $root.vtadmin.Cluster.toObject(message.cluster, options); + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.table_definitions && message.table_definitions.length) { + object.table_definitions = []; + for (var j = 0; j < message.table_definitions.length; ++j) + object.table_definitions[j] = $root.tabletmanagerdata.TableDefinition.toObject(message.table_definitions[j], options); + } + var keys2; + if (message.table_sizes && (keys2 = Object.keys(message.table_sizes)).length) { + object.table_sizes = {}; + for (var j = 0; j < keys2.length; ++j) + object.table_sizes[keys2[j]] = $root.vtadmin.Schema.TableSize.toObject(message.table_sizes[keys2[j]], options); + } + return object; + }; + + /** + * Converts this Schema to JSON. + * @function toJSON + * @memberof vtadmin.Schema + * @instance + * @returns {Object.} JSON object + */ + Schema.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + Schema.ShardTableSize = (function() { + + /** + * Properties of a ShardTableSize. + * @memberof vtadmin.Schema + * @interface IShardTableSize + * @property {number|Long|null} [row_count] ShardTableSize row_count + * @property {number|Long|null} [data_length] ShardTableSize data_length + */ + + /** + * Constructs a new ShardTableSize. + * @memberof vtadmin.Schema + * @classdesc Represents a ShardTableSize. + * @implements IShardTableSize + * @constructor + * @param {vtadmin.Schema.IShardTableSize=} [properties] Properties to set + */ + function ShardTableSize(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ShardTableSize row_count. + * @member {number|Long} row_count + * @memberof vtadmin.Schema.ShardTableSize + * @instance + */ + ShardTableSize.prototype.row_count = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * ShardTableSize data_length. + * @member {number|Long} data_length + * @memberof vtadmin.Schema.ShardTableSize + * @instance + */ + ShardTableSize.prototype.data_length = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Creates a new ShardTableSize instance using the specified properties. + * @function create + * @memberof vtadmin.Schema.ShardTableSize + * @static + * @param {vtadmin.Schema.IShardTableSize=} [properties] Properties to set + * @returns {vtadmin.Schema.ShardTableSize} ShardTableSize instance + */ + ShardTableSize.create = function create(properties) { + return new ShardTableSize(properties); + }; + + /** + * Encodes the specified ShardTableSize message. Does not implicitly {@link vtadmin.Schema.ShardTableSize.verify|verify} messages. + * @function encode + * @memberof vtadmin.Schema.ShardTableSize + * @static + * @param {vtadmin.Schema.IShardTableSize} message ShardTableSize message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ShardTableSize.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.row_count != null && Object.hasOwnProperty.call(message, "row_count")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.row_count); + if (message.data_length != null && Object.hasOwnProperty.call(message, "data_length")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.data_length); + return writer; + }; + + /** + * Encodes the specified ShardTableSize message, length delimited. Does not implicitly {@link vtadmin.Schema.ShardTableSize.verify|verify} messages. + * @function encodeDelimited + * @memberof vtadmin.Schema.ShardTableSize + * @static + * @param {vtadmin.Schema.IShardTableSize} message ShardTableSize message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ShardTableSize.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ShardTableSize message from the specified reader or buffer. + * @function decode + * @memberof vtadmin.Schema.ShardTableSize + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtadmin.Schema.ShardTableSize} ShardTableSize + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ShardTableSize.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.Schema.ShardTableSize(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.row_count = reader.uint64(); + break; + case 2: + message.data_length = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ShardTableSize message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtadmin.Schema.ShardTableSize + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtadmin.Schema.ShardTableSize} ShardTableSize + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ShardTableSize.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ShardTableSize message. + * @function verify + * @memberof vtadmin.Schema.ShardTableSize + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ShardTableSize.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.row_count != null && message.hasOwnProperty("row_count")) + if (!$util.isInteger(message.row_count) && !(message.row_count && $util.isInteger(message.row_count.low) && $util.isInteger(message.row_count.high))) + return "row_count: integer|Long expected"; + if (message.data_length != null && message.hasOwnProperty("data_length")) + if (!$util.isInteger(message.data_length) && !(message.data_length && $util.isInteger(message.data_length.low) && $util.isInteger(message.data_length.high))) + return "data_length: integer|Long expected"; + return null; + }; + + /** + * Creates a ShardTableSize message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtadmin.Schema.ShardTableSize + * @static + * @param {Object.} object Plain object + * @returns {vtadmin.Schema.ShardTableSize} ShardTableSize + */ + ShardTableSize.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.Schema.ShardTableSize) + return object; + var message = new $root.vtadmin.Schema.ShardTableSize(); + if (object.row_count != null) + if ($util.Long) + (message.row_count = $util.Long.fromValue(object.row_count)).unsigned = true; + else if (typeof object.row_count === "string") + message.row_count = parseInt(object.row_count, 10); + else if (typeof object.row_count === "number") + message.row_count = object.row_count; + else if (typeof object.row_count === "object") + message.row_count = new $util.LongBits(object.row_count.low >>> 0, object.row_count.high >>> 0).toNumber(true); + if (object.data_length != null) + if ($util.Long) + (message.data_length = $util.Long.fromValue(object.data_length)).unsigned = true; + else if (typeof object.data_length === "string") + message.data_length = parseInt(object.data_length, 10); + else if (typeof object.data_length === "number") + message.data_length = object.data_length; + else if (typeof object.data_length === "object") + message.data_length = new $util.LongBits(object.data_length.low >>> 0, object.data_length.high >>> 0).toNumber(true); + return message; + }; + + /** + * Creates a plain object from a ShardTableSize message. Also converts values to other types if specified. + * @function toObject + * @memberof vtadmin.Schema.ShardTableSize + * @static + * @param {vtadmin.Schema.ShardTableSize} message ShardTableSize + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ShardTableSize.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.row_count = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.row_count = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.data_length = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.data_length = options.longs === String ? "0" : 0; + } + if (message.row_count != null && message.hasOwnProperty("row_count")) + if (typeof message.row_count === "number") + object.row_count = options.longs === String ? String(message.row_count) : message.row_count; + else + object.row_count = options.longs === String ? $util.Long.prototype.toString.call(message.row_count) : options.longs === Number ? new $util.LongBits(message.row_count.low >>> 0, message.row_count.high >>> 0).toNumber(true) : message.row_count; + if (message.data_length != null && message.hasOwnProperty("data_length")) + if (typeof message.data_length === "number") + object.data_length = options.longs === String ? String(message.data_length) : message.data_length; + else + object.data_length = options.longs === String ? $util.Long.prototype.toString.call(message.data_length) : options.longs === Number ? new $util.LongBits(message.data_length.low >>> 0, message.data_length.high >>> 0).toNumber(true) : message.data_length; + return object; + }; + + /** + * Converts this ShardTableSize to JSON. + * @function toJSON + * @memberof vtadmin.Schema.ShardTableSize + * @instance + * @returns {Object.} JSON object + */ + ShardTableSize.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ShardTableSize; + })(); + + Schema.TableSize = (function() { + + /** + * Properties of a TableSize. + * @memberof vtadmin.Schema + * @interface ITableSize + * @property {number|Long|null} [row_count] TableSize row_count + * @property {number|Long|null} [data_length] TableSize data_length + * @property {Object.|null} [by_shard] TableSize by_shard + */ + + /** + * Constructs a new TableSize. + * @memberof vtadmin.Schema + * @classdesc Represents a TableSize. + * @implements ITableSize + * @constructor + * @param {vtadmin.Schema.ITableSize=} [properties] Properties to set + */ + function TableSize(properties) { + this.by_shard = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TableSize row_count. + * @member {number|Long} row_count + * @memberof vtadmin.Schema.TableSize + * @instance + */ + TableSize.prototype.row_count = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * TableSize data_length. + * @member {number|Long} data_length + * @memberof vtadmin.Schema.TableSize + * @instance + */ + TableSize.prototype.data_length = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * TableSize by_shard. + * @member {Object.} by_shard + * @memberof vtadmin.Schema.TableSize + * @instance + */ + TableSize.prototype.by_shard = $util.emptyObject; + + /** + * Creates a new TableSize instance using the specified properties. + * @function create + * @memberof vtadmin.Schema.TableSize + * @static + * @param {vtadmin.Schema.ITableSize=} [properties] Properties to set + * @returns {vtadmin.Schema.TableSize} TableSize instance + */ + TableSize.create = function create(properties) { + return new TableSize(properties); + }; + + /** + * Encodes the specified TableSize message. Does not implicitly {@link vtadmin.Schema.TableSize.verify|verify} messages. + * @function encode + * @memberof vtadmin.Schema.TableSize + * @static + * @param {vtadmin.Schema.ITableSize} message TableSize message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TableSize.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.row_count != null && Object.hasOwnProperty.call(message, "row_count")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.row_count); + if (message.data_length != null && Object.hasOwnProperty.call(message, "data_length")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.data_length); + if (message.by_shard != null && Object.hasOwnProperty.call(message, "by_shard")) + for (var keys = Object.keys(message.by_shard), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.vtadmin.Schema.ShardTableSize.encode(message.by_shard[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Encodes the specified TableSize message, length delimited. Does not implicitly {@link vtadmin.Schema.TableSize.verify|verify} messages. + * @function encodeDelimited + * @memberof vtadmin.Schema.TableSize + * @static + * @param {vtadmin.Schema.ITableSize} message TableSize message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TableSize.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TableSize message from the specified reader or buffer. + * @function decode + * @memberof vtadmin.Schema.TableSize + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtadmin.Schema.TableSize} TableSize + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TableSize.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.Schema.TableSize(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.row_count = reader.uint64(); + break; + case 2: + message.data_length = reader.uint64(); + break; + case 3: + if (message.by_shard === $util.emptyObject) + message.by_shard = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.vtadmin.Schema.ShardTableSize.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.by_shard[key] = value; + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TableSize message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtadmin.Schema.TableSize + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtadmin.Schema.TableSize} TableSize + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TableSize.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TableSize message. + * @function verify + * @memberof vtadmin.Schema.TableSize + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TableSize.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.row_count != null && message.hasOwnProperty("row_count")) + if (!$util.isInteger(message.row_count) && !(message.row_count && $util.isInteger(message.row_count.low) && $util.isInteger(message.row_count.high))) + return "row_count: integer|Long expected"; + if (message.data_length != null && message.hasOwnProperty("data_length")) + if (!$util.isInteger(message.data_length) && !(message.data_length && $util.isInteger(message.data_length.low) && $util.isInteger(message.data_length.high))) + return "data_length: integer|Long expected"; + if (message.by_shard != null && message.hasOwnProperty("by_shard")) { + if (!$util.isObject(message.by_shard)) + return "by_shard: object expected"; + var key = Object.keys(message.by_shard); + for (var i = 0; i < key.length; ++i) { + var error = $root.vtadmin.Schema.ShardTableSize.verify(message.by_shard[key[i]]); + if (error) + return "by_shard." + error; + } + } + return null; + }; + + /** + * Creates a TableSize message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtadmin.Schema.TableSize + * @static + * @param {Object.} object Plain object + * @returns {vtadmin.Schema.TableSize} TableSize + */ + TableSize.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.Schema.TableSize) + return object; + var message = new $root.vtadmin.Schema.TableSize(); + if (object.row_count != null) + if ($util.Long) + (message.row_count = $util.Long.fromValue(object.row_count)).unsigned = true; + else if (typeof object.row_count === "string") + message.row_count = parseInt(object.row_count, 10); + else if (typeof object.row_count === "number") + message.row_count = object.row_count; + else if (typeof object.row_count === "object") + message.row_count = new $util.LongBits(object.row_count.low >>> 0, object.row_count.high >>> 0).toNumber(true); + if (object.data_length != null) + if ($util.Long) + (message.data_length = $util.Long.fromValue(object.data_length)).unsigned = true; + else if (typeof object.data_length === "string") + message.data_length = parseInt(object.data_length, 10); + else if (typeof object.data_length === "number") + message.data_length = object.data_length; + else if (typeof object.data_length === "object") + message.data_length = new $util.LongBits(object.data_length.low >>> 0, object.data_length.high >>> 0).toNumber(true); + if (object.by_shard) { + if (typeof object.by_shard !== "object") + throw TypeError(".vtadmin.Schema.TableSize.by_shard: object expected"); + message.by_shard = {}; + for (var keys = Object.keys(object.by_shard), i = 0; i < keys.length; ++i) { + if (typeof object.by_shard[keys[i]] !== "object") + throw TypeError(".vtadmin.Schema.TableSize.by_shard: object expected"); + message.by_shard[keys[i]] = $root.vtadmin.Schema.ShardTableSize.fromObject(object.by_shard[keys[i]]); + } + } + return message; + }; + + /** + * Creates a plain object from a TableSize message. Also converts values to other types if specified. + * @function toObject + * @memberof vtadmin.Schema.TableSize + * @static + * @param {vtadmin.Schema.TableSize} message TableSize + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TableSize.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.by_shard = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.row_count = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.row_count = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.data_length = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.data_length = options.longs === String ? "0" : 0; + } + if (message.row_count != null && message.hasOwnProperty("row_count")) + if (typeof message.row_count === "number") + object.row_count = options.longs === String ? String(message.row_count) : message.row_count; + else + object.row_count = options.longs === String ? $util.Long.prototype.toString.call(message.row_count) : options.longs === Number ? new $util.LongBits(message.row_count.low >>> 0, message.row_count.high >>> 0).toNumber(true) : message.row_count; + if (message.data_length != null && message.hasOwnProperty("data_length")) + if (typeof message.data_length === "number") + object.data_length = options.longs === String ? String(message.data_length) : message.data_length; + else + object.data_length = options.longs === String ? $util.Long.prototype.toString.call(message.data_length) : options.longs === Number ? new $util.LongBits(message.data_length.low >>> 0, message.data_length.high >>> 0).toNumber(true) : message.data_length; + var keys2; + if (message.by_shard && (keys2 = Object.keys(message.by_shard)).length) { + object.by_shard = {}; + for (var j = 0; j < keys2.length; ++j) + object.by_shard[keys2[j]] = $root.vtadmin.Schema.ShardTableSize.toObject(message.by_shard[keys2[j]], options); + } + return object; + }; + + /** + * Converts this TableSize to JSON. + * @function toJSON + * @memberof vtadmin.Schema.TableSize + * @instance + * @returns {Object.} JSON object + */ + TableSize.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return TableSize; + })(); + + return Schema; + })(); + + vtadmin.SrvVSchema = (function() { + + /** + * Properties of a SrvVSchema. + * @memberof vtadmin + * @interface ISrvVSchema + * @property {string|null} [cell] SrvVSchema cell + * @property {vtadmin.ICluster|null} [cluster] SrvVSchema cluster + * @property {vschema.ISrvVSchema|null} [srv_v_schema] SrvVSchema srv_v_schema + */ + + /** + * Constructs a new SrvVSchema. + * @memberof vtadmin + * @classdesc Represents a SrvVSchema. + * @implements ISrvVSchema + * @constructor + * @param {vtadmin.ISrvVSchema=} [properties] Properties to set + */ + function SrvVSchema(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SrvVSchema cell. + * @member {string} cell + * @memberof vtadmin.SrvVSchema + * @instance + */ + SrvVSchema.prototype.cell = ""; + + /** + * SrvVSchema cluster. + * @member {vtadmin.ICluster|null|undefined} cluster + * @memberof vtadmin.SrvVSchema + * @instance + */ + SrvVSchema.prototype.cluster = null; + + /** + * SrvVSchema srv_v_schema. + * @member {vschema.ISrvVSchema|null|undefined} srv_v_schema + * @memberof vtadmin.SrvVSchema + * @instance + */ + SrvVSchema.prototype.srv_v_schema = null; + + /** + * Creates a new SrvVSchema instance using the specified properties. + * @function create + * @memberof vtadmin.SrvVSchema + * @static + * @param {vtadmin.ISrvVSchema=} [properties] Properties to set + * @returns {vtadmin.SrvVSchema} SrvVSchema instance + */ + SrvVSchema.create = function create(properties) { + return new SrvVSchema(properties); + }; + + /** + * Encodes the specified SrvVSchema message. Does not implicitly {@link vtadmin.SrvVSchema.verify|verify} messages. + * @function encode + * @memberof vtadmin.SrvVSchema + * @static + * @param {vtadmin.ISrvVSchema} message SrvVSchema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SrvVSchema.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cell); + if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) + $root.vtadmin.Cluster.encode(message.cluster, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.srv_v_schema != null && Object.hasOwnProperty.call(message, "srv_v_schema")) + $root.vschema.SrvVSchema.encode(message.srv_v_schema, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SrvVSchema message, length delimited. Does not implicitly {@link vtadmin.SrvVSchema.verify|verify} messages. + * @function encodeDelimited + * @memberof vtadmin.SrvVSchema + * @static + * @param {vtadmin.ISrvVSchema} message SrvVSchema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SrvVSchema.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SrvVSchema message from the specified reader or buffer. + * @function decode + * @memberof vtadmin.SrvVSchema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtadmin.SrvVSchema} SrvVSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SrvVSchema.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.SrvVSchema(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.cell = reader.string(); + break; + case 2: + message.cluster = $root.vtadmin.Cluster.decode(reader, reader.uint32()); + break; + case 3: + message.srv_v_schema = $root.vschema.SrvVSchema.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SrvVSchema message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtadmin.SrvVSchema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtadmin.SrvVSchema} SrvVSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SrvVSchema.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SrvVSchema message. + * @function verify + * @memberof vtadmin.SrvVSchema + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SrvVSchema.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.cell != null && message.hasOwnProperty("cell")) + if (!$util.isString(message.cell)) + return "cell: string expected"; + if (message.cluster != null && message.hasOwnProperty("cluster")) { + var error = $root.vtadmin.Cluster.verify(message.cluster); + if (error) + return "cluster." + error; + } + if (message.srv_v_schema != null && message.hasOwnProperty("srv_v_schema")) { + var error = $root.vschema.SrvVSchema.verify(message.srv_v_schema); + if (error) + return "srv_v_schema." + error; + } + return null; + }; + + /** + * Creates a SrvVSchema message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtadmin.SrvVSchema + * @static + * @param {Object.} object Plain object + * @returns {vtadmin.SrvVSchema} SrvVSchema + */ + SrvVSchema.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.SrvVSchema) + return object; + var message = new $root.vtadmin.SrvVSchema(); + if (object.cell != null) + message.cell = String(object.cell); + if (object.cluster != null) { + if (typeof object.cluster !== "object") + throw TypeError(".vtadmin.SrvVSchema.cluster: object expected"); + message.cluster = $root.vtadmin.Cluster.fromObject(object.cluster); + } + if (object.srv_v_schema != null) { + if (typeof object.srv_v_schema !== "object") + throw TypeError(".vtadmin.SrvVSchema.srv_v_schema: object expected"); + message.srv_v_schema = $root.vschema.SrvVSchema.fromObject(object.srv_v_schema); + } + return message; + }; + + /** + * Creates a plain object from a SrvVSchema message. Also converts values to other types if specified. + * @function toObject + * @memberof vtadmin.SrvVSchema + * @static + * @param {vtadmin.SrvVSchema} message SrvVSchema + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SrvVSchema.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.cell = ""; + object.cluster = null; + object.srv_v_schema = null; + } + if (message.cell != null && message.hasOwnProperty("cell")) + object.cell = message.cell; + if (message.cluster != null && message.hasOwnProperty("cluster")) + object.cluster = $root.vtadmin.Cluster.toObject(message.cluster, options); + if (message.srv_v_schema != null && message.hasOwnProperty("srv_v_schema")) + object.srv_v_schema = $root.vschema.SrvVSchema.toObject(message.srv_v_schema, options); + return object; + }; + + /** + * Converts this SrvVSchema to JSON. + * @function toJSON + * @memberof vtadmin.SrvVSchema + * @instance + * @returns {Object.} JSON object + */ + SrvVSchema.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SrvVSchema; + })(); + + vtadmin.Tablet = (function() { + + /** + * Properties of a Tablet. + * @memberof vtadmin + * @interface ITablet + * @property {vtadmin.ICluster|null} [cluster] Tablet cluster + * @property {topodata.ITablet|null} [tablet] Tablet tablet + * @property {vtadmin.Tablet.ServingState|null} [state] Tablet state + * @property {string|null} [FQDN] Tablet FQDN + */ + + /** + * Constructs a new Tablet. + * @memberof vtadmin + * @classdesc Represents a Tablet. + * @implements ITablet + * @constructor + * @param {vtadmin.ITablet=} [properties] Properties to set + */ + function Tablet(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Tablet cluster. + * @member {vtadmin.ICluster|null|undefined} cluster + * @memberof vtadmin.Tablet + * @instance + */ + Tablet.prototype.cluster = null; + + /** + * Tablet tablet. + * @member {topodata.ITablet|null|undefined} tablet + * @memberof vtadmin.Tablet + * @instance + */ + Tablet.prototype.tablet = null; + + /** + * Tablet state. + * @member {vtadmin.Tablet.ServingState} state + * @memberof vtadmin.Tablet + * @instance + */ + Tablet.prototype.state = 0; + + /** + * Tablet FQDN. + * @member {string} FQDN + * @memberof vtadmin.Tablet + * @instance + */ + Tablet.prototype.FQDN = ""; + + /** + * Creates a new Tablet instance using the specified properties. + * @function create + * @memberof vtadmin.Tablet + * @static + * @param {vtadmin.ITablet=} [properties] Properties to set + * @returns {vtadmin.Tablet} Tablet instance + */ + Tablet.create = function create(properties) { + return new Tablet(properties); + }; + + /** + * Encodes the specified Tablet message. Does not implicitly {@link vtadmin.Tablet.verify|verify} messages. + * @function encode + * @memberof vtadmin.Tablet + * @static + * @param {vtadmin.ITablet} message Tablet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Tablet.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) + $root.vtadmin.Cluster.encode(message.cluster, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.tablet != null && Object.hasOwnProperty.call(message, "tablet")) + $root.topodata.Tablet.encode(message.tablet, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state); + if (message.FQDN != null && Object.hasOwnProperty.call(message, "FQDN")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.FQDN); + return writer; + }; + + /** + * Encodes the specified Tablet message, length delimited. Does not implicitly {@link vtadmin.Tablet.verify|verify} messages. + * @function encodeDelimited + * @memberof vtadmin.Tablet + * @static + * @param {vtadmin.ITablet} message Tablet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Tablet.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Tablet message from the specified reader or buffer. + * @function decode + * @memberof vtadmin.Tablet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtadmin.Tablet} Tablet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Tablet.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.Tablet(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.cluster = $root.vtadmin.Cluster.decode(reader, reader.uint32()); + break; + case 2: + message.tablet = $root.topodata.Tablet.decode(reader, reader.uint32()); + break; + case 3: + message.state = reader.int32(); + break; + case 4: + message.FQDN = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Tablet message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtadmin.Tablet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtadmin.Tablet} Tablet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Tablet.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Tablet message. + * @function verify + * @memberof vtadmin.Tablet + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Tablet.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.cluster != null && message.hasOwnProperty("cluster")) { + var error = $root.vtadmin.Cluster.verify(message.cluster); + if (error) + return "cluster." + error; + } + if (message.tablet != null && message.hasOwnProperty("tablet")) { + var error = $root.topodata.Tablet.verify(message.tablet); + if (error) + return "tablet." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.FQDN != null && message.hasOwnProperty("FQDN")) + if (!$util.isString(message.FQDN)) + return "FQDN: string expected"; + return null; + }; + + /** + * Creates a Tablet message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtadmin.Tablet + * @static + * @param {Object.} object Plain object + * @returns {vtadmin.Tablet} Tablet + */ + Tablet.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.Tablet) + return object; + var message = new $root.vtadmin.Tablet(); + if (object.cluster != null) { + if (typeof object.cluster !== "object") + throw TypeError(".vtadmin.Tablet.cluster: object expected"); + message.cluster = $root.vtadmin.Cluster.fromObject(object.cluster); + } + if (object.tablet != null) { + if (typeof object.tablet !== "object") + throw TypeError(".vtadmin.Tablet.tablet: object expected"); + message.tablet = $root.topodata.Tablet.fromObject(object.tablet); + } + switch (object.state) { + case "UNKNOWN": + case 0: + message.state = 0; + break; + case "SERVING": + case 1: + message.state = 1; + break; + case "NOT_SERVING": + case 2: + message.state = 2; + break; + } + if (object.FQDN != null) + message.FQDN = String(object.FQDN); + return message; + }; + + /** + * Creates a plain object from a Tablet message. Also converts values to other types if specified. + * @function toObject + * @memberof vtadmin.Tablet + * @static + * @param {vtadmin.Tablet} message Tablet + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Tablet.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.cluster = null; + object.tablet = null; + object.state = options.enums === String ? "UNKNOWN" : 0; + object.FQDN = ""; + } + if (message.cluster != null && message.hasOwnProperty("cluster")) + object.cluster = $root.vtadmin.Cluster.toObject(message.cluster, options); + if (message.tablet != null && message.hasOwnProperty("tablet")) + object.tablet = $root.topodata.Tablet.toObject(message.tablet, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.vtadmin.Tablet.ServingState[message.state] : message.state; + if (message.FQDN != null && message.hasOwnProperty("FQDN")) + object.FQDN = message.FQDN; + return object; + }; + + /** + * Converts this Tablet to JSON. + * @function toJSON + * @memberof vtadmin.Tablet + * @instance + * @returns {Object.} JSON object + */ + Tablet.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * ServingState enum. + * @name vtadmin.Tablet.ServingState + * @enum {number} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} SERVING=1 SERVING value + * @property {number} NOT_SERVING=2 NOT_SERVING value + */ + Tablet.ServingState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "SERVING"] = 1; + values[valuesById[2] = "NOT_SERVING"] = 2; + return values; + })(); + + return Tablet; + })(); + + vtadmin.VSchema = (function() { + + /** + * Properties of a VSchema. + * @memberof vtadmin + * @interface IVSchema + * @property {vtadmin.ICluster|null} [cluster] VSchema cluster + * @property {string|null} [name] VSchema name + * @property {vschema.IKeyspace|null} [v_schema] VSchema v_schema + */ + + /** + * Constructs a new VSchema. + * @memberof vtadmin + * @classdesc Represents a VSchema. + * @implements IVSchema + * @constructor + * @param {vtadmin.IVSchema=} [properties] Properties to set + */ + function VSchema(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * VSchema cluster. + * @member {vtadmin.ICluster|null|undefined} cluster + * @memberof vtadmin.VSchema + * @instance + */ + VSchema.prototype.cluster = null; + + /** + * VSchema name. + * @member {string} name + * @memberof vtadmin.VSchema + * @instance + */ + VSchema.prototype.name = ""; + + /** + * VSchema v_schema. + * @member {vschema.IKeyspace|null|undefined} v_schema + * @memberof vtadmin.VSchema + * @instance + */ + VSchema.prototype.v_schema = null; + + /** + * Creates a new VSchema instance using the specified properties. + * @function create + * @memberof vtadmin.VSchema + * @static + * @param {vtadmin.IVSchema=} [properties] Properties to set + * @returns {vtadmin.VSchema} VSchema instance + */ + VSchema.create = function create(properties) { + return new VSchema(properties); + }; + + /** + * Encodes the specified VSchema message. Does not implicitly {@link vtadmin.VSchema.verify|verify} messages. + * @function encode + * @memberof vtadmin.VSchema + * @static + * @param {vtadmin.IVSchema} message VSchema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VSchema.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) + $root.vtadmin.Cluster.encode(message.cluster, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + if (message.v_schema != null && Object.hasOwnProperty.call(message, "v_schema")) + $root.vschema.Keyspace.encode(message.v_schema, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified VSchema message, length delimited. Does not implicitly {@link vtadmin.VSchema.verify|verify} messages. + * @function encodeDelimited + * @memberof vtadmin.VSchema + * @static + * @param {vtadmin.IVSchema} message VSchema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VSchema.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VSchema message from the specified reader or buffer. + * @function decode + * @memberof vtadmin.VSchema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtadmin.VSchema} VSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VSchema.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.VSchema(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.cluster = $root.vtadmin.Cluster.decode(reader, reader.uint32()); + break; + case 2: + message.name = reader.string(); + break; + case 3: + message.v_schema = $root.vschema.Keyspace.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VSchema message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtadmin.VSchema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtadmin.VSchema} VSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VSchema.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VSchema message. + * @function verify + * @memberof vtadmin.VSchema + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VSchema.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.cluster != null && message.hasOwnProperty("cluster")) { + var error = $root.vtadmin.Cluster.verify(message.cluster); + if (error) + return "cluster." + error; + } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.v_schema != null && message.hasOwnProperty("v_schema")) { + var error = $root.vschema.Keyspace.verify(message.v_schema); + if (error) + return "v_schema." + error; + } + return null; + }; + + /** + * Creates a VSchema message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtadmin.VSchema + * @static + * @param {Object.} object Plain object + * @returns {vtadmin.VSchema} VSchema + */ + VSchema.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.VSchema) + return object; + var message = new $root.vtadmin.VSchema(); + if (object.cluster != null) { + if (typeof object.cluster !== "object") + throw TypeError(".vtadmin.VSchema.cluster: object expected"); + message.cluster = $root.vtadmin.Cluster.fromObject(object.cluster); + } + if (object.name != null) + message.name = String(object.name); + if (object.v_schema != null) { + if (typeof object.v_schema !== "object") + throw TypeError(".vtadmin.VSchema.v_schema: object expected"); + message.v_schema = $root.vschema.Keyspace.fromObject(object.v_schema); + } + return message; + }; + + /** + * Creates a plain object from a VSchema message. Also converts values to other types if specified. + * @function toObject + * @memberof vtadmin.VSchema + * @static + * @param {vtadmin.VSchema} message VSchema + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VSchema.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.cluster = null; + object.name = ""; + object.v_schema = null; + } + if (message.cluster != null && message.hasOwnProperty("cluster")) + object.cluster = $root.vtadmin.Cluster.toObject(message.cluster, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.v_schema != null && message.hasOwnProperty("v_schema")) + object.v_schema = $root.vschema.Keyspace.toObject(message.v_schema, options); + return object; + }; + + /** + * Converts this VSchema to JSON. + * @function toJSON + * @memberof vtadmin.VSchema + * @instance + * @returns {Object.} JSON object + */ + VSchema.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return VSchema; + })(); + + vtadmin.Vtctld = (function() { + + /** + * Properties of a Vtctld. + * @memberof vtadmin + * @interface IVtctld + * @property {string|null} [hostname] Vtctld hostname + * @property {vtadmin.ICluster|null} [cluster] Vtctld cluster + * @property {string|null} [FQDN] Vtctld FQDN + */ + + /** + * Constructs a new Vtctld. + * @memberof vtadmin + * @classdesc Represents a Vtctld. + * @implements IVtctld + * @constructor + * @param {vtadmin.IVtctld=} [properties] Properties to set + */ + function Vtctld(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Vtctld hostname. + * @member {string} hostname + * @memberof vtadmin.Vtctld + * @instance + */ + Vtctld.prototype.hostname = ""; + + /** + * Vtctld cluster. + * @member {vtadmin.ICluster|null|undefined} cluster + * @memberof vtadmin.Vtctld + * @instance + */ + Vtctld.prototype.cluster = null; + + /** + * Vtctld FQDN. + * @member {string} FQDN + * @memberof vtadmin.Vtctld + * @instance + */ + Vtctld.prototype.FQDN = ""; + + /** + * Creates a new Vtctld instance using the specified properties. + * @function create + * @memberof vtadmin.Vtctld + * @static + * @param {vtadmin.IVtctld=} [properties] Properties to set + * @returns {vtadmin.Vtctld} Vtctld instance + */ + Vtctld.create = function create(properties) { + return new Vtctld(properties); + }; + + /** + * Encodes the specified Vtctld message. Does not implicitly {@link vtadmin.Vtctld.verify|verify} messages. + * @function encode + * @memberof vtadmin.Vtctld + * @static + * @param {vtadmin.IVtctld} message Vtctld message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Vtctld.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.hostname != null && Object.hasOwnProperty.call(message, "hostname")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.hostname); + if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) + $root.vtadmin.Cluster.encode(message.cluster, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.FQDN != null && Object.hasOwnProperty.call(message, "FQDN")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.FQDN); + return writer; + }; + + /** + * Encodes the specified Vtctld message, length delimited. Does not implicitly {@link vtadmin.Vtctld.verify|verify} messages. + * @function encodeDelimited + * @memberof vtadmin.Vtctld + * @static + * @param {vtadmin.IVtctld} message Vtctld message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Vtctld.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Vtctld message from the specified reader or buffer. + * @function decode + * @memberof vtadmin.Vtctld + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtadmin.Vtctld} Vtctld + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Vtctld.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.Vtctld(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.hostname = reader.string(); + break; + case 2: + message.cluster = $root.vtadmin.Cluster.decode(reader, reader.uint32()); + break; + case 3: + message.FQDN = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Vtctld message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtadmin.Vtctld + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtadmin.Vtctld} Vtctld + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Vtctld.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Vtctld message. + * @function verify + * @memberof vtadmin.Vtctld + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Vtctld.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.hostname != null && message.hasOwnProperty("hostname")) + if (!$util.isString(message.hostname)) + return "hostname: string expected"; + if (message.cluster != null && message.hasOwnProperty("cluster")) { + var error = $root.vtadmin.Cluster.verify(message.cluster); + if (error) + return "cluster." + error; + } + if (message.FQDN != null && message.hasOwnProperty("FQDN")) + if (!$util.isString(message.FQDN)) + return "FQDN: string expected"; + return null; + }; + + /** + * Creates a Vtctld message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtadmin.Vtctld + * @static + * @param {Object.} object Plain object + * @returns {vtadmin.Vtctld} Vtctld + */ + Vtctld.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.Vtctld) return object; - }; + var message = new $root.vtadmin.Vtctld(); + if (object.hostname != null) + message.hostname = String(object.hostname); + if (object.cluster != null) { + if (typeof object.cluster !== "object") + throw TypeError(".vtadmin.Vtctld.cluster: object expected"); + message.cluster = $root.vtadmin.Cluster.fromObject(object.cluster); + } + if (object.FQDN != null) + message.FQDN = String(object.FQDN); + return message; + }; - /** - * Converts this TableSize to JSON. - * @function toJSON - * @memberof vtadmin.Schema.TableSize - * @instance - * @returns {Object.} JSON object - */ - TableSize.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a Vtctld message. Also converts values to other types if specified. + * @function toObject + * @memberof vtadmin.Vtctld + * @static + * @param {vtadmin.Vtctld} message Vtctld + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Vtctld.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.hostname = ""; + object.cluster = null; + object.FQDN = ""; + } + if (message.hostname != null && message.hasOwnProperty("hostname")) + object.hostname = message.hostname; + if (message.cluster != null && message.hasOwnProperty("cluster")) + object.cluster = $root.vtadmin.Cluster.toObject(message.cluster, options); + if (message.FQDN != null && message.hasOwnProperty("FQDN")) + object.FQDN = message.FQDN; + return object; + }; - return TableSize; - })(); + /** + * Converts this Vtctld to JSON. + * @function toJSON + * @memberof vtadmin.Vtctld + * @instance + * @returns {Object.} JSON object + */ + Vtctld.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Schema; + return Vtctld; })(); - vtadmin.SrvVSchema = (function() { + vtadmin.VTGate = (function() { /** - * Properties of a SrvVSchema. + * Properties of a VTGate. * @memberof vtadmin - * @interface ISrvVSchema - * @property {string|null} [cell] SrvVSchema cell - * @property {vtadmin.ICluster|null} [cluster] SrvVSchema cluster - * @property {vschema.ISrvVSchema|null} [srv_v_schema] SrvVSchema srv_v_schema + * @interface IVTGate + * @property {string|null} [hostname] VTGate hostname + * @property {string|null} [pool] VTGate pool + * @property {string|null} [cell] VTGate cell + * @property {vtadmin.ICluster|null} [cluster] VTGate cluster + * @property {Array.|null} [keyspaces] VTGate keyspaces + * @property {string|null} [FQDN] VTGate FQDN */ /** - * Constructs a new SrvVSchema. + * Constructs a new VTGate. * @memberof vtadmin - * @classdesc Represents a SrvVSchema. - * @implements ISrvVSchema + * @classdesc Represents a VTGate. + * @implements IVTGate * @constructor - * @param {vtadmin.ISrvVSchema=} [properties] Properties to set + * @param {vtadmin.IVTGate=} [properties] Properties to set */ - function SrvVSchema(properties) { + function VTGate(properties) { + this.keyspaces = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3326,101 +4914,143 @@ $root.vtadmin = (function() { } /** - * SrvVSchema cell. + * VTGate hostname. + * @member {string} hostname + * @memberof vtadmin.VTGate + * @instance + */ + VTGate.prototype.hostname = ""; + + /** + * VTGate pool. + * @member {string} pool + * @memberof vtadmin.VTGate + * @instance + */ + VTGate.prototype.pool = ""; + + /** + * VTGate cell. * @member {string} cell - * @memberof vtadmin.SrvVSchema + * @memberof vtadmin.VTGate * @instance */ - SrvVSchema.prototype.cell = ""; + VTGate.prototype.cell = ""; /** - * SrvVSchema cluster. + * VTGate cluster. * @member {vtadmin.ICluster|null|undefined} cluster - * @memberof vtadmin.SrvVSchema + * @memberof vtadmin.VTGate * @instance */ - SrvVSchema.prototype.cluster = null; + VTGate.prototype.cluster = null; /** - * SrvVSchema srv_v_schema. - * @member {vschema.ISrvVSchema|null|undefined} srv_v_schema - * @memberof vtadmin.SrvVSchema + * VTGate keyspaces. + * @member {Array.} keyspaces + * @memberof vtadmin.VTGate * @instance */ - SrvVSchema.prototype.srv_v_schema = null; + VTGate.prototype.keyspaces = $util.emptyArray; /** - * Creates a new SrvVSchema instance using the specified properties. + * VTGate FQDN. + * @member {string} FQDN + * @memberof vtadmin.VTGate + * @instance + */ + VTGate.prototype.FQDN = ""; + + /** + * Creates a new VTGate instance using the specified properties. * @function create - * @memberof vtadmin.SrvVSchema + * @memberof vtadmin.VTGate * @static - * @param {vtadmin.ISrvVSchema=} [properties] Properties to set - * @returns {vtadmin.SrvVSchema} SrvVSchema instance + * @param {vtadmin.IVTGate=} [properties] Properties to set + * @returns {vtadmin.VTGate} VTGate instance */ - SrvVSchema.create = function create(properties) { - return new SrvVSchema(properties); + VTGate.create = function create(properties) { + return new VTGate(properties); }; /** - * Encodes the specified SrvVSchema message. Does not implicitly {@link vtadmin.SrvVSchema.verify|verify} messages. + * Encodes the specified VTGate message. Does not implicitly {@link vtadmin.VTGate.verify|verify} messages. * @function encode - * @memberof vtadmin.SrvVSchema + * @memberof vtadmin.VTGate * @static - * @param {vtadmin.ISrvVSchema} message SrvVSchema message or plain object to encode + * @param {vtadmin.IVTGate} message VTGate message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SrvVSchema.encode = function encode(message, writer) { + VTGate.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.hostname != null && Object.hasOwnProperty.call(message, "hostname")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.hostname); + if (message.pool != null && Object.hasOwnProperty.call(message, "pool")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.pool); if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.cell); + writer.uint32(/* id 3, wireType 2 =*/26).string(message.cell); if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) - $root.vtadmin.Cluster.encode(message.cluster, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.srv_v_schema != null && Object.hasOwnProperty.call(message, "srv_v_schema")) - $root.vschema.SrvVSchema.encode(message.srv_v_schema, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.vtadmin.Cluster.encode(message.cluster, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.keyspaces != null && message.keyspaces.length) + for (var i = 0; i < message.keyspaces.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.keyspaces[i]); + if (message.FQDN != null && Object.hasOwnProperty.call(message, "FQDN")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.FQDN); return writer; }; /** - * Encodes the specified SrvVSchema message, length delimited. Does not implicitly {@link vtadmin.SrvVSchema.verify|verify} messages. + * Encodes the specified VTGate message, length delimited. Does not implicitly {@link vtadmin.VTGate.verify|verify} messages. * @function encodeDelimited - * @memberof vtadmin.SrvVSchema + * @memberof vtadmin.VTGate * @static - * @param {vtadmin.ISrvVSchema} message SrvVSchema message or plain object to encode + * @param {vtadmin.IVTGate} message VTGate message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SrvVSchema.encodeDelimited = function encodeDelimited(message, writer) { + VTGate.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SrvVSchema message from the specified reader or buffer. + * Decodes a VTGate message from the specified reader or buffer. * @function decode - * @memberof vtadmin.SrvVSchema + * @memberof vtadmin.VTGate * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtadmin.SrvVSchema} SrvVSchema + * @returns {vtadmin.VTGate} VTGate * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SrvVSchema.decode = function decode(reader, length) { + VTGate.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.SrvVSchema(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.VTGate(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.cell = reader.string(); + message.hostname = reader.string(); break; case 2: - message.cluster = $root.vtadmin.Cluster.decode(reader, reader.uint32()); + message.pool = reader.string(); break; case 3: - message.srv_v_schema = $root.vschema.SrvVSchema.decode(reader, reader.uint32()); + message.cell = reader.string(); + break; + case 4: + message.cluster = $root.vtadmin.Cluster.decode(reader, reader.uint32()); + break; + case 5: + if (!(message.keyspaces && message.keyspaces.length)) + message.keyspaces = []; + message.keyspaces.push(reader.string()); + break; + case 6: + message.FQDN = reader.string(); break; default: reader.skipType(tag & 7); @@ -3431,32 +5061,38 @@ $root.vtadmin = (function() { }; /** - * Decodes a SrvVSchema message from the specified reader or buffer, length delimited. + * Decodes a VTGate message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtadmin.SrvVSchema + * @memberof vtadmin.VTGate * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtadmin.SrvVSchema} SrvVSchema + * @returns {vtadmin.VTGate} VTGate * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SrvVSchema.decodeDelimited = function decodeDelimited(reader) { + VTGate.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SrvVSchema message. + * Verifies a VTGate message. * @function verify - * @memberof vtadmin.SrvVSchema + * @memberof vtadmin.VTGate * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SrvVSchema.verify = function verify(message) { + VTGate.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.hostname != null && message.hasOwnProperty("hostname")) + if (!$util.isString(message.hostname)) + return "hostname: string expected"; + if (message.pool != null && message.hasOwnProperty("pool")) + if (!$util.isString(message.pool)) + return "pool: string expected"; if (message.cell != null && message.hasOwnProperty("cell")) if (!$util.isString(message.cell)) return "cell: string expected"; @@ -3465,103 +5101,128 @@ $root.vtadmin = (function() { if (error) return "cluster." + error; } - if (message.srv_v_schema != null && message.hasOwnProperty("srv_v_schema")) { - var error = $root.vschema.SrvVSchema.verify(message.srv_v_schema); - if (error) - return "srv_v_schema." + error; + if (message.keyspaces != null && message.hasOwnProperty("keyspaces")) { + if (!Array.isArray(message.keyspaces)) + return "keyspaces: array expected"; + for (var i = 0; i < message.keyspaces.length; ++i) + if (!$util.isString(message.keyspaces[i])) + return "keyspaces: string[] expected"; } + if (message.FQDN != null && message.hasOwnProperty("FQDN")) + if (!$util.isString(message.FQDN)) + return "FQDN: string expected"; return null; }; /** - * Creates a SrvVSchema message from a plain object. Also converts values to their respective internal types. + * Creates a VTGate message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtadmin.SrvVSchema + * @memberof vtadmin.VTGate * @static * @param {Object.} object Plain object - * @returns {vtadmin.SrvVSchema} SrvVSchema + * @returns {vtadmin.VTGate} VTGate */ - SrvVSchema.fromObject = function fromObject(object) { - if (object instanceof $root.vtadmin.SrvVSchema) + VTGate.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.VTGate) return object; - var message = new $root.vtadmin.SrvVSchema(); + var message = new $root.vtadmin.VTGate(); + if (object.hostname != null) + message.hostname = String(object.hostname); + if (object.pool != null) + message.pool = String(object.pool); if (object.cell != null) message.cell = String(object.cell); if (object.cluster != null) { if (typeof object.cluster !== "object") - throw TypeError(".vtadmin.SrvVSchema.cluster: object expected"); + throw TypeError(".vtadmin.VTGate.cluster: object expected"); message.cluster = $root.vtadmin.Cluster.fromObject(object.cluster); } - if (object.srv_v_schema != null) { - if (typeof object.srv_v_schema !== "object") - throw TypeError(".vtadmin.SrvVSchema.srv_v_schema: object expected"); - message.srv_v_schema = $root.vschema.SrvVSchema.fromObject(object.srv_v_schema); + if (object.keyspaces) { + if (!Array.isArray(object.keyspaces)) + throw TypeError(".vtadmin.VTGate.keyspaces: array expected"); + message.keyspaces = []; + for (var i = 0; i < object.keyspaces.length; ++i) + message.keyspaces[i] = String(object.keyspaces[i]); } + if (object.FQDN != null) + message.FQDN = String(object.FQDN); return message; }; /** - * Creates a plain object from a SrvVSchema message. Also converts values to other types if specified. + * Creates a plain object from a VTGate message. Also converts values to other types if specified. * @function toObject - * @memberof vtadmin.SrvVSchema + * @memberof vtadmin.VTGate * @static - * @param {vtadmin.SrvVSchema} message SrvVSchema + * @param {vtadmin.VTGate} message VTGate * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SrvVSchema.toObject = function toObject(message, options) { + VTGate.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.keyspaces = []; if (options.defaults) { + object.hostname = ""; + object.pool = ""; object.cell = ""; object.cluster = null; - object.srv_v_schema = null; + object.FQDN = ""; } + if (message.hostname != null && message.hasOwnProperty("hostname")) + object.hostname = message.hostname; + if (message.pool != null && message.hasOwnProperty("pool")) + object.pool = message.pool; if (message.cell != null && message.hasOwnProperty("cell")) object.cell = message.cell; if (message.cluster != null && message.hasOwnProperty("cluster")) object.cluster = $root.vtadmin.Cluster.toObject(message.cluster, options); - if (message.srv_v_schema != null && message.hasOwnProperty("srv_v_schema")) - object.srv_v_schema = $root.vschema.SrvVSchema.toObject(message.srv_v_schema, options); + if (message.keyspaces && message.keyspaces.length) { + object.keyspaces = []; + for (var j = 0; j < message.keyspaces.length; ++j) + object.keyspaces[j] = message.keyspaces[j]; + } + if (message.FQDN != null && message.hasOwnProperty("FQDN")) + object.FQDN = message.FQDN; return object; }; /** - * Converts this SrvVSchema to JSON. + * Converts this VTGate to JSON. * @function toJSON - * @memberof vtadmin.SrvVSchema + * @memberof vtadmin.VTGate * @instance * @returns {Object.} JSON object */ - SrvVSchema.prototype.toJSON = function toJSON() { + VTGate.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SrvVSchema; + return VTGate; })(); - vtadmin.Tablet = (function() { + vtadmin.Workflow = (function() { /** - * Properties of a Tablet. + * Properties of a Workflow. * @memberof vtadmin - * @interface ITablet - * @property {vtadmin.ICluster|null} [cluster] Tablet cluster - * @property {topodata.ITablet|null} [tablet] Tablet tablet - * @property {vtadmin.Tablet.ServingState|null} [state] Tablet state - * @property {string|null} [FQDN] Tablet FQDN + * @interface IWorkflow + * @property {vtadmin.ICluster|null} [cluster] Workflow cluster + * @property {string|null} [keyspace] Workflow keyspace + * @property {vtctldata.IWorkflow|null} [workflow] Workflow workflow */ /** - * Constructs a new Tablet. + * Constructs a new Workflow. * @memberof vtadmin - * @classdesc Represents a Tablet. - * @implements ITablet + * @classdesc Represents a Workflow. + * @implements IWorkflow * @constructor - * @param {vtadmin.ITablet=} [properties] Properties to set + * @param {vtadmin.IWorkflow=} [properties] Properties to set */ - function Tablet(properties) { + function Workflow(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3569,100 +5230,90 @@ $root.vtadmin = (function() { } /** - * Tablet cluster. + * Workflow cluster. * @member {vtadmin.ICluster|null|undefined} cluster - * @memberof vtadmin.Tablet - * @instance - */ - Tablet.prototype.cluster = null; - - /** - * Tablet tablet. - * @member {topodata.ITablet|null|undefined} tablet - * @memberof vtadmin.Tablet + * @memberof vtadmin.Workflow * @instance */ - Tablet.prototype.tablet = null; + Workflow.prototype.cluster = null; /** - * Tablet state. - * @member {vtadmin.Tablet.ServingState} state - * @memberof vtadmin.Tablet + * Workflow keyspace. + * @member {string} keyspace + * @memberof vtadmin.Workflow * @instance */ - Tablet.prototype.state = 0; + Workflow.prototype.keyspace = ""; /** - * Tablet FQDN. - * @member {string} FQDN - * @memberof vtadmin.Tablet + * Workflow workflow. + * @member {vtctldata.IWorkflow|null|undefined} workflow + * @memberof vtadmin.Workflow * @instance */ - Tablet.prototype.FQDN = ""; + Workflow.prototype.workflow = null; /** - * Creates a new Tablet instance using the specified properties. + * Creates a new Workflow instance using the specified properties. * @function create - * @memberof vtadmin.Tablet + * @memberof vtadmin.Workflow * @static - * @param {vtadmin.ITablet=} [properties] Properties to set - * @returns {vtadmin.Tablet} Tablet instance + * @param {vtadmin.IWorkflow=} [properties] Properties to set + * @returns {vtadmin.Workflow} Workflow instance */ - Tablet.create = function create(properties) { - return new Tablet(properties); + Workflow.create = function create(properties) { + return new Workflow(properties); }; /** - * Encodes the specified Tablet message. Does not implicitly {@link vtadmin.Tablet.verify|verify} messages. + * Encodes the specified Workflow message. Does not implicitly {@link vtadmin.Workflow.verify|verify} messages. * @function encode - * @memberof vtadmin.Tablet + * @memberof vtadmin.Workflow * @static - * @param {vtadmin.ITablet} message Tablet message or plain object to encode + * @param {vtadmin.IWorkflow} message Workflow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Tablet.encode = function encode(message, writer) { + Workflow.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) $root.vtadmin.Cluster.encode(message.cluster, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.tablet != null && Object.hasOwnProperty.call(message, "tablet")) - $root.topodata.Tablet.encode(message.tablet, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state); - if (message.FQDN != null && Object.hasOwnProperty.call(message, "FQDN")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.FQDN); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.keyspace); + if (message.workflow != null && Object.hasOwnProperty.call(message, "workflow")) + $root.vtctldata.Workflow.encode(message.workflow, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified Tablet message, length delimited. Does not implicitly {@link vtadmin.Tablet.verify|verify} messages. + * Encodes the specified Workflow message, length delimited. Does not implicitly {@link vtadmin.Workflow.verify|verify} messages. * @function encodeDelimited - * @memberof vtadmin.Tablet + * @memberof vtadmin.Workflow * @static - * @param {vtadmin.ITablet} message Tablet message or plain object to encode + * @param {vtadmin.IWorkflow} message Workflow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Tablet.encodeDelimited = function encodeDelimited(message, writer) { + Workflow.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Tablet message from the specified reader or buffer. + * Decodes a Workflow message from the specified reader or buffer. * @function decode - * @memberof vtadmin.Tablet + * @memberof vtadmin.Workflow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtadmin.Tablet} Tablet + * @returns {vtadmin.Workflow} Workflow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Tablet.decode = function decode(reader, length) { + Workflow.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.Tablet(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.Workflow(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -3670,13 +5321,10 @@ $root.vtadmin = (function() { message.cluster = $root.vtadmin.Cluster.decode(reader, reader.uint32()); break; case 2: - message.tablet = $root.topodata.Tablet.decode(reader, reader.uint32()); + message.keyspace = reader.string(); break; case 3: - message.state = reader.int32(); - break; - case 4: - message.FQDN = reader.string(); + message.workflow = $root.vtctldata.Workflow.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -3687,30 +5335,30 @@ $root.vtadmin = (function() { }; /** - * Decodes a Tablet message from the specified reader or buffer, length delimited. + * Decodes a Workflow message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtadmin.Tablet + * @memberof vtadmin.Workflow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtadmin.Tablet} Tablet + * @returns {vtadmin.Workflow} Workflow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Tablet.decodeDelimited = function decodeDelimited(reader) { + Workflow.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Tablet message. + * Verifies a Workflow message. * @function verify - * @memberof vtadmin.Tablet + * @memberof vtadmin.Workflow * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Tablet.verify = function verify(message) { + Workflow.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.cluster != null && message.hasOwnProperty("cluster")) { @@ -3718,147 +5366,104 @@ $root.vtadmin = (function() { if (error) return "cluster." + error; } - if (message.tablet != null && message.hasOwnProperty("tablet")) { - var error = $root.topodata.Tablet.verify(message.tablet); + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.workflow != null && message.hasOwnProperty("workflow")) { + var error = $root.vtctldata.Workflow.verify(message.workflow); if (error) - return "tablet." + error; + return "workflow." + error; } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.FQDN != null && message.hasOwnProperty("FQDN")) - if (!$util.isString(message.FQDN)) - return "FQDN: string expected"; return null; }; /** - * Creates a Tablet message from a plain object. Also converts values to their respective internal types. + * Creates a Workflow message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtadmin.Tablet + * @memberof vtadmin.Workflow * @static - * @param {Object.} object Plain object - * @returns {vtadmin.Tablet} Tablet - */ - Tablet.fromObject = function fromObject(object) { - if (object instanceof $root.vtadmin.Tablet) - return object; - var message = new $root.vtadmin.Tablet(); - if (object.cluster != null) { - if (typeof object.cluster !== "object") - throw TypeError(".vtadmin.Tablet.cluster: object expected"); - message.cluster = $root.vtadmin.Cluster.fromObject(object.cluster); - } - if (object.tablet != null) { - if (typeof object.tablet !== "object") - throw TypeError(".vtadmin.Tablet.tablet: object expected"); - message.tablet = $root.topodata.Tablet.fromObject(object.tablet); - } - switch (object.state) { - case "UNKNOWN": - case 0: - message.state = 0; - break; - case "SERVING": - case 1: - message.state = 1; - break; - case "NOT_SERVING": - case 2: - message.state = 2; - break; + * @param {Object.} object Plain object + * @returns {vtadmin.Workflow} Workflow + */ + Workflow.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.Workflow) + return object; + var message = new $root.vtadmin.Workflow(); + if (object.cluster != null) { + if (typeof object.cluster !== "object") + throw TypeError(".vtadmin.Workflow.cluster: object expected"); + message.cluster = $root.vtadmin.Cluster.fromObject(object.cluster); + } + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.workflow != null) { + if (typeof object.workflow !== "object") + throw TypeError(".vtadmin.Workflow.workflow: object expected"); + message.workflow = $root.vtctldata.Workflow.fromObject(object.workflow); } - if (object.FQDN != null) - message.FQDN = String(object.FQDN); return message; }; /** - * Creates a plain object from a Tablet message. Also converts values to other types if specified. + * Creates a plain object from a Workflow message. Also converts values to other types if specified. * @function toObject - * @memberof vtadmin.Tablet + * @memberof vtadmin.Workflow * @static - * @param {vtadmin.Tablet} message Tablet + * @param {vtadmin.Workflow} message Workflow * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Tablet.toObject = function toObject(message, options) { + Workflow.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.cluster = null; - object.tablet = null; - object.state = options.enums === String ? "UNKNOWN" : 0; - object.FQDN = ""; + object.keyspace = ""; + object.workflow = null; } if (message.cluster != null && message.hasOwnProperty("cluster")) object.cluster = $root.vtadmin.Cluster.toObject(message.cluster, options); - if (message.tablet != null && message.hasOwnProperty("tablet")) - object.tablet = $root.topodata.Tablet.toObject(message.tablet, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.vtadmin.Tablet.ServingState[message.state] : message.state; - if (message.FQDN != null && message.hasOwnProperty("FQDN")) - object.FQDN = message.FQDN; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.workflow != null && message.hasOwnProperty("workflow")) + object.workflow = $root.vtctldata.Workflow.toObject(message.workflow, options); return object; }; /** - * Converts this Tablet to JSON. + * Converts this Workflow to JSON. * @function toJSON - * @memberof vtadmin.Tablet + * @memberof vtadmin.Workflow * @instance * @returns {Object.} JSON object */ - Tablet.prototype.toJSON = function toJSON() { + Workflow.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * ServingState enum. - * @name vtadmin.Tablet.ServingState - * @enum {number} - * @property {number} UNKNOWN=0 UNKNOWN value - * @property {number} SERVING=1 SERVING value - * @property {number} NOT_SERVING=2 NOT_SERVING value - */ - Tablet.ServingState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "SERVING"] = 1; - values[valuesById[2] = "NOT_SERVING"] = 2; - return values; - })(); - - return Tablet; + return Workflow; })(); - vtadmin.VSchema = (function() { + vtadmin.CreateKeyspaceRequest = (function() { /** - * Properties of a VSchema. + * Properties of a CreateKeyspaceRequest. * @memberof vtadmin - * @interface IVSchema - * @property {vtadmin.ICluster|null} [cluster] VSchema cluster - * @property {string|null} [name] VSchema name - * @property {vschema.IKeyspace|null} [v_schema] VSchema v_schema + * @interface ICreateKeyspaceRequest + * @property {string|null} [cluster_id] CreateKeyspaceRequest cluster_id + * @property {vtctldata.ICreateKeyspaceRequest|null} [options] CreateKeyspaceRequest options */ /** - * Constructs a new VSchema. + * Constructs a new CreateKeyspaceRequest. * @memberof vtadmin - * @classdesc Represents a VSchema. - * @implements IVSchema + * @classdesc Represents a CreateKeyspaceRequest. + * @implements ICreateKeyspaceRequest * @constructor - * @param {vtadmin.IVSchema=} [properties] Properties to set + * @param {vtadmin.ICreateKeyspaceRequest=} [properties] Properties to set */ - function VSchema(properties) { + function CreateKeyspaceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3866,101 +5471,88 @@ $root.vtadmin = (function() { } /** - * VSchema cluster. - * @member {vtadmin.ICluster|null|undefined} cluster - * @memberof vtadmin.VSchema - * @instance - */ - VSchema.prototype.cluster = null; - - /** - * VSchema name. - * @member {string} name - * @memberof vtadmin.VSchema + * CreateKeyspaceRequest cluster_id. + * @member {string} cluster_id + * @memberof vtadmin.CreateKeyspaceRequest * @instance */ - VSchema.prototype.name = ""; + CreateKeyspaceRequest.prototype.cluster_id = ""; /** - * VSchema v_schema. - * @member {vschema.IKeyspace|null|undefined} v_schema - * @memberof vtadmin.VSchema + * CreateKeyspaceRequest options. + * @member {vtctldata.ICreateKeyspaceRequest|null|undefined} options + * @memberof vtadmin.CreateKeyspaceRequest * @instance */ - VSchema.prototype.v_schema = null; + CreateKeyspaceRequest.prototype.options = null; /** - * Creates a new VSchema instance using the specified properties. + * Creates a new CreateKeyspaceRequest instance using the specified properties. * @function create - * @memberof vtadmin.VSchema + * @memberof vtadmin.CreateKeyspaceRequest * @static - * @param {vtadmin.IVSchema=} [properties] Properties to set - * @returns {vtadmin.VSchema} VSchema instance + * @param {vtadmin.ICreateKeyspaceRequest=} [properties] Properties to set + * @returns {vtadmin.CreateKeyspaceRequest} CreateKeyspaceRequest instance */ - VSchema.create = function create(properties) { - return new VSchema(properties); + CreateKeyspaceRequest.create = function create(properties) { + return new CreateKeyspaceRequest(properties); }; /** - * Encodes the specified VSchema message. Does not implicitly {@link vtadmin.VSchema.verify|verify} messages. + * Encodes the specified CreateKeyspaceRequest message. Does not implicitly {@link vtadmin.CreateKeyspaceRequest.verify|verify} messages. * @function encode - * @memberof vtadmin.VSchema + * @memberof vtadmin.CreateKeyspaceRequest * @static - * @param {vtadmin.IVSchema} message VSchema message or plain object to encode + * @param {vtadmin.ICreateKeyspaceRequest} message CreateKeyspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VSchema.encode = function encode(message, writer) { + CreateKeyspaceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) - $root.vtadmin.Cluster.encode(message.cluster, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.v_schema != null && Object.hasOwnProperty.call(message, "v_schema")) - $root.vschema.Keyspace.encode(message.v_schema, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.cluster_id != null && Object.hasOwnProperty.call(message, "cluster_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cluster_id); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.vtctldata.CreateKeyspaceRequest.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified VSchema message, length delimited. Does not implicitly {@link vtadmin.VSchema.verify|verify} messages. + * Encodes the specified CreateKeyspaceRequest message, length delimited. Does not implicitly {@link vtadmin.CreateKeyspaceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtadmin.VSchema + * @memberof vtadmin.CreateKeyspaceRequest * @static - * @param {vtadmin.IVSchema} message VSchema message or plain object to encode + * @param {vtadmin.ICreateKeyspaceRequest} message CreateKeyspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VSchema.encodeDelimited = function encodeDelimited(message, writer) { + CreateKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VSchema message from the specified reader or buffer. + * Decodes a CreateKeyspaceRequest message from the specified reader or buffer. * @function decode - * @memberof vtadmin.VSchema + * @memberof vtadmin.CreateKeyspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtadmin.VSchema} VSchema + * @returns {vtadmin.CreateKeyspaceRequest} CreateKeyspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VSchema.decode = function decode(reader, length) { + CreateKeyspaceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.VSchema(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.CreateKeyspaceRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.cluster = $root.vtadmin.Cluster.decode(reader, reader.uint32()); + message.cluster_id = reader.string(); break; case 2: - message.name = reader.string(); - break; - case 3: - message.v_schema = $root.vschema.Keyspace.decode(reader, reader.uint32()); + message.options = $root.vtctldata.CreateKeyspaceRequest.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -3971,136 +5563,121 @@ $root.vtadmin = (function() { }; /** - * Decodes a VSchema message from the specified reader or buffer, length delimited. + * Decodes a CreateKeyspaceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtadmin.VSchema + * @memberof vtadmin.CreateKeyspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtadmin.VSchema} VSchema + * @returns {vtadmin.CreateKeyspaceRequest} CreateKeyspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VSchema.decodeDelimited = function decodeDelimited(reader) { + CreateKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VSchema message. + * Verifies a CreateKeyspaceRequest message. * @function verify - * @memberof vtadmin.VSchema + * @memberof vtadmin.CreateKeyspaceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VSchema.verify = function verify(message) { + CreateKeyspaceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.cluster != null && message.hasOwnProperty("cluster")) { - var error = $root.vtadmin.Cluster.verify(message.cluster); - if (error) - return "cluster." + error; - } - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.v_schema != null && message.hasOwnProperty("v_schema")) { - var error = $root.vschema.Keyspace.verify(message.v_schema); + if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) + if (!$util.isString(message.cluster_id)) + return "cluster_id: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.vtctldata.CreateKeyspaceRequest.verify(message.options); if (error) - return "v_schema." + error; + return "options." + error; } return null; }; /** - * Creates a VSchema message from a plain object. Also converts values to their respective internal types. + * Creates a CreateKeyspaceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtadmin.VSchema + * @memberof vtadmin.CreateKeyspaceRequest * @static * @param {Object.} object Plain object - * @returns {vtadmin.VSchema} VSchema + * @returns {vtadmin.CreateKeyspaceRequest} CreateKeyspaceRequest */ - VSchema.fromObject = function fromObject(object) { - if (object instanceof $root.vtadmin.VSchema) + CreateKeyspaceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.CreateKeyspaceRequest) return object; - var message = new $root.vtadmin.VSchema(); - if (object.cluster != null) { - if (typeof object.cluster !== "object") - throw TypeError(".vtadmin.VSchema.cluster: object expected"); - message.cluster = $root.vtadmin.Cluster.fromObject(object.cluster); - } - if (object.name != null) - message.name = String(object.name); - if (object.v_schema != null) { - if (typeof object.v_schema !== "object") - throw TypeError(".vtadmin.VSchema.v_schema: object expected"); - message.v_schema = $root.vschema.Keyspace.fromObject(object.v_schema); + var message = new $root.vtadmin.CreateKeyspaceRequest(); + if (object.cluster_id != null) + message.cluster_id = String(object.cluster_id); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".vtadmin.CreateKeyspaceRequest.options: object expected"); + message.options = $root.vtctldata.CreateKeyspaceRequest.fromObject(object.options); } return message; }; /** - * Creates a plain object from a VSchema message. Also converts values to other types if specified. + * Creates a plain object from a CreateKeyspaceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtadmin.VSchema + * @memberof vtadmin.CreateKeyspaceRequest * @static - * @param {vtadmin.VSchema} message VSchema + * @param {vtadmin.CreateKeyspaceRequest} message CreateKeyspaceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VSchema.toObject = function toObject(message, options) { + CreateKeyspaceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.cluster = null; - object.name = ""; - object.v_schema = null; + object.cluster_id = ""; + object.options = null; } - if (message.cluster != null && message.hasOwnProperty("cluster")) - object.cluster = $root.vtadmin.Cluster.toObject(message.cluster, options); - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.v_schema != null && message.hasOwnProperty("v_schema")) - object.v_schema = $root.vschema.Keyspace.toObject(message.v_schema, options); + if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) + object.cluster_id = message.cluster_id; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.vtctldata.CreateKeyspaceRequest.toObject(message.options, options); return object; }; /** - * Converts this VSchema to JSON. + * Converts this CreateKeyspaceRequest to JSON. * @function toJSON - * @memberof vtadmin.VSchema + * @memberof vtadmin.CreateKeyspaceRequest * @instance * @returns {Object.} JSON object */ - VSchema.prototype.toJSON = function toJSON() { + CreateKeyspaceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return VSchema; + return CreateKeyspaceRequest; })(); - vtadmin.Vtctld = (function() { + vtadmin.CreateKeyspaceResponse = (function() { /** - * Properties of a Vtctld. + * Properties of a CreateKeyspaceResponse. * @memberof vtadmin - * @interface IVtctld - * @property {string|null} [hostname] Vtctld hostname - * @property {vtadmin.ICluster|null} [cluster] Vtctld cluster - * @property {string|null} [FQDN] Vtctld FQDN + * @interface ICreateKeyspaceResponse + * @property {vtadmin.IKeyspace|null} [keyspace] CreateKeyspaceResponse keyspace */ /** - * Constructs a new Vtctld. + * Constructs a new CreateKeyspaceResponse. * @memberof vtadmin - * @classdesc Represents a Vtctld. - * @implements IVtctld + * @classdesc Represents a CreateKeyspaceResponse. + * @implements ICreateKeyspaceResponse * @constructor - * @param {vtadmin.IVtctld=} [properties] Properties to set + * @param {vtadmin.ICreateKeyspaceResponse=} [properties] Properties to set */ - function Vtctld(properties) { + function CreateKeyspaceResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4108,101 +5685,75 @@ $root.vtadmin = (function() { } /** - * Vtctld hostname. - * @member {string} hostname - * @memberof vtadmin.Vtctld - * @instance - */ - Vtctld.prototype.hostname = ""; - - /** - * Vtctld cluster. - * @member {vtadmin.ICluster|null|undefined} cluster - * @memberof vtadmin.Vtctld - * @instance - */ - Vtctld.prototype.cluster = null; - - /** - * Vtctld FQDN. - * @member {string} FQDN - * @memberof vtadmin.Vtctld + * CreateKeyspaceResponse keyspace. + * @member {vtadmin.IKeyspace|null|undefined} keyspace + * @memberof vtadmin.CreateKeyspaceResponse * @instance */ - Vtctld.prototype.FQDN = ""; + CreateKeyspaceResponse.prototype.keyspace = null; /** - * Creates a new Vtctld instance using the specified properties. + * Creates a new CreateKeyspaceResponse instance using the specified properties. * @function create - * @memberof vtadmin.Vtctld + * @memberof vtadmin.CreateKeyspaceResponse * @static - * @param {vtadmin.IVtctld=} [properties] Properties to set - * @returns {vtadmin.Vtctld} Vtctld instance + * @param {vtadmin.ICreateKeyspaceResponse=} [properties] Properties to set + * @returns {vtadmin.CreateKeyspaceResponse} CreateKeyspaceResponse instance */ - Vtctld.create = function create(properties) { - return new Vtctld(properties); + CreateKeyspaceResponse.create = function create(properties) { + return new CreateKeyspaceResponse(properties); }; /** - * Encodes the specified Vtctld message. Does not implicitly {@link vtadmin.Vtctld.verify|verify} messages. + * Encodes the specified CreateKeyspaceResponse message. Does not implicitly {@link vtadmin.CreateKeyspaceResponse.verify|verify} messages. * @function encode - * @memberof vtadmin.Vtctld + * @memberof vtadmin.CreateKeyspaceResponse * @static - * @param {vtadmin.IVtctld} message Vtctld message or plain object to encode + * @param {vtadmin.ICreateKeyspaceResponse} message CreateKeyspaceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Vtctld.encode = function encode(message, writer) { + CreateKeyspaceResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.hostname != null && Object.hasOwnProperty.call(message, "hostname")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.hostname); - if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) - $root.vtadmin.Cluster.encode(message.cluster, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.FQDN != null && Object.hasOwnProperty.call(message, "FQDN")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.FQDN); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + $root.vtadmin.Keyspace.encode(message.keyspace, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Vtctld message, length delimited. Does not implicitly {@link vtadmin.Vtctld.verify|verify} messages. + * Encodes the specified CreateKeyspaceResponse message, length delimited. Does not implicitly {@link vtadmin.CreateKeyspaceResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtadmin.Vtctld + * @memberof vtadmin.CreateKeyspaceResponse * @static - * @param {vtadmin.IVtctld} message Vtctld message or plain object to encode + * @param {vtadmin.ICreateKeyspaceResponse} message CreateKeyspaceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Vtctld.encodeDelimited = function encodeDelimited(message, writer) { + CreateKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Vtctld message from the specified reader or buffer. + * Decodes a CreateKeyspaceResponse message from the specified reader or buffer. * @function decode - * @memberof vtadmin.Vtctld + * @memberof vtadmin.CreateKeyspaceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtadmin.Vtctld} Vtctld + * @returns {vtadmin.CreateKeyspaceResponse} CreateKeyspaceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Vtctld.decode = function decode(reader, length) { + CreateKeyspaceResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.Vtctld(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.CreateKeyspaceResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.hostname = reader.string(); - break; - case 2: - message.cluster = $root.vtadmin.Cluster.decode(reader, reader.uint32()); - break; - case 3: - message.FQDN = reader.string(); + message.keyspace = $root.vtadmin.Keyspace.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -4213,135 +5764,113 @@ $root.vtadmin = (function() { }; /** - * Decodes a Vtctld message from the specified reader or buffer, length delimited. + * Decodes a CreateKeyspaceResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtadmin.Vtctld + * @memberof vtadmin.CreateKeyspaceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtadmin.Vtctld} Vtctld + * @returns {vtadmin.CreateKeyspaceResponse} CreateKeyspaceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Vtctld.decodeDelimited = function decodeDelimited(reader) { + CreateKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Vtctld message. + * Verifies a CreateKeyspaceResponse message. * @function verify - * @memberof vtadmin.Vtctld + * @memberof vtadmin.CreateKeyspaceResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Vtctld.verify = function verify(message) { + CreateKeyspaceResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.hostname != null && message.hasOwnProperty("hostname")) - if (!$util.isString(message.hostname)) - return "hostname: string expected"; - if (message.cluster != null && message.hasOwnProperty("cluster")) { - var error = $root.vtadmin.Cluster.verify(message.cluster); + if (message.keyspace != null && message.hasOwnProperty("keyspace")) { + var error = $root.vtadmin.Keyspace.verify(message.keyspace); if (error) - return "cluster." + error; + return "keyspace." + error; } - if (message.FQDN != null && message.hasOwnProperty("FQDN")) - if (!$util.isString(message.FQDN)) - return "FQDN: string expected"; return null; }; /** - * Creates a Vtctld message from a plain object. Also converts values to their respective internal types. + * Creates a CreateKeyspaceResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtadmin.Vtctld + * @memberof vtadmin.CreateKeyspaceResponse * @static * @param {Object.} object Plain object - * @returns {vtadmin.Vtctld} Vtctld + * @returns {vtadmin.CreateKeyspaceResponse} CreateKeyspaceResponse */ - Vtctld.fromObject = function fromObject(object) { - if (object instanceof $root.vtadmin.Vtctld) + CreateKeyspaceResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.CreateKeyspaceResponse) return object; - var message = new $root.vtadmin.Vtctld(); - if (object.hostname != null) - message.hostname = String(object.hostname); - if (object.cluster != null) { - if (typeof object.cluster !== "object") - throw TypeError(".vtadmin.Vtctld.cluster: object expected"); - message.cluster = $root.vtadmin.Cluster.fromObject(object.cluster); + var message = new $root.vtadmin.CreateKeyspaceResponse(); + if (object.keyspace != null) { + if (typeof object.keyspace !== "object") + throw TypeError(".vtadmin.CreateKeyspaceResponse.keyspace: object expected"); + message.keyspace = $root.vtadmin.Keyspace.fromObject(object.keyspace); } - if (object.FQDN != null) - message.FQDN = String(object.FQDN); return message; }; /** - * Creates a plain object from a Vtctld message. Also converts values to other types if specified. + * Creates a plain object from a CreateKeyspaceResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtadmin.Vtctld + * @memberof vtadmin.CreateKeyspaceResponse * @static - * @param {vtadmin.Vtctld} message Vtctld + * @param {vtadmin.CreateKeyspaceResponse} message CreateKeyspaceResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Vtctld.toObject = function toObject(message, options) { + CreateKeyspaceResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.hostname = ""; - object.cluster = null; - object.FQDN = ""; - } - if (message.hostname != null && message.hasOwnProperty("hostname")) - object.hostname = message.hostname; - if (message.cluster != null && message.hasOwnProperty("cluster")) - object.cluster = $root.vtadmin.Cluster.toObject(message.cluster, options); - if (message.FQDN != null && message.hasOwnProperty("FQDN")) - object.FQDN = message.FQDN; + if (options.defaults) + object.keyspace = null; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = $root.vtadmin.Keyspace.toObject(message.keyspace, options); return object; }; /** - * Converts this Vtctld to JSON. + * Converts this CreateKeyspaceResponse to JSON. * @function toJSON - * @memberof vtadmin.Vtctld + * @memberof vtadmin.CreateKeyspaceResponse * @instance * @returns {Object.} JSON object */ - Vtctld.prototype.toJSON = function toJSON() { + CreateKeyspaceResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Vtctld; + return CreateKeyspaceResponse; })(); - vtadmin.VTGate = (function() { + vtadmin.CreateShardRequest = (function() { /** - * Properties of a VTGate. + * Properties of a CreateShardRequest. * @memberof vtadmin - * @interface IVTGate - * @property {string|null} [hostname] VTGate hostname - * @property {string|null} [pool] VTGate pool - * @property {string|null} [cell] VTGate cell - * @property {vtadmin.ICluster|null} [cluster] VTGate cluster - * @property {Array.|null} [keyspaces] VTGate keyspaces - * @property {string|null} [FQDN] VTGate FQDN + * @interface ICreateShardRequest + * @property {string|null} [cluster_id] CreateShardRequest cluster_id + * @property {vtctldata.ICreateShardRequest|null} [options] CreateShardRequest options */ /** - * Constructs a new VTGate. + * Constructs a new CreateShardRequest. * @memberof vtadmin - * @classdesc Represents a VTGate. - * @implements IVTGate + * @classdesc Represents a CreateShardRequest. + * @implements ICreateShardRequest * @constructor - * @param {vtadmin.IVTGate=} [properties] Properties to set + * @param {vtadmin.ICreateShardRequest=} [properties] Properties to set */ - function VTGate(properties) { - this.keyspaces = []; + function CreateShardRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4349,143 +5878,88 @@ $root.vtadmin = (function() { } /** - * VTGate hostname. - * @member {string} hostname - * @memberof vtadmin.VTGate - * @instance - */ - VTGate.prototype.hostname = ""; - - /** - * VTGate pool. - * @member {string} pool - * @memberof vtadmin.VTGate - * @instance - */ - VTGate.prototype.pool = ""; - - /** - * VTGate cell. - * @member {string} cell - * @memberof vtadmin.VTGate - * @instance - */ - VTGate.prototype.cell = ""; - - /** - * VTGate cluster. - * @member {vtadmin.ICluster|null|undefined} cluster - * @memberof vtadmin.VTGate - * @instance - */ - VTGate.prototype.cluster = null; - - /** - * VTGate keyspaces. - * @member {Array.} keyspaces - * @memberof vtadmin.VTGate + * CreateShardRequest cluster_id. + * @member {string} cluster_id + * @memberof vtadmin.CreateShardRequest * @instance */ - VTGate.prototype.keyspaces = $util.emptyArray; + CreateShardRequest.prototype.cluster_id = ""; /** - * VTGate FQDN. - * @member {string} FQDN - * @memberof vtadmin.VTGate + * CreateShardRequest options. + * @member {vtctldata.ICreateShardRequest|null|undefined} options + * @memberof vtadmin.CreateShardRequest * @instance */ - VTGate.prototype.FQDN = ""; + CreateShardRequest.prototype.options = null; /** - * Creates a new VTGate instance using the specified properties. + * Creates a new CreateShardRequest instance using the specified properties. * @function create - * @memberof vtadmin.VTGate + * @memberof vtadmin.CreateShardRequest * @static - * @param {vtadmin.IVTGate=} [properties] Properties to set - * @returns {vtadmin.VTGate} VTGate instance + * @param {vtadmin.ICreateShardRequest=} [properties] Properties to set + * @returns {vtadmin.CreateShardRequest} CreateShardRequest instance */ - VTGate.create = function create(properties) { - return new VTGate(properties); + CreateShardRequest.create = function create(properties) { + return new CreateShardRequest(properties); }; /** - * Encodes the specified VTGate message. Does not implicitly {@link vtadmin.VTGate.verify|verify} messages. + * Encodes the specified CreateShardRequest message. Does not implicitly {@link vtadmin.CreateShardRequest.verify|verify} messages. * @function encode - * @memberof vtadmin.VTGate + * @memberof vtadmin.CreateShardRequest * @static - * @param {vtadmin.IVTGate} message VTGate message or plain object to encode + * @param {vtadmin.ICreateShardRequest} message CreateShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VTGate.encode = function encode(message, writer) { + CreateShardRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.hostname != null && Object.hasOwnProperty.call(message, "hostname")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.hostname); - if (message.pool != null && Object.hasOwnProperty.call(message, "pool")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.pool); - if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.cell); - if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) - $root.vtadmin.Cluster.encode(message.cluster, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.keyspaces != null && message.keyspaces.length) - for (var i = 0; i < message.keyspaces.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.keyspaces[i]); - if (message.FQDN != null && Object.hasOwnProperty.call(message, "FQDN")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.FQDN); + if (message.cluster_id != null && Object.hasOwnProperty.call(message, "cluster_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cluster_id); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.vtctldata.CreateShardRequest.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified VTGate message, length delimited. Does not implicitly {@link vtadmin.VTGate.verify|verify} messages. + * Encodes the specified CreateShardRequest message, length delimited. Does not implicitly {@link vtadmin.CreateShardRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtadmin.VTGate + * @memberof vtadmin.CreateShardRequest * @static - * @param {vtadmin.IVTGate} message VTGate message or plain object to encode + * @param {vtadmin.ICreateShardRequest} message CreateShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VTGate.encodeDelimited = function encodeDelimited(message, writer) { + CreateShardRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VTGate message from the specified reader or buffer. + * Decodes a CreateShardRequest message from the specified reader or buffer. * @function decode - * @memberof vtadmin.VTGate + * @memberof vtadmin.CreateShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtadmin.VTGate} VTGate + * @returns {vtadmin.CreateShardRequest} CreateShardRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VTGate.decode = function decode(reader, length) { + CreateShardRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.VTGate(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.CreateShardRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.hostname = reader.string(); + message.cluster_id = reader.string(); break; case 2: - message.pool = reader.string(); - break; - case 3: - message.cell = reader.string(); - break; - case 4: - message.cluster = $root.vtadmin.Cluster.decode(reader, reader.uint32()); - break; - case 5: - if (!(message.keyspaces && message.keyspaces.length)) - message.keyspaces = []; - message.keyspaces.push(reader.string()); - break; - case 6: - message.FQDN = reader.string(); + message.options = $root.vtctldata.CreateShardRequest.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -4496,168 +5970,122 @@ $root.vtadmin = (function() { }; /** - * Decodes a VTGate message from the specified reader or buffer, length delimited. + * Decodes a CreateShardRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtadmin.VTGate + * @memberof vtadmin.CreateShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtadmin.VTGate} VTGate + * @returns {vtadmin.CreateShardRequest} CreateShardRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VTGate.decodeDelimited = function decodeDelimited(reader) { + CreateShardRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VTGate message. + * Verifies a CreateShardRequest message. * @function verify - * @memberof vtadmin.VTGate + * @memberof vtadmin.CreateShardRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VTGate.verify = function verify(message) { + CreateShardRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.hostname != null && message.hasOwnProperty("hostname")) - if (!$util.isString(message.hostname)) - return "hostname: string expected"; - if (message.pool != null && message.hasOwnProperty("pool")) - if (!$util.isString(message.pool)) - return "pool: string expected"; - if (message.cell != null && message.hasOwnProperty("cell")) - if (!$util.isString(message.cell)) - return "cell: string expected"; - if (message.cluster != null && message.hasOwnProperty("cluster")) { - var error = $root.vtadmin.Cluster.verify(message.cluster); + if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) + if (!$util.isString(message.cluster_id)) + return "cluster_id: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.vtctldata.CreateShardRequest.verify(message.options); if (error) - return "cluster." + error; - } - if (message.keyspaces != null && message.hasOwnProperty("keyspaces")) { - if (!Array.isArray(message.keyspaces)) - return "keyspaces: array expected"; - for (var i = 0; i < message.keyspaces.length; ++i) - if (!$util.isString(message.keyspaces[i])) - return "keyspaces: string[] expected"; + return "options." + error; } - if (message.FQDN != null && message.hasOwnProperty("FQDN")) - if (!$util.isString(message.FQDN)) - return "FQDN: string expected"; return null; }; /** - * Creates a VTGate message from a plain object. Also converts values to their respective internal types. + * Creates a CreateShardRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtadmin.VTGate + * @memberof vtadmin.CreateShardRequest * @static * @param {Object.} object Plain object - * @returns {vtadmin.VTGate} VTGate + * @returns {vtadmin.CreateShardRequest} CreateShardRequest */ - VTGate.fromObject = function fromObject(object) { - if (object instanceof $root.vtadmin.VTGate) + CreateShardRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.CreateShardRequest) return object; - var message = new $root.vtadmin.VTGate(); - if (object.hostname != null) - message.hostname = String(object.hostname); - if (object.pool != null) - message.pool = String(object.pool); - if (object.cell != null) - message.cell = String(object.cell); - if (object.cluster != null) { - if (typeof object.cluster !== "object") - throw TypeError(".vtadmin.VTGate.cluster: object expected"); - message.cluster = $root.vtadmin.Cluster.fromObject(object.cluster); - } - if (object.keyspaces) { - if (!Array.isArray(object.keyspaces)) - throw TypeError(".vtadmin.VTGate.keyspaces: array expected"); - message.keyspaces = []; - for (var i = 0; i < object.keyspaces.length; ++i) - message.keyspaces[i] = String(object.keyspaces[i]); + var message = new $root.vtadmin.CreateShardRequest(); + if (object.cluster_id != null) + message.cluster_id = String(object.cluster_id); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".vtadmin.CreateShardRequest.options: object expected"); + message.options = $root.vtctldata.CreateShardRequest.fromObject(object.options); } - if (object.FQDN != null) - message.FQDN = String(object.FQDN); return message; }; /** - * Creates a plain object from a VTGate message. Also converts values to other types if specified. + * Creates a plain object from a CreateShardRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtadmin.VTGate + * @memberof vtadmin.CreateShardRequest * @static - * @param {vtadmin.VTGate} message VTGate + * @param {vtadmin.CreateShardRequest} message CreateShardRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VTGate.toObject = function toObject(message, options) { + CreateShardRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.keyspaces = []; if (options.defaults) { - object.hostname = ""; - object.pool = ""; - object.cell = ""; - object.cluster = null; - object.FQDN = ""; - } - if (message.hostname != null && message.hasOwnProperty("hostname")) - object.hostname = message.hostname; - if (message.pool != null && message.hasOwnProperty("pool")) - object.pool = message.pool; - if (message.cell != null && message.hasOwnProperty("cell")) - object.cell = message.cell; - if (message.cluster != null && message.hasOwnProperty("cluster")) - object.cluster = $root.vtadmin.Cluster.toObject(message.cluster, options); - if (message.keyspaces && message.keyspaces.length) { - object.keyspaces = []; - for (var j = 0; j < message.keyspaces.length; ++j) - object.keyspaces[j] = message.keyspaces[j]; + object.cluster_id = ""; + object.options = null; } - if (message.FQDN != null && message.hasOwnProperty("FQDN")) - object.FQDN = message.FQDN; + if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) + object.cluster_id = message.cluster_id; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.vtctldata.CreateShardRequest.toObject(message.options, options); return object; }; /** - * Converts this VTGate to JSON. + * Converts this CreateShardRequest to JSON. * @function toJSON - * @memberof vtadmin.VTGate + * @memberof vtadmin.CreateShardRequest * @instance * @returns {Object.} JSON object */ - VTGate.prototype.toJSON = function toJSON() { + CreateShardRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return VTGate; + return CreateShardRequest; })(); - vtadmin.Workflow = (function() { + vtadmin.DeleteKeyspaceRequest = (function() { /** - * Properties of a Workflow. + * Properties of a DeleteKeyspaceRequest. * @memberof vtadmin - * @interface IWorkflow - * @property {vtadmin.ICluster|null} [cluster] Workflow cluster - * @property {string|null} [keyspace] Workflow keyspace - * @property {vtctldata.IWorkflow|null} [workflow] Workflow workflow + * @interface IDeleteKeyspaceRequest + * @property {string|null} [cluster_id] DeleteKeyspaceRequest cluster_id + * @property {vtctldata.IDeleteKeyspaceRequest|null} [options] DeleteKeyspaceRequest options */ /** - * Constructs a new Workflow. + * Constructs a new DeleteKeyspaceRequest. * @memberof vtadmin - * @classdesc Represents a Workflow. - * @implements IWorkflow + * @classdesc Represents a DeleteKeyspaceRequest. + * @implements IDeleteKeyspaceRequest * @constructor - * @param {vtadmin.IWorkflow=} [properties] Properties to set + * @param {vtadmin.IDeleteKeyspaceRequest=} [properties] Properties to set */ - function Workflow(properties) { + function DeleteKeyspaceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4665,101 +6093,88 @@ $root.vtadmin = (function() { } /** - * Workflow cluster. - * @member {vtadmin.ICluster|null|undefined} cluster - * @memberof vtadmin.Workflow - * @instance - */ - Workflow.prototype.cluster = null; - - /** - * Workflow keyspace. - * @member {string} keyspace - * @memberof vtadmin.Workflow + * DeleteKeyspaceRequest cluster_id. + * @member {string} cluster_id + * @memberof vtadmin.DeleteKeyspaceRequest * @instance */ - Workflow.prototype.keyspace = ""; + DeleteKeyspaceRequest.prototype.cluster_id = ""; /** - * Workflow workflow. - * @member {vtctldata.IWorkflow|null|undefined} workflow - * @memberof vtadmin.Workflow + * DeleteKeyspaceRequest options. + * @member {vtctldata.IDeleteKeyspaceRequest|null|undefined} options + * @memberof vtadmin.DeleteKeyspaceRequest * @instance */ - Workflow.prototype.workflow = null; + DeleteKeyspaceRequest.prototype.options = null; /** - * Creates a new Workflow instance using the specified properties. + * Creates a new DeleteKeyspaceRequest instance using the specified properties. * @function create - * @memberof vtadmin.Workflow + * @memberof vtadmin.DeleteKeyspaceRequest * @static - * @param {vtadmin.IWorkflow=} [properties] Properties to set - * @returns {vtadmin.Workflow} Workflow instance + * @param {vtadmin.IDeleteKeyspaceRequest=} [properties] Properties to set + * @returns {vtadmin.DeleteKeyspaceRequest} DeleteKeyspaceRequest instance */ - Workflow.create = function create(properties) { - return new Workflow(properties); + DeleteKeyspaceRequest.create = function create(properties) { + return new DeleteKeyspaceRequest(properties); }; /** - * Encodes the specified Workflow message. Does not implicitly {@link vtadmin.Workflow.verify|verify} messages. + * Encodes the specified DeleteKeyspaceRequest message. Does not implicitly {@link vtadmin.DeleteKeyspaceRequest.verify|verify} messages. * @function encode - * @memberof vtadmin.Workflow + * @memberof vtadmin.DeleteKeyspaceRequest * @static - * @param {vtadmin.IWorkflow} message Workflow message or plain object to encode + * @param {vtadmin.IDeleteKeyspaceRequest} message DeleteKeyspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Workflow.encode = function encode(message, writer) { + DeleteKeyspaceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) - $root.vtadmin.Cluster.encode(message.cluster, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.keyspace); - if (message.workflow != null && Object.hasOwnProperty.call(message, "workflow")) - $root.vtctldata.Workflow.encode(message.workflow, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.cluster_id != null && Object.hasOwnProperty.call(message, "cluster_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cluster_id); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.vtctldata.DeleteKeyspaceRequest.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified Workflow message, length delimited. Does not implicitly {@link vtadmin.Workflow.verify|verify} messages. + * Encodes the specified DeleteKeyspaceRequest message, length delimited. Does not implicitly {@link vtadmin.DeleteKeyspaceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtadmin.Workflow + * @memberof vtadmin.DeleteKeyspaceRequest * @static - * @param {vtadmin.IWorkflow} message Workflow message or plain object to encode + * @param {vtadmin.IDeleteKeyspaceRequest} message DeleteKeyspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Workflow.encodeDelimited = function encodeDelimited(message, writer) { + DeleteKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Workflow message from the specified reader or buffer. + * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer. * @function decode - * @memberof vtadmin.Workflow + * @memberof vtadmin.DeleteKeyspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtadmin.Workflow} Workflow + * @returns {vtadmin.DeleteKeyspaceRequest} DeleteKeyspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Workflow.decode = function decode(reader, length) { + DeleteKeyspaceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.Workflow(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.DeleteKeyspaceRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.cluster = $root.vtadmin.Cluster.decode(reader, reader.uint32()); + message.cluster_id = reader.string(); break; case 2: - message.keyspace = reader.string(); - break; - case 3: - message.workflow = $root.vtctldata.Workflow.decode(reader, reader.uint32()); + message.options = $root.vtctldata.DeleteKeyspaceRequest.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -4770,135 +6185,122 @@ $root.vtadmin = (function() { }; /** - * Decodes a Workflow message from the specified reader or buffer, length delimited. + * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtadmin.Workflow + * @memberof vtadmin.DeleteKeyspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtadmin.Workflow} Workflow + * @returns {vtadmin.DeleteKeyspaceRequest} DeleteKeyspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Workflow.decodeDelimited = function decodeDelimited(reader) { + DeleteKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Workflow message. + * Verifies a DeleteKeyspaceRequest message. * @function verify - * @memberof vtadmin.Workflow + * @memberof vtadmin.DeleteKeyspaceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Workflow.verify = function verify(message) { + DeleteKeyspaceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.cluster != null && message.hasOwnProperty("cluster")) { - var error = $root.vtadmin.Cluster.verify(message.cluster); - if (error) - return "cluster." + error; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.workflow != null && message.hasOwnProperty("workflow")) { - var error = $root.vtctldata.Workflow.verify(message.workflow); + if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) + if (!$util.isString(message.cluster_id)) + return "cluster_id: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.vtctldata.DeleteKeyspaceRequest.verify(message.options); if (error) - return "workflow." + error; + return "options." + error; } return null; }; /** - * Creates a Workflow message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteKeyspaceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtadmin.Workflow + * @memberof vtadmin.DeleteKeyspaceRequest * @static * @param {Object.} object Plain object - * @returns {vtadmin.Workflow} Workflow + * @returns {vtadmin.DeleteKeyspaceRequest} DeleteKeyspaceRequest */ - Workflow.fromObject = function fromObject(object) { - if (object instanceof $root.vtadmin.Workflow) + DeleteKeyspaceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.DeleteKeyspaceRequest) return object; - var message = new $root.vtadmin.Workflow(); - if (object.cluster != null) { - if (typeof object.cluster !== "object") - throw TypeError(".vtadmin.Workflow.cluster: object expected"); - message.cluster = $root.vtadmin.Cluster.fromObject(object.cluster); - } - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.workflow != null) { - if (typeof object.workflow !== "object") - throw TypeError(".vtadmin.Workflow.workflow: object expected"); - message.workflow = $root.vtctldata.Workflow.fromObject(object.workflow); + var message = new $root.vtadmin.DeleteKeyspaceRequest(); + if (object.cluster_id != null) + message.cluster_id = String(object.cluster_id); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".vtadmin.DeleteKeyspaceRequest.options: object expected"); + message.options = $root.vtctldata.DeleteKeyspaceRequest.fromObject(object.options); } return message; }; /** - * Creates a plain object from a Workflow message. Also converts values to other types if specified. + * Creates a plain object from a DeleteKeyspaceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtadmin.Workflow + * @memberof vtadmin.DeleteKeyspaceRequest * @static - * @param {vtadmin.Workflow} message Workflow + * @param {vtadmin.DeleteKeyspaceRequest} message DeleteKeyspaceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Workflow.toObject = function toObject(message, options) { + DeleteKeyspaceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.cluster = null; - object.keyspace = ""; - object.workflow = null; + object.cluster_id = ""; + object.options = null; } - if (message.cluster != null && message.hasOwnProperty("cluster")) - object.cluster = $root.vtadmin.Cluster.toObject(message.cluster, options); - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.workflow != null && message.hasOwnProperty("workflow")) - object.workflow = $root.vtctldata.Workflow.toObject(message.workflow, options); + if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) + object.cluster_id = message.cluster_id; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.vtctldata.DeleteKeyspaceRequest.toObject(message.options, options); return object; }; /** - * Converts this Workflow to JSON. + * Converts this DeleteKeyspaceRequest to JSON. * @function toJSON - * @memberof vtadmin.Workflow + * @memberof vtadmin.DeleteKeyspaceRequest * @instance * @returns {Object.} JSON object */ - Workflow.prototype.toJSON = function toJSON() { + DeleteKeyspaceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Workflow; + return DeleteKeyspaceRequest; })(); - vtadmin.CreateKeyspaceRequest = (function() { + vtadmin.DeleteShardsRequest = (function() { /** - * Properties of a CreateKeyspaceRequest. + * Properties of a DeleteShardsRequest. * @memberof vtadmin - * @interface ICreateKeyspaceRequest - * @property {string|null} [cluster_id] CreateKeyspaceRequest cluster_id - * @property {vtctldata.ICreateKeyspaceRequest|null} [options] CreateKeyspaceRequest options + * @interface IDeleteShardsRequest + * @property {string|null} [cluster_id] DeleteShardsRequest cluster_id + * @property {vtctldata.IDeleteShardsRequest|null} [options] DeleteShardsRequest options */ /** - * Constructs a new CreateKeyspaceRequest. + * Constructs a new DeleteShardsRequest. * @memberof vtadmin - * @classdesc Represents a CreateKeyspaceRequest. - * @implements ICreateKeyspaceRequest + * @classdesc Represents a DeleteShardsRequest. + * @implements IDeleteShardsRequest * @constructor - * @param {vtadmin.ICreateKeyspaceRequest=} [properties] Properties to set + * @param {vtadmin.IDeleteShardsRequest=} [properties] Properties to set */ - function CreateKeyspaceRequest(properties) { + function DeleteShardsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4906,80 +6308,80 @@ $root.vtadmin = (function() { } /** - * CreateKeyspaceRequest cluster_id. + * DeleteShardsRequest cluster_id. * @member {string} cluster_id - * @memberof vtadmin.CreateKeyspaceRequest + * @memberof vtadmin.DeleteShardsRequest * @instance */ - CreateKeyspaceRequest.prototype.cluster_id = ""; + DeleteShardsRequest.prototype.cluster_id = ""; /** - * CreateKeyspaceRequest options. - * @member {vtctldata.ICreateKeyspaceRequest|null|undefined} options - * @memberof vtadmin.CreateKeyspaceRequest + * DeleteShardsRequest options. + * @member {vtctldata.IDeleteShardsRequest|null|undefined} options + * @memberof vtadmin.DeleteShardsRequest * @instance */ - CreateKeyspaceRequest.prototype.options = null; + DeleteShardsRequest.prototype.options = null; /** - * Creates a new CreateKeyspaceRequest instance using the specified properties. + * Creates a new DeleteShardsRequest instance using the specified properties. * @function create - * @memberof vtadmin.CreateKeyspaceRequest + * @memberof vtadmin.DeleteShardsRequest * @static - * @param {vtadmin.ICreateKeyspaceRequest=} [properties] Properties to set - * @returns {vtadmin.CreateKeyspaceRequest} CreateKeyspaceRequest instance + * @param {vtadmin.IDeleteShardsRequest=} [properties] Properties to set + * @returns {vtadmin.DeleteShardsRequest} DeleteShardsRequest instance */ - CreateKeyspaceRequest.create = function create(properties) { - return new CreateKeyspaceRequest(properties); + DeleteShardsRequest.create = function create(properties) { + return new DeleteShardsRequest(properties); }; /** - * Encodes the specified CreateKeyspaceRequest message. Does not implicitly {@link vtadmin.CreateKeyspaceRequest.verify|verify} messages. + * Encodes the specified DeleteShardsRequest message. Does not implicitly {@link vtadmin.DeleteShardsRequest.verify|verify} messages. * @function encode - * @memberof vtadmin.CreateKeyspaceRequest + * @memberof vtadmin.DeleteShardsRequest * @static - * @param {vtadmin.ICreateKeyspaceRequest} message CreateKeyspaceRequest message or plain object to encode + * @param {vtadmin.IDeleteShardsRequest} message DeleteShardsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateKeyspaceRequest.encode = function encode(message, writer) { + DeleteShardsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.cluster_id != null && Object.hasOwnProperty.call(message, "cluster_id")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.cluster_id); if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.vtctldata.CreateKeyspaceRequest.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.vtctldata.DeleteShardsRequest.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateKeyspaceRequest message, length delimited. Does not implicitly {@link vtadmin.CreateKeyspaceRequest.verify|verify} messages. + * Encodes the specified DeleteShardsRequest message, length delimited. Does not implicitly {@link vtadmin.DeleteShardsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtadmin.CreateKeyspaceRequest + * @memberof vtadmin.DeleteShardsRequest * @static - * @param {vtadmin.ICreateKeyspaceRequest} message CreateKeyspaceRequest message or plain object to encode + * @param {vtadmin.IDeleteShardsRequest} message DeleteShardsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteShardsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateKeyspaceRequest message from the specified reader or buffer. + * Decodes a DeleteShardsRequest message from the specified reader or buffer. * @function decode - * @memberof vtadmin.CreateKeyspaceRequest + * @memberof vtadmin.DeleteShardsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtadmin.CreateKeyspaceRequest} CreateKeyspaceRequest + * @returns {vtadmin.DeleteShardsRequest} DeleteShardsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateKeyspaceRequest.decode = function decode(reader, length) { + DeleteShardsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.CreateKeyspaceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.DeleteShardsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -4987,7 +6389,7 @@ $root.vtadmin = (function() { message.cluster_id = reader.string(); break; case 2: - message.options = $root.vtctldata.CreateKeyspaceRequest.decode(reader, reader.uint32()); + message.options = $root.vtctldata.DeleteShardsRequest.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -4998,37 +6400,37 @@ $root.vtadmin = (function() { }; /** - * Decodes a CreateKeyspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteShardsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtadmin.CreateKeyspaceRequest + * @memberof vtadmin.DeleteShardsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtadmin.CreateKeyspaceRequest} CreateKeyspaceRequest + * @returns {vtadmin.DeleteShardsRequest} DeleteShardsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteShardsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateKeyspaceRequest message. + * Verifies a DeleteShardsRequest message. * @function verify - * @memberof vtadmin.CreateKeyspaceRequest + * @memberof vtadmin.DeleteShardsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateKeyspaceRequest.verify = function verify(message) { + DeleteShardsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) if (!$util.isString(message.cluster_id)) return "cluster_id: string expected"; if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.vtctldata.CreateKeyspaceRequest.verify(message.options); + var error = $root.vtctldata.DeleteShardsRequest.verify(message.options); if (error) return "options." + error; } @@ -5036,37 +6438,37 @@ $root.vtadmin = (function() { }; /** - * Creates a CreateKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteShardsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtadmin.CreateKeyspaceRequest + * @memberof vtadmin.DeleteShardsRequest * @static * @param {Object.} object Plain object - * @returns {vtadmin.CreateKeyspaceRequest} CreateKeyspaceRequest + * @returns {vtadmin.DeleteShardsRequest} DeleteShardsRequest */ - CreateKeyspaceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtadmin.CreateKeyspaceRequest) + DeleteShardsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.DeleteShardsRequest) return object; - var message = new $root.vtadmin.CreateKeyspaceRequest(); + var message = new $root.vtadmin.DeleteShardsRequest(); if (object.cluster_id != null) message.cluster_id = String(object.cluster_id); if (object.options != null) { if (typeof object.options !== "object") - throw TypeError(".vtadmin.CreateKeyspaceRequest.options: object expected"); - message.options = $root.vtctldata.CreateKeyspaceRequest.fromObject(object.options); + throw TypeError(".vtadmin.DeleteShardsRequest.options: object expected"); + message.options = $root.vtctldata.DeleteShardsRequest.fromObject(object.options); } return message; }; /** - * Creates a plain object from a CreateKeyspaceRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteShardsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtadmin.CreateKeyspaceRequest + * @memberof vtadmin.DeleteShardsRequest * @static - * @param {vtadmin.CreateKeyspaceRequest} message CreateKeyspaceRequest + * @param {vtadmin.DeleteShardsRequest} message DeleteShardsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateKeyspaceRequest.toObject = function toObject(message, options) { + DeleteShardsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -5077,42 +6479,44 @@ $root.vtadmin = (function() { if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) object.cluster_id = message.cluster_id; if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.vtctldata.CreateKeyspaceRequest.toObject(message.options, options); + object.options = $root.vtctldata.DeleteShardsRequest.toObject(message.options, options); return object; }; /** - * Converts this CreateKeyspaceRequest to JSON. + * Converts this DeleteShardsRequest to JSON. * @function toJSON - * @memberof vtadmin.CreateKeyspaceRequest + * @memberof vtadmin.DeleteShardsRequest * @instance * @returns {Object.} JSON object */ - CreateKeyspaceRequest.prototype.toJSON = function toJSON() { + DeleteShardsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateKeyspaceRequest; + return DeleteShardsRequest; })(); - vtadmin.CreateKeyspaceResponse = (function() { + vtadmin.DeleteTabletRequest = (function() { /** - * Properties of a CreateKeyspaceResponse. + * Properties of a DeleteTabletRequest. * @memberof vtadmin - * @interface ICreateKeyspaceResponse - * @property {vtadmin.IKeyspace|null} [keyspace] CreateKeyspaceResponse keyspace + * @interface IDeleteTabletRequest + * @property {string|null} [alias] DeleteTabletRequest alias + * @property {Array.|null} [cluster_ids] DeleteTabletRequest cluster_ids */ /** - * Constructs a new CreateKeyspaceResponse. + * Constructs a new DeleteTabletRequest. * @memberof vtadmin - * @classdesc Represents a CreateKeyspaceResponse. - * @implements ICreateKeyspaceResponse + * @classdesc Represents a DeleteTabletRequest. + * @implements IDeleteTabletRequest * @constructor - * @param {vtadmin.ICreateKeyspaceResponse=} [properties] Properties to set + * @param {vtadmin.IDeleteTabletRequest=} [properties] Properties to set */ - function CreateKeyspaceResponse(properties) { + function DeleteTabletRequest(properties) { + this.cluster_ids = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5120,75 +6524,91 @@ $root.vtadmin = (function() { } /** - * CreateKeyspaceResponse keyspace. - * @member {vtadmin.IKeyspace|null|undefined} keyspace - * @memberof vtadmin.CreateKeyspaceResponse + * DeleteTabletRequest alias. + * @member {string} alias + * @memberof vtadmin.DeleteTabletRequest * @instance */ - CreateKeyspaceResponse.prototype.keyspace = null; + DeleteTabletRequest.prototype.alias = ""; /** - * Creates a new CreateKeyspaceResponse instance using the specified properties. + * DeleteTabletRequest cluster_ids. + * @member {Array.} cluster_ids + * @memberof vtadmin.DeleteTabletRequest + * @instance + */ + DeleteTabletRequest.prototype.cluster_ids = $util.emptyArray; + + /** + * Creates a new DeleteTabletRequest instance using the specified properties. * @function create - * @memberof vtadmin.CreateKeyspaceResponse + * @memberof vtadmin.DeleteTabletRequest * @static - * @param {vtadmin.ICreateKeyspaceResponse=} [properties] Properties to set - * @returns {vtadmin.CreateKeyspaceResponse} CreateKeyspaceResponse instance + * @param {vtadmin.IDeleteTabletRequest=} [properties] Properties to set + * @returns {vtadmin.DeleteTabletRequest} DeleteTabletRequest instance */ - CreateKeyspaceResponse.create = function create(properties) { - return new CreateKeyspaceResponse(properties); + DeleteTabletRequest.create = function create(properties) { + return new DeleteTabletRequest(properties); }; /** - * Encodes the specified CreateKeyspaceResponse message. Does not implicitly {@link vtadmin.CreateKeyspaceResponse.verify|verify} messages. + * Encodes the specified DeleteTabletRequest message. Does not implicitly {@link vtadmin.DeleteTabletRequest.verify|verify} messages. * @function encode - * @memberof vtadmin.CreateKeyspaceResponse + * @memberof vtadmin.DeleteTabletRequest * @static - * @param {vtadmin.ICreateKeyspaceResponse} message CreateKeyspaceResponse message or plain object to encode + * @param {vtadmin.IDeleteTabletRequest} message DeleteTabletRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateKeyspaceResponse.encode = function encode(message, writer) { + DeleteTabletRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - $root.vtadmin.Keyspace.encode(message.keyspace, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.alias != null && Object.hasOwnProperty.call(message, "alias")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.alias); + if (message.cluster_ids != null && message.cluster_ids.length) + for (var i = 0; i < message.cluster_ids.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.cluster_ids[i]); return writer; }; /** - * Encodes the specified CreateKeyspaceResponse message, length delimited. Does not implicitly {@link vtadmin.CreateKeyspaceResponse.verify|verify} messages. + * Encodes the specified DeleteTabletRequest message, length delimited. Does not implicitly {@link vtadmin.DeleteTabletRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtadmin.CreateKeyspaceResponse + * @memberof vtadmin.DeleteTabletRequest * @static - * @param {vtadmin.ICreateKeyspaceResponse} message CreateKeyspaceResponse message or plain object to encode + * @param {vtadmin.IDeleteTabletRequest} message DeleteTabletRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteTabletRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateKeyspaceResponse message from the specified reader or buffer. + * Decodes a DeleteTabletRequest message from the specified reader or buffer. * @function decode - * @memberof vtadmin.CreateKeyspaceResponse + * @memberof vtadmin.DeleteTabletRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtadmin.CreateKeyspaceResponse} CreateKeyspaceResponse + * @returns {vtadmin.DeleteTabletRequest} DeleteTabletRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateKeyspaceResponse.decode = function decode(reader, length) { + DeleteTabletRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.CreateKeyspaceResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.DeleteTabletRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = $root.vtadmin.Keyspace.decode(reader, reader.uint32()); + message.alias = reader.string(); + break; + case 2: + if (!(message.cluster_ids && message.cluster_ids.length)) + message.cluster_ids = []; + message.cluster_ids.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -5199,113 +6619,128 @@ $root.vtadmin = (function() { }; /** - * Decodes a CreateKeyspaceResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteTabletRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtadmin.CreateKeyspaceResponse + * @memberof vtadmin.DeleteTabletRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtadmin.CreateKeyspaceResponse} CreateKeyspaceResponse + * @returns {vtadmin.DeleteTabletRequest} DeleteTabletRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteTabletRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateKeyspaceResponse message. + * Verifies a DeleteTabletRequest message. * @function verify - * @memberof vtadmin.CreateKeyspaceResponse + * @memberof vtadmin.DeleteTabletRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateKeyspaceResponse.verify = function verify(message) { + DeleteTabletRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) { - var error = $root.vtadmin.Keyspace.verify(message.keyspace); - if (error) - return "keyspace." + error; + if (message.alias != null && message.hasOwnProperty("alias")) + if (!$util.isString(message.alias)) + return "alias: string expected"; + if (message.cluster_ids != null && message.hasOwnProperty("cluster_ids")) { + if (!Array.isArray(message.cluster_ids)) + return "cluster_ids: array expected"; + for (var i = 0; i < message.cluster_ids.length; ++i) + if (!$util.isString(message.cluster_ids[i])) + return "cluster_ids: string[] expected"; } return null; }; /** - * Creates a CreateKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteTabletRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtadmin.CreateKeyspaceResponse + * @memberof vtadmin.DeleteTabletRequest * @static * @param {Object.} object Plain object - * @returns {vtadmin.CreateKeyspaceResponse} CreateKeyspaceResponse + * @returns {vtadmin.DeleteTabletRequest} DeleteTabletRequest */ - CreateKeyspaceResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtadmin.CreateKeyspaceResponse) + DeleteTabletRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.DeleteTabletRequest) return object; - var message = new $root.vtadmin.CreateKeyspaceResponse(); - if (object.keyspace != null) { - if (typeof object.keyspace !== "object") - throw TypeError(".vtadmin.CreateKeyspaceResponse.keyspace: object expected"); - message.keyspace = $root.vtadmin.Keyspace.fromObject(object.keyspace); + var message = new $root.vtadmin.DeleteTabletRequest(); + if (object.alias != null) + message.alias = String(object.alias); + if (object.cluster_ids) { + if (!Array.isArray(object.cluster_ids)) + throw TypeError(".vtadmin.DeleteTabletRequest.cluster_ids: array expected"); + message.cluster_ids = []; + for (var i = 0; i < object.cluster_ids.length; ++i) + message.cluster_ids[i] = String(object.cluster_ids[i]); } return message; }; /** - * Creates a plain object from a CreateKeyspaceResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteTabletRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtadmin.CreateKeyspaceResponse + * @memberof vtadmin.DeleteTabletRequest * @static - * @param {vtadmin.CreateKeyspaceResponse} message CreateKeyspaceResponse + * @param {vtadmin.DeleteTabletRequest} message DeleteTabletRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateKeyspaceResponse.toObject = function toObject(message, options) { + DeleteTabletRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.cluster_ids = []; if (options.defaults) - object.keyspace = null; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = $root.vtadmin.Keyspace.toObject(message.keyspace, options); + object.alias = ""; + if (message.alias != null && message.hasOwnProperty("alias")) + object.alias = message.alias; + if (message.cluster_ids && message.cluster_ids.length) { + object.cluster_ids = []; + for (var j = 0; j < message.cluster_ids.length; ++j) + object.cluster_ids[j] = message.cluster_ids[j]; + } return object; }; /** - * Converts this CreateKeyspaceResponse to JSON. + * Converts this DeleteTabletRequest to JSON. * @function toJSON - * @memberof vtadmin.CreateKeyspaceResponse + * @memberof vtadmin.DeleteTabletRequest * @instance * @returns {Object.} JSON object */ - CreateKeyspaceResponse.prototype.toJSON = function toJSON() { + DeleteTabletRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateKeyspaceResponse; + return DeleteTabletRequest; })(); - vtadmin.CreateShardRequest = (function() { + vtadmin.DeleteTabletResponse = (function() { /** - * Properties of a CreateShardRequest. + * Properties of a DeleteTabletResponse. * @memberof vtadmin - * @interface ICreateShardRequest - * @property {string|null} [cluster_id] CreateShardRequest cluster_id - * @property {vtctldata.ICreateShardRequest|null} [options] CreateShardRequest options + * @interface IDeleteTabletResponse + * @property {string|null} [status] DeleteTabletResponse status */ /** - * Constructs a new CreateShardRequest. + * Constructs a new DeleteTabletResponse. * @memberof vtadmin - * @classdesc Represents a CreateShardRequest. - * @implements ICreateShardRequest + * @classdesc Represents a DeleteTabletResponse. + * @implements IDeleteTabletResponse * @constructor - * @param {vtadmin.ICreateShardRequest=} [properties] Properties to set + * @param {vtadmin.IDeleteTabletResponse=} [properties] Properties to set */ - function CreateShardRequest(properties) { + function DeleteTabletResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5313,88 +6748,75 @@ $root.vtadmin = (function() { } /** - * CreateShardRequest cluster_id. - * @member {string} cluster_id - * @memberof vtadmin.CreateShardRequest - * @instance - */ - CreateShardRequest.prototype.cluster_id = ""; - - /** - * CreateShardRequest options. - * @member {vtctldata.ICreateShardRequest|null|undefined} options - * @memberof vtadmin.CreateShardRequest + * DeleteTabletResponse status. + * @member {string} status + * @memberof vtadmin.DeleteTabletResponse * @instance */ - CreateShardRequest.prototype.options = null; + DeleteTabletResponse.prototype.status = ""; /** - * Creates a new CreateShardRequest instance using the specified properties. + * Creates a new DeleteTabletResponse instance using the specified properties. * @function create - * @memberof vtadmin.CreateShardRequest + * @memberof vtadmin.DeleteTabletResponse * @static - * @param {vtadmin.ICreateShardRequest=} [properties] Properties to set - * @returns {vtadmin.CreateShardRequest} CreateShardRequest instance + * @param {vtadmin.IDeleteTabletResponse=} [properties] Properties to set + * @returns {vtadmin.DeleteTabletResponse} DeleteTabletResponse instance */ - CreateShardRequest.create = function create(properties) { - return new CreateShardRequest(properties); + DeleteTabletResponse.create = function create(properties) { + return new DeleteTabletResponse(properties); }; /** - * Encodes the specified CreateShardRequest message. Does not implicitly {@link vtadmin.CreateShardRequest.verify|verify} messages. + * Encodes the specified DeleteTabletResponse message. Does not implicitly {@link vtadmin.DeleteTabletResponse.verify|verify} messages. * @function encode - * @memberof vtadmin.CreateShardRequest + * @memberof vtadmin.DeleteTabletResponse * @static - * @param {vtadmin.ICreateShardRequest} message CreateShardRequest message or plain object to encode + * @param {vtadmin.IDeleteTabletResponse} message DeleteTabletResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateShardRequest.encode = function encode(message, writer) { + DeleteTabletResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.cluster_id != null && Object.hasOwnProperty.call(message, "cluster_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.cluster_id); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.vtctldata.CreateShardRequest.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.status); return writer; }; /** - * Encodes the specified CreateShardRequest message, length delimited. Does not implicitly {@link vtadmin.CreateShardRequest.verify|verify} messages. + * Encodes the specified DeleteTabletResponse message, length delimited. Does not implicitly {@link vtadmin.DeleteTabletResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtadmin.CreateShardRequest + * @memberof vtadmin.DeleteTabletResponse * @static - * @param {vtadmin.ICreateShardRequest} message CreateShardRequest message or plain object to encode + * @param {vtadmin.IDeleteTabletResponse} message DeleteTabletResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateShardRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteTabletResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateShardRequest message from the specified reader or buffer. + * Decodes a DeleteTabletResponse message from the specified reader or buffer. * @function decode - * @memberof vtadmin.CreateShardRequest + * @memberof vtadmin.DeleteTabletResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtadmin.CreateShardRequest} CreateShardRequest + * @returns {vtadmin.DeleteTabletResponse} DeleteTabletResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateShardRequest.decode = function decode(reader, length) { + DeleteTabletResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.CreateShardRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.DeleteTabletResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.cluster_id = reader.string(); - break; - case 2: - message.options = $root.vtctldata.CreateShardRequest.decode(reader, reader.uint32()); + message.status = reader.string(); break; default: reader.skipType(tag & 7); @@ -5405,122 +6827,110 @@ $root.vtadmin = (function() { }; /** - * Decodes a CreateShardRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteTabletResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtadmin.CreateShardRequest + * @memberof vtadmin.DeleteTabletResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtadmin.CreateShardRequest} CreateShardRequest + * @returns {vtadmin.DeleteTabletResponse} DeleteTabletResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateShardRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteTabletResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateShardRequest message. + * Verifies a DeleteTabletResponse message. * @function verify - * @memberof vtadmin.CreateShardRequest + * @memberof vtadmin.DeleteTabletResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateShardRequest.verify = function verify(message) { + DeleteTabletResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) - if (!$util.isString(message.cluster_id)) - return "cluster_id: string expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.vtctldata.CreateShardRequest.verify(message.options); - if (error) - return "options." + error; - } + if (message.status != null && message.hasOwnProperty("status")) + if (!$util.isString(message.status)) + return "status: string expected"; return null; }; /** - * Creates a CreateShardRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteTabletResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtadmin.CreateShardRequest + * @memberof vtadmin.DeleteTabletResponse * @static * @param {Object.} object Plain object - * @returns {vtadmin.CreateShardRequest} CreateShardRequest + * @returns {vtadmin.DeleteTabletResponse} DeleteTabletResponse */ - CreateShardRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtadmin.CreateShardRequest) + DeleteTabletResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.DeleteTabletResponse) return object; - var message = new $root.vtadmin.CreateShardRequest(); - if (object.cluster_id != null) - message.cluster_id = String(object.cluster_id); - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".vtadmin.CreateShardRequest.options: object expected"); - message.options = $root.vtctldata.CreateShardRequest.fromObject(object.options); - } + var message = new $root.vtadmin.DeleteTabletResponse(); + if (object.status != null) + message.status = String(object.status); return message; }; /** - * Creates a plain object from a CreateShardRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteTabletResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtadmin.CreateShardRequest + * @memberof vtadmin.DeleteTabletResponse * @static - * @param {vtadmin.CreateShardRequest} message CreateShardRequest + * @param {vtadmin.DeleteTabletResponse} message DeleteTabletResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateShardRequest.toObject = function toObject(message, options) { + DeleteTabletResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.cluster_id = ""; - object.options = null; - } - if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) - object.cluster_id = message.cluster_id; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.vtctldata.CreateShardRequest.toObject(message.options, options); + if (options.defaults) + object.status = ""; + if (message.status != null && message.hasOwnProperty("status")) + object.status = message.status; return object; }; /** - * Converts this CreateShardRequest to JSON. + * Converts this DeleteTabletResponse to JSON. * @function toJSON - * @memberof vtadmin.CreateShardRequest + * @memberof vtadmin.DeleteTabletResponse * @instance * @returns {Object.} JSON object */ - CreateShardRequest.prototype.toJSON = function toJSON() { + DeleteTabletResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateShardRequest; + return DeleteTabletResponse; })(); - vtadmin.DeleteKeyspaceRequest = (function() { + vtadmin.FindSchemaRequest = (function() { /** - * Properties of a DeleteKeyspaceRequest. + * Properties of a FindSchemaRequest. * @memberof vtadmin - * @interface IDeleteKeyspaceRequest - * @property {string|null} [cluster_id] DeleteKeyspaceRequest cluster_id - * @property {vtctldata.IDeleteKeyspaceRequest|null} [options] DeleteKeyspaceRequest options + * @interface IFindSchemaRequest + * @property {string|null} [table] FindSchemaRequest table + * @property {Array.|null} [cluster_ids] FindSchemaRequest cluster_ids + * @property {vtadmin.IGetSchemaTableSizeOptions|null} [table_size_options] FindSchemaRequest table_size_options */ /** - * Constructs a new DeleteKeyspaceRequest. + * Constructs a new FindSchemaRequest. * @memberof vtadmin - * @classdesc Represents a DeleteKeyspaceRequest. - * @implements IDeleteKeyspaceRequest + * @classdesc Represents a FindSchemaRequest. + * @implements IFindSchemaRequest * @constructor - * @param {vtadmin.IDeleteKeyspaceRequest=} [properties] Properties to set + * @param {vtadmin.IFindSchemaRequest=} [properties] Properties to set */ - function DeleteKeyspaceRequest(properties) { + function FindSchemaRequest(properties) { + this.cluster_ids = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5528,88 +6938,104 @@ $root.vtadmin = (function() { } /** - * DeleteKeyspaceRequest cluster_id. - * @member {string} cluster_id - * @memberof vtadmin.DeleteKeyspaceRequest + * FindSchemaRequest table. + * @member {string} table + * @memberof vtadmin.FindSchemaRequest * @instance */ - DeleteKeyspaceRequest.prototype.cluster_id = ""; + FindSchemaRequest.prototype.table = ""; /** - * DeleteKeyspaceRequest options. - * @member {vtctldata.IDeleteKeyspaceRequest|null|undefined} options - * @memberof vtadmin.DeleteKeyspaceRequest + * FindSchemaRequest cluster_ids. + * @member {Array.} cluster_ids + * @memberof vtadmin.FindSchemaRequest * @instance */ - DeleteKeyspaceRequest.prototype.options = null; + FindSchemaRequest.prototype.cluster_ids = $util.emptyArray; /** - * Creates a new DeleteKeyspaceRequest instance using the specified properties. + * FindSchemaRequest table_size_options. + * @member {vtadmin.IGetSchemaTableSizeOptions|null|undefined} table_size_options + * @memberof vtadmin.FindSchemaRequest + * @instance + */ + FindSchemaRequest.prototype.table_size_options = null; + + /** + * Creates a new FindSchemaRequest instance using the specified properties. * @function create - * @memberof vtadmin.DeleteKeyspaceRequest + * @memberof vtadmin.FindSchemaRequest * @static - * @param {vtadmin.IDeleteKeyspaceRequest=} [properties] Properties to set - * @returns {vtadmin.DeleteKeyspaceRequest} DeleteKeyspaceRequest instance + * @param {vtadmin.IFindSchemaRequest=} [properties] Properties to set + * @returns {vtadmin.FindSchemaRequest} FindSchemaRequest instance */ - DeleteKeyspaceRequest.create = function create(properties) { - return new DeleteKeyspaceRequest(properties); + FindSchemaRequest.create = function create(properties) { + return new FindSchemaRequest(properties); }; /** - * Encodes the specified DeleteKeyspaceRequest message. Does not implicitly {@link vtadmin.DeleteKeyspaceRequest.verify|verify} messages. + * Encodes the specified FindSchemaRequest message. Does not implicitly {@link vtadmin.FindSchemaRequest.verify|verify} messages. * @function encode - * @memberof vtadmin.DeleteKeyspaceRequest + * @memberof vtadmin.FindSchemaRequest * @static - * @param {vtadmin.IDeleteKeyspaceRequest} message DeleteKeyspaceRequest message or plain object to encode + * @param {vtadmin.IFindSchemaRequest} message FindSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteKeyspaceRequest.encode = function encode(message, writer) { + FindSchemaRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.cluster_id != null && Object.hasOwnProperty.call(message, "cluster_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.cluster_id); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.vtctldata.DeleteKeyspaceRequest.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.table != null && Object.hasOwnProperty.call(message, "table")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.table); + if (message.cluster_ids != null && message.cluster_ids.length) + for (var i = 0; i < message.cluster_ids.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.cluster_ids[i]); + if (message.table_size_options != null && Object.hasOwnProperty.call(message, "table_size_options")) + $root.vtadmin.GetSchemaTableSizeOptions.encode(message.table_size_options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteKeyspaceRequest message, length delimited. Does not implicitly {@link vtadmin.DeleteKeyspaceRequest.verify|verify} messages. + * Encodes the specified FindSchemaRequest message, length delimited. Does not implicitly {@link vtadmin.FindSchemaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtadmin.DeleteKeyspaceRequest + * @memberof vtadmin.FindSchemaRequest * @static - * @param {vtadmin.IDeleteKeyspaceRequest} message DeleteKeyspaceRequest message or plain object to encode + * @param {vtadmin.IFindSchemaRequest} message FindSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { + FindSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer. + * Decodes a FindSchemaRequest message from the specified reader or buffer. * @function decode - * @memberof vtadmin.DeleteKeyspaceRequest + * @memberof vtadmin.FindSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtadmin.DeleteKeyspaceRequest} DeleteKeyspaceRequest + * @returns {vtadmin.FindSchemaRequest} FindSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteKeyspaceRequest.decode = function decode(reader, length) { + FindSchemaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.DeleteKeyspaceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.FindSchemaRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.cluster_id = reader.string(); + message.table = reader.string(); break; case 2: - message.options = $root.vtctldata.DeleteKeyspaceRequest.decode(reader, reader.uint32()); + if (!(message.cluster_ids && message.cluster_ids.length)) + message.cluster_ids = []; + message.cluster_ids.push(reader.string()); + break; + case 3: + message.table_size_options = $root.vtadmin.GetSchemaTableSizeOptions.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -5620,122 +7046,148 @@ $root.vtadmin = (function() { }; /** - * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a FindSchemaRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtadmin.DeleteKeyspaceRequest + * @memberof vtadmin.FindSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtadmin.DeleteKeyspaceRequest} DeleteKeyspaceRequest + * @returns {vtadmin.FindSchemaRequest} FindSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { + FindSchemaRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteKeyspaceRequest message. + * Verifies a FindSchemaRequest message. * @function verify - * @memberof vtadmin.DeleteKeyspaceRequest + * @memberof vtadmin.FindSchemaRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteKeyspaceRequest.verify = function verify(message) { + FindSchemaRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) - if (!$util.isString(message.cluster_id)) - return "cluster_id: string expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.vtctldata.DeleteKeyspaceRequest.verify(message.options); + if (message.table != null && message.hasOwnProperty("table")) + if (!$util.isString(message.table)) + return "table: string expected"; + if (message.cluster_ids != null && message.hasOwnProperty("cluster_ids")) { + if (!Array.isArray(message.cluster_ids)) + return "cluster_ids: array expected"; + for (var i = 0; i < message.cluster_ids.length; ++i) + if (!$util.isString(message.cluster_ids[i])) + return "cluster_ids: string[] expected"; + } + if (message.table_size_options != null && message.hasOwnProperty("table_size_options")) { + var error = $root.vtadmin.GetSchemaTableSizeOptions.verify(message.table_size_options); if (error) - return "options." + error; + return "table_size_options." + error; } return null; }; /** - * Creates a DeleteKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FindSchemaRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtadmin.DeleteKeyspaceRequest + * @memberof vtadmin.FindSchemaRequest * @static * @param {Object.} object Plain object - * @returns {vtadmin.DeleteKeyspaceRequest} DeleteKeyspaceRequest + * @returns {vtadmin.FindSchemaRequest} FindSchemaRequest */ - DeleteKeyspaceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtadmin.DeleteKeyspaceRequest) + FindSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.FindSchemaRequest) return object; - var message = new $root.vtadmin.DeleteKeyspaceRequest(); - if (object.cluster_id != null) - message.cluster_id = String(object.cluster_id); - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".vtadmin.DeleteKeyspaceRequest.options: object expected"); - message.options = $root.vtctldata.DeleteKeyspaceRequest.fromObject(object.options); + var message = new $root.vtadmin.FindSchemaRequest(); + if (object.table != null) + message.table = String(object.table); + if (object.cluster_ids) { + if (!Array.isArray(object.cluster_ids)) + throw TypeError(".vtadmin.FindSchemaRequest.cluster_ids: array expected"); + message.cluster_ids = []; + for (var i = 0; i < object.cluster_ids.length; ++i) + message.cluster_ids[i] = String(object.cluster_ids[i]); + } + if (object.table_size_options != null) { + if (typeof object.table_size_options !== "object") + throw TypeError(".vtadmin.FindSchemaRequest.table_size_options: object expected"); + message.table_size_options = $root.vtadmin.GetSchemaTableSizeOptions.fromObject(object.table_size_options); } return message; }; /** - * Creates a plain object from a DeleteKeyspaceRequest message. Also converts values to other types if specified. + * Creates a plain object from a FindSchemaRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtadmin.DeleteKeyspaceRequest + * @memberof vtadmin.FindSchemaRequest * @static - * @param {vtadmin.DeleteKeyspaceRequest} message DeleteKeyspaceRequest + * @param {vtadmin.FindSchemaRequest} message FindSchemaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteKeyspaceRequest.toObject = function toObject(message, options) { + FindSchemaRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.cluster_ids = []; if (options.defaults) { - object.cluster_id = ""; - object.options = null; + object.table = ""; + object.table_size_options = null; + } + if (message.table != null && message.hasOwnProperty("table")) + object.table = message.table; + if (message.cluster_ids && message.cluster_ids.length) { + object.cluster_ids = []; + for (var j = 0; j < message.cluster_ids.length; ++j) + object.cluster_ids[j] = message.cluster_ids[j]; } - if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) - object.cluster_id = message.cluster_id; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.vtctldata.DeleteKeyspaceRequest.toObject(message.options, options); + if (message.table_size_options != null && message.hasOwnProperty("table_size_options")) + object.table_size_options = $root.vtadmin.GetSchemaTableSizeOptions.toObject(message.table_size_options, options); return object; }; /** - * Converts this DeleteKeyspaceRequest to JSON. + * Converts this FindSchemaRequest to JSON. * @function toJSON - * @memberof vtadmin.DeleteKeyspaceRequest + * @memberof vtadmin.FindSchemaRequest * @instance * @returns {Object.} JSON object */ - DeleteKeyspaceRequest.prototype.toJSON = function toJSON() { + FindSchemaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteKeyspaceRequest; + return FindSchemaRequest; })(); - vtadmin.DeleteShardsRequest = (function() { + vtadmin.GetBackupsRequest = (function() { /** - * Properties of a DeleteShardsRequest. + * Properties of a GetBackupsRequest. * @memberof vtadmin - * @interface IDeleteShardsRequest - * @property {string|null} [cluster_id] DeleteShardsRequest cluster_id - * @property {vtctldata.IDeleteShardsRequest|null} [options] DeleteShardsRequest options + * @interface IGetBackupsRequest + * @property {Array.|null} [cluster_ids] GetBackupsRequest cluster_ids + * @property {Array.|null} [keyspaces] GetBackupsRequest keyspaces + * @property {Array.|null} [keyspace_shards] GetBackupsRequest keyspace_shards + * @property {vtctldata.IGetBackupsRequest|null} [request_options] GetBackupsRequest request_options */ /** - * Constructs a new DeleteShardsRequest. + * Constructs a new GetBackupsRequest. * @memberof vtadmin - * @classdesc Represents a DeleteShardsRequest. - * @implements IDeleteShardsRequest + * @classdesc Represents a GetBackupsRequest. + * @implements IGetBackupsRequest * @constructor - * @param {vtadmin.IDeleteShardsRequest=} [properties] Properties to set + * @param {vtadmin.IGetBackupsRequest=} [properties] Properties to set */ - function DeleteShardsRequest(properties) { + function GetBackupsRequest(properties) { + this.cluster_ids = []; + this.keyspaces = []; + this.keyspace_shards = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5743,88 +7195,123 @@ $root.vtadmin = (function() { } /** - * DeleteShardsRequest cluster_id. - * @member {string} cluster_id - * @memberof vtadmin.DeleteShardsRequest + * GetBackupsRequest cluster_ids. + * @member {Array.} cluster_ids + * @memberof vtadmin.GetBackupsRequest * @instance */ - DeleteShardsRequest.prototype.cluster_id = ""; + GetBackupsRequest.prototype.cluster_ids = $util.emptyArray; /** - * DeleteShardsRequest options. - * @member {vtctldata.IDeleteShardsRequest|null|undefined} options - * @memberof vtadmin.DeleteShardsRequest + * GetBackupsRequest keyspaces. + * @member {Array.} keyspaces + * @memberof vtadmin.GetBackupsRequest * @instance */ - DeleteShardsRequest.prototype.options = null; + GetBackupsRequest.prototype.keyspaces = $util.emptyArray; /** - * Creates a new DeleteShardsRequest instance using the specified properties. + * GetBackupsRequest keyspace_shards. + * @member {Array.} keyspace_shards + * @memberof vtadmin.GetBackupsRequest + * @instance + */ + GetBackupsRequest.prototype.keyspace_shards = $util.emptyArray; + + /** + * GetBackupsRequest request_options. + * @member {vtctldata.IGetBackupsRequest|null|undefined} request_options + * @memberof vtadmin.GetBackupsRequest + * @instance + */ + GetBackupsRequest.prototype.request_options = null; + + /** + * Creates a new GetBackupsRequest instance using the specified properties. * @function create - * @memberof vtadmin.DeleteShardsRequest + * @memberof vtadmin.GetBackupsRequest * @static - * @param {vtadmin.IDeleteShardsRequest=} [properties] Properties to set - * @returns {vtadmin.DeleteShardsRequest} DeleteShardsRequest instance + * @param {vtadmin.IGetBackupsRequest=} [properties] Properties to set + * @returns {vtadmin.GetBackupsRequest} GetBackupsRequest instance */ - DeleteShardsRequest.create = function create(properties) { - return new DeleteShardsRequest(properties); + GetBackupsRequest.create = function create(properties) { + return new GetBackupsRequest(properties); }; /** - * Encodes the specified DeleteShardsRequest message. Does not implicitly {@link vtadmin.DeleteShardsRequest.verify|verify} messages. + * Encodes the specified GetBackupsRequest message. Does not implicitly {@link vtadmin.GetBackupsRequest.verify|verify} messages. * @function encode - * @memberof vtadmin.DeleteShardsRequest + * @memberof vtadmin.GetBackupsRequest * @static - * @param {vtadmin.IDeleteShardsRequest} message DeleteShardsRequest message or plain object to encode + * @param {vtadmin.IGetBackupsRequest} message GetBackupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteShardsRequest.encode = function encode(message, writer) { + GetBackupsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.cluster_id != null && Object.hasOwnProperty.call(message, "cluster_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.cluster_id); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.vtctldata.DeleteShardsRequest.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.cluster_ids != null && message.cluster_ids.length) + for (var i = 0; i < message.cluster_ids.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cluster_ids[i]); + if (message.keyspaces != null && message.keyspaces.length) + for (var i = 0; i < message.keyspaces.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.keyspaces[i]); + if (message.keyspace_shards != null && message.keyspace_shards.length) + for (var i = 0; i < message.keyspace_shards.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.keyspace_shards[i]); + if (message.request_options != null && Object.hasOwnProperty.call(message, "request_options")) + $root.vtctldata.GetBackupsRequest.encode(message.request_options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteShardsRequest message, length delimited. Does not implicitly {@link vtadmin.DeleteShardsRequest.verify|verify} messages. + * Encodes the specified GetBackupsRequest message, length delimited. Does not implicitly {@link vtadmin.GetBackupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtadmin.DeleteShardsRequest + * @memberof vtadmin.GetBackupsRequest * @static - * @param {vtadmin.IDeleteShardsRequest} message DeleteShardsRequest message or plain object to encode + * @param {vtadmin.IGetBackupsRequest} message GetBackupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteShardsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetBackupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteShardsRequest message from the specified reader or buffer. + * Decodes a GetBackupsRequest message from the specified reader or buffer. * @function decode - * @memberof vtadmin.DeleteShardsRequest + * @memberof vtadmin.GetBackupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtadmin.DeleteShardsRequest} DeleteShardsRequest + * @returns {vtadmin.GetBackupsRequest} GetBackupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteShardsRequest.decode = function decode(reader, length) { + GetBackupsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.DeleteShardsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.GetBackupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.cluster_id = reader.string(); + if (!(message.cluster_ids && message.cluster_ids.length)) + message.cluster_ids = []; + message.cluster_ids.push(reader.string()); break; case 2: - message.options = $root.vtctldata.DeleteShardsRequest.decode(reader, reader.uint32()); + if (!(message.keyspaces && message.keyspaces.length)) + message.keyspaces = []; + message.keyspaces.push(reader.string()); + break; + case 3: + if (!(message.keyspace_shards && message.keyspace_shards.length)) + message.keyspace_shards = []; + message.keyspace_shards.push(reader.string()); + break; + case 4: + message.request_options = $root.vtctldata.GetBackupsRequest.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -5835,123 +7322,175 @@ $root.vtadmin = (function() { }; /** - * Decodes a DeleteShardsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetBackupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtadmin.DeleteShardsRequest + * @memberof vtadmin.GetBackupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtadmin.DeleteShardsRequest} DeleteShardsRequest + * @returns {vtadmin.GetBackupsRequest} GetBackupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteShardsRequest.decodeDelimited = function decodeDelimited(reader) { + GetBackupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteShardsRequest message. + * Verifies a GetBackupsRequest message. * @function verify - * @memberof vtadmin.DeleteShardsRequest + * @memberof vtadmin.GetBackupsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteShardsRequest.verify = function verify(message) { + GetBackupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) - if (!$util.isString(message.cluster_id)) - return "cluster_id: string expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.vtctldata.DeleteShardsRequest.verify(message.options); + if (message.cluster_ids != null && message.hasOwnProperty("cluster_ids")) { + if (!Array.isArray(message.cluster_ids)) + return "cluster_ids: array expected"; + for (var i = 0; i < message.cluster_ids.length; ++i) + if (!$util.isString(message.cluster_ids[i])) + return "cluster_ids: string[] expected"; + } + if (message.keyspaces != null && message.hasOwnProperty("keyspaces")) { + if (!Array.isArray(message.keyspaces)) + return "keyspaces: array expected"; + for (var i = 0; i < message.keyspaces.length; ++i) + if (!$util.isString(message.keyspaces[i])) + return "keyspaces: string[] expected"; + } + if (message.keyspace_shards != null && message.hasOwnProperty("keyspace_shards")) { + if (!Array.isArray(message.keyspace_shards)) + return "keyspace_shards: array expected"; + for (var i = 0; i < message.keyspace_shards.length; ++i) + if (!$util.isString(message.keyspace_shards[i])) + return "keyspace_shards: string[] expected"; + } + if (message.request_options != null && message.hasOwnProperty("request_options")) { + var error = $root.vtctldata.GetBackupsRequest.verify(message.request_options); if (error) - return "options." + error; + return "request_options." + error; } return null; }; /** - * Creates a DeleteShardsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetBackupsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtadmin.DeleteShardsRequest + * @memberof vtadmin.GetBackupsRequest * @static * @param {Object.} object Plain object - * @returns {vtadmin.DeleteShardsRequest} DeleteShardsRequest + * @returns {vtadmin.GetBackupsRequest} GetBackupsRequest */ - DeleteShardsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtadmin.DeleteShardsRequest) + GetBackupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.GetBackupsRequest) return object; - var message = new $root.vtadmin.DeleteShardsRequest(); - if (object.cluster_id != null) - message.cluster_id = String(object.cluster_id); - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".vtadmin.DeleteShardsRequest.options: object expected"); - message.options = $root.vtctldata.DeleteShardsRequest.fromObject(object.options); + var message = new $root.vtadmin.GetBackupsRequest(); + if (object.cluster_ids) { + if (!Array.isArray(object.cluster_ids)) + throw TypeError(".vtadmin.GetBackupsRequest.cluster_ids: array expected"); + message.cluster_ids = []; + for (var i = 0; i < object.cluster_ids.length; ++i) + message.cluster_ids[i] = String(object.cluster_ids[i]); + } + if (object.keyspaces) { + if (!Array.isArray(object.keyspaces)) + throw TypeError(".vtadmin.GetBackupsRequest.keyspaces: array expected"); + message.keyspaces = []; + for (var i = 0; i < object.keyspaces.length; ++i) + message.keyspaces[i] = String(object.keyspaces[i]); + } + if (object.keyspace_shards) { + if (!Array.isArray(object.keyspace_shards)) + throw TypeError(".vtadmin.GetBackupsRequest.keyspace_shards: array expected"); + message.keyspace_shards = []; + for (var i = 0; i < object.keyspace_shards.length; ++i) + message.keyspace_shards[i] = String(object.keyspace_shards[i]); + } + if (object.request_options != null) { + if (typeof object.request_options !== "object") + throw TypeError(".vtadmin.GetBackupsRequest.request_options: object expected"); + message.request_options = $root.vtctldata.GetBackupsRequest.fromObject(object.request_options); } return message; }; /** - * Creates a plain object from a DeleteShardsRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetBackupsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtadmin.DeleteShardsRequest + * @memberof vtadmin.GetBackupsRequest * @static - * @param {vtadmin.DeleteShardsRequest} message DeleteShardsRequest + * @param {vtadmin.GetBackupsRequest} message GetBackupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteShardsRequest.toObject = function toObject(message, options) { + GetBackupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.cluster_id = ""; - object.options = null; + if (options.arrays || options.defaults) { + object.cluster_ids = []; + object.keyspaces = []; + object.keyspace_shards = []; + } + if (options.defaults) + object.request_options = null; + if (message.cluster_ids && message.cluster_ids.length) { + object.cluster_ids = []; + for (var j = 0; j < message.cluster_ids.length; ++j) + object.cluster_ids[j] = message.cluster_ids[j]; + } + if (message.keyspaces && message.keyspaces.length) { + object.keyspaces = []; + for (var j = 0; j < message.keyspaces.length; ++j) + object.keyspaces[j] = message.keyspaces[j]; } - if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) - object.cluster_id = message.cluster_id; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.vtctldata.DeleteShardsRequest.toObject(message.options, options); + if (message.keyspace_shards && message.keyspace_shards.length) { + object.keyspace_shards = []; + for (var j = 0; j < message.keyspace_shards.length; ++j) + object.keyspace_shards[j] = message.keyspace_shards[j]; + } + if (message.request_options != null && message.hasOwnProperty("request_options")) + object.request_options = $root.vtctldata.GetBackupsRequest.toObject(message.request_options, options); return object; }; /** - * Converts this DeleteShardsRequest to JSON. + * Converts this GetBackupsRequest to JSON. * @function toJSON - * @memberof vtadmin.DeleteShardsRequest + * @memberof vtadmin.GetBackupsRequest * @instance * @returns {Object.} JSON object */ - DeleteShardsRequest.prototype.toJSON = function toJSON() { + GetBackupsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteShardsRequest; + return GetBackupsRequest; })(); - vtadmin.DeleteTabletRequest = (function() { + vtadmin.GetBackupsResponse = (function() { /** - * Properties of a DeleteTabletRequest. + * Properties of a GetBackupsResponse. * @memberof vtadmin - * @interface IDeleteTabletRequest - * @property {string|null} [alias] DeleteTabletRequest alias - * @property {Array.|null} [cluster_ids] DeleteTabletRequest cluster_ids + * @interface IGetBackupsResponse + * @property {Array.|null} [backups] GetBackupsResponse backups */ /** - * Constructs a new DeleteTabletRequest. + * Constructs a new GetBackupsResponse. * @memberof vtadmin - * @classdesc Represents a DeleteTabletRequest. - * @implements IDeleteTabletRequest + * @classdesc Represents a GetBackupsResponse. + * @implements IGetBackupsResponse * @constructor - * @param {vtadmin.IDeleteTabletRequest=} [properties] Properties to set + * @param {vtadmin.IGetBackupsResponse=} [properties] Properties to set */ - function DeleteTabletRequest(properties) { - this.cluster_ids = []; + function GetBackupsResponse(properties) { + this.backups = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5959,91 +7498,78 @@ $root.vtadmin = (function() { } /** - * DeleteTabletRequest alias. - * @member {string} alias - * @memberof vtadmin.DeleteTabletRequest - * @instance - */ - DeleteTabletRequest.prototype.alias = ""; - - /** - * DeleteTabletRequest cluster_ids. - * @member {Array.} cluster_ids - * @memberof vtadmin.DeleteTabletRequest + * GetBackupsResponse backups. + * @member {Array.} backups + * @memberof vtadmin.GetBackupsResponse * @instance */ - DeleteTabletRequest.prototype.cluster_ids = $util.emptyArray; + GetBackupsResponse.prototype.backups = $util.emptyArray; /** - * Creates a new DeleteTabletRequest instance using the specified properties. + * Creates a new GetBackupsResponse instance using the specified properties. * @function create - * @memberof vtadmin.DeleteTabletRequest + * @memberof vtadmin.GetBackupsResponse * @static - * @param {vtadmin.IDeleteTabletRequest=} [properties] Properties to set - * @returns {vtadmin.DeleteTabletRequest} DeleteTabletRequest instance + * @param {vtadmin.IGetBackupsResponse=} [properties] Properties to set + * @returns {vtadmin.GetBackupsResponse} GetBackupsResponse instance */ - DeleteTabletRequest.create = function create(properties) { - return new DeleteTabletRequest(properties); + GetBackupsResponse.create = function create(properties) { + return new GetBackupsResponse(properties); }; /** - * Encodes the specified DeleteTabletRequest message. Does not implicitly {@link vtadmin.DeleteTabletRequest.verify|verify} messages. + * Encodes the specified GetBackupsResponse message. Does not implicitly {@link vtadmin.GetBackupsResponse.verify|verify} messages. * @function encode - * @memberof vtadmin.DeleteTabletRequest + * @memberof vtadmin.GetBackupsResponse * @static - * @param {vtadmin.IDeleteTabletRequest} message DeleteTabletRequest message or plain object to encode + * @param {vtadmin.IGetBackupsResponse} message GetBackupsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTabletRequest.encode = function encode(message, writer) { + GetBackupsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.alias != null && Object.hasOwnProperty.call(message, "alias")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.alias); - if (message.cluster_ids != null && message.cluster_ids.length) - for (var i = 0; i < message.cluster_ids.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.cluster_ids[i]); + if (message.backups != null && message.backups.length) + for (var i = 0; i < message.backups.length; ++i) + $root.vtadmin.ClusterBackup.encode(message.backups[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteTabletRequest message, length delimited. Does not implicitly {@link vtadmin.DeleteTabletRequest.verify|verify} messages. + * Encodes the specified GetBackupsResponse message, length delimited. Does not implicitly {@link vtadmin.GetBackupsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtadmin.DeleteTabletRequest + * @memberof vtadmin.GetBackupsResponse * @static - * @param {vtadmin.IDeleteTabletRequest} message DeleteTabletRequest message or plain object to encode + * @param {vtadmin.IGetBackupsResponse} message GetBackupsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTabletRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetBackupsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteTabletRequest message from the specified reader or buffer. + * Decodes a GetBackupsResponse message from the specified reader or buffer. * @function decode - * @memberof vtadmin.DeleteTabletRequest + * @memberof vtadmin.GetBackupsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtadmin.DeleteTabletRequest} DeleteTabletRequest + * @returns {vtadmin.GetBackupsResponse} GetBackupsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteTabletRequest.decode = function decode(reader, length) { + GetBackupsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.DeleteTabletRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.GetBackupsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.alias = reader.string(); - break; - case 2: - if (!(message.cluster_ids && message.cluster_ids.length)) - message.cluster_ids = []; - message.cluster_ids.push(reader.string()); + if (!(message.backups && message.backups.length)) + message.backups = []; + message.backups.push($root.vtadmin.ClusterBackup.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -6054,128 +7580,128 @@ $root.vtadmin = (function() { }; /** - * Decodes a DeleteTabletRequest message from the specified reader or buffer, length delimited. + * Decodes a GetBackupsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtadmin.DeleteTabletRequest + * @memberof vtadmin.GetBackupsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtadmin.DeleteTabletRequest} DeleteTabletRequest + * @returns {vtadmin.GetBackupsResponse} GetBackupsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteTabletRequest.decodeDelimited = function decodeDelimited(reader) { + GetBackupsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteTabletRequest message. + * Verifies a GetBackupsResponse message. * @function verify - * @memberof vtadmin.DeleteTabletRequest + * @memberof vtadmin.GetBackupsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteTabletRequest.verify = function verify(message) { + GetBackupsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.alias != null && message.hasOwnProperty("alias")) - if (!$util.isString(message.alias)) - return "alias: string expected"; - if (message.cluster_ids != null && message.hasOwnProperty("cluster_ids")) { - if (!Array.isArray(message.cluster_ids)) - return "cluster_ids: array expected"; - for (var i = 0; i < message.cluster_ids.length; ++i) - if (!$util.isString(message.cluster_ids[i])) - return "cluster_ids: string[] expected"; + if (message.backups != null && message.hasOwnProperty("backups")) { + if (!Array.isArray(message.backups)) + return "backups: array expected"; + for (var i = 0; i < message.backups.length; ++i) { + var error = $root.vtadmin.ClusterBackup.verify(message.backups[i]); + if (error) + return "backups." + error; + } } return null; }; /** - * Creates a DeleteTabletRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetBackupsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtadmin.DeleteTabletRequest + * @memberof vtadmin.GetBackupsResponse * @static * @param {Object.} object Plain object - * @returns {vtadmin.DeleteTabletRequest} DeleteTabletRequest + * @returns {vtadmin.GetBackupsResponse} GetBackupsResponse */ - DeleteTabletRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtadmin.DeleteTabletRequest) + GetBackupsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.GetBackupsResponse) return object; - var message = new $root.vtadmin.DeleteTabletRequest(); - if (object.alias != null) - message.alias = String(object.alias); - if (object.cluster_ids) { - if (!Array.isArray(object.cluster_ids)) - throw TypeError(".vtadmin.DeleteTabletRequest.cluster_ids: array expected"); - message.cluster_ids = []; - for (var i = 0; i < object.cluster_ids.length; ++i) - message.cluster_ids[i] = String(object.cluster_ids[i]); + var message = new $root.vtadmin.GetBackupsResponse(); + if (object.backups) { + if (!Array.isArray(object.backups)) + throw TypeError(".vtadmin.GetBackupsResponse.backups: array expected"); + message.backups = []; + for (var i = 0; i < object.backups.length; ++i) { + if (typeof object.backups[i] !== "object") + throw TypeError(".vtadmin.GetBackupsResponse.backups: object expected"); + message.backups[i] = $root.vtadmin.ClusterBackup.fromObject(object.backups[i]); + } } return message; }; /** - * Creates a plain object from a DeleteTabletRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetBackupsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtadmin.DeleteTabletRequest + * @memberof vtadmin.GetBackupsResponse * @static - * @param {vtadmin.DeleteTabletRequest} message DeleteTabletRequest + * @param {vtadmin.GetBackupsResponse} message GetBackupsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteTabletRequest.toObject = function toObject(message, options) { + GetBackupsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.cluster_ids = []; - if (options.defaults) - object.alias = ""; - if (message.alias != null && message.hasOwnProperty("alias")) - object.alias = message.alias; - if (message.cluster_ids && message.cluster_ids.length) { - object.cluster_ids = []; - for (var j = 0; j < message.cluster_ids.length; ++j) - object.cluster_ids[j] = message.cluster_ids[j]; + object.backups = []; + if (message.backups && message.backups.length) { + object.backups = []; + for (var j = 0; j < message.backups.length; ++j) + object.backups[j] = $root.vtadmin.ClusterBackup.toObject(message.backups[j], options); } return object; }; /** - * Converts this DeleteTabletRequest to JSON. + * Converts this GetBackupsResponse to JSON. * @function toJSON - * @memberof vtadmin.DeleteTabletRequest + * @memberof vtadmin.GetBackupsResponse * @instance * @returns {Object.} JSON object */ - DeleteTabletRequest.prototype.toJSON = function toJSON() { + GetBackupsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteTabletRequest; + return GetBackupsResponse; })(); - vtadmin.DeleteTabletResponse = (function() { + vtadmin.GetCellInfosRequest = (function() { /** - * Properties of a DeleteTabletResponse. + * Properties of a GetCellInfosRequest. * @memberof vtadmin - * @interface IDeleteTabletResponse - * @property {string|null} [status] DeleteTabletResponse status + * @interface IGetCellInfosRequest + * @property {Array.|null} [cluster_ids] GetCellInfosRequest cluster_ids + * @property {Array.|null} [cells] GetCellInfosRequest cells + * @property {boolean|null} [names_only] GetCellInfosRequest names_only */ /** - * Constructs a new DeleteTabletResponse. + * Constructs a new GetCellInfosRequest. * @memberof vtadmin - * @classdesc Represents a DeleteTabletResponse. - * @implements IDeleteTabletResponse + * @classdesc Represents a GetCellInfosRequest. + * @implements IGetCellInfosRequest * @constructor - * @param {vtadmin.IDeleteTabletResponse=} [properties] Properties to set + * @param {vtadmin.IGetCellInfosRequest=} [properties] Properties to set */ - function DeleteTabletResponse(properties) { + function GetCellInfosRequest(properties) { + this.cluster_ids = []; + this.cells = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6183,75 +7709,107 @@ $root.vtadmin = (function() { } /** - * DeleteTabletResponse status. - * @member {string} status - * @memberof vtadmin.DeleteTabletResponse + * GetCellInfosRequest cluster_ids. + * @member {Array.} cluster_ids + * @memberof vtadmin.GetCellInfosRequest * @instance */ - DeleteTabletResponse.prototype.status = ""; + GetCellInfosRequest.prototype.cluster_ids = $util.emptyArray; /** - * Creates a new DeleteTabletResponse instance using the specified properties. + * GetCellInfosRequest cells. + * @member {Array.} cells + * @memberof vtadmin.GetCellInfosRequest + * @instance + */ + GetCellInfosRequest.prototype.cells = $util.emptyArray; + + /** + * GetCellInfosRequest names_only. + * @member {boolean} names_only + * @memberof vtadmin.GetCellInfosRequest + * @instance + */ + GetCellInfosRequest.prototype.names_only = false; + + /** + * Creates a new GetCellInfosRequest instance using the specified properties. * @function create - * @memberof vtadmin.DeleteTabletResponse + * @memberof vtadmin.GetCellInfosRequest * @static - * @param {vtadmin.IDeleteTabletResponse=} [properties] Properties to set - * @returns {vtadmin.DeleteTabletResponse} DeleteTabletResponse instance + * @param {vtadmin.IGetCellInfosRequest=} [properties] Properties to set + * @returns {vtadmin.GetCellInfosRequest} GetCellInfosRequest instance */ - DeleteTabletResponse.create = function create(properties) { - return new DeleteTabletResponse(properties); + GetCellInfosRequest.create = function create(properties) { + return new GetCellInfosRequest(properties); }; /** - * Encodes the specified DeleteTabletResponse message. Does not implicitly {@link vtadmin.DeleteTabletResponse.verify|verify} messages. + * Encodes the specified GetCellInfosRequest message. Does not implicitly {@link vtadmin.GetCellInfosRequest.verify|verify} messages. * @function encode - * @memberof vtadmin.DeleteTabletResponse + * @memberof vtadmin.GetCellInfosRequest * @static - * @param {vtadmin.IDeleteTabletResponse} message DeleteTabletResponse message or plain object to encode + * @param {vtadmin.IGetCellInfosRequest} message GetCellInfosRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTabletResponse.encode = function encode(message, writer) { + GetCellInfosRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.status); + if (message.cluster_ids != null && message.cluster_ids.length) + for (var i = 0; i < message.cluster_ids.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cluster_ids[i]); + if (message.cells != null && message.cells.length) + for (var i = 0; i < message.cells.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.cells[i]); + if (message.names_only != null && Object.hasOwnProperty.call(message, "names_only")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.names_only); return writer; }; /** - * Encodes the specified DeleteTabletResponse message, length delimited. Does not implicitly {@link vtadmin.DeleteTabletResponse.verify|verify} messages. + * Encodes the specified GetCellInfosRequest message, length delimited. Does not implicitly {@link vtadmin.GetCellInfosRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtadmin.DeleteTabletResponse + * @memberof vtadmin.GetCellInfosRequest * @static - * @param {vtadmin.IDeleteTabletResponse} message DeleteTabletResponse message or plain object to encode + * @param {vtadmin.IGetCellInfosRequest} message GetCellInfosRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTabletResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetCellInfosRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteTabletResponse message from the specified reader or buffer. + * Decodes a GetCellInfosRequest message from the specified reader or buffer. * @function decode - * @memberof vtadmin.DeleteTabletResponse + * @memberof vtadmin.GetCellInfosRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtadmin.DeleteTabletResponse} DeleteTabletResponse + * @returns {vtadmin.GetCellInfosRequest} GetCellInfosRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteTabletResponse.decode = function decode(reader, length) { + GetCellInfosRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.DeleteTabletResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.GetCellInfosRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.status = reader.string(); + if (!(message.cluster_ids && message.cluster_ids.length)) + message.cluster_ids = []; + message.cluster_ids.push(reader.string()); + break; + case 2: + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push(reader.string()); + break; + case 3: + message.names_only = reader.bool(); break; default: reader.skipType(tag & 7); @@ -6262,110 +7820,150 @@ $root.vtadmin = (function() { }; /** - * Decodes a DeleteTabletResponse message from the specified reader or buffer, length delimited. + * Decodes a GetCellInfosRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtadmin.DeleteTabletResponse + * @memberof vtadmin.GetCellInfosRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtadmin.DeleteTabletResponse} DeleteTabletResponse + * @returns {vtadmin.GetCellInfosRequest} GetCellInfosRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteTabletResponse.decodeDelimited = function decodeDelimited(reader) { + GetCellInfosRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteTabletResponse message. + * Verifies a GetCellInfosRequest message. * @function verify - * @memberof vtadmin.DeleteTabletResponse + * @memberof vtadmin.GetCellInfosRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteTabletResponse.verify = function verify(message) { + GetCellInfosRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; + if (message.cluster_ids != null && message.hasOwnProperty("cluster_ids")) { + if (!Array.isArray(message.cluster_ids)) + return "cluster_ids: array expected"; + for (var i = 0; i < message.cluster_ids.length; ++i) + if (!$util.isString(message.cluster_ids[i])) + return "cluster_ids: string[] expected"; + } + if (message.cells != null && message.hasOwnProperty("cells")) { + if (!Array.isArray(message.cells)) + return "cells: array expected"; + for (var i = 0; i < message.cells.length; ++i) + if (!$util.isString(message.cells[i])) + return "cells: string[] expected"; + } + if (message.names_only != null && message.hasOwnProperty("names_only")) + if (typeof message.names_only !== "boolean") + return "names_only: boolean expected"; return null; }; /** - * Creates a DeleteTabletResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetCellInfosRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtadmin.DeleteTabletResponse + * @memberof vtadmin.GetCellInfosRequest * @static * @param {Object.} object Plain object - * @returns {vtadmin.DeleteTabletResponse} DeleteTabletResponse + * @returns {vtadmin.GetCellInfosRequest} GetCellInfosRequest */ - DeleteTabletResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtadmin.DeleteTabletResponse) + GetCellInfosRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.GetCellInfosRequest) return object; - var message = new $root.vtadmin.DeleteTabletResponse(); - if (object.status != null) - message.status = String(object.status); + var message = new $root.vtadmin.GetCellInfosRequest(); + if (object.cluster_ids) { + if (!Array.isArray(object.cluster_ids)) + throw TypeError(".vtadmin.GetCellInfosRequest.cluster_ids: array expected"); + message.cluster_ids = []; + for (var i = 0; i < object.cluster_ids.length; ++i) + message.cluster_ids[i] = String(object.cluster_ids[i]); + } + if (object.cells) { + if (!Array.isArray(object.cells)) + throw TypeError(".vtadmin.GetCellInfosRequest.cells: array expected"); + message.cells = []; + for (var i = 0; i < object.cells.length; ++i) + message.cells[i] = String(object.cells[i]); + } + if (object.names_only != null) + message.names_only = Boolean(object.names_only); return message; }; /** - * Creates a plain object from a DeleteTabletResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetCellInfosRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtadmin.DeleteTabletResponse + * @memberof vtadmin.GetCellInfosRequest * @static - * @param {vtadmin.DeleteTabletResponse} message DeleteTabletResponse + * @param {vtadmin.GetCellInfosRequest} message GetCellInfosRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteTabletResponse.toObject = function toObject(message, options) { + GetCellInfosRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.cluster_ids = []; + object.cells = []; + } if (options.defaults) - object.status = ""; - if (message.status != null && message.hasOwnProperty("status")) - object.status = message.status; + object.names_only = false; + if (message.cluster_ids && message.cluster_ids.length) { + object.cluster_ids = []; + for (var j = 0; j < message.cluster_ids.length; ++j) + object.cluster_ids[j] = message.cluster_ids[j]; + } + if (message.cells && message.cells.length) { + object.cells = []; + for (var j = 0; j < message.cells.length; ++j) + object.cells[j] = message.cells[j]; + } + if (message.names_only != null && message.hasOwnProperty("names_only")) + object.names_only = message.names_only; return object; }; /** - * Converts this DeleteTabletResponse to JSON. + * Converts this GetCellInfosRequest to JSON. * @function toJSON - * @memberof vtadmin.DeleteTabletResponse + * @memberof vtadmin.GetCellInfosRequest * @instance * @returns {Object.} JSON object */ - DeleteTabletResponse.prototype.toJSON = function toJSON() { + GetCellInfosRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteTabletResponse; + return GetCellInfosRequest; })(); - vtadmin.FindSchemaRequest = (function() { + vtadmin.GetCellInfosResponse = (function() { /** - * Properties of a FindSchemaRequest. + * Properties of a GetCellInfosResponse. * @memberof vtadmin - * @interface IFindSchemaRequest - * @property {string|null} [table] FindSchemaRequest table - * @property {Array.|null} [cluster_ids] FindSchemaRequest cluster_ids - * @property {vtadmin.IGetSchemaTableSizeOptions|null} [table_size_options] FindSchemaRequest table_size_options + * @interface IGetCellInfosResponse + * @property {Array.|null} [cell_infos] GetCellInfosResponse cell_infos */ /** - * Constructs a new FindSchemaRequest. + * Constructs a new GetCellInfosResponse. * @memberof vtadmin - * @classdesc Represents a FindSchemaRequest. - * @implements IFindSchemaRequest + * @classdesc Represents a GetCellInfosResponse. + * @implements IGetCellInfosResponse * @constructor - * @param {vtadmin.IFindSchemaRequest=} [properties] Properties to set + * @param {vtadmin.IGetCellInfosResponse=} [properties] Properties to set */ - function FindSchemaRequest(properties) { - this.cluster_ids = []; + function GetCellInfosResponse(properties) { + this.cell_infos = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6373,104 +7971,78 @@ $root.vtadmin = (function() { } /** - * FindSchemaRequest table. - * @member {string} table - * @memberof vtadmin.FindSchemaRequest - * @instance - */ - FindSchemaRequest.prototype.table = ""; - - /** - * FindSchemaRequest cluster_ids. - * @member {Array.} cluster_ids - * @memberof vtadmin.FindSchemaRequest - * @instance - */ - FindSchemaRequest.prototype.cluster_ids = $util.emptyArray; - - /** - * FindSchemaRequest table_size_options. - * @member {vtadmin.IGetSchemaTableSizeOptions|null|undefined} table_size_options - * @memberof vtadmin.FindSchemaRequest + * GetCellInfosResponse cell_infos. + * @member {Array.} cell_infos + * @memberof vtadmin.GetCellInfosResponse * @instance */ - FindSchemaRequest.prototype.table_size_options = null; + GetCellInfosResponse.prototype.cell_infos = $util.emptyArray; /** - * Creates a new FindSchemaRequest instance using the specified properties. + * Creates a new GetCellInfosResponse instance using the specified properties. * @function create - * @memberof vtadmin.FindSchemaRequest + * @memberof vtadmin.GetCellInfosResponse * @static - * @param {vtadmin.IFindSchemaRequest=} [properties] Properties to set - * @returns {vtadmin.FindSchemaRequest} FindSchemaRequest instance + * @param {vtadmin.IGetCellInfosResponse=} [properties] Properties to set + * @returns {vtadmin.GetCellInfosResponse} GetCellInfosResponse instance */ - FindSchemaRequest.create = function create(properties) { - return new FindSchemaRequest(properties); + GetCellInfosResponse.create = function create(properties) { + return new GetCellInfosResponse(properties); }; /** - * Encodes the specified FindSchemaRequest message. Does not implicitly {@link vtadmin.FindSchemaRequest.verify|verify} messages. + * Encodes the specified GetCellInfosResponse message. Does not implicitly {@link vtadmin.GetCellInfosResponse.verify|verify} messages. * @function encode - * @memberof vtadmin.FindSchemaRequest + * @memberof vtadmin.GetCellInfosResponse * @static - * @param {vtadmin.IFindSchemaRequest} message FindSchemaRequest message or plain object to encode + * @param {vtadmin.IGetCellInfosResponse} message GetCellInfosResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FindSchemaRequest.encode = function encode(message, writer) { + GetCellInfosResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.table != null && Object.hasOwnProperty.call(message, "table")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.table); - if (message.cluster_ids != null && message.cluster_ids.length) - for (var i = 0; i < message.cluster_ids.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.cluster_ids[i]); - if (message.table_size_options != null && Object.hasOwnProperty.call(message, "table_size_options")) - $root.vtadmin.GetSchemaTableSizeOptions.encode(message.table_size_options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.cell_infos != null && message.cell_infos.length) + for (var i = 0; i < message.cell_infos.length; ++i) + $root.vtadmin.ClusterCellInfo.encode(message.cell_infos[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified FindSchemaRequest message, length delimited. Does not implicitly {@link vtadmin.FindSchemaRequest.verify|verify} messages. + * Encodes the specified GetCellInfosResponse message, length delimited. Does not implicitly {@link vtadmin.GetCellInfosResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtadmin.FindSchemaRequest + * @memberof vtadmin.GetCellInfosResponse * @static - * @param {vtadmin.IFindSchemaRequest} message FindSchemaRequest message or plain object to encode + * @param {vtadmin.IGetCellInfosResponse} message GetCellInfosResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FindSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetCellInfosResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FindSchemaRequest message from the specified reader or buffer. + * Decodes a GetCellInfosResponse message from the specified reader or buffer. * @function decode - * @memberof vtadmin.FindSchemaRequest + * @memberof vtadmin.GetCellInfosResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtadmin.FindSchemaRequest} FindSchemaRequest + * @returns {vtadmin.GetCellInfosResponse} GetCellInfosResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FindSchemaRequest.decode = function decode(reader, length) { + GetCellInfosResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.FindSchemaRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.GetCellInfosResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.table = reader.string(); - break; - case 2: - if (!(message.cluster_ids && message.cluster_ids.length)) - message.cluster_ids = []; - message.cluster_ids.push(reader.string()); - break; - case 3: - message.table_size_options = $root.vtadmin.GetSchemaTableSizeOptions.decode(reader, reader.uint32()); + if (!(message.cell_infos && message.cell_infos.length)) + message.cell_infos = []; + message.cell_infos.push($root.vtadmin.ClusterCellInfo.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -6481,252 +8053,197 @@ $root.vtadmin = (function() { }; /** - * Decodes a FindSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a GetCellInfosResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtadmin.FindSchemaRequest + * @memberof vtadmin.GetCellInfosResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtadmin.FindSchemaRequest} FindSchemaRequest + * @returns {vtadmin.GetCellInfosResponse} GetCellInfosResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FindSchemaRequest.decodeDelimited = function decodeDelimited(reader) { + GetCellInfosResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FindSchemaRequest message. + * Verifies a GetCellInfosResponse message. * @function verify - * @memberof vtadmin.FindSchemaRequest + * @memberof vtadmin.GetCellInfosResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FindSchemaRequest.verify = function verify(message) { + GetCellInfosResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.table != null && message.hasOwnProperty("table")) - if (!$util.isString(message.table)) - return "table: string expected"; - if (message.cluster_ids != null && message.hasOwnProperty("cluster_ids")) { - if (!Array.isArray(message.cluster_ids)) - return "cluster_ids: array expected"; - for (var i = 0; i < message.cluster_ids.length; ++i) - if (!$util.isString(message.cluster_ids[i])) - return "cluster_ids: string[] expected"; - } - if (message.table_size_options != null && message.hasOwnProperty("table_size_options")) { - var error = $root.vtadmin.GetSchemaTableSizeOptions.verify(message.table_size_options); - if (error) - return "table_size_options." + error; + if (message.cell_infos != null && message.hasOwnProperty("cell_infos")) { + if (!Array.isArray(message.cell_infos)) + return "cell_infos: array expected"; + for (var i = 0; i < message.cell_infos.length; ++i) { + var error = $root.vtadmin.ClusterCellInfo.verify(message.cell_infos[i]); + if (error) + return "cell_infos." + error; + } } return null; }; /** - * Creates a FindSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetCellInfosResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtadmin.FindSchemaRequest + * @memberof vtadmin.GetCellInfosResponse * @static * @param {Object.} object Plain object - * @returns {vtadmin.FindSchemaRequest} FindSchemaRequest + * @returns {vtadmin.GetCellInfosResponse} GetCellInfosResponse */ - FindSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtadmin.FindSchemaRequest) + GetCellInfosResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.GetCellInfosResponse) return object; - var message = new $root.vtadmin.FindSchemaRequest(); - if (object.table != null) - message.table = String(object.table); - if (object.cluster_ids) { - if (!Array.isArray(object.cluster_ids)) - throw TypeError(".vtadmin.FindSchemaRequest.cluster_ids: array expected"); - message.cluster_ids = []; - for (var i = 0; i < object.cluster_ids.length; ++i) - message.cluster_ids[i] = String(object.cluster_ids[i]); - } - if (object.table_size_options != null) { - if (typeof object.table_size_options !== "object") - throw TypeError(".vtadmin.FindSchemaRequest.table_size_options: object expected"); - message.table_size_options = $root.vtadmin.GetSchemaTableSizeOptions.fromObject(object.table_size_options); + var message = new $root.vtadmin.GetCellInfosResponse(); + if (object.cell_infos) { + if (!Array.isArray(object.cell_infos)) + throw TypeError(".vtadmin.GetCellInfosResponse.cell_infos: array expected"); + message.cell_infos = []; + for (var i = 0; i < object.cell_infos.length; ++i) { + if (typeof object.cell_infos[i] !== "object") + throw TypeError(".vtadmin.GetCellInfosResponse.cell_infos: object expected"); + message.cell_infos[i] = $root.vtadmin.ClusterCellInfo.fromObject(object.cell_infos[i]); + } } return message; }; /** - * Creates a plain object from a FindSchemaRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetCellInfosResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtadmin.FindSchemaRequest + * @memberof vtadmin.GetCellInfosResponse * @static - * @param {vtadmin.FindSchemaRequest} message FindSchemaRequest + * @param {vtadmin.GetCellInfosResponse} message GetCellInfosResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FindSchemaRequest.toObject = function toObject(message, options) { + GetCellInfosResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.cluster_ids = []; - if (options.defaults) { - object.table = ""; - object.table_size_options = null; - } - if (message.table != null && message.hasOwnProperty("table")) - object.table = message.table; - if (message.cluster_ids && message.cluster_ids.length) { - object.cluster_ids = []; - for (var j = 0; j < message.cluster_ids.length; ++j) - object.cluster_ids[j] = message.cluster_ids[j]; + object.cell_infos = []; + if (message.cell_infos && message.cell_infos.length) { + object.cell_infos = []; + for (var j = 0; j < message.cell_infos.length; ++j) + object.cell_infos[j] = $root.vtadmin.ClusterCellInfo.toObject(message.cell_infos[j], options); } - if (message.table_size_options != null && message.hasOwnProperty("table_size_options")) - object.table_size_options = $root.vtadmin.GetSchemaTableSizeOptions.toObject(message.table_size_options, options); return object; }; /** - * Converts this FindSchemaRequest to JSON. + * Converts this GetCellInfosResponse to JSON. * @function toJSON - * @memberof vtadmin.FindSchemaRequest + * @memberof vtadmin.GetCellInfosResponse * @instance * @returns {Object.} JSON object */ - FindSchemaRequest.prototype.toJSON = function toJSON() { + GetCellInfosResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FindSchemaRequest; + return GetCellInfosResponse; })(); - vtadmin.GetBackupsRequest = (function() { + vtadmin.GetCellsAliasesRequest = (function() { /** - * Properties of a GetBackupsRequest. + * Properties of a GetCellsAliasesRequest. * @memberof vtadmin - * @interface IGetBackupsRequest - * @property {Array.|null} [cluster_ids] GetBackupsRequest cluster_ids - * @property {Array.|null} [keyspaces] GetBackupsRequest keyspaces - * @property {Array.|null} [keyspace_shards] GetBackupsRequest keyspace_shards - * @property {vtctldata.IGetBackupsRequest|null} [request_options] GetBackupsRequest request_options + * @interface IGetCellsAliasesRequest + * @property {Array.|null} [cluster_ids] GetCellsAliasesRequest cluster_ids */ /** - * Constructs a new GetBackupsRequest. + * Constructs a new GetCellsAliasesRequest. * @memberof vtadmin - * @classdesc Represents a GetBackupsRequest. - * @implements IGetBackupsRequest + * @classdesc Represents a GetCellsAliasesRequest. + * @implements IGetCellsAliasesRequest * @constructor - * @param {vtadmin.IGetBackupsRequest=} [properties] Properties to set - */ - function GetBackupsRequest(properties) { - this.cluster_ids = []; - this.keyspaces = []; - this.keyspace_shards = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetBackupsRequest cluster_ids. - * @member {Array.} cluster_ids - * @memberof vtadmin.GetBackupsRequest - * @instance - */ - GetBackupsRequest.prototype.cluster_ids = $util.emptyArray; - - /** - * GetBackupsRequest keyspaces. - * @member {Array.} keyspaces - * @memberof vtadmin.GetBackupsRequest - * @instance - */ - GetBackupsRequest.prototype.keyspaces = $util.emptyArray; - - /** - * GetBackupsRequest keyspace_shards. - * @member {Array.} keyspace_shards - * @memberof vtadmin.GetBackupsRequest - * @instance + * @param {vtadmin.IGetCellsAliasesRequest=} [properties] Properties to set */ - GetBackupsRequest.prototype.keyspace_shards = $util.emptyArray; + function GetCellsAliasesRequest(properties) { + this.cluster_ids = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * GetBackupsRequest request_options. - * @member {vtctldata.IGetBackupsRequest|null|undefined} request_options - * @memberof vtadmin.GetBackupsRequest + * GetCellsAliasesRequest cluster_ids. + * @member {Array.} cluster_ids + * @memberof vtadmin.GetCellsAliasesRequest * @instance */ - GetBackupsRequest.prototype.request_options = null; + GetCellsAliasesRequest.prototype.cluster_ids = $util.emptyArray; /** - * Creates a new GetBackupsRequest instance using the specified properties. + * Creates a new GetCellsAliasesRequest instance using the specified properties. * @function create - * @memberof vtadmin.GetBackupsRequest + * @memberof vtadmin.GetCellsAliasesRequest * @static - * @param {vtadmin.IGetBackupsRequest=} [properties] Properties to set - * @returns {vtadmin.GetBackupsRequest} GetBackupsRequest instance + * @param {vtadmin.IGetCellsAliasesRequest=} [properties] Properties to set + * @returns {vtadmin.GetCellsAliasesRequest} GetCellsAliasesRequest instance */ - GetBackupsRequest.create = function create(properties) { - return new GetBackupsRequest(properties); + GetCellsAliasesRequest.create = function create(properties) { + return new GetCellsAliasesRequest(properties); }; /** - * Encodes the specified GetBackupsRequest message. Does not implicitly {@link vtadmin.GetBackupsRequest.verify|verify} messages. + * Encodes the specified GetCellsAliasesRequest message. Does not implicitly {@link vtadmin.GetCellsAliasesRequest.verify|verify} messages. * @function encode - * @memberof vtadmin.GetBackupsRequest + * @memberof vtadmin.GetCellsAliasesRequest * @static - * @param {vtadmin.IGetBackupsRequest} message GetBackupsRequest message or plain object to encode + * @param {vtadmin.IGetCellsAliasesRequest} message GetCellsAliasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetBackupsRequest.encode = function encode(message, writer) { + GetCellsAliasesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.cluster_ids != null && message.cluster_ids.length) for (var i = 0; i < message.cluster_ids.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).string(message.cluster_ids[i]); - if (message.keyspaces != null && message.keyspaces.length) - for (var i = 0; i < message.keyspaces.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.keyspaces[i]); - if (message.keyspace_shards != null && message.keyspace_shards.length) - for (var i = 0; i < message.keyspace_shards.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.keyspace_shards[i]); - if (message.request_options != null && Object.hasOwnProperty.call(message, "request_options")) - $root.vtctldata.GetBackupsRequest.encode(message.request_options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetBackupsRequest message, length delimited. Does not implicitly {@link vtadmin.GetBackupsRequest.verify|verify} messages. + * Encodes the specified GetCellsAliasesRequest message, length delimited. Does not implicitly {@link vtadmin.GetCellsAliasesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtadmin.GetBackupsRequest + * @memberof vtadmin.GetCellsAliasesRequest * @static - * @param {vtadmin.IGetBackupsRequest} message GetBackupsRequest message or plain object to encode + * @param {vtadmin.IGetCellsAliasesRequest} message GetCellsAliasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetBackupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetCellsAliasesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetBackupsRequest message from the specified reader or buffer. + * Decodes a GetCellsAliasesRequest message from the specified reader or buffer. * @function decode - * @memberof vtadmin.GetBackupsRequest + * @memberof vtadmin.GetCellsAliasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtadmin.GetBackupsRequest} GetBackupsRequest + * @returns {vtadmin.GetCellsAliasesRequest} GetCellsAliasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetBackupsRequest.decode = function decode(reader, length) { + GetCellsAliasesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.GetBackupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.GetCellsAliasesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -6735,19 +8252,6 @@ $root.vtadmin = (function() { message.cluster_ids = []; message.cluster_ids.push(reader.string()); break; - case 2: - if (!(message.keyspaces && message.keyspaces.length)) - message.keyspaces = []; - message.keyspaces.push(reader.string()); - break; - case 3: - if (!(message.keyspace_shards && message.keyspace_shards.length)) - message.keyspace_shards = []; - message.keyspace_shards.push(reader.string()); - break; - case 4: - message.request_options = $root.vtctldata.GetBackupsRequest.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -6757,30 +8261,30 @@ $root.vtadmin = (function() { }; /** - * Decodes a GetBackupsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetCellsAliasesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtadmin.GetBackupsRequest + * @memberof vtadmin.GetCellsAliasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtadmin.GetBackupsRequest} GetBackupsRequest + * @returns {vtadmin.GetCellsAliasesRequest} GetCellsAliasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetBackupsRequest.decodeDelimited = function decodeDelimited(reader) { + GetCellsAliasesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetBackupsRequest message. + * Verifies a GetCellsAliasesRequest message. * @function verify - * @memberof vtadmin.GetBackupsRequest + * @memberof vtadmin.GetCellsAliasesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetBackupsRequest.verify = function verify(message) { + GetCellsAliasesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.cluster_ids != null && message.hasOwnProperty("cluster_ids")) { @@ -6790,142 +8294,87 @@ $root.vtadmin = (function() { if (!$util.isString(message.cluster_ids[i])) return "cluster_ids: string[] expected"; } - if (message.keyspaces != null && message.hasOwnProperty("keyspaces")) { - if (!Array.isArray(message.keyspaces)) - return "keyspaces: array expected"; - for (var i = 0; i < message.keyspaces.length; ++i) - if (!$util.isString(message.keyspaces[i])) - return "keyspaces: string[] expected"; - } - if (message.keyspace_shards != null && message.hasOwnProperty("keyspace_shards")) { - if (!Array.isArray(message.keyspace_shards)) - return "keyspace_shards: array expected"; - for (var i = 0; i < message.keyspace_shards.length; ++i) - if (!$util.isString(message.keyspace_shards[i])) - return "keyspace_shards: string[] expected"; - } - if (message.request_options != null && message.hasOwnProperty("request_options")) { - var error = $root.vtctldata.GetBackupsRequest.verify(message.request_options); - if (error) - return "request_options." + error; - } return null; }; /** - * Creates a GetBackupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetCellsAliasesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtadmin.GetBackupsRequest + * @memberof vtadmin.GetCellsAliasesRequest * @static * @param {Object.} object Plain object - * @returns {vtadmin.GetBackupsRequest} GetBackupsRequest + * @returns {vtadmin.GetCellsAliasesRequest} GetCellsAliasesRequest */ - GetBackupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtadmin.GetBackupsRequest) + GetCellsAliasesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.GetCellsAliasesRequest) return object; - var message = new $root.vtadmin.GetBackupsRequest(); + var message = new $root.vtadmin.GetCellsAliasesRequest(); if (object.cluster_ids) { if (!Array.isArray(object.cluster_ids)) - throw TypeError(".vtadmin.GetBackupsRequest.cluster_ids: array expected"); + throw TypeError(".vtadmin.GetCellsAliasesRequest.cluster_ids: array expected"); message.cluster_ids = []; for (var i = 0; i < object.cluster_ids.length; ++i) message.cluster_ids[i] = String(object.cluster_ids[i]); } - if (object.keyspaces) { - if (!Array.isArray(object.keyspaces)) - throw TypeError(".vtadmin.GetBackupsRequest.keyspaces: array expected"); - message.keyspaces = []; - for (var i = 0; i < object.keyspaces.length; ++i) - message.keyspaces[i] = String(object.keyspaces[i]); - } - if (object.keyspace_shards) { - if (!Array.isArray(object.keyspace_shards)) - throw TypeError(".vtadmin.GetBackupsRequest.keyspace_shards: array expected"); - message.keyspace_shards = []; - for (var i = 0; i < object.keyspace_shards.length; ++i) - message.keyspace_shards[i] = String(object.keyspace_shards[i]); - } - if (object.request_options != null) { - if (typeof object.request_options !== "object") - throw TypeError(".vtadmin.GetBackupsRequest.request_options: object expected"); - message.request_options = $root.vtctldata.GetBackupsRequest.fromObject(object.request_options); - } return message; }; /** - * Creates a plain object from a GetBackupsRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetCellsAliasesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtadmin.GetBackupsRequest + * @memberof vtadmin.GetCellsAliasesRequest * @static - * @param {vtadmin.GetBackupsRequest} message GetBackupsRequest + * @param {vtadmin.GetCellsAliasesRequest} message GetCellsAliasesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetBackupsRequest.toObject = function toObject(message, options) { + GetCellsAliasesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { + if (options.arrays || options.defaults) object.cluster_ids = []; - object.keyspaces = []; - object.keyspace_shards = []; - } - if (options.defaults) - object.request_options = null; if (message.cluster_ids && message.cluster_ids.length) { object.cluster_ids = []; for (var j = 0; j < message.cluster_ids.length; ++j) object.cluster_ids[j] = message.cluster_ids[j]; } - if (message.keyspaces && message.keyspaces.length) { - object.keyspaces = []; - for (var j = 0; j < message.keyspaces.length; ++j) - object.keyspaces[j] = message.keyspaces[j]; - } - if (message.keyspace_shards && message.keyspace_shards.length) { - object.keyspace_shards = []; - for (var j = 0; j < message.keyspace_shards.length; ++j) - object.keyspace_shards[j] = message.keyspace_shards[j]; - } - if (message.request_options != null && message.hasOwnProperty("request_options")) - object.request_options = $root.vtctldata.GetBackupsRequest.toObject(message.request_options, options); return object; }; /** - * Converts this GetBackupsRequest to JSON. + * Converts this GetCellsAliasesRequest to JSON. * @function toJSON - * @memberof vtadmin.GetBackupsRequest + * @memberof vtadmin.GetCellsAliasesRequest * @instance * @returns {Object.} JSON object */ - GetBackupsRequest.prototype.toJSON = function toJSON() { + GetCellsAliasesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetBackupsRequest; + return GetCellsAliasesRequest; })(); - vtadmin.GetBackupsResponse = (function() { + vtadmin.GetCellsAliasesResponse = (function() { /** - * Properties of a GetBackupsResponse. + * Properties of a GetCellsAliasesResponse. * @memberof vtadmin - * @interface IGetBackupsResponse - * @property {Array.|null} [backups] GetBackupsResponse backups + * @interface IGetCellsAliasesResponse + * @property {Array.|null} [aliases] GetCellsAliasesResponse aliases */ /** - * Constructs a new GetBackupsResponse. + * Constructs a new GetCellsAliasesResponse. * @memberof vtadmin - * @classdesc Represents a GetBackupsResponse. - * @implements IGetBackupsResponse + * @classdesc Represents a GetCellsAliasesResponse. + * @implements IGetCellsAliasesResponse * @constructor - * @param {vtadmin.IGetBackupsResponse=} [properties] Properties to set + * @param {vtadmin.IGetCellsAliasesResponse=} [properties] Properties to set */ - function GetBackupsResponse(properties) { - this.backups = []; + function GetCellsAliasesResponse(properties) { + this.aliases = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6933,78 +8382,78 @@ $root.vtadmin = (function() { } /** - * GetBackupsResponse backups. - * @member {Array.} backups - * @memberof vtadmin.GetBackupsResponse + * GetCellsAliasesResponse aliases. + * @member {Array.} aliases + * @memberof vtadmin.GetCellsAliasesResponse * @instance */ - GetBackupsResponse.prototype.backups = $util.emptyArray; + GetCellsAliasesResponse.prototype.aliases = $util.emptyArray; /** - * Creates a new GetBackupsResponse instance using the specified properties. + * Creates a new GetCellsAliasesResponse instance using the specified properties. * @function create - * @memberof vtadmin.GetBackupsResponse + * @memberof vtadmin.GetCellsAliasesResponse * @static - * @param {vtadmin.IGetBackupsResponse=} [properties] Properties to set - * @returns {vtadmin.GetBackupsResponse} GetBackupsResponse instance + * @param {vtadmin.IGetCellsAliasesResponse=} [properties] Properties to set + * @returns {vtadmin.GetCellsAliasesResponse} GetCellsAliasesResponse instance */ - GetBackupsResponse.create = function create(properties) { - return new GetBackupsResponse(properties); + GetCellsAliasesResponse.create = function create(properties) { + return new GetCellsAliasesResponse(properties); }; /** - * Encodes the specified GetBackupsResponse message. Does not implicitly {@link vtadmin.GetBackupsResponse.verify|verify} messages. + * Encodes the specified GetCellsAliasesResponse message. Does not implicitly {@link vtadmin.GetCellsAliasesResponse.verify|verify} messages. * @function encode - * @memberof vtadmin.GetBackupsResponse + * @memberof vtadmin.GetCellsAliasesResponse * @static - * @param {vtadmin.IGetBackupsResponse} message GetBackupsResponse message or plain object to encode + * @param {vtadmin.IGetCellsAliasesResponse} message GetCellsAliasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetBackupsResponse.encode = function encode(message, writer) { + GetCellsAliasesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.backups != null && message.backups.length) - for (var i = 0; i < message.backups.length; ++i) - $root.vtadmin.ClusterBackup.encode(message.backups[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.aliases != null && message.aliases.length) + for (var i = 0; i < message.aliases.length; ++i) + $root.vtadmin.ClusterCellsAliases.encode(message.aliases[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetBackupsResponse message, length delimited. Does not implicitly {@link vtadmin.GetBackupsResponse.verify|verify} messages. + * Encodes the specified GetCellsAliasesResponse message, length delimited. Does not implicitly {@link vtadmin.GetCellsAliasesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtadmin.GetBackupsResponse + * @memberof vtadmin.GetCellsAliasesResponse * @static - * @param {vtadmin.IGetBackupsResponse} message GetBackupsResponse message or plain object to encode + * @param {vtadmin.IGetCellsAliasesResponse} message GetCellsAliasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetBackupsResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetCellsAliasesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetBackupsResponse message from the specified reader or buffer. + * Decodes a GetCellsAliasesResponse message from the specified reader or buffer. * @function decode - * @memberof vtadmin.GetBackupsResponse + * @memberof vtadmin.GetCellsAliasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtadmin.GetBackupsResponse} GetBackupsResponse + * @returns {vtadmin.GetCellsAliasesResponse} GetCellsAliasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetBackupsResponse.decode = function decode(reader, length) { + GetCellsAliasesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.GetBackupsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtadmin.GetCellsAliasesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.backups && message.backups.length)) - message.backups = []; - message.backups.push($root.vtadmin.ClusterBackup.decode(reader, reader.uint32())); + if (!(message.aliases && message.aliases.length)) + message.aliases = []; + message.aliases.push($root.vtadmin.ClusterCellsAliases.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -7015,104 +8464,104 @@ $root.vtadmin = (function() { }; /** - * Decodes a GetBackupsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetCellsAliasesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtadmin.GetBackupsResponse + * @memberof vtadmin.GetCellsAliasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtadmin.GetBackupsResponse} GetBackupsResponse + * @returns {vtadmin.GetCellsAliasesResponse} GetCellsAliasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetBackupsResponse.decodeDelimited = function decodeDelimited(reader) { + GetCellsAliasesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetBackupsResponse message. + * Verifies a GetCellsAliasesResponse message. * @function verify - * @memberof vtadmin.GetBackupsResponse + * @memberof vtadmin.GetCellsAliasesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetBackupsResponse.verify = function verify(message) { + GetCellsAliasesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.backups != null && message.hasOwnProperty("backups")) { - if (!Array.isArray(message.backups)) - return "backups: array expected"; - for (var i = 0; i < message.backups.length; ++i) { - var error = $root.vtadmin.ClusterBackup.verify(message.backups[i]); + if (message.aliases != null && message.hasOwnProperty("aliases")) { + if (!Array.isArray(message.aliases)) + return "aliases: array expected"; + for (var i = 0; i < message.aliases.length; ++i) { + var error = $root.vtadmin.ClusterCellsAliases.verify(message.aliases[i]); if (error) - return "backups." + error; + return "aliases." + error; } } return null; }; /** - * Creates a GetBackupsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetCellsAliasesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtadmin.GetBackupsResponse + * @memberof vtadmin.GetCellsAliasesResponse * @static * @param {Object.} object Plain object - * @returns {vtadmin.GetBackupsResponse} GetBackupsResponse + * @returns {vtadmin.GetCellsAliasesResponse} GetCellsAliasesResponse */ - GetBackupsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtadmin.GetBackupsResponse) + GetCellsAliasesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.GetCellsAliasesResponse) return object; - var message = new $root.vtadmin.GetBackupsResponse(); - if (object.backups) { - if (!Array.isArray(object.backups)) - throw TypeError(".vtadmin.GetBackupsResponse.backups: array expected"); - message.backups = []; - for (var i = 0; i < object.backups.length; ++i) { - if (typeof object.backups[i] !== "object") - throw TypeError(".vtadmin.GetBackupsResponse.backups: object expected"); - message.backups[i] = $root.vtadmin.ClusterBackup.fromObject(object.backups[i]); + var message = new $root.vtadmin.GetCellsAliasesResponse(); + if (object.aliases) { + if (!Array.isArray(object.aliases)) + throw TypeError(".vtadmin.GetCellsAliasesResponse.aliases: array expected"); + message.aliases = []; + for (var i = 0; i < object.aliases.length; ++i) { + if (typeof object.aliases[i] !== "object") + throw TypeError(".vtadmin.GetCellsAliasesResponse.aliases: object expected"); + message.aliases[i] = $root.vtadmin.ClusterCellsAliases.fromObject(object.aliases[i]); } } return message; }; /** - * Creates a plain object from a GetBackupsResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetCellsAliasesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtadmin.GetBackupsResponse + * @memberof vtadmin.GetCellsAliasesResponse * @static - * @param {vtadmin.GetBackupsResponse} message GetBackupsResponse + * @param {vtadmin.GetCellsAliasesResponse} message GetCellsAliasesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetBackupsResponse.toObject = function toObject(message, options) { + GetCellsAliasesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.backups = []; - if (message.backups && message.backups.length) { - object.backups = []; - for (var j = 0; j < message.backups.length; ++j) - object.backups[j] = $root.vtadmin.ClusterBackup.toObject(message.backups[j], options); + object.aliases = []; + if (message.aliases && message.aliases.length) { + object.aliases = []; + for (var j = 0; j < message.aliases.length; ++j) + object.aliases[j] = $root.vtadmin.ClusterCellsAliases.toObject(message.aliases[j], options); } return object; }; /** - * Converts this GetBackupsResponse to JSON. + * Converts this GetCellsAliasesResponse to JSON. * @function toJSON - * @memberof vtadmin.GetBackupsResponse + * @memberof vtadmin.GetCellsAliasesResponse * @instance * @returns {Object.} JSON object */ - GetBackupsResponse.prototype.toJSON = function toJSON() { + GetCellsAliasesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetBackupsResponse; + return GetCellsAliasesResponse; })(); vtadmin.GetClustersRequest = (function() {