diff --git a/go/vt/proto/topodata/topodata.pb.go b/go/vt/proto/topodata/topodata.pb.go index 84e06dc199a..7f8e815186d 100644 --- a/go/vt/proto/topodata/topodata.pb.go +++ b/go/vt/proto/topodata/topodata.pb.go @@ -6802,7 +6802,7 @@ func (m *ExternalClusters) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExternalVitessCluster", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VitessCluster", wireType) } var msglen int for shift := uint(0); ; shift += 7 { diff --git a/go/vt/proto/vtadmin/vtadmin.pb.go b/go/vt/proto/vtadmin/vtadmin.pb.go index 2073e7c0a6c..6e55ee65063 100644 --- a/go/vt/proto/vtadmin/vtadmin.pb.go +++ b/go/vt/proto/vtadmin/vtadmin.pb.go @@ -725,6 +725,69 @@ func (m *GetKeyspacesResponse) GetKeyspaces() []*Keyspace { return nil } +type GetSchemaRequest struct { + ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + Keyspace string `protobuf:"bytes,2,opt,name=keyspace,proto3" json:"keyspace,omitempty"` + Table string `protobuf:"bytes,3,opt,name=table,proto3" json:"table,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetSchemaRequest) Reset() { *m = GetSchemaRequest{} } +func (m *GetSchemaRequest) String() string { return proto.CompactTextString(m) } +func (*GetSchemaRequest) ProtoMessage() {} +func (*GetSchemaRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_609739e22a0a50b3, []int{12} +} +func (m *GetSchemaRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetSchemaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetSchemaRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GetSchemaRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetSchemaRequest.Merge(m, src) +} +func (m *GetSchemaRequest) XXX_Size() int { + return m.Size() +} +func (m *GetSchemaRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetSchemaRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetSchemaRequest proto.InternalMessageInfo + +func (m *GetSchemaRequest) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *GetSchemaRequest) GetKeyspace() string { + if m != nil { + return m.Keyspace + } + return "" +} + +func (m *GetSchemaRequest) GetTable() string { + if m != nil { + return m.Table + } + return "" +} + type GetSchemasRequest struct { ClusterIds []string `protobuf:"bytes,1,rep,name=cluster_ids,json=clusterIds,proto3" json:"cluster_ids,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -736,7 +799,7 @@ func (m *GetSchemasRequest) Reset() { *m = GetSchemasRequest{} } func (m *GetSchemasRequest) String() string { return proto.CompactTextString(m) } func (*GetSchemasRequest) ProtoMessage() {} func (*GetSchemasRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_609739e22a0a50b3, []int{12} + return fileDescriptor_609739e22a0a50b3, []int{13} } func (m *GetSchemasRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -783,7 +846,7 @@ func (m *GetSchemasResponse) Reset() { *m = GetSchemasResponse{} } func (m *GetSchemasResponse) String() string { return proto.CompactTextString(m) } func (*GetSchemasResponse) ProtoMessage() {} func (*GetSchemasResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_609739e22a0a50b3, []int{13} + return fileDescriptor_609739e22a0a50b3, []int{14} } func (m *GetSchemasResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -834,7 +897,7 @@ func (m *GetTabletRequest) Reset() { *m = GetTabletRequest{} } func (m *GetTabletRequest) String() string { return proto.CompactTextString(m) } func (*GetTabletRequest) ProtoMessage() {} func (*GetTabletRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_609739e22a0a50b3, []int{14} + return fileDescriptor_609739e22a0a50b3, []int{15} } func (m *GetTabletRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -888,7 +951,7 @@ func (m *GetTabletsRequest) Reset() { *m = GetTabletsRequest{} } func (m *GetTabletsRequest) String() string { return proto.CompactTextString(m) } func (*GetTabletsRequest) ProtoMessage() {} func (*GetTabletsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_609739e22a0a50b3, []int{15} + return fileDescriptor_609739e22a0a50b3, []int{16} } func (m *GetTabletsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -935,7 +998,7 @@ func (m *GetTabletsResponse) Reset() { *m = GetTabletsResponse{} } func (m *GetTabletsResponse) String() string { return proto.CompactTextString(m) } func (*GetTabletsResponse) ProtoMessage() {} func (*GetTabletsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_609739e22a0a50b3, []int{16} + return fileDescriptor_609739e22a0a50b3, []int{17} } func (m *GetTabletsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -984,7 +1047,7 @@ func (m *VTExplainRequest) Reset() { *m = VTExplainRequest{} } func (m *VTExplainRequest) String() string { return proto.CompactTextString(m) } func (*VTExplainRequest) ProtoMessage() {} func (*VTExplainRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_609739e22a0a50b3, []int{17} + return fileDescriptor_609739e22a0a50b3, []int{18} } func (m *VTExplainRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1045,7 +1108,7 @@ func (m *VTExplainResponse) Reset() { *m = VTExplainResponse{} } func (m *VTExplainResponse) String() string { return proto.CompactTextString(m) } func (*VTExplainResponse) ProtoMessage() {} func (*VTExplainResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_609739e22a0a50b3, []int{18} + return fileDescriptor_609739e22a0a50b3, []int{19} } func (m *VTExplainResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1096,6 +1159,7 @@ func init() { proto.RegisterType((*GetGatesResponse)(nil), "vtadmin.GetGatesResponse") proto.RegisterType((*GetKeyspacesRequest)(nil), "vtadmin.GetKeyspacesRequest") proto.RegisterType((*GetKeyspacesResponse)(nil), "vtadmin.GetKeyspacesResponse") + proto.RegisterType((*GetSchemaRequest)(nil), "vtadmin.GetSchemaRequest") proto.RegisterType((*GetSchemasRequest)(nil), "vtadmin.GetSchemasRequest") proto.RegisterType((*GetSchemasResponse)(nil), "vtadmin.GetSchemasResponse") proto.RegisterType((*GetTabletRequest)(nil), "vtadmin.GetTabletRequest") @@ -1108,61 +1172,63 @@ func init() { func init() { proto.RegisterFile("vtadmin.proto", fileDescriptor_609739e22a0a50b3) } var fileDescriptor_609739e22a0a50b3 = []byte{ - // 851 bytes of a gzipped FileDescriptorProto + // 886 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0xdd, 0x6e, 0xe3, 0x44, - 0x14, 0xae, 0x93, 0x36, 0x89, 0x8f, 0x97, 0xd6, 0x99, 0x5d, 0x09, 0xe3, 0xed, 0x86, 0x68, 0x04, - 0x28, 0x20, 0x88, 0xa5, 0x00, 0x2b, 0xca, 0x0d, 0x5a, 0x76, 0xab, 0x68, 0xa9, 0x48, 0x90, 0x13, - 0x82, 0xb4, 0x37, 0x95, 0x37, 0x1e, 0x52, 0x6b, 0x1d, 0x3b, 0x9b, 0x99, 0x46, 0xf4, 0x45, 0x10, - 0xb7, 0xbc, 0x0d, 0x37, 0x48, 0x3c, 0x02, 0x2a, 0x97, 0xbc, 0x01, 0x57, 0xc8, 0xf3, 0x97, 0x71, - 0x92, 0xdd, 0xb6, 0x77, 0x33, 0xe7, 0xe7, 0x3b, 0xe7, 0x3b, 0xf3, 0x1d, 0xcb, 0xf0, 0xce, 0x8a, - 0x45, 0xf1, 0x3c, 0xc9, 0xba, 0x8b, 0x65, 0xce, 0x72, 0x54, 0x97, 0x57, 0xff, 0x5d, 0x16, 0xbd, - 0x4c, 0x09, 0x9b, 0x47, 0x59, 0x34, 0x23, 0xcb, 0x38, 0x62, 0x91, 0x88, 0xf0, 0x0f, 0x59, 0xbe, - 0xc8, 0x8d, 0xfb, 0xd1, 0x8a, 0x4d, 0x59, 0xba, 0x36, 0xe0, 0xcf, 0xa0, 0xfe, 0x34, 0xbd, 0xa4, - 0x8c, 0x2c, 0xd1, 0x21, 0x54, 0x92, 0xd8, 0xb3, 0xda, 0x56, 0xc7, 0x0e, 0x2b, 0x49, 0x8c, 0x10, - 0xec, 0x67, 0xd1, 0x9c, 0x78, 0x15, 0x6e, 0xe1, 0x67, 0xfc, 0xaf, 0x05, 0x8d, 0x33, 0x72, 0x45, - 0x17, 0xd1, 0x94, 0xa0, 0x4f, 0xa0, 0x3e, 0x15, 0xb9, 0x3c, 0xcb, 0xe9, 0xb9, 0x5d, 0xd5, 0x9f, - 0xc4, 0x0c, 0x55, 0x00, 0x0a, 0xa0, 0xf1, 0x4a, 0xe6, 0x71, 0x40, 0xa7, 0x77, 0xbf, 0xbb, 0xee, - 0x45, 0x41, 0x86, 0x3a, 0x08, 0x7d, 0x09, 0x35, 0x7a, 0x11, 0x2d, 0x63, 0xea, 0x55, 0xdb, 0xd5, - 0x8e, 0xd3, 0x7b, 0xa4, 0xb1, 0x55, 0x70, 0x77, 0xc4, 0xfd, 0xa7, 0x19, 0x5b, 0x5e, 0x85, 0x32, - 0xd8, 0x3f, 0x03, 0xc7, 0x30, 0x23, 0x17, 0xaa, 0xaf, 0xc8, 0x95, 0x24, 0x55, 0x1c, 0xd1, 0x47, - 0x70, 0xb0, 0x8a, 0xd2, 0x4b, 0xd5, 0x85, 0x6b, 0x74, 0xc1, 0x13, 0x43, 0xe1, 0xfe, 0xba, 0xf2, - 0x95, 0x85, 0x7f, 0xb7, 0xa0, 0x36, 0x9a, 0x5e, 0x90, 0x79, 0x74, 0x27, 0xae, 0xfe, 0x06, 0x57, - 0xdb, 0xa0, 0x35, 0x84, 0x26, 0x7f, 0xab, 0xf3, 0x98, 0xfc, 0x9c, 0x64, 0x09, 0x4b, 0xf2, 0x4c, - 0x31, 0xc4, 0xdd, 0xed, 0x57, 0x1c, 0x17, 0x96, 0x67, 0x3a, 0x34, 0x74, 0x59, 0xd9, 0x40, 0xf1, - 0x9f, 0x16, 0xd4, 0x78, 0x14, 0xbb, 0x53, 0x8f, 0x1d, 0xa8, 0x89, 0x6a, 0x7a, 0x0e, 0x5a, 0x29, - 0x02, 0x2d, 0x94, 0x7e, 0xd4, 0x83, 0x03, 0xca, 0x22, 0x46, 0xbc, 0x6a, 0xdb, 0xea, 0x1c, 0xf6, - 0x8e, 0x35, 0xa6, 0x88, 0xeb, 0x8e, 0xc8, 0x72, 0x95, 0x64, 0xb3, 0x51, 0x11, 0x13, 0x8a, 0x50, - 0x7c, 0x02, 0xf7, 0x4c, 0x33, 0x72, 0xa0, 0xfe, 0xe3, 0xe0, 0x6c, 0x30, 0xfc, 0x69, 0xe0, 0xee, - 0x15, 0x97, 0xd1, 0x69, 0x38, 0x79, 0x3e, 0xe8, 0xbb, 0x16, 0x3a, 0x02, 0x67, 0x30, 0x1c, 0x9f, - 0x2b, 0x43, 0x05, 0xff, 0x00, 0xb5, 0x09, 0x7f, 0x91, 0x62, 0x8c, 0x17, 0x39, 0x65, 0x5c, 0x83, - 0xe2, 0x01, 0xf5, 0xdd, 0xa4, 0x5a, 0xb9, 0x81, 0x2a, 0xfe, 0xd5, 0x82, 0xda, 0x64, 0xdc, 0x2f, - 0xfa, 0x78, 0x1b, 0x24, 0x82, 0xfd, 0x45, 0x9e, 0xa7, 0x4a, 0xee, 0xc5, 0xb9, 0xb0, 0x4d, 0x49, - 0x9a, 0x72, 0xea, 0x76, 0xc8, 0xcf, 0x66, 0xe9, 0xfd, 0x9b, 0xa6, 0x7c, 0x0c, 0xb6, 0x7a, 0x79, - 0xea, 0x1d, 0xb4, 0xab, 0x1d, 0x3b, 0x5c, 0x1b, 0xf0, 0x03, 0x40, 0x7d, 0xc2, 0x64, 0x12, 0x0d, - 0xc9, 0xeb, 0x4b, 0x42, 0x19, 0x7e, 0x0a, 0xf7, 0x4b, 0x56, 0xba, 0xc8, 0x33, 0x4a, 0xd0, 0xa7, - 0xd0, 0x90, 0xa8, 0xd4, 0xb3, 0xb8, 0x5e, 0xb6, 0xeb, 0xea, 0x08, 0xdc, 0x83, 0xa3, 0x3e, 0x61, - 0x05, 0x67, 0x85, 0x8b, 0xde, 0x07, 0x47, 0xba, 0xcf, 0x93, 0x58, 0x60, 0xd8, 0x21, 0x48, 0xd3, - 0xf3, 0x98, 0xe2, 0x13, 0x70, 0xd7, 0x39, 0xb2, 0xea, 0x87, 0x70, 0x30, 0x2b, 0x0c, 0xb2, 0xe4, - 0x91, 0x2e, 0x29, 0x06, 0x1a, 0x0a, 0x2f, 0x7e, 0xcc, 0x7b, 0x56, 0x8b, 0x79, 0xfb, 0x92, 0x7d, - 0x78, 0x50, 0xce, 0x93, 0x65, 0x03, 0x73, 0x6e, 0xa2, 0x74, 0x73, 0x6b, 0xff, 0xcd, 0x51, 0x7e, - 0x01, 0xcd, 0x3e, 0x61, 0x62, 0x57, 0x6f, 0x5f, 0xfe, 0x1b, 0xfe, 0x00, 0x3a, 0x4b, 0x16, 0xff, - 0x18, 0xea, 0x54, 0x98, 0xb6, 0x58, 0x8b, 0xd0, 0x50, 0xf9, 0xf1, 0x90, 0x8f, 0x4c, 0x2e, 0x8c, - 0xac, 0xfa, 0x36, 0x8d, 0x6d, 0x74, 0x54, 0xd9, 0xea, 0x48, 0xf0, 0x10, 0x80, 0x77, 0xe5, 0xa1, - 0xb3, 0xd6, 0x3c, 0xc4, 0x0a, 0x6f, 0xf3, 0x90, 0x1d, 0x2b, 0x3f, 0x7e, 0x01, 0xee, 0x64, 0x7c, - 0xfa, 0xcb, 0x22, 0x8d, 0x92, 0x4c, 0x55, 0xf5, 0xca, 0x5f, 0x13, 0xfb, 0x76, 0xdf, 0x37, 0x17, - 0xaa, 0xf4, 0xb5, 0x5a, 0x98, 0xe2, 0x88, 0x03, 0x68, 0x1a, 0xd8, 0xb2, 0x37, 0x1f, 0x1a, 0x4b, - 0x79, 0x56, 0x43, 0x52, 0xf7, 0xde, 0x7f, 0x55, 0xa8, 0x4f, 0xc6, 0x4f, 0x8a, 0x46, 0xd1, 0x77, - 0xe0, 0x18, 0xcb, 0x80, 0x1e, 0x6a, 0x06, 0xdb, 0x8b, 0xe3, 0x1f, 0xef, 0x76, 0x0a, 0x54, 0xbc, - 0x87, 0x9e, 0x40, 0x43, 0xe9, 0x1b, 0x79, 0x66, 0xac, 0xb9, 0x26, 0xfe, 0x7b, 0x3b, 0x3c, 0x1a, - 0xe2, 0x7b, 0xb8, 0x67, 0xea, 0x15, 0x95, 0x4a, 0x6e, 0xca, 0xdf, 0x7f, 0xf4, 0x06, 0xaf, 0x86, - 0xeb, 0x03, 0xac, 0xf5, 0x87, 0x7c, 0x33, 0xbc, 0x2c, 0x65, 0xff, 0xe1, 0x4e, 0x9f, 0x06, 0x3a, - 0x01, 0x5b, 0x0b, 0x00, 0x95, 0x18, 0x94, 0xb4, 0xe9, 0x6f, 0x2a, 0x40, 0xf7, 0x20, 0xb5, 0x53, - 0xee, 0xa1, 0x2c, 0xc3, 0x72, 0x0f, 0x1b, 0x62, 0xc3, 0x7b, 0xe8, 0x19, 0xd8, 0xfa, 0x9d, 0x8d, - 0x1e, 0x36, 0x75, 0xe5, 0xfb, 0xbb, 0x5c, 0x0a, 0xe5, 0xdb, 0xc7, 0x7f, 0x5c, 0xb7, 0xac, 0xbf, - 0xae, 0x5b, 0xd6, 0xdf, 0xd7, 0x2d, 0xeb, 0xb7, 0x7f, 0x5a, 0x7b, 0x2f, 0x3e, 0x58, 0x25, 0x8c, - 0x50, 0xda, 0x4d, 0xf2, 0x40, 0x9c, 0x82, 0x59, 0x1e, 0xac, 0x58, 0xc0, 0xff, 0x5f, 0x02, 0x89, - 0xf5, 0xb2, 0xc6, 0xaf, 0x9f, 0xff, 0x1f, 0x00, 0x00, 0xff, 0xff, 0x19, 0xb9, 0x4d, 0x1f, 0x22, - 0x09, 0x00, 0x00, + 0x14, 0x8e, 0x93, 0xe6, 0xc7, 0xc7, 0x4b, 0xeb, 0xce, 0x56, 0xc2, 0x78, 0xdb, 0x52, 0x8d, 0x00, + 0x05, 0x04, 0xb1, 0x14, 0x60, 0x45, 0xb9, 0x41, 0xcb, 0x6e, 0x15, 0x2d, 0x15, 0x09, 0x72, 0x42, + 0x90, 0xf6, 0xa6, 0xf2, 0xc6, 0x43, 0x6a, 0xad, 0x63, 0x67, 0x33, 0xd3, 0x88, 0xbe, 0x08, 0xe2, + 0x96, 0x87, 0xe0, 0x1d, 0xb8, 0x41, 0xe2, 0x11, 0x50, 0xb9, 0xe4, 0x25, 0x90, 0xe7, 0x2f, 0xfe, + 0xc9, 0x76, 0xdb, 0xbb, 0x99, 0xf3, 0xf7, 0x7d, 0xdf, 0x9c, 0x73, 0x9c, 0xc0, 0x3b, 0x6b, 0x16, + 0x84, 0x8b, 0x28, 0xe9, 0x2d, 0x57, 0x29, 0x4b, 0x51, 0x5b, 0x5e, 0xdd, 0x77, 0x59, 0xf0, 0x32, + 0x26, 0x6c, 0x11, 0x24, 0xc1, 0x9c, 0xac, 0xc2, 0x80, 0x05, 0x22, 0xc2, 0xdd, 0x65, 0xe9, 0x32, + 0xcd, 0xdd, 0xf7, 0xd6, 0x6c, 0xc6, 0xe2, 0x8d, 0x01, 0x7f, 0x06, 0xed, 0xa7, 0xf1, 0x15, 0x65, + 0x64, 0x85, 0x76, 0xa1, 0x1e, 0x85, 0x8e, 0x71, 0x62, 0x74, 0x4d, 0xbf, 0x1e, 0x85, 0x08, 0xc1, + 0x4e, 0x12, 0x2c, 0x88, 0x53, 0xe7, 0x16, 0x7e, 0xc6, 0xff, 0x19, 0xd0, 0x39, 0x27, 0xd7, 0x74, + 0x19, 0xcc, 0x08, 0xfa, 0x04, 0xda, 0x33, 0x91, 0xcb, 0xb3, 0xac, 0xbe, 0xdd, 0x53, 0xfc, 0x64, + 0x4d, 0x5f, 0x05, 0x20, 0x0f, 0x3a, 0xaf, 0x64, 0x1e, 0x2f, 0x68, 0xf5, 0x1f, 0xf6, 0x36, 0x5c, + 0x54, 0x49, 0x5f, 0x07, 0xa1, 0x2f, 0xa1, 0x45, 0x2f, 0x83, 0x55, 0x48, 0x9d, 0xc6, 0x49, 0xa3, + 0x6b, 0xf5, 0x8f, 0x74, 0x6d, 0x15, 0xdc, 0x1b, 0x73, 0xff, 0x59, 0xc2, 0x56, 0xd7, 0xbe, 0x0c, + 0x76, 0xcf, 0xc1, 0xca, 0x99, 0x91, 0x0d, 0x8d, 0x57, 0xe4, 0x5a, 0x8a, 0xca, 0x8e, 0xe8, 0x23, + 0x68, 0xae, 0x83, 0xf8, 0x4a, 0xb1, 0xb0, 0x73, 0x2c, 0x78, 0xa2, 0x2f, 0xdc, 0x5f, 0xd7, 0xbf, + 0x32, 0xf0, 0xef, 0x06, 0xb4, 0xc6, 0xb3, 0x4b, 0xb2, 0x08, 0xee, 0xa5, 0xd5, 0x2d, 0x69, 0x35, + 0x73, 0xb2, 0x46, 0xb0, 0xcf, 0x7b, 0x75, 0x11, 0x92, 0x9f, 0xa3, 0x24, 0x62, 0x51, 0x9a, 0x28, + 0x85, 0xb8, 0x57, 0xed, 0xe2, 0x24, 0xb3, 0x3c, 0xd3, 0xa1, 0xbe, 0xcd, 0x8a, 0x06, 0x8a, 0xff, + 0x32, 0xa0, 0xc5, 0xa3, 0xd8, 0xbd, 0x38, 0x76, 0xa1, 0x25, 0xd0, 0xf4, 0x3b, 0xe8, 0x49, 0x11, + 0xd5, 0x7c, 0xe9, 0x47, 0x7d, 0x68, 0x52, 0x16, 0x30, 0xe2, 0x34, 0x4e, 0x8c, 0xee, 0x6e, 0xff, + 0x50, 0xd7, 0x14, 0x71, 0xbd, 0x31, 0x59, 0xad, 0xa3, 0x64, 0x3e, 0xce, 0x62, 0x7c, 0x11, 0x8a, + 0x4f, 0xe1, 0x41, 0xde, 0x8c, 0x2c, 0x68, 0xff, 0x38, 0x3c, 0x1f, 0x8e, 0x7e, 0x1a, 0xda, 0xb5, + 0xec, 0x32, 0x3e, 0xf3, 0xa7, 0xcf, 0x87, 0x03, 0xdb, 0x40, 0x7b, 0x60, 0x0d, 0x47, 0x93, 0x0b, + 0x65, 0xa8, 0xe3, 0x1f, 0xa0, 0x35, 0xe5, 0x1d, 0xc9, 0x9e, 0xf1, 0x32, 0xa5, 0x8c, 0xcf, 0xa0, + 0x68, 0xa0, 0xbe, 0xe7, 0xa5, 0xd6, 0xdf, 0x22, 0x15, 0xff, 0x6a, 0x40, 0x6b, 0x3a, 0x19, 0x64, + 0x3c, 0x6e, 0x2b, 0x89, 0x60, 0x67, 0x99, 0xa6, 0xb1, 0x1a, 0xf7, 0xec, 0x9c, 0xd9, 0x66, 0x24, + 0x8e, 0xb9, 0x74, 0xd3, 0xe7, 0xe7, 0x3c, 0xf4, 0xce, 0xdb, 0x5e, 0xf9, 0x10, 0x4c, 0xd5, 0x79, + 0xea, 0x34, 0x4f, 0x1a, 0x5d, 0xd3, 0xdf, 0x18, 0xf0, 0x01, 0xa0, 0x01, 0x61, 0x32, 0x89, 0xfa, + 0xe4, 0xf5, 0x15, 0xa1, 0x0c, 0x3f, 0x85, 0x87, 0x05, 0x2b, 0x5d, 0xa6, 0x09, 0x25, 0xe8, 0x53, + 0xe8, 0xc8, 0xaa, 0xd4, 0x31, 0xf8, 0xbc, 0x54, 0x71, 0x75, 0x04, 0xee, 0xc3, 0xde, 0x80, 0xb0, + 0x4c, 0xb3, 0xaa, 0x8b, 0xde, 0x07, 0x4b, 0xba, 0x2f, 0xa2, 0x50, 0xd4, 0x30, 0x7d, 0x90, 0xa6, + 0xe7, 0x21, 0xc5, 0xa7, 0x60, 0x6f, 0x72, 0x24, 0xea, 0x87, 0xd0, 0x9c, 0x67, 0x06, 0x09, 0xb9, + 0xa7, 0x21, 0xc5, 0x83, 0xfa, 0xc2, 0x8b, 0x1f, 0x73, 0xce, 0x6a, 0x31, 0xef, 0x0e, 0x39, 0x80, + 0x83, 0x62, 0x9e, 0x84, 0xf5, 0xf2, 0xef, 0x26, 0xa0, 0xf7, 0x2b, 0xfb, 0x9f, 0x7f, 0xca, 0x19, + 0xe7, 0x2e, 0x76, 0x55, 0xa1, 0x1f, 0x01, 0x6c, 0xd0, 0x65, 0xbb, 0x4d, 0x0d, 0x7e, 0xeb, 0x96, + 0x1e, 0x40, 0x93, 0x4f, 0xbf, 0x6c, 0xbc, 0xb8, 0xe0, 0x2f, 0x60, 0x5f, 0x83, 0xdc, 0x5d, 0xe3, + 0x37, 0xbc, 0xcb, 0x3a, 0x4b, 0x2a, 0xfc, 0x18, 0xda, 0x54, 0x98, 0x2a, 0x4f, 0x2b, 0x55, 0x28, + 0x3f, 0x1e, 0x71, 0x6d, 0x72, 0x2b, 0x25, 0xea, 0x6d, 0x83, 0x5c, 0x62, 0x54, 0xaf, 0x30, 0x12, + 0x3a, 0x44, 0xc1, 0xfb, 0xea, 0xd0, 0x59, 0x1b, 0x1d, 0xe2, 0x3b, 0x51, 0xd5, 0x21, 0x19, 0x2b, + 0x3f, 0x7e, 0x01, 0xf6, 0x74, 0x72, 0xf6, 0xcb, 0x32, 0x0e, 0xa2, 0x44, 0xa1, 0x3a, 0xc5, 0x4f, + 0x96, 0x79, 0xb7, 0x8f, 0xa8, 0x0d, 0x0d, 0xfa, 0x5a, 0x6d, 0x65, 0x76, 0xc4, 0x1e, 0xec, 0xe7, + 0x6a, 0x4b, 0x6e, 0x2e, 0x74, 0x56, 0xf2, 0xac, 0x1e, 0x49, 0xdd, 0xfb, 0x7f, 0xec, 0x40, 0x7b, + 0x3a, 0x79, 0x92, 0x11, 0x45, 0xdf, 0x81, 0x95, 0xdb, 0x38, 0xf4, 0x48, 0x2b, 0xa8, 0x6e, 0xa7, + 0x7b, 0xb8, 0xdd, 0x29, 0xaa, 0xe2, 0x1a, 0x7a, 0x02, 0x1d, 0xb5, 0x44, 0xc8, 0xc9, 0xc7, 0xe6, + 0x77, 0xd1, 0x7d, 0x6f, 0x8b, 0x47, 0x97, 0xf8, 0x1e, 0x1e, 0xe4, 0x97, 0x02, 0x15, 0x20, 0xcb, + 0x3b, 0xe6, 0x1e, 0xbd, 0xc1, 0xab, 0xcb, 0x9d, 0x82, 0xa9, 0xe7, 0x0f, 0x15, 0x80, 0x0b, 0xeb, + 0xe2, 0x96, 0x07, 0x10, 0xd7, 0xd0, 0x00, 0x60, 0x33, 0xba, 0xc8, 0xad, 0xe6, 0x6a, 0x16, 0x8f, + 0xb6, 0xfa, 0x4a, 0x1c, 0xe4, 0xcf, 0x54, 0x81, 0x43, 0x61, 0xac, 0xdd, 0xf2, 0xf0, 0x68, 0x0e, + 0x72, 0xec, 0x8a, 0x1c, 0x8a, 0x13, 0x5c, 0xe4, 0x50, 0x9a, 0x53, 0x5c, 0x43, 0xcf, 0xc0, 0xd4, + 0x23, 0x92, 0xe3, 0x50, 0x1e, 0x49, 0xd7, 0xdd, 0xe6, 0x52, 0x55, 0xbe, 0x7d, 0xfc, 0xe7, 0xcd, + 0xb1, 0xf1, 0xf7, 0xcd, 0xb1, 0xf1, 0xcf, 0xcd, 0xb1, 0xf1, 0xdb, 0xbf, 0xc7, 0xb5, 0x17, 0x1f, + 0xac, 0x23, 0x46, 0x28, 0xed, 0x45, 0xa9, 0x27, 0x4e, 0xde, 0x3c, 0xf5, 0xd6, 0xcc, 0xe3, 0xff, + 0xaf, 0x3c, 0x59, 0xeb, 0x65, 0x8b, 0x5f, 0x3f, 0xff, 0x3f, 0x00, 0x00, 0xff, 0xff, 0x8c, 0x9e, + 0x12, 0x81, 0xc2, 0x09, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1183,6 +1249,9 @@ type VTAdminClient interface { GetGates(ctx context.Context, in *GetGatesRequest, opts ...grpc.CallOption) (*GetGatesResponse, error) // GetKeyspaces returns all keyspaces across the specified clusters. GetKeyspaces(ctx context.Context, in *GetKeyspacesRequest, opts ...grpc.CallOption) (*GetKeyspacesResponse, error) + // GetSchema returns the schema for the specified (cluster, keyspace, table) + // tuple. + GetSchema(ctx context.Context, in *GetSchemaRequest, opts ...grpc.CallOption) (*Schema, error) // GetSchemas returns all schemas across the specified clusters. GetSchemas(ctx context.Context, in *GetSchemasRequest, opts ...grpc.CallOption) (*GetSchemasResponse, error) // GetTablet looks up a tablet by hostname across all clusters and returns @@ -1229,6 +1298,15 @@ func (c *vTAdminClient) GetKeyspaces(ctx context.Context, in *GetKeyspacesReques return out, nil } +func (c *vTAdminClient) GetSchema(ctx context.Context, in *GetSchemaRequest, opts ...grpc.CallOption) (*Schema, error) { + out := new(Schema) + err := c.cc.Invoke(ctx, "/vtadmin.VTAdmin/GetSchema", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *vTAdminClient) GetSchemas(ctx context.Context, in *GetSchemasRequest, opts ...grpc.CallOption) (*GetSchemasResponse, error) { out := new(GetSchemasResponse) err := c.cc.Invoke(ctx, "/vtadmin.VTAdmin/GetSchemas", in, out, opts...) @@ -1273,6 +1351,9 @@ type VTAdminServer interface { GetGates(context.Context, *GetGatesRequest) (*GetGatesResponse, error) // GetKeyspaces returns all keyspaces across the specified clusters. GetKeyspaces(context.Context, *GetKeyspacesRequest) (*GetKeyspacesResponse, error) + // GetSchema returns the schema for the specified (cluster, keyspace, table) + // tuple. + GetSchema(context.Context, *GetSchemaRequest) (*Schema, error) // GetSchemas returns all schemas across the specified clusters. GetSchemas(context.Context, *GetSchemasRequest) (*GetSchemasResponse, error) // GetTablet looks up a tablet by hostname across all clusters and returns @@ -1297,6 +1378,9 @@ func (*UnimplementedVTAdminServer) GetGates(ctx context.Context, req *GetGatesRe func (*UnimplementedVTAdminServer) GetKeyspaces(ctx context.Context, req *GetKeyspacesRequest) (*GetKeyspacesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetKeyspaces not implemented") } +func (*UnimplementedVTAdminServer) GetSchema(ctx context.Context, req *GetSchemaRequest) (*Schema, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetSchema not implemented") +} func (*UnimplementedVTAdminServer) GetSchemas(ctx context.Context, req *GetSchemasRequest) (*GetSchemasResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetSchemas not implemented") } @@ -1368,6 +1452,24 @@ func _VTAdmin_GetKeyspaces_Handler(srv interface{}, ctx context.Context, dec fun return interceptor(ctx, in, info, handler) } +func _VTAdmin_GetSchema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetSchemaRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VTAdminServer).GetSchema(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vtadmin.VTAdmin/GetSchema", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VTAdminServer).GetSchema(ctx, req.(*GetSchemaRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _VTAdmin_GetSchemas_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetSchemasRequest) if err := dec(in); err != nil { @@ -1456,6 +1558,10 @@ var _VTAdmin_serviceDesc = grpc.ServiceDesc{ MethodName: "GetKeyspaces", Handler: _VTAdmin_GetKeyspaces_Handler, }, + { + MethodName: "GetSchema", + Handler: _VTAdmin_GetSchema_Handler, + }, { MethodName: "GetSchemas", Handler: _VTAdmin_GetSchemas_Handler, @@ -2048,6 +2154,54 @@ func (m *GetKeyspacesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *GetSchemaRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetSchemaRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetSchemaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Table) > 0 { + i -= len(m.Table) + copy(dAtA[i:], m.Table) + i = encodeVarintVtadmin(dAtA, i, uint64(len(m.Table))) + i-- + dAtA[i] = 0x1a + } + if len(m.Keyspace) > 0 { + i -= len(m.Keyspace) + copy(dAtA[i:], m.Keyspace) + i = encodeVarintVtadmin(dAtA, i, uint64(len(m.Keyspace))) + i-- + dAtA[i] = 0x12 + } + if len(m.ClusterId) > 0 { + i -= len(m.ClusterId) + copy(dAtA[i:], m.ClusterId) + i = encodeVarintVtadmin(dAtA, i, uint64(len(m.ClusterId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func (m *GetSchemasRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -2596,6 +2750,30 @@ func (m *GetKeyspacesResponse) Size() (n int) { return n } +func (m *GetSchemaRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + sovVtadmin(uint64(l)) + } + l = len(m.Keyspace) + if l > 0 { + n += 1 + l + sovVtadmin(uint64(l)) + } + l = len(m.Table) + if l > 0 { + n += 1 + l + sovVtadmin(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + func (m *GetSchemasRequest) Size() (n int) { if m == nil { return 0 @@ -4240,6 +4418,156 @@ func (m *GetKeyspacesResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *GetSchemaRequest) Unmarshal(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 ErrIntOverflowVtadmin + } + 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: GetSchemaRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetSchemaRequest: 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) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVtadmin + } + 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 ErrInvalidLengthVtadmin + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVtadmin + } + 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 Keyspace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVtadmin + } + 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 ErrInvalidLengthVtadmin + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVtadmin + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Keyspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Table", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVtadmin + } + 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 ErrInvalidLengthVtadmin + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVtadmin + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Table = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVtadmin(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVtadmin + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVtadmin + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *GetSchemasRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/go/vt/vtadmin/api.go b/go/vt/vtadmin/api.go index 5c301bfb354..a3387aa6a4e 100644 --- a/go/vt/vtadmin/api.go +++ b/go/vt/vtadmin/api.go @@ -30,6 +30,7 @@ import ( "vitess.io/vitess/go/trace" "vitess.io/vitess/go/vt/concurrency" "vitess.io/vitess/go/vt/topo" + "vitess.io/vitess/go/vt/topo/topoproto" "vitess.io/vitess/go/vt/vtadmin/cluster" "vitess.io/vitess/go/vt/vtadmin/errors" "vitess.io/vitess/go/vt/vtadmin/grpcserver" @@ -87,6 +88,7 @@ func NewAPI(clusters []*cluster.Cluster, opts grpcserver.Options, httpOpts vtadm router.HandleFunc("/clusters", httpAPI.Adapt(vtadminhttp.GetClusters)).Name("API.GetClusters") router.HandleFunc("/gates", httpAPI.Adapt(vtadminhttp.GetGates)).Name("API.GetGates") router.HandleFunc("/keyspaces", httpAPI.Adapt(vtadminhttp.GetKeyspaces)).Name("API.GetKeyspaces") + router.HandleFunc("/schema/{cluster_id}/{keyspace}/{table}", httpAPI.Adapt(vtadminhttp.GetSchema)).Name("API.GetSchema") router.HandleFunc("/schemas", httpAPI.Adapt(vtadminhttp.GetSchemas)).Name("API.GetSchemas") router.HandleFunc("/tablets", httpAPI.Adapt(vtadminhttp.GetTablets)).Name("API.GetTablets") router.HandleFunc("/tablet/{tablet}", httpAPI.Adapt(vtadminhttp.GetTablet)).Name("API.GetTablet") @@ -280,6 +282,40 @@ func (api *API) GetKeyspaces(ctx context.Context, req *vtadminpb.GetKeyspacesReq }, nil } +// GetSchema is part of the vtadminpb.VTAdminServer interface. +func (api *API) GetSchema(ctx context.Context, req *vtadminpb.GetSchemaRequest) (*vtadminpb.Schema, error) { + span, ctx := trace.NewSpan(ctx, "API.GetSchema") + defer span.Finish() + + span.Annotate("cluster_id", req.ClusterId) + span.Annotate("keyspace", req.Keyspace) + span.Annotate("table", req.Table) + + clusters, _ := api.getClustersForRequest([]string{req.ClusterId}) + if len(clusters) == 0 { + return nil, fmt.Errorf("%w: no cluster with id %s", errors.ErrUnsupportedCluster, req.ClusterId) + } + + cluster := clusters[0] + + tablet, err := cluster.FindTablet(ctx, func(t *vtadminpb.Tablet) bool { + return t.Tablet.Keyspace == req.Keyspace && t.State == vtadminpb.Tablet_SERVING + }) + if err != nil { + return nil, fmt.Errorf("%w: no serving tablet found for keyspace %s", err, req.Keyspace) + } + + span.Annotate("tablet_alias", topoproto.TabletAliasString(tablet.Tablet.Alias)) + + if err := cluster.Vtctld.Dial(ctx); err != nil { + return nil, err + } + + return cluster.GetSchema(ctx, &vtctldatapb.GetSchemaRequest{ + Tables: []string{req.Table}, + }, tablet) +} + // GetSchemas is part of the vtadminpb.VTAdminServer interface. func (api *API) GetSchemas(ctx context.Context, req *vtadminpb.GetSchemasRequest) (*vtadminpb.GetSchemasResponse, error) { span, ctx := trace.NewSpan(ctx, "API.GetSchemas") @@ -403,10 +439,7 @@ func (api *API) getSchemasForKeyspace(ctx context.Context, c *cluster.Cluster, k return nil, err } - s, err := c.Vtctld.GetSchema(ctx, &vtctldatapb.GetSchemaRequest{ - TabletAlias: kt.Tablet.Alias, - }) - + s, err := c.GetSchema(ctx, &vtctldatapb.GetSchemaRequest{}, kt) if err != nil { return nil, err } @@ -414,18 +447,11 @@ func (api *API) getSchemasForKeyspace(ctx context.Context, c *cluster.Cluster, k // Ignore any schemas without table definitions; otherwise we return // a vtadminpb.Schema object with only Cluster and Keyspace defined, // which is not particularly useful. - if s == nil || s.Schema == nil || len(s.Schema.TableDefinitions) == 0 { + if s == nil || len(s.TableDefinitions) == 0 { return nil, nil } - return &vtadminpb.Schema{ - Cluster: &vtadminpb.Cluster{ - Id: c.ID, - Name: c.Name, - }, - Keyspace: ks.Name, - TableDefinitions: s.Schema.TableDefinitions, - }, nil + return s, nil } // GetTablet is part of the vtadminpb.VTAdminServer interface. diff --git a/go/vt/vtadmin/api_test.go b/go/vt/vtadmin/api_test.go index f92554f6777..14ceb50459b 100644 --- a/go/vt/vtadmin/api_test.go +++ b/go/vt/vtadmin/api_test.go @@ -404,6 +404,227 @@ func TestGetKeyspaces(t *testing.T) { } } +func TestGetSchema(t *testing.T) { + t.Parallel() + + tests := []struct { + name string + clusterID int + ts *topo.Server + tmc tmclient.TabletManagerClient + tablets []*vtadminpb.Tablet + req *vtadminpb.GetSchemaRequest + expected *vtadminpb.Schema + shouldErr bool + }{ + { + name: "success", + clusterID: 1, + ts: memorytopo.NewServer("zone1"), + tmc: &testutil.TabletManagerClient{ + GetSchemaResults: map[string]struct { + Schema *tabletmanagerdatapb.SchemaDefinition + Error error + }{ + "zone1-0000000100": { + Schema: &tabletmanagerdatapb.SchemaDefinition{ + TableDefinitions: []*tabletmanagerdatapb.TableDefinition{ + { + Name: "testtable", + }, + }, + }, + }, + }, + }, + tablets: []*vtadminpb.Tablet{ + { + Cluster: &vtadminpb.Cluster{ + Id: "c1", + Name: "cluster1", + }, + State: vtadminpb.Tablet_SERVING, + Tablet: &topodatapb.Tablet{ + Alias: &topodatapb.TabletAlias{ + Cell: "zone1", + Uid: 100, + }, + Keyspace: "testkeyspace", + }, + }, + }, + req: &vtadminpb.GetSchemaRequest{ + ClusterId: "c1", + Keyspace: "testkeyspace", + Table: "testtable", + }, + expected: &vtadminpb.Schema{ + Cluster: &vtadminpb.Cluster{ + Id: "c1", + Name: "cluster1", + }, + Keyspace: "testkeyspace", + TableDefinitions: []*tabletmanagerdatapb.TableDefinition{ + { + Name: "testtable", + }, + }, + }, + shouldErr: false, + }, + { + name: "cluster not found", + clusterID: 1, // results in clusterId == "c1" + ts: memorytopo.NewServer("zone1"), + tablets: nil, + req: &vtadminpb.GetSchemaRequest{ + ClusterId: "c2", + Keyspace: "testkeyspace", + Table: "testtable", + }, + expected: nil, + shouldErr: true, + }, + { + name: "tablet not found for keyspace", + clusterID: 1, + ts: memorytopo.NewServer("zone1"), + tablets: []*vtadminpb.Tablet{ + { + Cluster: &vtadminpb.Cluster{ + Id: "c1", + Name: "cluster1", + }, + State: vtadminpb.Tablet_SERVING, + Tablet: &topodatapb.Tablet{ + Alias: &topodatapb.TabletAlias{ + Cell: "zone1", + Uid: 100, + }, + Keyspace: "otherkeyspace", + }, + }, + }, + req: &vtadminpb.GetSchemaRequest{ + ClusterId: "c1", + Keyspace: "testkeyspace", + Table: "testtable", + }, + expected: nil, + shouldErr: true, + }, + { + name: "no serving tablet found for keyspace", + clusterID: 1, + ts: memorytopo.NewServer("zone1"), + tablets: []*vtadminpb.Tablet{ + { + Cluster: &vtadminpb.Cluster{ + Id: "c1", + Name: "cluster1", + }, + State: vtadminpb.Tablet_NOT_SERVING, + Tablet: &topodatapb.Tablet{ + Alias: &topodatapb.TabletAlias{ + Cell: "zone1", + Uid: 100, + }, + Keyspace: "testkeyspace", + }, + }, + }, + req: &vtadminpb.GetSchemaRequest{ + ClusterId: "c1", + Keyspace: "testkeyspace", + Table: "testtable", + }, + expected: nil, + shouldErr: true, + }, + { + name: "error in GetSchema call", + clusterID: 1, + ts: memorytopo.NewServer("zone1"), + tmc: &testutil.TabletManagerClient{ + GetSchemaResults: map[string]struct { + Schema *tabletmanagerdatapb.SchemaDefinition + Error error + }{ + "zone1-0000000100": { + Schema: &tabletmanagerdatapb.SchemaDefinition{ + TableDefinitions: []*tabletmanagerdatapb.TableDefinition{ + { + Name: "testtable", + }, + { + Name: "table2", + }, + { + Name: "table3", + }, + }, + }, + Error: assert.AnError, + }, + }, + }, + tablets: []*vtadminpb.Tablet{ + { + Cluster: &vtadminpb.Cluster{ + Id: "c1", + Name: "cluster1", + }, + State: vtadminpb.Tablet_SERVING, + Tablet: &topodatapb.Tablet{ + Alias: &topodatapb.TabletAlias{ + Cell: "zone1", + Uid: 100, + }, + Keyspace: "testkeyspace", + }, + }, + }, + req: &vtadminpb.GetSchemaRequest{ + ClusterId: "c1", + Keyspace: "testkeyspace", + Table: "testtable", + }, + expected: nil, + shouldErr: true, + }, + } + + for _, tt := range tests { + tt := tt + + t.Run(tt.name, func(t *testing.T) { + t.Parallel() + + ctx := context.Background() + vtctld := testutil.NewVtctldServerWithTabletManagerClient(t, tt.ts, tt.tmc, func(ts *topo.Server) vtctlservicepb.VtctldServer { + return grpcvtctldserver.NewVtctldServer(ts) + }) + + testutil.AddTablets(ctx, t, tt.ts, nil, vtadmintestutil.TopodataTabletsFromVTAdminTablets(tt.tablets)...) + + testutil.WithTestServer(t, vtctld, func(t *testing.T, client vtctldclient.VtctldClient) { + c := vtadmintestutil.BuildCluster(tt.clusterID, client, tt.tablets, nil) + api := NewAPI([]*cluster.Cluster{c}, grpcserver.Options{}, http.Options{}) + + resp, err := api.GetSchema(ctx, tt.req) + if tt.shouldErr { + assert.Error(t, err) + + return + } + + assert.NoError(t, err) + assert.Equal(t, tt.expected, resp) + }) + }) + } +} + func TestGetSchemas(t *testing.T) { t.Parallel() diff --git a/go/vt/vtadmin/cluster/cluster.go b/go/vt/vtadmin/cluster/cluster.go index 4fd9f49685a..cce27e34b6c 100644 --- a/go/vt/vtadmin/cluster/cluster.go +++ b/go/vt/vtadmin/cluster/cluster.go @@ -33,6 +33,7 @@ import ( topodatapb "vitess.io/vitess/go/vt/proto/topodata" vtadminpb "vitess.io/vitess/go/vt/proto/vtadmin" + vtctldatapb "vitess.io/vitess/go/vt/proto/vtctldata" ) // Cluster is the self-contained unit of services required for vtadmin to talk @@ -211,6 +212,40 @@ func (c *Cluster) GetTablets(ctx context.Context) ([]*vtadminpb.Tablet, error) { return c.parseTablets(rows) } +// GetSchema returns the schema for a GetSchemaRequest on the given tablet. The +// caller is responsible for making at least one call to c.Vtctld.Dial prior to +// calling this function. +// +// Note that the request's TabletAlias field will be ignored, using the provided +// tablet's Alias instead. This override is done on a copy of the request, so it +// is transparent to the caller. +// +// This function takes both the request argument and tablet argument to +// (a) set the Keyspace field on the resulting Schema object, which comes from +// the provided tablet; and, (b) allow a caller, like vtadmin.API to collect a +// bunch of tablets once and make a series of GetSchema calls without Cluster +// refetching the tablet list each time. +func (c *Cluster) GetSchema(ctx context.Context, req *vtctldatapb.GetSchemaRequest, tablet *vtadminpb.Tablet) (*vtadminpb.Schema, error) { + // Copy the request to not mutate the caller's request object. + r := *req + r.TabletAlias = tablet.Tablet.Alias + + schema, err := c.Vtctld.GetSchema(ctx, &r) + if err != nil { + return nil, err + } + + if schema == nil || schema.Schema == nil { + return nil, nil + } + + return &vtadminpb.Schema{ + Cluster: c.ToProto(), + Keyspace: tablet.Tablet.Keyspace, + TableDefinitions: schema.Schema.TableDefinitions, + }, nil +} + // FindTablet returns the first tablet in a given cluster that satisfies the filter function. func (c *Cluster) FindTablet(ctx context.Context, filter func(*vtadminpb.Tablet) bool) (*vtadminpb.Tablet, error) { tablets, err := c.FindTablets(ctx, filter, 1) diff --git a/go/vt/vtadmin/cluster/cluster_test.go b/go/vt/vtadmin/cluster/cluster_test.go index a7d0bdde702..be2fab67b76 100644 --- a/go/vt/vtadmin/cluster/cluster_test.go +++ b/go/vt/vtadmin/cluster/cluster_test.go @@ -23,6 +23,7 @@ import ( "testing" "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" "vitess.io/vitess/go/vt/vitessdriver" "vitess.io/vitess/go/vt/vtadmin/cluster" @@ -30,10 +31,12 @@ import ( vtadminerrors "vitess.io/vitess/go/vt/vtadmin/errors" "vitess.io/vitess/go/vt/vtadmin/testutil" "vitess.io/vitess/go/vt/vtadmin/vtsql" + "vitess.io/vitess/go/vt/vtctl/vtctldclient" + tabletmanagerdatapb "vitess.io/vitess/go/vt/proto/tabletmanagerdata" topodatapb "vitess.io/vitess/go/vt/proto/topodata" - "vitess.io/vitess/go/vt/proto/vtadmin" vtadminpb "vitess.io/vitess/go/vt/proto/vtadmin" + vtctldatapb "vitess.io/vitess/go/vt/proto/vtctldata" ) // This test only validates the error handling on dialing database connections. @@ -58,6 +61,182 @@ func TestGetTablets(t *testing.T) { assert.Error(t, err) } +func TestGetSchema(t *testing.T) { + t.Parallel() + + tests := []struct { + name string + vtctld vtctldclient.VtctldClient + req *vtctldatapb.GetSchemaRequest + tablet *vtadminpb.Tablet + expected *vtadminpb.Schema + shouldErr bool + }{ + { + name: "success", + vtctld: &testutil.VtctldClient{ + GetSchemaResults: map[string]struct { + Response *vtctldatapb.GetSchemaResponse + Error error + }{ + "zone1-0000000100": { + Response: &vtctldatapb.GetSchemaResponse{ + Schema: &tabletmanagerdatapb.SchemaDefinition{ + TableDefinitions: []*tabletmanagerdatapb.TableDefinition{ + { + Name: "some_table", + }, + }, + }, + }, + }, + }, + }, + req: &vtctldatapb.GetSchemaRequest{}, + tablet: &vtadminpb.Tablet{ + Tablet: &topodatapb.Tablet{ + Alias: &topodatapb.TabletAlias{ + Cell: "zone1", + Uid: 100, + }, + Keyspace: "testkeyspace", + }, + }, + expected: &vtadminpb.Schema{ + Cluster: &vtadminpb.Cluster{ + Name: "cluster0", + Id: "c0", + }, + Keyspace: "testkeyspace", + TableDefinitions: []*tabletmanagerdatapb.TableDefinition{ + { + Name: "some_table", + }, + }, + }, + shouldErr: false, + }, + { + name: "error getting schema", + vtctld: &testutil.VtctldClient{ + GetSchemaResults: map[string]struct { + Response *vtctldatapb.GetSchemaResponse + Error error + }{ + "zone1-0000000100": { + Error: assert.AnError, + }, + }, + }, + req: &vtctldatapb.GetSchemaRequest{}, + tablet: &vtadminpb.Tablet{ + Tablet: &topodatapb.Tablet{ + Alias: &topodatapb.TabletAlias{ + Cell: "zone1", + Uid: 100, + }, + Keyspace: "testkeyspace", + }, + }, + expected: nil, + shouldErr: true, + }, + { + name: "underlying schema is nil", + vtctld: &testutil.VtctldClient{ + GetSchemaResults: map[string]struct { + Response *vtctldatapb.GetSchemaResponse + Error error + }{ + "zone1-0000000100": { + Response: &vtctldatapb.GetSchemaResponse{ + Schema: nil, + }, + Error: nil, + }, + }, + }, + req: &vtctldatapb.GetSchemaRequest{}, + tablet: &vtadminpb.Tablet{ + Tablet: &topodatapb.Tablet{ + Alias: &topodatapb.TabletAlias{ + Cell: "zone1", + Uid: 100, + }, + Keyspace: "testkeyspace", + }, + }, + expected: nil, + shouldErr: false, + }, + } + + for i, tt := range tests { + i := i + tt := tt + + t.Run(tt.name, func(t *testing.T) { + t.Parallel() + + cluster := testutil.BuildCluster(i, tt.vtctld, nil, nil) + + ctx := context.Background() + err := cluster.Vtctld.Dial(ctx) + require.NoError(t, err, "could not dial test vtctld") + + schema, err := cluster.GetSchema(ctx, tt.req, tt.tablet) + if tt.shouldErr { + assert.Error(t, err) + + return + } + + assert.NoError(t, err) + assert.Equal(t, tt.expected, schema) + }) + } + + t.Run("does not modify passed-in request", func(t *testing.T) { + t.Parallel() + + vtctld := &testutil.VtctldClient{ + GetSchemaResults: map[string]struct { + Response *vtctldatapb.GetSchemaResponse + Error error + }{ + "zone1-0000000100": { + Response: &vtctldatapb.GetSchemaResponse{}, + }, + }, + } + + ctx := context.Background() + req := &vtctldatapb.GetSchemaRequest{ + TabletAlias: &topodatapb.TabletAlias{ + Cell: "otherzone", + Uid: 500, + }, + } + tablet := &vtadminpb.Tablet{ + Tablet: &topodatapb.Tablet{ + Alias: &topodatapb.TabletAlias{ + Cell: "zone1", + Uid: 100, + }, + }, + } + + cluster := testutil.BuildCluster(0, vtctld, nil, nil) + + err := cluster.Vtctld.Dial(ctx) + require.NoError(t, err, "could not dial test vtctld") + + cluster.GetSchema(ctx, req, tablet) + + assert.NotEqual(t, req.TabletAlias, tablet.Tablet.Alias, "expected GetSchema to not modify original request object") + }) +} + func TestFindTablets(t *testing.T) { tests := []struct { name string @@ -116,7 +295,7 @@ func TestFindTablets(t *testing.T) { n: 2, expected: []*vtadminpb.Tablet{ { - Cluster: &vtadmin.Cluster{ + Cluster: &vtadminpb.Cluster{ Id: "c0", Name: "cluster0", }, @@ -130,7 +309,7 @@ func TestFindTablets(t *testing.T) { }, }, { - Cluster: &vtadmin.Cluster{ + Cluster: &vtadminpb.Cluster{ Id: "c0", Name: "cluster0", }, @@ -195,7 +374,7 @@ func TestFindTablets(t *testing.T) { n: -1, expected: []*vtadminpb.Tablet{ { - Cluster: &vtadmin.Cluster{ + Cluster: &vtadminpb.Cluster{ Id: "c0", Name: "cluster0", }, @@ -209,7 +388,7 @@ func TestFindTablets(t *testing.T) { }, }, { - Cluster: &vtadmin.Cluster{ + Cluster: &vtadminpb.Cluster{ Id: "c0", Name: "cluster0", }, @@ -223,7 +402,7 @@ func TestFindTablets(t *testing.T) { }, }, { - Cluster: &vtadmin.Cluster{ + Cluster: &vtadminpb.Cluster{ Id: "c0", Name: "cluster0", }, @@ -296,7 +475,7 @@ func TestFindTablet(t *testing.T) { return t.State == vtadminpb.Tablet_SERVING }, expected: &vtadminpb.Tablet{ - Cluster: &vtadmin.Cluster{ + Cluster: &vtadminpb.Cluster{ Id: "c0", Name: "cluster0", }, diff --git a/go/vt/vtadmin/http/schemas.go b/go/vt/vtadmin/http/schemas.go index e0871c41dc7..e00fa7339e0 100644 --- a/go/vt/vtadmin/http/schemas.go +++ b/go/vt/vtadmin/http/schemas.go @@ -22,7 +22,22 @@ import ( vtadminpb "vitess.io/vitess/go/vt/proto/vtadmin" ) -// GetSchemas implements the http wrapper for /schemas[?cluster=[&cluster=] +// GetSchema implements the http wrapper for the +// /schema/{cluster_id}/{keyspace}/{table} route. +func GetSchema(ctx context.Context, r Request, api *API) *JSONResponse { + vars := r.Vars() + + schema, err := api.server.GetSchema(ctx, &vtadminpb.GetSchemaRequest{ + ClusterId: vars["cluster_id"], + Keyspace: vars["keyspace"], + Table: vars["table"], + }) + + return NewJSONResponse(schema, err) +} + +// GetSchemas implements the http wrapper for the /schemas[?cluster=[&cluster=] +// route. func GetSchemas(ctx context.Context, r Request, api *API) *JSONResponse { schemas, err := api.server.GetSchemas(ctx, &vtadminpb.GetSchemasRequest{ ClusterIds: r.URL.Query()["cluster"], diff --git a/go/vt/vtadmin/testutil/tablets.go b/go/vt/vtadmin/testutil/tablets.go new file mode 100644 index 00000000000..d4b6e60e024 --- /dev/null +++ b/go/vt/vtadmin/testutil/tablets.go @@ -0,0 +1,37 @@ +/* +Copyright 2021 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 testutil + +import ( + topodatapb "vitess.io/vitess/go/vt/proto/topodata" + vtadminpb "vitess.io/vitess/go/vt/proto/vtadmin" +) + +// TopodataTabletsFromVTAdminTablets returns a slice of topodatapb.Tablet +// objects from a slice of vtadminpb.Tablet objects. It is the equivalent of +// +// map(func(t *vtadminpb.Tablet) (*topodatapb.Tablet) { return t.Tablet }, tablets) +// +func TopodataTabletsFromVTAdminTablets(tablets []*vtadminpb.Tablet) []*topodatapb.Tablet { + results := make([]*topodatapb.Tablet, len(tablets)) + + for i, tablet := range tablets { + results[i] = tablet.Tablet + } + + return results +} diff --git a/go/vt/vtadmin/testutil/vtctldclient.go b/go/vt/vtadmin/testutil/vtctldclient.go new file mode 100644 index 00000000000..70a5c88698f --- /dev/null +++ b/go/vt/vtadmin/testutil/vtctldclient.go @@ -0,0 +1,64 @@ +/* +Copyright 2021 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 testutil + +import ( + "context" + "fmt" + + "github.com/stretchr/testify/assert" + "google.golang.org/grpc" + + "vitess.io/vitess/go/vt/topo/topoproto" + "vitess.io/vitess/go/vt/vtctl/vtctldclient" + + vtctldatapb "vitess.io/vitess/go/vt/proto/vtctldata" +) + +// VtctldClient provides a partial mock implementation of the +// vtctldclient.VtctldClient interface for use in testing. +type VtctldClient struct { + vtctldclient.VtctldClient + + GetSchemaResults map[string]struct { + Response *vtctldatapb.GetSchemaResponse + Error error + } +} + +// Compile-time type assertion to make sure we haven't overriden a method +// incorrectly. +var _ vtctldclient.VtctldClient = (*VtctldClient)(nil) + +// GetSchema is part of the vtctldclient.VtctldClient interface. +func (fake *VtctldClient) GetSchema(ctx context.Context, req *vtctldatapb.GetSchemaRequest, opts ...grpc.CallOption) (*vtctldatapb.GetSchemaResponse, error) { + if fake.GetSchemaResults == nil { + return nil, fmt.Errorf("%w: GetSchemaResults not set on fake vtctldclient", assert.AnError) + } + + if req.TabletAlias == nil { + return nil, fmt.Errorf("%w: req.TabletAlias == nil", assert.AnError) + } + + key := topoproto.TabletAliasString(req.TabletAlias) + + if result, ok := fake.GetSchemaResults[key]; ok { + return result.Response, result.Error + } + + return nil, fmt.Errorf("%w: no result set for tablet alias %s", assert.AnError, key) +} diff --git a/proto/vtadmin.proto b/proto/vtadmin.proto index 12cdb940a37..446ef8c38bc 100644 --- a/proto/vtadmin.proto +++ b/proto/vtadmin.proto @@ -36,6 +36,9 @@ service VTAdmin { rpc GetGates(GetGatesRequest) returns (GetGatesResponse) {}; // GetKeyspaces returns all keyspaces across the specified clusters. rpc GetKeyspaces(GetKeyspacesRequest) returns (GetKeyspacesResponse) {}; + // GetSchema returns the schema for the specified (cluster, keyspace, table) + // tuple. + rpc GetSchema(GetSchemaRequest) returns (Schema) {}; // GetSchemas returns all schemas across the specified clusters. rpc GetSchemas(GetSchemasRequest) returns (GetSchemasResponse) {}; // GetTablet looks up a tablet by hostname across all clusters and returns @@ -130,6 +133,12 @@ message GetKeyspacesResponse { repeated Keyspace keyspaces = 1; } +message GetSchemaRequest { + string cluster_id = 1; + string keyspace = 2; + string table = 3; +} + message GetSchemasRequest { repeated string cluster_ids = 1; } diff --git a/web/vtadmin/src/proto/vtadmin.d.ts b/web/vtadmin/src/proto/vtadmin.d.ts index 40f0248c483..6818c22a451 100644 --- a/web/vtadmin/src/proto/vtadmin.d.ts +++ b/web/vtadmin/src/proto/vtadmin.d.ts @@ -64,6 +64,20 @@ export namespace vtadmin { */ public getKeyspaces(request: vtadmin.IGetKeyspacesRequest): Promise; + /** + * Calls GetSchema. + * @param request GetSchemaRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Schema + */ + public getSchema(request: vtadmin.IGetSchemaRequest, callback: vtadmin.VTAdmin.GetSchemaCallback): void; + + /** + * Calls GetSchema. + * @param request GetSchemaRequest message or plain object + * @returns Promise + */ + public getSchema(request: vtadmin.IGetSchemaRequest): Promise; + /** * Calls GetSchemas. * @param request GetSchemasRequest message or plain object @@ -144,6 +158,13 @@ export namespace vtadmin { */ type GetKeyspacesCallback = (error: (Error|null), response?: vtadmin.GetKeyspacesResponse) => void; + /** + * Callback as used by {@link vtadmin.VTAdmin#getSchema}. + * @param error Error, if any + * @param [response] Schema + */ + type GetSchemaCallback = (error: (Error|null), response?: vtadmin.Schema) => void; + /** * Callback as used by {@link vtadmin.VTAdmin#getSchemas}. * @param error Error, if any @@ -1329,6 +1350,108 @@ export namespace vtadmin { public toJSON(): { [k: string]: any }; } + /** Properties of a GetSchemaRequest. */ + interface IGetSchemaRequest { + + /** GetSchemaRequest cluster_id */ + cluster_id?: (string|null); + + /** GetSchemaRequest keyspace */ + keyspace?: (string|null); + + /** GetSchemaRequest table */ + table?: (string|null); + } + + /** Represents a GetSchemaRequest. */ + class GetSchemaRequest implements IGetSchemaRequest { + + /** + * Constructs a new GetSchemaRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtadmin.IGetSchemaRequest); + + /** GetSchemaRequest cluster_id. */ + public cluster_id: string; + + /** GetSchemaRequest keyspace. */ + public keyspace: string; + + /** GetSchemaRequest table. */ + public table: string; + + /** + * Creates a new GetSchemaRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSchemaRequest instance + */ + public static create(properties?: vtadmin.IGetSchemaRequest): vtadmin.GetSchemaRequest; + + /** + * Encodes the specified GetSchemaRequest message. Does not implicitly {@link vtadmin.GetSchemaRequest.verify|verify} messages. + * @param message GetSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtadmin.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSchemaRequest message, length delimited. Does not implicitly {@link vtadmin.GetSchemaRequest.verify|verify} messages. + * @param message GetSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtadmin.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSchemaRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSchemaRequest + * @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.GetSchemaRequest; + + /** + * Decodes a GetSchemaRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSchemaRequest + * @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.GetSchemaRequest; + + /** + * Verifies a GetSchemaRequest 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 GetSchemaRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSchemaRequest + */ + public static fromObject(object: { [k: string]: any }): vtadmin.GetSchemaRequest; + + /** + * Creates a plain object from a GetSchemaRequest message. Also converts values to other types if specified. + * @param message GetSchemaRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtadmin.GetSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSchemaRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a GetSchemasRequest. */ interface IGetSchemasRequest { @@ -18928,5000 +19051,6212 @@ export namespace topodata { */ public toJSON(): { [k: string]: any }; } -} -/** Namespace vttime. */ -export namespace vttime { + /** Properties of a TopoConfig. */ + interface ITopoConfig { - /** Properties of a Time. */ - interface ITime { + /** TopoConfig topo_type */ + topo_type?: (string|null); - /** Time seconds */ - seconds?: (number|Long|null); + /** TopoConfig server */ + server?: (string|null); - /** Time nanoseconds */ - nanoseconds?: (number|null); + /** TopoConfig root */ + root?: (string|null); } - /** Represents a Time. */ - class Time implements ITime { + /** Represents a TopoConfig. */ + class TopoConfig implements ITopoConfig { /** - * Constructs a new Time. + * Constructs a new TopoConfig. * @param [properties] Properties to set */ - constructor(properties?: vttime.ITime); + constructor(properties?: topodata.ITopoConfig); - /** Time seconds. */ - public seconds: (number|Long); + /** TopoConfig topo_type. */ + public topo_type: string; - /** Time nanoseconds. */ - public nanoseconds: number; + /** TopoConfig server. */ + public server: string; + + /** TopoConfig root. */ + public root: string; /** - * Creates a new Time instance using the specified properties. + * Creates a new TopoConfig instance using the specified properties. * @param [properties] Properties to set - * @returns Time instance + * @returns TopoConfig instance */ - public static create(properties?: vttime.ITime): vttime.Time; + public static create(properties?: topodata.ITopoConfig): topodata.TopoConfig; /** - * Encodes the specified Time message. Does not implicitly {@link vttime.Time.verify|verify} messages. - * @param message Time message or plain object to encode + * Encodes the specified TopoConfig message. Does not implicitly {@link topodata.TopoConfig.verify|verify} messages. + * @param message TopoConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vttime.ITime, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: topodata.ITopoConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Time message, length delimited. Does not implicitly {@link vttime.Time.verify|verify} messages. - * @param message Time message or plain object to encode + * Encodes the specified TopoConfig message, length delimited. Does not implicitly {@link topodata.TopoConfig.verify|verify} messages. + * @param message TopoConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vttime.ITime, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: topodata.ITopoConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Time message from the specified reader or buffer. + * Decodes a TopoConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Time + * @returns TopoConfig * @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): vttime.Time; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.TopoConfig; /** - * Decodes a Time message from the specified reader or buffer, length delimited. + * Decodes a TopoConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Time + * @returns TopoConfig * @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)): vttime.Time; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.TopoConfig; /** - * Verifies a Time message. + * Verifies a TopoConfig 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 Time message from a plain object. Also converts values to their respective internal types. + * Creates a TopoConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Time + * @returns TopoConfig */ - public static fromObject(object: { [k: string]: any }): vttime.Time; + public static fromObject(object: { [k: string]: any }): topodata.TopoConfig; /** - * Creates a plain object from a Time message. Also converts values to other types if specified. - * @param message Time + * Creates a plain object from a TopoConfig message. Also converts values to other types if specified. + * @param message TopoConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vttime.Time, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: topodata.TopoConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Time to JSON. + * Converts this TopoConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } -} - -/** Namespace vtrpc. */ -export namespace vtrpc { - - /** Properties of a CallerID. */ - interface ICallerID { - - /** CallerID principal */ - principal?: (string|null); - /** CallerID component */ - component?: (string|null); + /** Properties of an ExternalVitessCluster. */ + interface IExternalVitessCluster { - /** CallerID subcomponent */ - subcomponent?: (string|null); + /** ExternalVitessCluster topo_config */ + topo_config?: (topodata.ITopoConfig|null); } - /** Represents a CallerID. */ - class CallerID implements ICallerID { + /** Represents an ExternalVitessCluster. */ + class ExternalVitessCluster implements IExternalVitessCluster { /** - * Constructs a new CallerID. + * Constructs a new ExternalVitessCluster. * @param [properties] Properties to set */ - constructor(properties?: vtrpc.ICallerID); - - /** CallerID principal. */ - public principal: string; - - /** CallerID component. */ - public component: string; + constructor(properties?: topodata.IExternalVitessCluster); - /** CallerID subcomponent. */ - public subcomponent: string; + /** ExternalVitessCluster topo_config. */ + public topo_config?: (topodata.ITopoConfig|null); /** - * Creates a new CallerID instance using the specified properties. + * Creates a new ExternalVitessCluster instance using the specified properties. * @param [properties] Properties to set - * @returns CallerID instance + * @returns ExternalVitessCluster instance */ - public static create(properties?: vtrpc.ICallerID): vtrpc.CallerID; + public static create(properties?: topodata.IExternalVitessCluster): topodata.ExternalVitessCluster; /** - * Encodes the specified CallerID message. Does not implicitly {@link vtrpc.CallerID.verify|verify} messages. - * @param message CallerID message or plain object to encode + * Encodes the specified ExternalVitessCluster message. Does not implicitly {@link topodata.ExternalVitessCluster.verify|verify} messages. + * @param message ExternalVitessCluster message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtrpc.ICallerID, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: topodata.IExternalVitessCluster, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CallerID message, length delimited. Does not implicitly {@link vtrpc.CallerID.verify|verify} messages. - * @param message CallerID message or plain object to encode + * Encodes the specified ExternalVitessCluster message, length delimited. Does not implicitly {@link topodata.ExternalVitessCluster.verify|verify} messages. + * @param message ExternalVitessCluster message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtrpc.ICallerID, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: topodata.IExternalVitessCluster, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CallerID message from the specified reader or buffer. + * Decodes an ExternalVitessCluster message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CallerID + * @returns ExternalVitessCluster * @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): vtrpc.CallerID; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.ExternalVitessCluster; /** - * Decodes a CallerID message from the specified reader or buffer, length delimited. + * Decodes an ExternalVitessCluster message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CallerID + * @returns ExternalVitessCluster * @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)): vtrpc.CallerID; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.ExternalVitessCluster; /** - * Verifies a CallerID message. + * Verifies an ExternalVitessCluster 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 CallerID message from a plain object. Also converts values to their respective internal types. + * Creates an ExternalVitessCluster message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CallerID + * @returns ExternalVitessCluster */ - public static fromObject(object: { [k: string]: any }): vtrpc.CallerID; + public static fromObject(object: { [k: string]: any }): topodata.ExternalVitessCluster; /** - * Creates a plain object from a CallerID message. Also converts values to other types if specified. - * @param message CallerID + * Creates a plain object from an ExternalVitessCluster message. Also converts values to other types if specified. + * @param message ExternalVitessCluster * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtrpc.CallerID, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: topodata.ExternalVitessCluster, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CallerID to JSON. + * Converts this ExternalVitessCluster to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Code enum. */ - enum Code { - OK = 0, - CANCELED = 1, - UNKNOWN = 2, - INVALID_ARGUMENT = 3, - DEADLINE_EXCEEDED = 4, - NOT_FOUND = 5, - ALREADY_EXISTS = 6, - PERMISSION_DENIED = 7, - UNAUTHENTICATED = 16, - RESOURCE_EXHAUSTED = 8, - FAILED_PRECONDITION = 9, - ABORTED = 10, - OUT_OF_RANGE = 11, - UNIMPLEMENTED = 12, - INTERNAL = 13, - UNAVAILABLE = 14, - DATA_LOSS = 15 - } - - /** LegacyErrorCode enum. */ - enum LegacyErrorCode { - SUCCESS_LEGACY = 0, - CANCELLED_LEGACY = 1, - UNKNOWN_ERROR_LEGACY = 2, - BAD_INPUT_LEGACY = 3, - DEADLINE_EXCEEDED_LEGACY = 4, - INTEGRITY_ERROR_LEGACY = 5, - PERMISSION_DENIED_LEGACY = 6, - RESOURCE_EXHAUSTED_LEGACY = 7, - QUERY_NOT_SERVED_LEGACY = 8, - NOT_IN_TX_LEGACY = 9, - INTERNAL_ERROR_LEGACY = 10, - TRANSIENT_ERROR_LEGACY = 11, - UNAUTHENTICATED_LEGACY = 12 - } - - /** Properties of a RPCError. */ - interface IRPCError { - - /** RPCError legacy_code */ - legacy_code?: (vtrpc.LegacyErrorCode|null); - - /** RPCError message */ - message?: (string|null); + /** Properties of an ExternalClusters. */ + interface IExternalClusters { - /** RPCError code */ - code?: (vtrpc.Code|null); + /** ExternalClusters vitess_cluster */ + vitess_cluster?: (topodata.IExternalVitessCluster[]|null); } - /** Represents a RPCError. */ - class RPCError implements IRPCError { + /** Represents an ExternalClusters. */ + class ExternalClusters implements IExternalClusters { /** - * Constructs a new RPCError. + * Constructs a new ExternalClusters. * @param [properties] Properties to set */ - constructor(properties?: vtrpc.IRPCError); - - /** RPCError legacy_code. */ - public legacy_code: vtrpc.LegacyErrorCode; - - /** RPCError message. */ - public message: string; + constructor(properties?: topodata.IExternalClusters); - /** RPCError code. */ - public code: vtrpc.Code; + /** ExternalClusters vitess_cluster. */ + public vitess_cluster: topodata.IExternalVitessCluster[]; /** - * Creates a new RPCError instance using the specified properties. + * Creates a new ExternalClusters instance using the specified properties. * @param [properties] Properties to set - * @returns RPCError instance + * @returns ExternalClusters instance */ - public static create(properties?: vtrpc.IRPCError): vtrpc.RPCError; + public static create(properties?: topodata.IExternalClusters): topodata.ExternalClusters; /** - * Encodes the specified RPCError message. Does not implicitly {@link vtrpc.RPCError.verify|verify} messages. - * @param message RPCError message or plain object to encode + * Encodes the specified ExternalClusters message. Does not implicitly {@link topodata.ExternalClusters.verify|verify} messages. + * @param message ExternalClusters message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtrpc.IRPCError, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: topodata.IExternalClusters, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RPCError message, length delimited. Does not implicitly {@link vtrpc.RPCError.verify|verify} messages. - * @param message RPCError message or plain object to encode + * Encodes the specified ExternalClusters message, length delimited. Does not implicitly {@link topodata.ExternalClusters.verify|verify} messages. + * @param message ExternalClusters message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtrpc.IRPCError, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: topodata.IExternalClusters, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RPCError message from the specified reader or buffer. + * Decodes an ExternalClusters message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RPCError + * @returns ExternalClusters * @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): vtrpc.RPCError; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): topodata.ExternalClusters; /** - * Decodes a RPCError message from the specified reader or buffer, length delimited. + * Decodes an ExternalClusters message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RPCError + * @returns ExternalClusters * @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)): vtrpc.RPCError; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): topodata.ExternalClusters; /** - * Verifies a RPCError message. + * Verifies an ExternalClusters 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 RPCError message from a plain object. Also converts values to their respective internal types. + * Creates an ExternalClusters message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RPCError + * @returns ExternalClusters */ - public static fromObject(object: { [k: string]: any }): vtrpc.RPCError; + public static fromObject(object: { [k: string]: any }): topodata.ExternalClusters; /** - * Creates a plain object from a RPCError message. Also converts values to other types if specified. - * @param message RPCError + * Creates a plain object from an ExternalClusters message. Also converts values to other types if specified. + * @param message ExternalClusters * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtrpc.RPCError, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: topodata.ExternalClusters, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RPCError to JSON. + * Converts this ExternalClusters to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } } -/** Namespace replicationdata. */ -export namespace replicationdata { - - /** Properties of a Status. */ - interface IStatus { - - /** Status position */ - position?: (string|null); - - /** Status io_thread_running */ - io_thread_running?: (boolean|null); - - /** Status sql_thread_running */ - sql_thread_running?: (boolean|null); - - /** Status seconds_behind_master */ - seconds_behind_master?: (number|null); - - /** Status master_host */ - master_host?: (string|null); - - /** Status master_port */ - master_port?: (number|null); - - /** Status master_connect_retry */ - master_connect_retry?: (number|null); - - /** Status relay_log_position */ - relay_log_position?: (string|null); - - /** Status file_position */ - file_position?: (string|null); +/** Namespace vttime. */ +export namespace vttime { - /** Status file_relay_log_position */ - file_relay_log_position?: (string|null); + /** Properties of a Time. */ + interface ITime { - /** Status master_server_id */ - master_server_id?: (number|null); + /** Time seconds */ + seconds?: (number|Long|null); - /** Status master_uuid */ - master_uuid?: (string|null); + /** Time nanoseconds */ + nanoseconds?: (number|null); } - /** Represents a Status. */ - class Status implements IStatus { + /** Represents a Time. */ + class Time implements ITime { /** - * Constructs a new Status. + * Constructs a new Time. * @param [properties] Properties to set */ - constructor(properties?: replicationdata.IStatus); - - /** Status position. */ - public position: string; - - /** Status io_thread_running. */ - public io_thread_running: boolean; - - /** Status sql_thread_running. */ - public sql_thread_running: boolean; - - /** Status seconds_behind_master. */ - public seconds_behind_master: number; - - /** Status master_host. */ - public master_host: string; - - /** Status master_port. */ - public master_port: number; - - /** Status master_connect_retry. */ - public master_connect_retry: number; - - /** Status relay_log_position. */ - public relay_log_position: string; - - /** Status file_position. */ - public file_position: string; - - /** Status file_relay_log_position. */ - public file_relay_log_position: string; + constructor(properties?: vttime.ITime); - /** Status master_server_id. */ - public master_server_id: number; + /** Time seconds. */ + public seconds: (number|Long); - /** Status master_uuid. */ - public master_uuid: string; + /** Time nanoseconds. */ + public nanoseconds: number; /** - * Creates a new Status instance using the specified properties. + * Creates a new Time instance using the specified properties. * @param [properties] Properties to set - * @returns Status instance + * @returns Time instance */ - public static create(properties?: replicationdata.IStatus): replicationdata.Status; + public static create(properties?: vttime.ITime): vttime.Time; /** - * Encodes the specified Status message. Does not implicitly {@link replicationdata.Status.verify|verify} messages. - * @param message Status message or plain object to encode + * Encodes the specified Time message. Does not implicitly {@link vttime.Time.verify|verify} messages. + * @param message Time message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: replicationdata.IStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vttime.ITime, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Status message, length delimited. Does not implicitly {@link replicationdata.Status.verify|verify} messages. - * @param message Status message or plain object to encode + * Encodes the specified Time message, length delimited. Does not implicitly {@link vttime.Time.verify|verify} messages. + * @param message Time message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: replicationdata.IStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vttime.ITime, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Status message from the specified reader or buffer. + * Decodes a Time message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Status + * @returns Time * @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): replicationdata.Status; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vttime.Time; /** - * Decodes a Status message from the specified reader or buffer, length delimited. + * Decodes a Time message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Status + * @returns Time * @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)): replicationdata.Status; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vttime.Time; /** - * Verifies a Status message. + * Verifies a Time 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 Status message from a plain object. Also converts values to their respective internal types. + * Creates a Time message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Status + * @returns Time */ - public static fromObject(object: { [k: string]: any }): replicationdata.Status; + public static fromObject(object: { [k: string]: any }): vttime.Time; /** - * Creates a plain object from a Status message. Also converts values to other types if specified. - * @param message Status + * Creates a plain object from a Time message. Also converts values to other types if specified. + * @param message Time * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: replicationdata.Status, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vttime.Time, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Status to JSON. + * Converts this Time to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a StopReplicationStatus. */ - interface IStopReplicationStatus { + /** Properties of a Duration. */ + interface IDuration { - /** StopReplicationStatus before */ - before?: (replicationdata.IStatus|null); + /** Duration seconds */ + seconds?: (number|Long|null); - /** StopReplicationStatus after */ - after?: (replicationdata.IStatus|null); + /** Duration nanos */ + nanos?: (number|null); } - /** Represents a StopReplicationStatus. */ - class StopReplicationStatus implements IStopReplicationStatus { + /** Represents a Duration. */ + class Duration implements IDuration { /** - * Constructs a new StopReplicationStatus. + * Constructs a new Duration. * @param [properties] Properties to set */ - constructor(properties?: replicationdata.IStopReplicationStatus); + constructor(properties?: vttime.IDuration); - /** StopReplicationStatus before. */ - public before?: (replicationdata.IStatus|null); + /** Duration seconds. */ + public seconds: (number|Long); - /** StopReplicationStatus after. */ - public after?: (replicationdata.IStatus|null); + /** Duration nanos. */ + public nanos: number; /** - * Creates a new StopReplicationStatus instance using the specified properties. + * Creates a new Duration instance using the specified properties. * @param [properties] Properties to set - * @returns StopReplicationStatus instance + * @returns Duration instance */ - public static create(properties?: replicationdata.IStopReplicationStatus): replicationdata.StopReplicationStatus; + public static create(properties?: vttime.IDuration): vttime.Duration; /** - * Encodes the specified StopReplicationStatus message. Does not implicitly {@link replicationdata.StopReplicationStatus.verify|verify} messages. - * @param message StopReplicationStatus message or plain object to encode + * Encodes the specified Duration message. Does not implicitly {@link vttime.Duration.verify|verify} messages. + * @param message Duration message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: replicationdata.IStopReplicationStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vttime.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StopReplicationStatus message, length delimited. Does not implicitly {@link replicationdata.StopReplicationStatus.verify|verify} messages. - * @param message StopReplicationStatus message or plain object to encode + * Encodes the specified Duration message, length delimited. Does not implicitly {@link vttime.Duration.verify|verify} messages. + * @param message Duration message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: replicationdata.IStopReplicationStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vttime.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StopReplicationStatus message from the specified reader or buffer. + * Decodes a Duration message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StopReplicationStatus + * @returns Duration * @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): replicationdata.StopReplicationStatus; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vttime.Duration; /** - * Decodes a StopReplicationStatus message from the specified reader or buffer, length delimited. + * Decodes a Duration message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StopReplicationStatus + * @returns Duration * @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)): replicationdata.StopReplicationStatus; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vttime.Duration; /** - * Verifies a StopReplicationStatus message. + * Verifies a Duration 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 StopReplicationStatus message from a plain object. Also converts values to their respective internal types. + * Creates a Duration message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StopReplicationStatus + * @returns Duration */ - public static fromObject(object: { [k: string]: any }): replicationdata.StopReplicationStatus; + public static fromObject(object: { [k: string]: any }): vttime.Duration; /** - * Creates a plain object from a StopReplicationStatus message. Also converts values to other types if specified. - * @param message StopReplicationStatus + * Creates a plain object from a Duration message. Also converts values to other types if specified. + * @param message Duration * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: replicationdata.StopReplicationStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vttime.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StopReplicationStatus to JSON. + * Converts this Duration to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } +} - /** StopReplicationMode enum. */ - enum StopReplicationMode { - IOANDSQLTHREAD = 0, - IOTHREADONLY = 1 - } +/** Namespace vtrpc. */ +export namespace vtrpc { - /** Properties of a MasterStatus. */ - interface IMasterStatus { + /** Properties of a CallerID. */ + interface ICallerID { - /** MasterStatus position */ - position?: (string|null); + /** CallerID principal */ + principal?: (string|null); - /** MasterStatus file_position */ - file_position?: (string|null); + /** CallerID component */ + component?: (string|null); + + /** CallerID subcomponent */ + subcomponent?: (string|null); } - /** Represents a MasterStatus. */ - class MasterStatus implements IMasterStatus { + /** Represents a CallerID. */ + class CallerID implements ICallerID { /** - * Constructs a new MasterStatus. + * Constructs a new CallerID. * @param [properties] Properties to set */ - constructor(properties?: replicationdata.IMasterStatus); + constructor(properties?: vtrpc.ICallerID); - /** MasterStatus position. */ - public position: string; + /** CallerID principal. */ + public principal: string; - /** MasterStatus file_position. */ - public file_position: string; + /** CallerID component. */ + public component: string; + + /** CallerID subcomponent. */ + public subcomponent: string; /** - * Creates a new MasterStatus instance using the specified properties. + * Creates a new CallerID instance using the specified properties. * @param [properties] Properties to set - * @returns MasterStatus instance + * @returns CallerID instance */ - public static create(properties?: replicationdata.IMasterStatus): replicationdata.MasterStatus; + public static create(properties?: vtrpc.ICallerID): vtrpc.CallerID; /** - * Encodes the specified MasterStatus message. Does not implicitly {@link replicationdata.MasterStatus.verify|verify} messages. - * @param message MasterStatus message or plain object to encode + * Encodes the specified CallerID message. Does not implicitly {@link vtrpc.CallerID.verify|verify} messages. + * @param message CallerID message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: replicationdata.IMasterStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtrpc.ICallerID, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MasterStatus message, length delimited. Does not implicitly {@link replicationdata.MasterStatus.verify|verify} messages. - * @param message MasterStatus message or plain object to encode + * Encodes the specified CallerID message, length delimited. Does not implicitly {@link vtrpc.CallerID.verify|verify} messages. + * @param message CallerID message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: replicationdata.IMasterStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtrpc.ICallerID, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MasterStatus message from the specified reader or buffer. + * Decodes a CallerID message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MasterStatus + * @returns CallerID * @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): replicationdata.MasterStatus; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtrpc.CallerID; /** - * Decodes a MasterStatus message from the specified reader or buffer, length delimited. + * Decodes a CallerID message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MasterStatus + * @returns CallerID * @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)): replicationdata.MasterStatus; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtrpc.CallerID; /** - * Verifies a MasterStatus message. + * Verifies a CallerID 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 MasterStatus message from a plain object. Also converts values to their respective internal types. + * Creates a CallerID message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MasterStatus + * @returns CallerID */ - public static fromObject(object: { [k: string]: any }): replicationdata.MasterStatus; + public static fromObject(object: { [k: string]: any }): vtrpc.CallerID; /** - * Creates a plain object from a MasterStatus message. Also converts values to other types if specified. - * @param message MasterStatus + * Creates a plain object from a CallerID message. Also converts values to other types if specified. + * @param message CallerID * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: replicationdata.MasterStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtrpc.CallerID, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MasterStatus to JSON. + * Converts this CallerID to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } -} -/** Namespace logutil. */ -export namespace logutil { + /** Code enum. */ + enum Code { + OK = 0, + CANCELED = 1, + UNKNOWN = 2, + INVALID_ARGUMENT = 3, + DEADLINE_EXCEEDED = 4, + NOT_FOUND = 5, + ALREADY_EXISTS = 6, + PERMISSION_DENIED = 7, + UNAUTHENTICATED = 16, + RESOURCE_EXHAUSTED = 8, + FAILED_PRECONDITION = 9, + ABORTED = 10, + OUT_OF_RANGE = 11, + UNIMPLEMENTED = 12, + INTERNAL = 13, + UNAVAILABLE = 14, + DATA_LOSS = 15 + } - /** Level enum. */ - enum Level { - INFO = 0, - WARNING = 1, - ERROR = 2, - CONSOLE = 3 + /** LegacyErrorCode enum. */ + enum LegacyErrorCode { + SUCCESS_LEGACY = 0, + CANCELLED_LEGACY = 1, + UNKNOWN_ERROR_LEGACY = 2, + BAD_INPUT_LEGACY = 3, + DEADLINE_EXCEEDED_LEGACY = 4, + INTEGRITY_ERROR_LEGACY = 5, + PERMISSION_DENIED_LEGACY = 6, + RESOURCE_EXHAUSTED_LEGACY = 7, + QUERY_NOT_SERVED_LEGACY = 8, + NOT_IN_TX_LEGACY = 9, + INTERNAL_ERROR_LEGACY = 10, + TRANSIENT_ERROR_LEGACY = 11, + UNAUTHENTICATED_LEGACY = 12 } - /** Properties of an Event. */ - interface IEvent { + /** Properties of a RPCError. */ + interface IRPCError { - /** Event time */ - time?: (vttime.ITime|null); + /** RPCError legacy_code */ + legacy_code?: (vtrpc.LegacyErrorCode|null); - /** Event level */ - level?: (logutil.Level|null); + /** RPCError message */ + message?: (string|null); - /** Event file */ - file?: (string|null); + /** RPCError code */ + code?: (vtrpc.Code|null); + } - /** Event line */ - line?: (number|Long|null); + /** Represents a RPCError. */ + class RPCError implements IRPCError { - /** Event value */ - value?: (string|null); - } + /** + * Constructs a new RPCError. + * @param [properties] Properties to set + */ + constructor(properties?: vtrpc.IRPCError); - /** Represents an Event. */ - class Event implements IEvent { + /** RPCError legacy_code. */ + public legacy_code: vtrpc.LegacyErrorCode; + + /** RPCError message. */ + public message: string; + + /** RPCError code. */ + public code: vtrpc.Code; /** - * Constructs a new Event. + * Creates a new RPCError instance using the specified properties. * @param [properties] Properties to set + * @returns RPCError instance */ - constructor(properties?: logutil.IEvent); + public static create(properties?: vtrpc.IRPCError): vtrpc.RPCError; - /** Event time. */ - public time?: (vttime.ITime|null); + /** + * Encodes the specified RPCError message. Does not implicitly {@link vtrpc.RPCError.verify|verify} messages. + * @param message RPCError message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtrpc.IRPCError, writer?: $protobuf.Writer): $protobuf.Writer; - /** Event level. */ - public level: logutil.Level; + /** + * Encodes the specified RPCError message, length delimited. Does not implicitly {@link vtrpc.RPCError.verify|verify} messages. + * @param message RPCError message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtrpc.IRPCError, writer?: $protobuf.Writer): $protobuf.Writer; - /** Event file. */ - public file: string; + /** + * Decodes a RPCError message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RPCError + * @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): vtrpc.RPCError; - /** Event line. */ - public line: (number|Long); + /** + * Decodes a RPCError message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RPCError + * @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)): vtrpc.RPCError; - /** Event value. */ - public value: string; + /** + * Verifies a RPCError 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 new Event instance using the specified properties. + * Creates a RPCError message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RPCError + */ + public static fromObject(object: { [k: string]: any }): vtrpc.RPCError; + + /** + * Creates a plain object from a RPCError message. Also converts values to other types if specified. + * @param message RPCError + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtrpc.RPCError, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RPCError to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } +} + +/** Namespace replicationdata. */ +export namespace replicationdata { + + /** Properties of a Status. */ + interface IStatus { + + /** Status position */ + position?: (string|null); + + /** Status io_thread_running */ + io_thread_running?: (boolean|null); + + /** Status sql_thread_running */ + sql_thread_running?: (boolean|null); + + /** Status seconds_behind_master */ + seconds_behind_master?: (number|null); + + /** Status master_host */ + master_host?: (string|null); + + /** Status master_port */ + master_port?: (number|null); + + /** Status master_connect_retry */ + master_connect_retry?: (number|null); + + /** Status relay_log_position */ + relay_log_position?: (string|null); + + /** Status file_position */ + file_position?: (string|null); + + /** Status file_relay_log_position */ + file_relay_log_position?: (string|null); + + /** Status master_server_id */ + master_server_id?: (number|null); + + /** Status master_uuid */ + master_uuid?: (string|null); + } + + /** Represents a Status. */ + class Status implements IStatus { + + /** + * Constructs a new Status. * @param [properties] Properties to set - * @returns Event instance */ - public static create(properties?: logutil.IEvent): logutil.Event; + constructor(properties?: replicationdata.IStatus); + + /** Status position. */ + public position: string; + + /** Status io_thread_running. */ + public io_thread_running: boolean; + + /** Status sql_thread_running. */ + public sql_thread_running: boolean; + + /** Status seconds_behind_master. */ + public seconds_behind_master: number; + + /** Status master_host. */ + public master_host: string; + + /** Status master_port. */ + public master_port: number; + + /** Status master_connect_retry. */ + public master_connect_retry: number; + + /** Status relay_log_position. */ + public relay_log_position: string; + + /** Status file_position. */ + public file_position: string; + + /** Status file_relay_log_position. */ + public file_relay_log_position: string; + + /** Status master_server_id. */ + public master_server_id: number; + + /** Status master_uuid. */ + public master_uuid: string; + + /** + * Creates a new Status instance using the specified properties. + * @param [properties] Properties to set + * @returns Status instance + */ + public static create(properties?: replicationdata.IStatus): replicationdata.Status; + + /** + * Encodes the specified Status message. Does not implicitly {@link replicationdata.Status.verify|verify} messages. + * @param message Status message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: replicationdata.IStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Status message, length delimited. Does not implicitly {@link replicationdata.Status.verify|verify} messages. + * @param message Status message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: replicationdata.IStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Status message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Status + * @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): replicationdata.Status; + + /** + * Decodes a Status message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Status + * @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)): replicationdata.Status; + + /** + * Verifies a Status 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 Status message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Status + */ + public static fromObject(object: { [k: string]: any }): replicationdata.Status; + + /** + * Creates a plain object from a Status message. Also converts values to other types if specified. + * @param message Status + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: replicationdata.Status, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Status to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a StopReplicationStatus. */ + interface IStopReplicationStatus { + + /** StopReplicationStatus before */ + before?: (replicationdata.IStatus|null); + + /** StopReplicationStatus after */ + after?: (replicationdata.IStatus|null); + } + + /** Represents a StopReplicationStatus. */ + class StopReplicationStatus implements IStopReplicationStatus { + + /** + * Constructs a new StopReplicationStatus. + * @param [properties] Properties to set + */ + constructor(properties?: replicationdata.IStopReplicationStatus); + + /** StopReplicationStatus before. */ + public before?: (replicationdata.IStatus|null); + + /** StopReplicationStatus after. */ + public after?: (replicationdata.IStatus|null); + + /** + * Creates a new StopReplicationStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns StopReplicationStatus instance + */ + public static create(properties?: replicationdata.IStopReplicationStatus): replicationdata.StopReplicationStatus; + + /** + * Encodes the specified StopReplicationStatus message. Does not implicitly {@link replicationdata.StopReplicationStatus.verify|verify} messages. + * @param message StopReplicationStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: replicationdata.IStopReplicationStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StopReplicationStatus message, length delimited. Does not implicitly {@link replicationdata.StopReplicationStatus.verify|verify} messages. + * @param message StopReplicationStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: replicationdata.IStopReplicationStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StopReplicationStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StopReplicationStatus + * @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): replicationdata.StopReplicationStatus; + + /** + * Decodes a StopReplicationStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StopReplicationStatus + * @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)): replicationdata.StopReplicationStatus; + + /** + * Verifies a StopReplicationStatus 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 StopReplicationStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StopReplicationStatus + */ + public static fromObject(object: { [k: string]: any }): replicationdata.StopReplicationStatus; + + /** + * Creates a plain object from a StopReplicationStatus message. Also converts values to other types if specified. + * @param message StopReplicationStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: replicationdata.StopReplicationStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StopReplicationStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** StopReplicationMode enum. */ + enum StopReplicationMode { + IOANDSQLTHREAD = 0, + IOTHREADONLY = 1 + } + + /** Properties of a MasterStatus. */ + interface IMasterStatus { + + /** MasterStatus position */ + position?: (string|null); + + /** MasterStatus file_position */ + file_position?: (string|null); + } + + /** Represents a MasterStatus. */ + class MasterStatus implements IMasterStatus { + + /** + * Constructs a new MasterStatus. + * @param [properties] Properties to set + */ + constructor(properties?: replicationdata.IMasterStatus); + + /** MasterStatus position. */ + public position: string; + + /** MasterStatus file_position. */ + public file_position: string; + + /** + * Creates a new MasterStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns MasterStatus instance + */ + public static create(properties?: replicationdata.IMasterStatus): replicationdata.MasterStatus; + + /** + * Encodes the specified MasterStatus message. Does not implicitly {@link replicationdata.MasterStatus.verify|verify} messages. + * @param message MasterStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: replicationdata.IMasterStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MasterStatus message, length delimited. Does not implicitly {@link replicationdata.MasterStatus.verify|verify} messages. + * @param message MasterStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: replicationdata.IMasterStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MasterStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MasterStatus + * @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): replicationdata.MasterStatus; + + /** + * Decodes a MasterStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MasterStatus + * @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)): replicationdata.MasterStatus; + + /** + * Verifies a MasterStatus 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 MasterStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MasterStatus + */ + public static fromObject(object: { [k: string]: any }): replicationdata.MasterStatus; + + /** + * Creates a plain object from a MasterStatus message. Also converts values to other types if specified. + * @param message MasterStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: replicationdata.MasterStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MasterStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } +} + +/** Namespace logutil. */ +export namespace logutil { + + /** Level enum. */ + enum Level { + INFO = 0, + WARNING = 1, + ERROR = 2, + CONSOLE = 3 + } + + /** Properties of an Event. */ + interface IEvent { + + /** Event time */ + time?: (vttime.ITime|null); + + /** Event level */ + level?: (logutil.Level|null); + + /** Event file */ + file?: (string|null); + + /** Event line */ + line?: (number|Long|null); + + /** Event value */ + value?: (string|null); + } + + /** Represents an Event. */ + class Event implements IEvent { + + /** + * Constructs a new Event. + * @param [properties] Properties to set + */ + constructor(properties?: logutil.IEvent); + + /** Event time. */ + public time?: (vttime.ITime|null); + + /** Event level. */ + public level: logutil.Level; + + /** Event file. */ + public file: string; + + /** Event line. */ + public line: (number|Long); + + /** Event value. */ + public value: string; + + /** + * Creates a new Event instance using the specified properties. + * @param [properties] Properties to set + * @returns Event instance + */ + public static create(properties?: logutil.IEvent): logutil.Event; + + /** + * Encodes the specified Event message. Does not implicitly {@link logutil.Event.verify|verify} messages. + * @param message Event message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: logutil.IEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Event message, length delimited. Does not implicitly {@link logutil.Event.verify|verify} messages. + * @param message Event message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: logutil.IEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Event message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Event + * @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): logutil.Event; + + /** + * Decodes an Event message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Event + * @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)): logutil.Event; + + /** + * Verifies an Event 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 an Event message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Event + */ + public static fromObject(object: { [k: string]: any }): logutil.Event; + + /** + * Creates a plain object from an Event message. Also converts values to other types if specified. + * @param message Event + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: logutil.Event, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Event to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } +} + +/** Namespace vtctldata. */ +export namespace vtctldata { + + /** Properties of an ExecuteVtctlCommandRequest. */ + interface IExecuteVtctlCommandRequest { + + /** ExecuteVtctlCommandRequest args */ + args?: (string[]|null); + + /** ExecuteVtctlCommandRequest action_timeout */ + action_timeout?: (number|Long|null); + } + + /** Represents an ExecuteVtctlCommandRequest. */ + class ExecuteVtctlCommandRequest implements IExecuteVtctlCommandRequest { + + /** + * Constructs a new ExecuteVtctlCommandRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IExecuteVtctlCommandRequest); + + /** ExecuteVtctlCommandRequest args. */ + public args: string[]; + + /** ExecuteVtctlCommandRequest action_timeout. */ + public action_timeout: (number|Long); + + /** + * Creates a new ExecuteVtctlCommandRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteVtctlCommandRequest instance + */ + public static create(properties?: vtctldata.IExecuteVtctlCommandRequest): vtctldata.ExecuteVtctlCommandRequest; + + /** + * Encodes the specified ExecuteVtctlCommandRequest message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. + * @param message ExecuteVtctlCommandRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IExecuteVtctlCommandRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecuteVtctlCommandRequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. + * @param message ExecuteVtctlCommandRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IExecuteVtctlCommandRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteVtctlCommandRequest + * @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): vtctldata.ExecuteVtctlCommandRequest; + + /** + * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteVtctlCommandRequest + * @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)): vtctldata.ExecuteVtctlCommandRequest; + + /** + * Verifies an ExecuteVtctlCommandRequest 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 an ExecuteVtctlCommandRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteVtctlCommandRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteVtctlCommandRequest; + + /** + * Creates a plain object from an ExecuteVtctlCommandRequest message. Also converts values to other types if specified. + * @param message ExecuteVtctlCommandRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ExecuteVtctlCommandRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecuteVtctlCommandRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an ExecuteVtctlCommandResponse. */ + interface IExecuteVtctlCommandResponse { + + /** ExecuteVtctlCommandResponse event */ + event?: (logutil.IEvent|null); + } + + /** Represents an ExecuteVtctlCommandResponse. */ + class ExecuteVtctlCommandResponse implements IExecuteVtctlCommandResponse { + + /** + * Constructs a new ExecuteVtctlCommandResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IExecuteVtctlCommandResponse); + + /** ExecuteVtctlCommandResponse event. */ + public event?: (logutil.IEvent|null); + + /** + * Creates a new ExecuteVtctlCommandResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteVtctlCommandResponse instance + */ + public static create(properties?: vtctldata.IExecuteVtctlCommandResponse): vtctldata.ExecuteVtctlCommandResponse; + + /** + * Encodes the specified ExecuteVtctlCommandResponse message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. + * @param message ExecuteVtctlCommandResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IExecuteVtctlCommandResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecuteVtctlCommandResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. + * @param message ExecuteVtctlCommandResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IExecuteVtctlCommandResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteVtctlCommandResponse + * @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): vtctldata.ExecuteVtctlCommandResponse; + + /** + * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteVtctlCommandResponse + * @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)): vtctldata.ExecuteVtctlCommandResponse; + + /** + * Verifies an ExecuteVtctlCommandResponse 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 an ExecuteVtctlCommandResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteVtctlCommandResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteVtctlCommandResponse; + + /** + * Creates a plain object from an ExecuteVtctlCommandResponse message. Also converts values to other types if specified. + * @param message ExecuteVtctlCommandResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ExecuteVtctlCommandResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecuteVtctlCommandResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ChangeTabletTypeRequest. */ + interface IChangeTabletTypeRequest { + + /** ChangeTabletTypeRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** ChangeTabletTypeRequest db_type */ + db_type?: (topodata.TabletType|null); + + /** ChangeTabletTypeRequest dry_run */ + dry_run?: (boolean|null); + } + + /** Represents a ChangeTabletTypeRequest. */ + class ChangeTabletTypeRequest implements IChangeTabletTypeRequest { + + /** + * Constructs a new ChangeTabletTypeRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IChangeTabletTypeRequest); + + /** ChangeTabletTypeRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** ChangeTabletTypeRequest db_type. */ + public db_type: topodata.TabletType; + + /** ChangeTabletTypeRequest dry_run. */ + public dry_run: boolean; + + /** + * Creates a new ChangeTabletTypeRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeTabletTypeRequest instance + */ + public static create(properties?: vtctldata.IChangeTabletTypeRequest): vtctldata.ChangeTabletTypeRequest; + + /** + * Encodes the specified ChangeTabletTypeRequest message. Does not implicitly {@link vtctldata.ChangeTabletTypeRequest.verify|verify} messages. + * @param message ChangeTabletTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IChangeTabletTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeTabletTypeRequest message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTypeRequest.verify|verify} messages. + * @param message ChangeTabletTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IChangeTabletTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeTabletTypeRequest + * @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): vtctldata.ChangeTabletTypeRequest; + + /** + * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeTabletTypeRequest + * @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)): vtctldata.ChangeTabletTypeRequest; + + /** + * Verifies a ChangeTabletTypeRequest 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 ChangeTabletTypeRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeTabletTypeRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTypeRequest; + + /** + * Creates a plain object from a ChangeTabletTypeRequest message. Also converts values to other types if specified. + * @param message ChangeTabletTypeRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ChangeTabletTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeTabletTypeRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ChangeTabletTypeResponse. */ + interface IChangeTabletTypeResponse { + + /** ChangeTabletTypeResponse before_tablet */ + before_tablet?: (topodata.ITablet|null); + + /** ChangeTabletTypeResponse after_tablet */ + after_tablet?: (topodata.ITablet|null); + + /** ChangeTabletTypeResponse was_dry_run */ + was_dry_run?: (boolean|null); + } + + /** Represents a ChangeTabletTypeResponse. */ + class ChangeTabletTypeResponse implements IChangeTabletTypeResponse { + + /** + * Constructs a new ChangeTabletTypeResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IChangeTabletTypeResponse); + + /** ChangeTabletTypeResponse before_tablet. */ + public before_tablet?: (topodata.ITablet|null); + + /** ChangeTabletTypeResponse after_tablet. */ + public after_tablet?: (topodata.ITablet|null); + + /** ChangeTabletTypeResponse was_dry_run. */ + public was_dry_run: boolean; + + /** + * Creates a new ChangeTabletTypeResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeTabletTypeResponse instance + */ + public static create(properties?: vtctldata.IChangeTabletTypeResponse): vtctldata.ChangeTabletTypeResponse; + + /** + * Encodes the specified ChangeTabletTypeResponse message. Does not implicitly {@link vtctldata.ChangeTabletTypeResponse.verify|verify} messages. + * @param message ChangeTabletTypeResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IChangeTabletTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeTabletTypeResponse message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTypeResponse.verify|verify} messages. + * @param message ChangeTabletTypeResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IChangeTabletTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeTabletTypeResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeTabletTypeResponse + * @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): vtctldata.ChangeTabletTypeResponse; + + /** + * Decodes a ChangeTabletTypeResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeTabletTypeResponse + * @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)): vtctldata.ChangeTabletTypeResponse; + + /** + * Verifies a ChangeTabletTypeResponse 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 ChangeTabletTypeResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeTabletTypeResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTypeResponse; + + /** + * Creates a plain object from a ChangeTabletTypeResponse message. Also converts values to other types if specified. + * @param message ChangeTabletTypeResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ChangeTabletTypeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeTabletTypeResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreateKeyspaceRequest. */ + interface ICreateKeyspaceRequest { + + /** CreateKeyspaceRequest name */ + name?: (string|null); + + /** CreateKeyspaceRequest force */ + force?: (boolean|null); + + /** CreateKeyspaceRequest allow_empty_v_schema */ + allow_empty_v_schema?: (boolean|null); + + /** CreateKeyspaceRequest sharding_column_name */ + sharding_column_name?: (string|null); + + /** CreateKeyspaceRequest sharding_column_type */ + sharding_column_type?: (topodata.KeyspaceIdType|null); + + /** CreateKeyspaceRequest served_froms */ + served_froms?: (topodata.Keyspace.IServedFrom[]|null); + + /** CreateKeyspaceRequest type */ + type?: (topodata.KeyspaceType|null); + + /** CreateKeyspaceRequest base_keyspace */ + base_keyspace?: (string|null); + + /** CreateKeyspaceRequest snapshot_time */ + snapshot_time?: (vttime.ITime|null); + } + + /** Represents a CreateKeyspaceRequest. */ + class CreateKeyspaceRequest implements ICreateKeyspaceRequest { + + /** + * Constructs a new CreateKeyspaceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICreateKeyspaceRequest); + + /** CreateKeyspaceRequest name. */ + public name: string; + + /** CreateKeyspaceRequest force. */ + public force: boolean; + + /** CreateKeyspaceRequest allow_empty_v_schema. */ + public allow_empty_v_schema: boolean; + + /** CreateKeyspaceRequest sharding_column_name. */ + public sharding_column_name: string; + + /** CreateKeyspaceRequest sharding_column_type. */ + public sharding_column_type: topodata.KeyspaceIdType; + + /** CreateKeyspaceRequest served_froms. */ + public served_froms: topodata.Keyspace.IServedFrom[]; + + /** CreateKeyspaceRequest type. */ + public type: topodata.KeyspaceType; + + /** CreateKeyspaceRequest base_keyspace. */ + public base_keyspace: string; + + /** CreateKeyspaceRequest snapshot_time. */ + public snapshot_time?: (vttime.ITime|null); + + /** + * Creates a new CreateKeyspaceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateKeyspaceRequest instance + */ + public static create(properties?: vtctldata.ICreateKeyspaceRequest): vtctldata.CreateKeyspaceRequest; + + /** + * Encodes the specified CreateKeyspaceRequest message. Does not implicitly {@link vtctldata.CreateKeyspaceRequest.verify|verify} messages. + * @param message CreateKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ICreateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.CreateKeyspaceRequest.verify|verify} messages. + * @param message CreateKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ICreateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateKeyspaceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateKeyspaceRequest + * @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): vtctldata.CreateKeyspaceRequest; + + /** + * Decodes a CreateKeyspaceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateKeyspaceRequest + * @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)): vtctldata.CreateKeyspaceRequest; + + /** + * Verifies a CreateKeyspaceRequest 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 CreateKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateKeyspaceRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.CreateKeyspaceRequest; + + /** + * Creates a plain object from a CreateKeyspaceRequest message. Also converts values to other types if specified. + * @param message CreateKeyspaceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.CreateKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateKeyspaceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreateKeyspaceResponse. */ + interface ICreateKeyspaceResponse { + + /** CreateKeyspaceResponse keyspace */ + keyspace?: (vtctldata.IKeyspace|null); + } + + /** Represents a CreateKeyspaceResponse. */ + class CreateKeyspaceResponse implements ICreateKeyspaceResponse { + + /** + * Constructs a new CreateKeyspaceResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICreateKeyspaceResponse); + + /** CreateKeyspaceResponse keyspace. */ + public keyspace?: (vtctldata.IKeyspace|null); + + /** + * Creates a new CreateKeyspaceResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateKeyspaceResponse instance + */ + public static create(properties?: vtctldata.ICreateKeyspaceResponse): vtctldata.CreateKeyspaceResponse; + + /** + * Encodes the specified CreateKeyspaceResponse message. Does not implicitly {@link vtctldata.CreateKeyspaceResponse.verify|verify} messages. + * @param message CreateKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ICreateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.CreateKeyspaceResponse.verify|verify} messages. + * @param message CreateKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ICreateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateKeyspaceResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateKeyspaceResponse + * @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): vtctldata.CreateKeyspaceResponse; + + /** + * Decodes a CreateKeyspaceResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateKeyspaceResponse + * @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)): vtctldata.CreateKeyspaceResponse; + + /** + * Verifies a CreateKeyspaceResponse 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 CreateKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateKeyspaceResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.CreateKeyspaceResponse; + + /** + * Creates a plain object from a CreateKeyspaceResponse message. Also converts values to other types if specified. + * @param message CreateKeyspaceResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.CreateKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateKeyspaceResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreateShardRequest. */ + interface ICreateShardRequest { + + /** CreateShardRequest keyspace */ + keyspace?: (string|null); + + /** CreateShardRequest shard_name */ + shard_name?: (string|null); + + /** CreateShardRequest force */ + force?: (boolean|null); + + /** CreateShardRequest include_parent */ + include_parent?: (boolean|null); + } + + /** Represents a CreateShardRequest. */ + class CreateShardRequest implements ICreateShardRequest { + + /** + * Constructs a new CreateShardRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICreateShardRequest); + + /** CreateShardRequest keyspace. */ + public keyspace: string; + + /** CreateShardRequest shard_name. */ + public shard_name: string; + + /** CreateShardRequest force. */ + public force: boolean; + + /** CreateShardRequest include_parent. */ + public include_parent: boolean; + + /** + * Creates a new CreateShardRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateShardRequest instance + */ + public static create(properties?: vtctldata.ICreateShardRequest): vtctldata.CreateShardRequest; + + /** + * Encodes the specified CreateShardRequest message. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. + * @param message CreateShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ICreateShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateShardRequest message, length delimited. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. + * @param message CreateShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ICreateShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateShardRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateShardRequest + * @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): vtctldata.CreateShardRequest; + + /** + * Decodes a CreateShardRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateShardRequest + * @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)): vtctldata.CreateShardRequest; + + /** + * Verifies a CreateShardRequest 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 CreateShardRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateShardRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.CreateShardRequest; + + /** + * Creates a plain object from a CreateShardRequest message. Also converts values to other types if specified. + * @param message CreateShardRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.CreateShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateShardRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreateShardResponse. */ + interface ICreateShardResponse { + + /** CreateShardResponse keyspace */ + keyspace?: (vtctldata.IKeyspace|null); + + /** CreateShardResponse shard */ + shard?: (vtctldata.IShard|null); + + /** CreateShardResponse shard_already_exists */ + shard_already_exists?: (boolean|null); + } + + /** Represents a CreateShardResponse. */ + class CreateShardResponse implements ICreateShardResponse { + + /** + * Constructs a new CreateShardResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICreateShardResponse); + + /** CreateShardResponse keyspace. */ + public keyspace?: (vtctldata.IKeyspace|null); + + /** CreateShardResponse shard. */ + public shard?: (vtctldata.IShard|null); + + /** CreateShardResponse shard_already_exists. */ + public shard_already_exists: boolean; + + /** + * Creates a new CreateShardResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateShardResponse instance + */ + public static create(properties?: vtctldata.ICreateShardResponse): vtctldata.CreateShardResponse; /** - * Encodes the specified Event message. Does not implicitly {@link logutil.Event.verify|verify} messages. - * @param message Event message or plain object to encode + * Encodes the specified CreateShardResponse message. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. + * @param message CreateShardResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: logutil.IEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ICreateShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Event message, length delimited. Does not implicitly {@link logutil.Event.verify|verify} messages. - * @param message Event message or plain object to encode + * Encodes the specified CreateShardResponse message, length delimited. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. + * @param message CreateShardResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: logutil.IEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ICreateShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Event message from the specified reader or buffer. + * Decodes a CreateShardResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Event + * @returns CreateShardResponse * @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): logutil.Event; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateShardResponse; /** - * Decodes an Event message from the specified reader or buffer, length delimited. + * Decodes a CreateShardResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Event + * @returns CreateShardResponse * @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)): logutil.Event; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateShardResponse; /** - * Verifies an Event message. + * Verifies a CreateShardResponse 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 an Event message from a plain object. Also converts values to their respective internal types. + * Creates a CreateShardResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Event + * @returns CreateShardResponse */ - public static fromObject(object: { [k: string]: any }): logutil.Event; + public static fromObject(object: { [k: string]: any }): vtctldata.CreateShardResponse; /** - * Creates a plain object from an Event message. Also converts values to other types if specified. - * @param message Event + * Creates a plain object from a CreateShardResponse message. Also converts values to other types if specified. + * @param message CreateShardResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: logutil.Event, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.CreateShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Event to JSON. + * Converts this CreateShardResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } -} -/** Namespace vtctldata. */ -export namespace vtctldata { - - /** Properties of an ExecuteVtctlCommandRequest. */ - interface IExecuteVtctlCommandRequest { + /** Properties of a DeleteKeyspaceRequest. */ + interface IDeleteKeyspaceRequest { - /** ExecuteVtctlCommandRequest args */ - args?: (string[]|null); + /** DeleteKeyspaceRequest keyspace */ + keyspace?: (string|null); - /** ExecuteVtctlCommandRequest action_timeout */ - action_timeout?: (number|Long|null); + /** DeleteKeyspaceRequest recursive */ + recursive?: (boolean|null); } - /** Represents an ExecuteVtctlCommandRequest. */ - class ExecuteVtctlCommandRequest implements IExecuteVtctlCommandRequest { + /** Represents a DeleteKeyspaceRequest. */ + class DeleteKeyspaceRequest implements IDeleteKeyspaceRequest { /** - * Constructs a new ExecuteVtctlCommandRequest. + * Constructs a new DeleteKeyspaceRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IExecuteVtctlCommandRequest); + constructor(properties?: vtctldata.IDeleteKeyspaceRequest); - /** ExecuteVtctlCommandRequest args. */ - public args: string[]; + /** DeleteKeyspaceRequest keyspace. */ + public keyspace: string; - /** ExecuteVtctlCommandRequest action_timeout. */ - public action_timeout: (number|Long); + /** DeleteKeyspaceRequest recursive. */ + public recursive: boolean; /** - * Creates a new ExecuteVtctlCommandRequest instance using the specified properties. + * Creates a new DeleteKeyspaceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExecuteVtctlCommandRequest instance + * @returns DeleteKeyspaceRequest instance */ - public static create(properties?: vtctldata.IExecuteVtctlCommandRequest): vtctldata.ExecuteVtctlCommandRequest; + public static create(properties?: vtctldata.IDeleteKeyspaceRequest): vtctldata.DeleteKeyspaceRequest; /** - * Encodes the specified ExecuteVtctlCommandRequest message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. - * @param message ExecuteVtctlCommandRequest message or plain object to encode + * Encodes the specified DeleteKeyspaceRequest message. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. + * @param message DeleteKeyspaceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IExecuteVtctlCommandRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IDeleteKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExecuteVtctlCommandRequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. - * @param message ExecuteVtctlCommandRequest message or plain object to encode + * Encodes the specified DeleteKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. + * @param message DeleteKeyspaceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IExecuteVtctlCommandRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IDeleteKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer. + * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExecuteVtctlCommandRequest + * @returns DeleteKeyspaceRequest * @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): vtctldata.ExecuteVtctlCommandRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteKeyspaceRequest; /** - * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExecuteVtctlCommandRequest + * @returns DeleteKeyspaceRequest * @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)): vtctldata.ExecuteVtctlCommandRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteKeyspaceRequest; /** - * Verifies an ExecuteVtctlCommandRequest message. + * Verifies a DeleteKeyspaceRequest 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 an ExecuteVtctlCommandRequest 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. * @param object Plain object - * @returns ExecuteVtctlCommandRequest + * @returns DeleteKeyspaceRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteVtctlCommandRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteKeyspaceRequest; /** - * Creates a plain object from an ExecuteVtctlCommandRequest message. Also converts values to other types if specified. - * @param message ExecuteVtctlCommandRequest + * Creates a plain object from a DeleteKeyspaceRequest message. Also converts values to other types if specified. + * @param message DeleteKeyspaceRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.ExecuteVtctlCommandRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.DeleteKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExecuteVtctlCommandRequest to JSON. + * Converts this DeleteKeyspaceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ExecuteVtctlCommandResponse. */ - interface IExecuteVtctlCommandResponse { - - /** ExecuteVtctlCommandResponse event */ - event?: (logutil.IEvent|null); + /** Properties of a DeleteKeyspaceResponse. */ + interface IDeleteKeyspaceResponse { } - /** Represents an ExecuteVtctlCommandResponse. */ - class ExecuteVtctlCommandResponse implements IExecuteVtctlCommandResponse { + /** Represents a DeleteKeyspaceResponse. */ + class DeleteKeyspaceResponse implements IDeleteKeyspaceResponse { /** - * Constructs a new ExecuteVtctlCommandResponse. + * Constructs a new DeleteKeyspaceResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IExecuteVtctlCommandResponse); - - /** ExecuteVtctlCommandResponse event. */ - public event?: (logutil.IEvent|null); + constructor(properties?: vtctldata.IDeleteKeyspaceResponse); /** - * Creates a new ExecuteVtctlCommandResponse instance using the specified properties. + * Creates a new DeleteKeyspaceResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ExecuteVtctlCommandResponse instance + * @returns DeleteKeyspaceResponse instance */ - public static create(properties?: vtctldata.IExecuteVtctlCommandResponse): vtctldata.ExecuteVtctlCommandResponse; + public static create(properties?: vtctldata.IDeleteKeyspaceResponse): vtctldata.DeleteKeyspaceResponse; /** - * Encodes the specified ExecuteVtctlCommandResponse message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. - * @param message ExecuteVtctlCommandResponse message or plain object to encode + * Encodes the specified DeleteKeyspaceResponse message. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. + * @param message DeleteKeyspaceResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IExecuteVtctlCommandResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IDeleteKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExecuteVtctlCommandResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. - * @param message ExecuteVtctlCommandResponse message or plain object to encode + * Encodes the specified DeleteKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. + * @param message DeleteKeyspaceResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IExecuteVtctlCommandResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IDeleteKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer. + * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExecuteVtctlCommandResponse + * @returns DeleteKeyspaceResponse * @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): vtctldata.ExecuteVtctlCommandResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteKeyspaceResponse; /** - * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExecuteVtctlCommandResponse + * @returns DeleteKeyspaceResponse * @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)): vtctldata.ExecuteVtctlCommandResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteKeyspaceResponse; /** - * Verifies an ExecuteVtctlCommandResponse message. + * Verifies a DeleteKeyspaceResponse 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 an ExecuteVtctlCommandResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteKeyspaceResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExecuteVtctlCommandResponse + * @returns DeleteKeyspaceResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteVtctlCommandResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteKeyspaceResponse; /** - * Creates a plain object from an ExecuteVtctlCommandResponse message. Also converts values to other types if specified. - * @param message ExecuteVtctlCommandResponse + * Creates a plain object from a DeleteKeyspaceResponse message. Also converts values to other types if specified. + * @param message DeleteKeyspaceResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.ExecuteVtctlCommandResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.DeleteKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExecuteVtctlCommandResponse to JSON. + * Converts this DeleteKeyspaceResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ChangeTabletTypeRequest. */ - interface IChangeTabletTypeRequest { + /** Properties of a DeleteShardsRequest. */ + interface IDeleteShardsRequest { - /** ChangeTabletTypeRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); + /** DeleteShardsRequest shards */ + shards?: (vtctldata.IShard[]|null); - /** ChangeTabletTypeRequest db_type */ - db_type?: (topodata.TabletType|null); + /** DeleteShardsRequest recursive */ + recursive?: (boolean|null); - /** ChangeTabletTypeRequest dry_run */ - dry_run?: (boolean|null); + /** DeleteShardsRequest even_if_serving */ + even_if_serving?: (boolean|null); } - /** Represents a ChangeTabletTypeRequest. */ - class ChangeTabletTypeRequest implements IChangeTabletTypeRequest { + /** Represents a DeleteShardsRequest. */ + class DeleteShardsRequest implements IDeleteShardsRequest { /** - * Constructs a new ChangeTabletTypeRequest. + * Constructs a new DeleteShardsRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IChangeTabletTypeRequest); + constructor(properties?: vtctldata.IDeleteShardsRequest); - /** ChangeTabletTypeRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); + /** DeleteShardsRequest shards. */ + public shards: vtctldata.IShard[]; - /** ChangeTabletTypeRequest db_type. */ - public db_type: topodata.TabletType; + /** DeleteShardsRequest recursive. */ + public recursive: boolean; - /** ChangeTabletTypeRequest dry_run. */ - public dry_run: boolean; + /** DeleteShardsRequest even_if_serving. */ + public even_if_serving: boolean; /** - * Creates a new ChangeTabletTypeRequest instance using the specified properties. + * Creates a new DeleteShardsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ChangeTabletTypeRequest instance + * @returns DeleteShardsRequest instance */ - public static create(properties?: vtctldata.IChangeTabletTypeRequest): vtctldata.ChangeTabletTypeRequest; + public static create(properties?: vtctldata.IDeleteShardsRequest): vtctldata.DeleteShardsRequest; /** - * Encodes the specified ChangeTabletTypeRequest message. Does not implicitly {@link vtctldata.ChangeTabletTypeRequest.verify|verify} messages. - * @param message ChangeTabletTypeRequest message or plain object to encode + * Encodes the specified DeleteShardsRequest message. Does not implicitly {@link vtctldata.DeleteShardsRequest.verify|verify} messages. + * @param message DeleteShardsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IChangeTabletTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IDeleteShardsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ChangeTabletTypeRequest message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTypeRequest.verify|verify} messages. - * @param message ChangeTabletTypeRequest message or plain object to encode + * Encodes the specified DeleteShardsRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteShardsRequest.verify|verify} messages. + * @param message DeleteShardsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IChangeTabletTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IDeleteShardsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer. + * Decodes a DeleteShardsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ChangeTabletTypeRequest + * @returns DeleteShardsRequest * @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): vtctldata.ChangeTabletTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteShardsRequest; /** - * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteShardsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ChangeTabletTypeRequest + * @returns DeleteShardsRequest * @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)): vtctldata.ChangeTabletTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteShardsRequest; /** - * Verifies a ChangeTabletTypeRequest message. + * Verifies a DeleteShardsRequest 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 ChangeTabletTypeRequest 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. * @param object Plain object - * @returns ChangeTabletTypeRequest + * @returns DeleteShardsRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTypeRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteShardsRequest; /** - * Creates a plain object from a ChangeTabletTypeRequest message. Also converts values to other types if specified. - * @param message ChangeTabletTypeRequest + * Creates a plain object from a DeleteShardsRequest message. Also converts values to other types if specified. + * @param message DeleteShardsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.ChangeTabletTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.DeleteShardsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ChangeTabletTypeRequest to JSON. + * Converts this DeleteShardsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ChangeTabletTypeResponse. */ - interface IChangeTabletTypeResponse { - - /** ChangeTabletTypeResponse before_tablet */ - before_tablet?: (topodata.ITablet|null); - - /** ChangeTabletTypeResponse after_tablet */ - after_tablet?: (topodata.ITablet|null); - - /** ChangeTabletTypeResponse was_dry_run */ - was_dry_run?: (boolean|null); + /** Properties of a DeleteShardsResponse. */ + interface IDeleteShardsResponse { } - /** Represents a ChangeTabletTypeResponse. */ - class ChangeTabletTypeResponse implements IChangeTabletTypeResponse { + /** Represents a DeleteShardsResponse. */ + class DeleteShardsResponse implements IDeleteShardsResponse { /** - * Constructs a new ChangeTabletTypeResponse. + * Constructs a new DeleteShardsResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IChangeTabletTypeResponse); - - /** ChangeTabletTypeResponse before_tablet. */ - public before_tablet?: (topodata.ITablet|null); - - /** ChangeTabletTypeResponse after_tablet. */ - public after_tablet?: (topodata.ITablet|null); - - /** ChangeTabletTypeResponse was_dry_run. */ - public was_dry_run: boolean; + constructor(properties?: vtctldata.IDeleteShardsResponse); /** - * Creates a new ChangeTabletTypeResponse instance using the specified properties. + * Creates a new DeleteShardsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ChangeTabletTypeResponse instance + * @returns DeleteShardsResponse instance */ - public static create(properties?: vtctldata.IChangeTabletTypeResponse): vtctldata.ChangeTabletTypeResponse; + public static create(properties?: vtctldata.IDeleteShardsResponse): vtctldata.DeleteShardsResponse; /** - * Encodes the specified ChangeTabletTypeResponse message. Does not implicitly {@link vtctldata.ChangeTabletTypeResponse.verify|verify} messages. - * @param message ChangeTabletTypeResponse message or plain object to encode + * Encodes the specified DeleteShardsResponse message. Does not implicitly {@link vtctldata.DeleteShardsResponse.verify|verify} messages. + * @param message DeleteShardsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IChangeTabletTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IDeleteShardsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ChangeTabletTypeResponse message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTypeResponse.verify|verify} messages. - * @param message ChangeTabletTypeResponse message or plain object to encode + * Encodes the specified DeleteShardsResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteShardsResponse.verify|verify} messages. + * @param message DeleteShardsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IChangeTabletTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IDeleteShardsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ChangeTabletTypeResponse message from the specified reader or buffer. + * Decodes a DeleteShardsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ChangeTabletTypeResponse + * @returns DeleteShardsResponse * @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): vtctldata.ChangeTabletTypeResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteShardsResponse; /** - * Decodes a ChangeTabletTypeResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteShardsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ChangeTabletTypeResponse + * @returns DeleteShardsResponse * @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)): vtctldata.ChangeTabletTypeResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteShardsResponse; /** - * Verifies a ChangeTabletTypeResponse message. + * Verifies a DeleteShardsResponse 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 ChangeTabletTypeResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteShardsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ChangeTabletTypeResponse + * @returns DeleteShardsResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTypeResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteShardsResponse; /** - * Creates a plain object from a ChangeTabletTypeResponse message. Also converts values to other types if specified. - * @param message ChangeTabletTypeResponse + * Creates a plain object from a DeleteShardsResponse message. Also converts values to other types if specified. + * @param message DeleteShardsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.ChangeTabletTypeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.DeleteShardsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ChangeTabletTypeResponse to JSON. + * Converts this DeleteShardsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateKeyspaceRequest. */ - interface ICreateKeyspaceRequest { - - /** CreateKeyspaceRequest name */ - name?: (string|null); - - /** CreateKeyspaceRequest force */ - force?: (boolean|null); - - /** CreateKeyspaceRequest allow_empty_v_schema */ - allow_empty_v_schema?: (boolean|null); - - /** CreateKeyspaceRequest sharding_column_name */ - sharding_column_name?: (string|null); - - /** CreateKeyspaceRequest sharding_column_type */ - sharding_column_type?: (topodata.KeyspaceIdType|null); - - /** CreateKeyspaceRequest served_froms */ - served_froms?: (topodata.Keyspace.IServedFrom[]|null); - - /** CreateKeyspaceRequest type */ - type?: (topodata.KeyspaceType|null); + /** Properties of a DeleteTabletsRequest. */ + interface IDeleteTabletsRequest { - /** CreateKeyspaceRequest base_keyspace */ - base_keyspace?: (string|null); + /** DeleteTabletsRequest tablet_aliases */ + tablet_aliases?: (topodata.ITabletAlias[]|null); - /** CreateKeyspaceRequest snapshot_time */ - snapshot_time?: (vttime.ITime|null); + /** DeleteTabletsRequest allow_primary */ + allow_primary?: (boolean|null); } - /** Represents a CreateKeyspaceRequest. */ - class CreateKeyspaceRequest implements ICreateKeyspaceRequest { + /** Represents a DeleteTabletsRequest. */ + class DeleteTabletsRequest implements IDeleteTabletsRequest { /** - * Constructs a new CreateKeyspaceRequest. + * Constructs a new DeleteTabletsRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ICreateKeyspaceRequest); - - /** CreateKeyspaceRequest name. */ - public name: string; - - /** CreateKeyspaceRequest force. */ - public force: boolean; - - /** CreateKeyspaceRequest allow_empty_v_schema. */ - public allow_empty_v_schema: boolean; - - /** CreateKeyspaceRequest sharding_column_name. */ - public sharding_column_name: string; - - /** CreateKeyspaceRequest sharding_column_type. */ - public sharding_column_type: topodata.KeyspaceIdType; - - /** CreateKeyspaceRequest served_froms. */ - public served_froms: topodata.Keyspace.IServedFrom[]; - - /** CreateKeyspaceRequest type. */ - public type: topodata.KeyspaceType; + constructor(properties?: vtctldata.IDeleteTabletsRequest); - /** CreateKeyspaceRequest base_keyspace. */ - public base_keyspace: string; + /** DeleteTabletsRequest tablet_aliases. */ + public tablet_aliases: topodata.ITabletAlias[]; - /** CreateKeyspaceRequest snapshot_time. */ - public snapshot_time?: (vttime.ITime|null); + /** DeleteTabletsRequest allow_primary. */ + public allow_primary: boolean; /** - * Creates a new CreateKeyspaceRequest instance using the specified properties. + * Creates a new DeleteTabletsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateKeyspaceRequest instance + * @returns DeleteTabletsRequest instance */ - public static create(properties?: vtctldata.ICreateKeyspaceRequest): vtctldata.CreateKeyspaceRequest; + public static create(properties?: vtctldata.IDeleteTabletsRequest): vtctldata.DeleteTabletsRequest; /** - * Encodes the specified CreateKeyspaceRequest message. Does not implicitly {@link vtctldata.CreateKeyspaceRequest.verify|verify} messages. - * @param message CreateKeyspaceRequest message or plain object to encode + * Encodes the specified DeleteTabletsRequest message. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. + * @param message DeleteTabletsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.ICreateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IDeleteTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.CreateKeyspaceRequest.verify|verify} messages. - * @param message CreateKeyspaceRequest message or plain object to encode + * Encodes the specified DeleteTabletsRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. + * @param message DeleteTabletsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.ICreateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IDeleteTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateKeyspaceRequest message from the specified reader or buffer. + * Decodes a DeleteTabletsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateKeyspaceRequest + * @returns DeleteTabletsRequest * @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): vtctldata.CreateKeyspaceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteTabletsRequest; /** - * Decodes a CreateKeyspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteTabletsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateKeyspaceRequest + * @returns DeleteTabletsRequest * @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)): vtctldata.CreateKeyspaceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteTabletsRequest; /** - * Verifies a CreateKeyspaceRequest message. + * Verifies a DeleteTabletsRequest 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 CreateKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteTabletsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateKeyspaceRequest + * @returns DeleteTabletsRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.CreateKeyspaceRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteTabletsRequest; /** - * Creates a plain object from a CreateKeyspaceRequest message. Also converts values to other types if specified. - * @param message CreateKeyspaceRequest + * Creates a plain object from a DeleteTabletsRequest message. Also converts values to other types if specified. + * @param message DeleteTabletsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.CreateKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.DeleteTabletsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateKeyspaceRequest to JSON. + * Converts this DeleteTabletsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateKeyspaceResponse. */ - interface ICreateKeyspaceResponse { - - /** CreateKeyspaceResponse keyspace */ - keyspace?: (vtctldata.IKeyspace|null); + /** Properties of a DeleteTabletsResponse. */ + interface IDeleteTabletsResponse { } - /** Represents a CreateKeyspaceResponse. */ - class CreateKeyspaceResponse implements ICreateKeyspaceResponse { + /** Represents a DeleteTabletsResponse. */ + class DeleteTabletsResponse implements IDeleteTabletsResponse { /** - * Constructs a new CreateKeyspaceResponse. + * Constructs a new DeleteTabletsResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ICreateKeyspaceResponse); - - /** CreateKeyspaceResponse keyspace. */ - public keyspace?: (vtctldata.IKeyspace|null); + constructor(properties?: vtctldata.IDeleteTabletsResponse); /** - * Creates a new CreateKeyspaceResponse instance using the specified properties. + * Creates a new DeleteTabletsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateKeyspaceResponse instance + * @returns DeleteTabletsResponse instance */ - public static create(properties?: vtctldata.ICreateKeyspaceResponse): vtctldata.CreateKeyspaceResponse; + public static create(properties?: vtctldata.IDeleteTabletsResponse): vtctldata.DeleteTabletsResponse; /** - * Encodes the specified CreateKeyspaceResponse message. Does not implicitly {@link vtctldata.CreateKeyspaceResponse.verify|verify} messages. - * @param message CreateKeyspaceResponse message or plain object to encode + * Encodes the specified DeleteTabletsResponse message. Does not implicitly {@link vtctldata.DeleteTabletsResponse.verify|verify} messages. + * @param message DeleteTabletsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.ICreateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IDeleteTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.CreateKeyspaceResponse.verify|verify} messages. - * @param message CreateKeyspaceResponse message or plain object to encode + * Encodes the specified DeleteTabletsResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteTabletsResponse.verify|verify} messages. + * @param message DeleteTabletsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.ICreateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IDeleteTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateKeyspaceResponse message from the specified reader or buffer. + * Decodes a DeleteTabletsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateKeyspaceResponse + * @returns DeleteTabletsResponse * @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): vtctldata.CreateKeyspaceResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteTabletsResponse; /** - * Decodes a CreateKeyspaceResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteTabletsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateKeyspaceResponse + * @returns DeleteTabletsResponse * @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)): vtctldata.CreateKeyspaceResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteTabletsResponse; /** - * Verifies a CreateKeyspaceResponse message. + * Verifies a DeleteTabletsResponse 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 CreateKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteTabletsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateKeyspaceResponse + * @returns DeleteTabletsResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.CreateKeyspaceResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteTabletsResponse; /** - * Creates a plain object from a CreateKeyspaceResponse message. Also converts values to other types if specified. - * @param message CreateKeyspaceResponse + * Creates a plain object from a DeleteTabletsResponse message. Also converts values to other types if specified. + * @param message DeleteTabletsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.CreateKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.DeleteTabletsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateKeyspaceResponse to JSON. + * Converts this DeleteTabletsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateShardRequest. */ - interface ICreateShardRequest { + /** Properties of an EmergencyReparentShardRequest. */ + interface IEmergencyReparentShardRequest { - /** CreateShardRequest keyspace */ + /** EmergencyReparentShardRequest keyspace */ keyspace?: (string|null); - /** CreateShardRequest shard_name */ - shard_name?: (string|null); + /** EmergencyReparentShardRequest shard */ + shard?: (string|null); - /** CreateShardRequest force */ - force?: (boolean|null); + /** EmergencyReparentShardRequest new_primary */ + new_primary?: (topodata.ITabletAlias|null); - /** CreateShardRequest include_parent */ - include_parent?: (boolean|null); + /** EmergencyReparentShardRequest ignore_replicas */ + ignore_replicas?: (topodata.ITabletAlias[]|null); + + /** EmergencyReparentShardRequest wait_replicas_timeout */ + wait_replicas_timeout?: (vttime.IDuration|null); } - /** Represents a CreateShardRequest. */ - class CreateShardRequest implements ICreateShardRequest { + /** Represents an EmergencyReparentShardRequest. */ + class EmergencyReparentShardRequest implements IEmergencyReparentShardRequest { /** - * Constructs a new CreateShardRequest. + * Constructs a new EmergencyReparentShardRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ICreateShardRequest); + constructor(properties?: vtctldata.IEmergencyReparentShardRequest); - /** CreateShardRequest keyspace. */ + /** EmergencyReparentShardRequest keyspace. */ public keyspace: string; - /** CreateShardRequest shard_name. */ - public shard_name: string; + /** EmergencyReparentShardRequest shard. */ + public shard: string; - /** CreateShardRequest force. */ - public force: boolean; + /** EmergencyReparentShardRequest new_primary. */ + public new_primary?: (topodata.ITabletAlias|null); - /** CreateShardRequest include_parent. */ - public include_parent: boolean; + /** EmergencyReparentShardRequest ignore_replicas. */ + public ignore_replicas: topodata.ITabletAlias[]; + + /** EmergencyReparentShardRequest wait_replicas_timeout. */ + public wait_replicas_timeout?: (vttime.IDuration|null); /** - * Creates a new CreateShardRequest instance using the specified properties. + * Creates a new EmergencyReparentShardRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateShardRequest instance + * @returns EmergencyReparentShardRequest instance */ - public static create(properties?: vtctldata.ICreateShardRequest): vtctldata.CreateShardRequest; + public static create(properties?: vtctldata.IEmergencyReparentShardRequest): vtctldata.EmergencyReparentShardRequest; /** - * Encodes the specified CreateShardRequest message. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. - * @param message CreateShardRequest message or plain object to encode + * Encodes the specified EmergencyReparentShardRequest message. Does not implicitly {@link vtctldata.EmergencyReparentShardRequest.verify|verify} messages. + * @param message EmergencyReparentShardRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.ICreateShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IEmergencyReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateShardRequest message, length delimited. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. - * @param message CreateShardRequest message or plain object to encode + * Encodes the specified EmergencyReparentShardRequest message, length delimited. Does not implicitly {@link vtctldata.EmergencyReparentShardRequest.verify|verify} messages. + * @param message EmergencyReparentShardRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.ICreateShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IEmergencyReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateShardRequest message from the specified reader or buffer. + * Decodes an EmergencyReparentShardRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateShardRequest + * @returns EmergencyReparentShardRequest * @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): vtctldata.CreateShardRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.EmergencyReparentShardRequest; /** - * Decodes a CreateShardRequest message from the specified reader or buffer, length delimited. + * Decodes an EmergencyReparentShardRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateShardRequest + * @returns EmergencyReparentShardRequest * @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)): vtctldata.CreateShardRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.EmergencyReparentShardRequest; /** - * Verifies a CreateShardRequest message. + * Verifies an EmergencyReparentShardRequest 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 CreateShardRequest message from a plain object. Also converts values to their respective internal types. + * Creates an EmergencyReparentShardRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateShardRequest + * @returns EmergencyReparentShardRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.CreateShardRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.EmergencyReparentShardRequest; /** - * Creates a plain object from a CreateShardRequest message. Also converts values to other types if specified. - * @param message CreateShardRequest + * Creates a plain object from an EmergencyReparentShardRequest message. Also converts values to other types if specified. + * @param message EmergencyReparentShardRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.CreateShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.EmergencyReparentShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateShardRequest to JSON. + * Converts this EmergencyReparentShardRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateShardResponse. */ - interface ICreateShardResponse { + /** Properties of an EmergencyReparentShardResponse. */ + interface IEmergencyReparentShardResponse { - /** CreateShardResponse keyspace */ - keyspace?: (vtctldata.IKeyspace|null); + /** EmergencyReparentShardResponse keyspace */ + keyspace?: (string|null); - /** CreateShardResponse shard */ - shard?: (vtctldata.IShard|null); + /** EmergencyReparentShardResponse shard */ + shard?: (string|null); - /** CreateShardResponse shard_already_exists */ - shard_already_exists?: (boolean|null); + /** EmergencyReparentShardResponse promoted_primary */ + promoted_primary?: (topodata.ITabletAlias|null); + + /** EmergencyReparentShardResponse events */ + events?: (logutil.IEvent[]|null); } - /** Represents a CreateShardResponse. */ - class CreateShardResponse implements ICreateShardResponse { + /** Represents an EmergencyReparentShardResponse. */ + class EmergencyReparentShardResponse implements IEmergencyReparentShardResponse { /** - * Constructs a new CreateShardResponse. + * Constructs a new EmergencyReparentShardResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.ICreateShardResponse); + constructor(properties?: vtctldata.IEmergencyReparentShardResponse); - /** CreateShardResponse keyspace. */ - public keyspace?: (vtctldata.IKeyspace|null); + /** EmergencyReparentShardResponse keyspace. */ + public keyspace: string; - /** CreateShardResponse shard. */ - public shard?: (vtctldata.IShard|null); + /** EmergencyReparentShardResponse shard. */ + public shard: string; - /** CreateShardResponse shard_already_exists. */ - public shard_already_exists: boolean; + /** EmergencyReparentShardResponse promoted_primary. */ + public promoted_primary?: (topodata.ITabletAlias|null); + + /** EmergencyReparentShardResponse events. */ + public events: logutil.IEvent[]; /** - * Creates a new CreateShardResponse instance using the specified properties. + * Creates a new EmergencyReparentShardResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateShardResponse instance + * @returns EmergencyReparentShardResponse instance */ - public static create(properties?: vtctldata.ICreateShardResponse): vtctldata.CreateShardResponse; + public static create(properties?: vtctldata.IEmergencyReparentShardResponse): vtctldata.EmergencyReparentShardResponse; /** - * Encodes the specified CreateShardResponse message. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. - * @param message CreateShardResponse message or plain object to encode + * Encodes the specified EmergencyReparentShardResponse message. Does not implicitly {@link vtctldata.EmergencyReparentShardResponse.verify|verify} messages. + * @param message EmergencyReparentShardResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.ICreateShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IEmergencyReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateShardResponse message, length delimited. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. - * @param message CreateShardResponse message or plain object to encode + * Encodes the specified EmergencyReparentShardResponse message, length delimited. Does not implicitly {@link vtctldata.EmergencyReparentShardResponse.verify|verify} messages. + * @param message EmergencyReparentShardResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.ICreateShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IEmergencyReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateShardResponse message from the specified reader or buffer. + * Decodes an EmergencyReparentShardResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateShardResponse + * @returns EmergencyReparentShardResponse * @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): vtctldata.CreateShardResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.EmergencyReparentShardResponse; /** - * Decodes a CreateShardResponse message from the specified reader or buffer, length delimited. + * Decodes an EmergencyReparentShardResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateShardResponse + * @returns EmergencyReparentShardResponse * @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)): vtctldata.CreateShardResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.EmergencyReparentShardResponse; /** - * Verifies a CreateShardResponse message. + * Verifies an EmergencyReparentShardResponse 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 CreateShardResponse message from a plain object. Also converts values to their respective internal types. + * Creates an EmergencyReparentShardResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateShardResponse + * @returns EmergencyReparentShardResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.CreateShardResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.EmergencyReparentShardResponse; /** - * Creates a plain object from a CreateShardResponse message. Also converts values to other types if specified. - * @param message CreateShardResponse + * Creates a plain object from an EmergencyReparentShardResponse message. Also converts values to other types if specified. + * @param message EmergencyReparentShardResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.CreateShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.EmergencyReparentShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateShardResponse to JSON. + * Converts this EmergencyReparentShardResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteKeyspaceRequest. */ - interface IDeleteKeyspaceRequest { + /** Properties of a GetBackupsRequest. */ + interface IGetBackupsRequest { - /** DeleteKeyspaceRequest keyspace */ + /** GetBackupsRequest keyspace */ keyspace?: (string|null); - /** DeleteKeyspaceRequest recursive */ - recursive?: (boolean|null); + /** GetBackupsRequest shard */ + shard?: (string|null); } - /** Represents a DeleteKeyspaceRequest. */ - class DeleteKeyspaceRequest implements IDeleteKeyspaceRequest { + /** Represents a GetBackupsRequest. */ + class GetBackupsRequest implements IGetBackupsRequest { /** - * Constructs a new DeleteKeyspaceRequest. + * Constructs a new GetBackupsRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IDeleteKeyspaceRequest); + constructor(properties?: vtctldata.IGetBackupsRequest); - /** DeleteKeyspaceRequest keyspace. */ + /** GetBackupsRequest keyspace. */ public keyspace: string; - /** DeleteKeyspaceRequest recursive. */ - public recursive: boolean; + /** GetBackupsRequest shard. */ + public shard: string; /** - * Creates a new DeleteKeyspaceRequest instance using the specified properties. + * Creates a new GetBackupsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteKeyspaceRequest instance + * @returns GetBackupsRequest instance */ - public static create(properties?: vtctldata.IDeleteKeyspaceRequest): vtctldata.DeleteKeyspaceRequest; + public static create(properties?: vtctldata.IGetBackupsRequest): vtctldata.GetBackupsRequest; /** - * Encodes the specified DeleteKeyspaceRequest message. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. - * @param message DeleteKeyspaceRequest message or plain object to encode + * Encodes the specified GetBackupsRequest message. Does not implicitly {@link vtctldata.GetBackupsRequest.verify|verify} messages. + * @param message GetBackupsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IDeleteKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. - * @param message DeleteKeyspaceRequest message or plain object to encode + * Encodes the specified GetBackupsRequest message, length delimited. Does not implicitly {@link vtctldata.GetBackupsRequest.verify|verify} messages. + * @param message GetBackupsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IDeleteKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer. + * Decodes a GetBackupsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteKeyspaceRequest + * @returns GetBackupsRequest * @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): vtctldata.DeleteKeyspaceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetBackupsRequest; /** - * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a GetBackupsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteKeyspaceRequest + * @returns GetBackupsRequest * @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)): vtctldata.DeleteKeyspaceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetBackupsRequest; /** - * Verifies a DeleteKeyspaceRequest message. + * Verifies a GetBackupsRequest 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 DeleteKeyspaceRequest 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. * @param object Plain object - * @returns DeleteKeyspaceRequest + * @returns GetBackupsRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteKeyspaceRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetBackupsRequest; /** - * Creates a plain object from a DeleteKeyspaceRequest message. Also converts values to other types if specified. - * @param message DeleteKeyspaceRequest + * Creates a plain object from a GetBackupsRequest message. Also converts values to other types if specified. + * @param message GetBackupsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.DeleteKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetBackupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteKeyspaceRequest to JSON. + * Converts this GetBackupsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteKeyspaceResponse. */ - interface IDeleteKeyspaceResponse { + /** Properties of a GetBackupsResponse. */ + interface IGetBackupsResponse { + + /** GetBackupsResponse backups */ + backups?: (mysqlctl.IBackupInfo[]|null); } - /** Represents a DeleteKeyspaceResponse. */ - class DeleteKeyspaceResponse implements IDeleteKeyspaceResponse { + /** Represents a GetBackupsResponse. */ + class GetBackupsResponse implements IGetBackupsResponse { /** - * Constructs a new DeleteKeyspaceResponse. + * Constructs a new GetBackupsResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IDeleteKeyspaceResponse); + constructor(properties?: vtctldata.IGetBackupsResponse); + + /** GetBackupsResponse backups. */ + public backups: mysqlctl.IBackupInfo[]; /** - * Creates a new DeleteKeyspaceResponse instance using the specified properties. + * Creates a new GetBackupsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteKeyspaceResponse instance + * @returns GetBackupsResponse instance */ - public static create(properties?: vtctldata.IDeleteKeyspaceResponse): vtctldata.DeleteKeyspaceResponse; + public static create(properties?: vtctldata.IGetBackupsResponse): vtctldata.GetBackupsResponse; /** - * Encodes the specified DeleteKeyspaceResponse message. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. - * @param message DeleteKeyspaceResponse message or plain object to encode + * Encodes the specified GetBackupsResponse message. Does not implicitly {@link vtctldata.GetBackupsResponse.verify|verify} messages. + * @param message GetBackupsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IDeleteKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. - * @param message DeleteKeyspaceResponse message or plain object to encode + * Encodes the specified GetBackupsResponse message, length delimited. Does not implicitly {@link vtctldata.GetBackupsResponse.verify|verify} messages. + * @param message GetBackupsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IDeleteKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer. + * Decodes a GetBackupsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteKeyspaceResponse + * @returns GetBackupsResponse * @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): vtctldata.DeleteKeyspaceResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetBackupsResponse; /** - * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer, length delimited. + * Decodes a GetBackupsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteKeyspaceResponse + * @returns GetBackupsResponse * @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)): vtctldata.DeleteKeyspaceResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetBackupsResponse; /** - * Verifies a DeleteKeyspaceResponse message. + * Verifies a GetBackupsResponse 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 DeleteKeyspaceResponse 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. * @param object Plain object - * @returns DeleteKeyspaceResponse + * @returns GetBackupsResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteKeyspaceResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetBackupsResponse; /** - * Creates a plain object from a DeleteKeyspaceResponse message. Also converts values to other types if specified. - * @param message DeleteKeyspaceResponse + * Creates a plain object from a GetBackupsResponse message. Also converts values to other types if specified. + * @param message GetBackupsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.DeleteKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetBackupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteKeyspaceResponse to JSON. + * Converts this GetBackupsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteShardsRequest. */ - interface IDeleteShardsRequest { - - /** DeleteShardsRequest shards */ - shards?: (vtctldata.IShard[]|null); - - /** DeleteShardsRequest recursive */ - recursive?: (boolean|null); - - /** DeleteShardsRequest even_if_serving */ - even_if_serving?: (boolean|null); + /** Properties of a GetCellInfoNamesRequest. */ + interface IGetCellInfoNamesRequest { } - /** Represents a DeleteShardsRequest. */ - class DeleteShardsRequest implements IDeleteShardsRequest { + /** Represents a GetCellInfoNamesRequest. */ + class GetCellInfoNamesRequest implements IGetCellInfoNamesRequest { /** - * Constructs a new DeleteShardsRequest. + * Constructs a new GetCellInfoNamesRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IDeleteShardsRequest); - - /** DeleteShardsRequest shards. */ - public shards: vtctldata.IShard[]; - - /** DeleteShardsRequest recursive. */ - public recursive: boolean; - - /** DeleteShardsRequest even_if_serving. */ - public even_if_serving: boolean; + constructor(properties?: vtctldata.IGetCellInfoNamesRequest); /** - * Creates a new DeleteShardsRequest instance using the specified properties. + * Creates a new GetCellInfoNamesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteShardsRequest instance + * @returns GetCellInfoNamesRequest instance */ - public static create(properties?: vtctldata.IDeleteShardsRequest): vtctldata.DeleteShardsRequest; + public static create(properties?: vtctldata.IGetCellInfoNamesRequest): vtctldata.GetCellInfoNamesRequest; /** - * Encodes the specified DeleteShardsRequest message. Does not implicitly {@link vtctldata.DeleteShardsRequest.verify|verify} messages. - * @param message DeleteShardsRequest message or plain object to encode + * Encodes the specified GetCellInfoNamesRequest message. Does not implicitly {@link vtctldata.GetCellInfoNamesRequest.verify|verify} messages. + * @param message GetCellInfoNamesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IDeleteShardsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetCellInfoNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteShardsRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteShardsRequest.verify|verify} messages. - * @param message DeleteShardsRequest message or plain object to encode + * Encodes the specified GetCellInfoNamesRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoNamesRequest.verify|verify} messages. + * @param message GetCellInfoNamesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IDeleteShardsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetCellInfoNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteShardsRequest message from the specified reader or buffer. + * Decodes a GetCellInfoNamesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteShardsRequest + * @returns GetCellInfoNamesRequest * @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): vtctldata.DeleteShardsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoNamesRequest; /** - * Decodes a DeleteShardsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetCellInfoNamesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteShardsRequest + * @returns GetCellInfoNamesRequest * @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)): vtctldata.DeleteShardsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoNamesRequest; /** - * Verifies a DeleteShardsRequest message. + * Verifies a GetCellInfoNamesRequest 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 DeleteShardsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetCellInfoNamesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteShardsRequest + * @returns GetCellInfoNamesRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteShardsRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoNamesRequest; /** - * Creates a plain object from a DeleteShardsRequest message. Also converts values to other types if specified. - * @param message DeleteShardsRequest + * Creates a plain object from a GetCellInfoNamesRequest message. Also converts values to other types if specified. + * @param message GetCellInfoNamesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.DeleteShardsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetCellInfoNamesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteShardsRequest to JSON. + * Converts this GetCellInfoNamesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteShardsResponse. */ - interface IDeleteShardsResponse { + /** Properties of a GetCellInfoNamesResponse. */ + interface IGetCellInfoNamesResponse { + + /** GetCellInfoNamesResponse names */ + names?: (string[]|null); } - /** Represents a DeleteShardsResponse. */ - class DeleteShardsResponse implements IDeleteShardsResponse { + /** Represents a GetCellInfoNamesResponse. */ + class GetCellInfoNamesResponse implements IGetCellInfoNamesResponse { /** - * Constructs a new DeleteShardsResponse. + * Constructs a new GetCellInfoNamesResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IDeleteShardsResponse); + constructor(properties?: vtctldata.IGetCellInfoNamesResponse); + + /** GetCellInfoNamesResponse names. */ + public names: string[]; /** - * Creates a new DeleteShardsResponse instance using the specified properties. + * Creates a new GetCellInfoNamesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteShardsResponse instance + * @returns GetCellInfoNamesResponse instance */ - public static create(properties?: vtctldata.IDeleteShardsResponse): vtctldata.DeleteShardsResponse; + public static create(properties?: vtctldata.IGetCellInfoNamesResponse): vtctldata.GetCellInfoNamesResponse; /** - * Encodes the specified DeleteShardsResponse message. Does not implicitly {@link vtctldata.DeleteShardsResponse.verify|verify} messages. - * @param message DeleteShardsResponse message or plain object to encode + * Encodes the specified GetCellInfoNamesResponse message. Does not implicitly {@link vtctldata.GetCellInfoNamesResponse.verify|verify} messages. + * @param message GetCellInfoNamesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IDeleteShardsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetCellInfoNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteShardsResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteShardsResponse.verify|verify} messages. - * @param message DeleteShardsResponse message or plain object to encode + * Encodes the specified GetCellInfoNamesResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoNamesResponse.verify|verify} messages. + * @param message GetCellInfoNamesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IDeleteShardsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetCellInfoNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteShardsResponse message from the specified reader or buffer. + * Decodes a GetCellInfoNamesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteShardsResponse + * @returns GetCellInfoNamesResponse * @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): vtctldata.DeleteShardsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoNamesResponse; /** - * Decodes a DeleteShardsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetCellInfoNamesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteShardsResponse + * @returns GetCellInfoNamesResponse * @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)): vtctldata.DeleteShardsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoNamesResponse; /** - * Verifies a DeleteShardsResponse message. + * Verifies a GetCellInfoNamesResponse 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 DeleteShardsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetCellInfoNamesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteShardsResponse + * @returns GetCellInfoNamesResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteShardsResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoNamesResponse; /** - * Creates a plain object from a DeleteShardsResponse message. Also converts values to other types if specified. - * @param message DeleteShardsResponse + * Creates a plain object from a GetCellInfoNamesResponse message. Also converts values to other types if specified. + * @param message GetCellInfoNamesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.DeleteShardsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetCellInfoNamesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteShardsResponse to JSON. + * Converts this GetCellInfoNamesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteTabletsRequest. */ - interface IDeleteTabletsRequest { - - /** DeleteTabletsRequest tablet_aliases */ - tablet_aliases?: (topodata.ITabletAlias[]|null); + /** Properties of a GetCellInfoRequest. */ + interface IGetCellInfoRequest { - /** DeleteTabletsRequest allow_primary */ - allow_primary?: (boolean|null); + /** GetCellInfoRequest cell */ + cell?: (string|null); } - /** Represents a DeleteTabletsRequest. */ - class DeleteTabletsRequest implements IDeleteTabletsRequest { + /** Represents a GetCellInfoRequest. */ + class GetCellInfoRequest implements IGetCellInfoRequest { /** - * Constructs a new DeleteTabletsRequest. + * Constructs a new GetCellInfoRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IDeleteTabletsRequest); - - /** DeleteTabletsRequest tablet_aliases. */ - public tablet_aliases: topodata.ITabletAlias[]; + constructor(properties?: vtctldata.IGetCellInfoRequest); - /** DeleteTabletsRequest allow_primary. */ - public allow_primary: boolean; + /** GetCellInfoRequest cell. */ + public cell: string; /** - * Creates a new DeleteTabletsRequest instance using the specified properties. + * Creates a new GetCellInfoRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteTabletsRequest instance + * @returns GetCellInfoRequest instance */ - public static create(properties?: vtctldata.IDeleteTabletsRequest): vtctldata.DeleteTabletsRequest; + public static create(properties?: vtctldata.IGetCellInfoRequest): vtctldata.GetCellInfoRequest; /** - * Encodes the specified DeleteTabletsRequest message. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. - * @param message DeleteTabletsRequest message or plain object to encode + * Encodes the specified GetCellInfoRequest message. Does not implicitly {@link vtctldata.GetCellInfoRequest.verify|verify} messages. + * @param message GetCellInfoRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IDeleteTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteTabletsRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. - * @param message DeleteTabletsRequest message or plain object to encode + * Encodes the specified GetCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoRequest.verify|verify} messages. + * @param message GetCellInfoRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IDeleteTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteTabletsRequest message from the specified reader or buffer. + * Decodes a GetCellInfoRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteTabletsRequest + * @returns GetCellInfoRequest * @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): vtctldata.DeleteTabletsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoRequest; /** - * Decodes a DeleteTabletsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetCellInfoRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteTabletsRequest + * @returns GetCellInfoRequest * @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)): vtctldata.DeleteTabletsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoRequest; /** - * Verifies a DeleteTabletsRequest message. + * Verifies a GetCellInfoRequest 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 DeleteTabletsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetCellInfoRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteTabletsRequest + * @returns GetCellInfoRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteTabletsRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoRequest; /** - * Creates a plain object from a DeleteTabletsRequest message. Also converts values to other types if specified. - * @param message DeleteTabletsRequest + * Creates a plain object from a GetCellInfoRequest message. Also converts values to other types if specified. + * @param message GetCellInfoRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.DeleteTabletsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetCellInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteTabletsRequest to JSON. + * Converts this GetCellInfoRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteTabletsResponse. */ - interface IDeleteTabletsResponse { + /** Properties of a GetCellInfoResponse. */ + interface IGetCellInfoResponse { + + /** GetCellInfoResponse cell_info */ + cell_info?: (topodata.ICellInfo|null); } - /** Represents a DeleteTabletsResponse. */ - class DeleteTabletsResponse implements IDeleteTabletsResponse { + /** Represents a GetCellInfoResponse. */ + class GetCellInfoResponse implements IGetCellInfoResponse { /** - * Constructs a new DeleteTabletsResponse. + * Constructs a new GetCellInfoResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IDeleteTabletsResponse); + constructor(properties?: vtctldata.IGetCellInfoResponse); + + /** GetCellInfoResponse cell_info. */ + public cell_info?: (topodata.ICellInfo|null); /** - * Creates a new DeleteTabletsResponse instance using the specified properties. + * Creates a new GetCellInfoResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteTabletsResponse instance + * @returns GetCellInfoResponse instance */ - public static create(properties?: vtctldata.IDeleteTabletsResponse): vtctldata.DeleteTabletsResponse; + public static create(properties?: vtctldata.IGetCellInfoResponse): vtctldata.GetCellInfoResponse; /** - * Encodes the specified DeleteTabletsResponse message. Does not implicitly {@link vtctldata.DeleteTabletsResponse.verify|verify} messages. - * @param message DeleteTabletsResponse message or plain object to encode + * Encodes the specified GetCellInfoResponse message. Does not implicitly {@link vtctldata.GetCellInfoResponse.verify|verify} messages. + * @param message GetCellInfoResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IDeleteTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteTabletsResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteTabletsResponse.verify|verify} messages. - * @param message DeleteTabletsResponse message or plain object to encode + * Encodes the specified GetCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoResponse.verify|verify} messages. + * @param message GetCellInfoResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IDeleteTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteTabletsResponse message from the specified reader or buffer. + * Decodes a GetCellInfoResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteTabletsResponse + * @returns GetCellInfoResponse * @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): vtctldata.DeleteTabletsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoResponse; /** - * Decodes a DeleteTabletsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetCellInfoResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteTabletsResponse + * @returns GetCellInfoResponse * @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)): vtctldata.DeleteTabletsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoResponse; /** - * Verifies a DeleteTabletsResponse message. + * Verifies a GetCellInfoResponse 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 DeleteTabletsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetCellInfoResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteTabletsResponse + * @returns GetCellInfoResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteTabletsResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoResponse; - /** - * Creates a plain object from a DeleteTabletsResponse message. Also converts values to other types if specified. - * @param message DeleteTabletsResponse + /** + * Creates a plain object from a GetCellInfoResponse message. Also converts values to other types if specified. + * @param message GetCellInfoResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.DeleteTabletsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetCellInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteTabletsResponse to JSON. + * Converts this GetCellInfoResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetBackupsRequest. */ - interface IGetBackupsRequest { - - /** GetBackupsRequest keyspace */ - keyspace?: (string|null); - - /** GetBackupsRequest shard */ - shard?: (string|null); + /** Properties of a GetCellsAliasesRequest. */ + interface IGetCellsAliasesRequest { } - /** Represents a GetBackupsRequest. */ - class GetBackupsRequest implements IGetBackupsRequest { + /** Represents a GetCellsAliasesRequest. */ + class GetCellsAliasesRequest implements IGetCellsAliasesRequest { /** - * Constructs a new GetBackupsRequest. + * Constructs a new GetCellsAliasesRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetBackupsRequest); - - /** GetBackupsRequest keyspace. */ - public keyspace: string; - - /** GetBackupsRequest shard. */ - public shard: string; + constructor(properties?: vtctldata.IGetCellsAliasesRequest); /** - * Creates a new GetBackupsRequest instance using the specified properties. + * Creates a new GetCellsAliasesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetBackupsRequest instance + * @returns GetCellsAliasesRequest instance */ - public static create(properties?: vtctldata.IGetBackupsRequest): vtctldata.GetBackupsRequest; + public static create(properties?: vtctldata.IGetCellsAliasesRequest): vtctldata.GetCellsAliasesRequest; /** - * Encodes the specified GetBackupsRequest message. Does not implicitly {@link vtctldata.GetBackupsRequest.verify|verify} messages. - * @param message GetBackupsRequest message or plain object to encode + * Encodes the specified GetCellsAliasesRequest message. Does not implicitly {@link vtctldata.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: vtctldata.IGetBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetCellsAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetBackupsRequest message, length delimited. Does not implicitly {@link vtctldata.GetBackupsRequest.verify|verify} messages. - * @param message GetBackupsRequest message or plain object to encode + * Encodes the specified GetCellsAliasesRequest message, length delimited. Does not implicitly {@link vtctldata.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: vtctldata.IGetBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetCellsAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetBackupsRequest message from the specified reader or buffer. + * 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 GetBackupsRequest + * @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): vtctldata.GetBackupsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellsAliasesRequest; /** - * Decodes a GetBackupsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetCellsAliasesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetBackupsRequest + * @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)): vtctldata.GetBackupsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellsAliasesRequest; /** - * Verifies a GetBackupsRequest message. + * 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 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. * @param object Plain object - * @returns GetBackupsRequest + * @returns GetCellsAliasesRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetBackupsRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellsAliasesRequest; /** - * Creates a plain object from a GetBackupsRequest message. Also converts values to other types if specified. - * @param message GetBackupsRequest + * 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: vtctldata.GetBackupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetCellsAliasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetBackupsRequest to JSON. + * Converts this GetCellsAliasesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetBackupsResponse. */ - interface IGetBackupsResponse { + /** Properties of a GetCellsAliasesResponse. */ + interface IGetCellsAliasesResponse { - /** GetBackupsResponse backups */ - backups?: (mysqlctl.IBackupInfo[]|null); + /** GetCellsAliasesResponse aliases */ + aliases?: ({ [k: string]: topodata.ICellsAlias }|null); } - /** Represents a GetBackupsResponse. */ - class GetBackupsResponse implements IGetBackupsResponse { + /** Represents a GetCellsAliasesResponse. */ + class GetCellsAliasesResponse implements IGetCellsAliasesResponse { /** - * Constructs a new GetBackupsResponse. + * Constructs a new GetCellsAliasesResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetBackupsResponse); + constructor(properties?: vtctldata.IGetCellsAliasesResponse); - /** GetBackupsResponse backups. */ - public backups: mysqlctl.IBackupInfo[]; + /** GetCellsAliasesResponse aliases. */ + public aliases: { [k: string]: topodata.ICellsAlias }; /** - * Creates a new GetBackupsResponse instance using the specified properties. + * Creates a new GetCellsAliasesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetBackupsResponse instance + * @returns GetCellsAliasesResponse instance */ - public static create(properties?: vtctldata.IGetBackupsResponse): vtctldata.GetBackupsResponse; + public static create(properties?: vtctldata.IGetCellsAliasesResponse): vtctldata.GetCellsAliasesResponse; /** - * Encodes the specified GetBackupsResponse message. Does not implicitly {@link vtctldata.GetBackupsResponse.verify|verify} messages. - * @param message GetBackupsResponse message or plain object to encode + * Encodes the specified GetCellsAliasesResponse message. Does not implicitly {@link vtctldata.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: vtctldata.IGetBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetCellsAliasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetBackupsResponse message, length delimited. Does not implicitly {@link vtctldata.GetBackupsResponse.verify|verify} messages. - * @param message GetBackupsResponse message or plain object to encode + * Encodes the specified GetCellsAliasesResponse message, length delimited. Does not implicitly {@link vtctldata.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: vtctldata.IGetBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetCellsAliasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetBackupsResponse message from the specified reader or buffer. + * 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 GetBackupsResponse + * @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): vtctldata.GetBackupsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellsAliasesResponse; /** - * Decodes a GetBackupsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetCellsAliasesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetBackupsResponse + * @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)): vtctldata.GetBackupsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellsAliasesResponse; /** - * Verifies a GetBackupsResponse message. + * 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 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. * @param object Plain object - * @returns GetBackupsResponse + * @returns GetCellsAliasesResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetBackupsResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellsAliasesResponse; /** - * Creates a plain object from a GetBackupsResponse message. Also converts values to other types if specified. - * @param message GetBackupsResponse + * 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: vtctldata.GetBackupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetCellsAliasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetBackupsResponse to JSON. + * Converts this GetCellsAliasesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetCellInfoNamesRequest. */ - interface IGetCellInfoNamesRequest { + /** Properties of a GetKeyspacesRequest. */ + interface IGetKeyspacesRequest { } - /** Represents a GetCellInfoNamesRequest. */ - class GetCellInfoNamesRequest implements IGetCellInfoNamesRequest { + /** Represents a GetKeyspacesRequest. */ + class GetKeyspacesRequest implements IGetKeyspacesRequest { /** - * Constructs a new GetCellInfoNamesRequest. + * Constructs a new GetKeyspacesRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetCellInfoNamesRequest); + constructor(properties?: vtctldata.IGetKeyspacesRequest); /** - * Creates a new GetCellInfoNamesRequest instance using the specified properties. + * Creates a new GetKeyspacesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetCellInfoNamesRequest instance + * @returns GetKeyspacesRequest instance */ - public static create(properties?: vtctldata.IGetCellInfoNamesRequest): vtctldata.GetCellInfoNamesRequest; + public static create(properties?: vtctldata.IGetKeyspacesRequest): vtctldata.GetKeyspacesRequest; /** - * Encodes the specified GetCellInfoNamesRequest message. Does not implicitly {@link vtctldata.GetCellInfoNamesRequest.verify|verify} messages. - * @param message GetCellInfoNamesRequest message or plain object to encode + * Encodes the specified GetKeyspacesRequest message. Does not implicitly {@link vtctldata.GetKeyspacesRequest.verify|verify} messages. + * @param message GetKeyspacesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IGetCellInfoNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetCellInfoNamesRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoNamesRequest.verify|verify} messages. - * @param message GetCellInfoNamesRequest message or plain object to encode + * Encodes the specified GetKeyspacesRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspacesRequest.verify|verify} messages. + * @param message GetKeyspacesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IGetCellInfoNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCellInfoNamesRequest message from the specified reader or buffer. + * Decodes a GetKeyspacesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetCellInfoNamesRequest + * @returns GetKeyspacesRequest * @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): vtctldata.GetCellInfoNamesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspacesRequest; /** - * Decodes a GetCellInfoNamesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetKeyspacesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetCellInfoNamesRequest + * @returns GetKeyspacesRequest * @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)): vtctldata.GetCellInfoNamesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspacesRequest; /** - * Verifies a GetCellInfoNamesRequest message. + * Verifies a GetKeyspacesRequest 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 GetCellInfoNamesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetKeyspacesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetCellInfoNamesRequest + * @returns GetKeyspacesRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoNamesRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspacesRequest; /** - * Creates a plain object from a GetCellInfoNamesRequest message. Also converts values to other types if specified. - * @param message GetCellInfoNamesRequest + * Creates a plain object from a GetKeyspacesRequest message. Also converts values to other types if specified. + * @param message GetKeyspacesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetCellInfoNamesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetKeyspacesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCellInfoNamesRequest to JSON. + * Converts this GetKeyspacesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetCellInfoNamesResponse. */ - interface IGetCellInfoNamesResponse { + /** Properties of a GetKeyspacesResponse. */ + interface IGetKeyspacesResponse { - /** GetCellInfoNamesResponse names */ - names?: (string[]|null); + /** GetKeyspacesResponse keyspaces */ + keyspaces?: (vtctldata.IKeyspace[]|null); } - /** Represents a GetCellInfoNamesResponse. */ - class GetCellInfoNamesResponse implements IGetCellInfoNamesResponse { + /** Represents a GetKeyspacesResponse. */ + class GetKeyspacesResponse implements IGetKeyspacesResponse { /** - * Constructs a new GetCellInfoNamesResponse. + * Constructs a new GetKeyspacesResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetCellInfoNamesResponse); + constructor(properties?: vtctldata.IGetKeyspacesResponse); - /** GetCellInfoNamesResponse names. */ - public names: string[]; + /** GetKeyspacesResponse keyspaces. */ + public keyspaces: vtctldata.IKeyspace[]; /** - * Creates a new GetCellInfoNamesResponse instance using the specified properties. + * Creates a new GetKeyspacesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetCellInfoNamesResponse instance + * @returns GetKeyspacesResponse instance */ - public static create(properties?: vtctldata.IGetCellInfoNamesResponse): vtctldata.GetCellInfoNamesResponse; + public static create(properties?: vtctldata.IGetKeyspacesResponse): vtctldata.GetKeyspacesResponse; /** - * Encodes the specified GetCellInfoNamesResponse message. Does not implicitly {@link vtctldata.GetCellInfoNamesResponse.verify|verify} messages. - * @param message GetCellInfoNamesResponse message or plain object to encode + * Encodes the specified GetKeyspacesResponse message. Does not implicitly {@link vtctldata.GetKeyspacesResponse.verify|verify} messages. + * @param message GetKeyspacesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IGetCellInfoNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetCellInfoNamesResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoNamesResponse.verify|verify} messages. - * @param message GetCellInfoNamesResponse message or plain object to encode + * Encodes the specified GetKeyspacesResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspacesResponse.verify|verify} messages. + * @param message GetKeyspacesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IGetCellInfoNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCellInfoNamesResponse message from the specified reader or buffer. + * Decodes a GetKeyspacesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetCellInfoNamesResponse + * @returns GetKeyspacesResponse * @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): vtctldata.GetCellInfoNamesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspacesResponse; /** - * Decodes a GetCellInfoNamesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetKeyspacesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetCellInfoNamesResponse + * @returns GetKeyspacesResponse * @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)): vtctldata.GetCellInfoNamesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspacesResponse; /** - * Verifies a GetCellInfoNamesResponse message. + * Verifies a GetKeyspacesResponse 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 GetCellInfoNamesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetKeyspacesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetCellInfoNamesResponse + * @returns GetKeyspacesResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoNamesResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspacesResponse; /** - * Creates a plain object from a GetCellInfoNamesResponse message. Also converts values to other types if specified. - * @param message GetCellInfoNamesResponse + * Creates a plain object from a GetKeyspacesResponse message. Also converts values to other types if specified. + * @param message GetKeyspacesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetCellInfoNamesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetKeyspacesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCellInfoNamesResponse to JSON. + * Converts this GetKeyspacesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetCellInfoRequest. */ - interface IGetCellInfoRequest { + /** Properties of a GetKeyspaceRequest. */ + interface IGetKeyspaceRequest { - /** GetCellInfoRequest cell */ - cell?: (string|null); + /** GetKeyspaceRequest keyspace */ + keyspace?: (string|null); } - /** Represents a GetCellInfoRequest. */ - class GetCellInfoRequest implements IGetCellInfoRequest { + /** Represents a GetKeyspaceRequest. */ + class GetKeyspaceRequest implements IGetKeyspaceRequest { /** - * Constructs a new GetCellInfoRequest. + * Constructs a new GetKeyspaceRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetCellInfoRequest); + constructor(properties?: vtctldata.IGetKeyspaceRequest); - /** GetCellInfoRequest cell. */ - public cell: string; + /** GetKeyspaceRequest keyspace. */ + public keyspace: string; /** - * Creates a new GetCellInfoRequest instance using the specified properties. + * Creates a new GetKeyspaceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetCellInfoRequest instance + * @returns GetKeyspaceRequest instance */ - public static create(properties?: vtctldata.IGetCellInfoRequest): vtctldata.GetCellInfoRequest; + public static create(properties?: vtctldata.IGetKeyspaceRequest): vtctldata.GetKeyspaceRequest; /** - * Encodes the specified GetCellInfoRequest message. Does not implicitly {@link vtctldata.GetCellInfoRequest.verify|verify} messages. - * @param message GetCellInfoRequest message or plain object to encode + * Encodes the specified GetKeyspaceRequest message. Does not implicitly {@link vtctldata.GetKeyspaceRequest.verify|verify} messages. + * @param message GetKeyspaceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IGetCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoRequest.verify|verify} messages. - * @param message GetCellInfoRequest message or plain object to encode + * Encodes the specified GetKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceRequest.verify|verify} messages. + * @param message GetKeyspaceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IGetCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCellInfoRequest message from the specified reader or buffer. + * Decodes a GetKeyspaceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetCellInfoRequest + * @returns GetKeyspaceRequest * @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): vtctldata.GetCellInfoRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspaceRequest; /** - * Decodes a GetCellInfoRequest message from the specified reader or buffer, length delimited. + * Decodes a GetKeyspaceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetCellInfoRequest + * @returns GetKeyspaceRequest * @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)): vtctldata.GetCellInfoRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspaceRequest; /** - * Verifies a GetCellInfoRequest message. + * Verifies a GetKeyspaceRequest 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 GetCellInfoRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetKeyspaceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetCellInfoRequest + * @returns GetKeyspaceRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceRequest; /** - * Creates a plain object from a GetCellInfoRequest message. Also converts values to other types if specified. - * @param message GetCellInfoRequest + * Creates a plain object from a GetKeyspaceRequest message. Also converts values to other types if specified. + * @param message GetKeyspaceRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetCellInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCellInfoRequest to JSON. + * Converts this GetKeyspaceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetCellInfoResponse. */ - interface IGetCellInfoResponse { + /** Properties of a GetKeyspaceResponse. */ + interface IGetKeyspaceResponse { - /** GetCellInfoResponse cell_info */ - cell_info?: (topodata.ICellInfo|null); + /** GetKeyspaceResponse keyspace */ + keyspace?: (vtctldata.IKeyspace|null); } - /** Represents a GetCellInfoResponse. */ - class GetCellInfoResponse implements IGetCellInfoResponse { + /** Represents a GetKeyspaceResponse. */ + class GetKeyspaceResponse implements IGetKeyspaceResponse { /** - * Constructs a new GetCellInfoResponse. + * Constructs a new GetKeyspaceResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetCellInfoResponse); + constructor(properties?: vtctldata.IGetKeyspaceResponse); - /** GetCellInfoResponse cell_info. */ - public cell_info?: (topodata.ICellInfo|null); + /** GetKeyspaceResponse keyspace. */ + public keyspace?: (vtctldata.IKeyspace|null); /** - * Creates a new GetCellInfoResponse instance using the specified properties. + * Creates a new GetKeyspaceResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetCellInfoResponse instance + * @returns GetKeyspaceResponse instance */ - public static create(properties?: vtctldata.IGetCellInfoResponse): vtctldata.GetCellInfoResponse; + public static create(properties?: vtctldata.IGetKeyspaceResponse): vtctldata.GetKeyspaceResponse; /** - * Encodes the specified GetCellInfoResponse message. Does not implicitly {@link vtctldata.GetCellInfoResponse.verify|verify} messages. - * @param message GetCellInfoResponse message or plain object to encode + * Encodes the specified GetKeyspaceResponse message. Does not implicitly {@link vtctldata.GetKeyspaceResponse.verify|verify} messages. + * @param message GetKeyspaceResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IGetCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoResponse.verify|verify} messages. - * @param message GetCellInfoResponse message or plain object to encode + * Encodes the specified GetKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceResponse.verify|verify} messages. + * @param message GetKeyspaceResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IGetCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCellInfoResponse message from the specified reader or buffer. + * Decodes a GetKeyspaceResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetCellInfoResponse + * @returns GetKeyspaceResponse * @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): vtctldata.GetCellInfoResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspaceResponse; /** - * Decodes a GetCellInfoResponse message from the specified reader or buffer, length delimited. + * Decodes a GetKeyspaceResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetCellInfoResponse + * @returns GetKeyspaceResponse * @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)): vtctldata.GetCellInfoResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspaceResponse; /** - * Verifies a GetCellInfoResponse message. + * Verifies a GetKeyspaceResponse 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 GetCellInfoResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetKeyspaceResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetCellInfoResponse + * @returns GetKeyspaceResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceResponse; /** - * Creates a plain object from a GetCellInfoResponse message. Also converts values to other types if specified. - * @param message GetCellInfoResponse + * Creates a plain object from a GetKeyspaceResponse message. Also converts values to other types if specified. + * @param message GetKeyspaceResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetCellInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCellInfoResponse to JSON. + * Converts this GetKeyspaceResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetCellsAliasesRequest. */ - interface IGetCellsAliasesRequest { + /** Properties of a GetSchemaRequest. */ + interface IGetSchemaRequest { + + /** GetSchemaRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** GetSchemaRequest tables */ + tables?: (string[]|null); + + /** GetSchemaRequest exclude_tables */ + exclude_tables?: (string[]|null); + + /** GetSchemaRequest include_views */ + include_views?: (boolean|null); + + /** GetSchemaRequest table_names_only */ + table_names_only?: (boolean|null); + + /** GetSchemaRequest table_sizes_only */ + table_sizes_only?: (boolean|null); } - /** Represents a GetCellsAliasesRequest. */ - class GetCellsAliasesRequest implements IGetCellsAliasesRequest { + /** Represents a GetSchemaRequest. */ + class GetSchemaRequest implements IGetSchemaRequest { /** - * Constructs a new GetCellsAliasesRequest. + * Constructs a new GetSchemaRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetCellsAliasesRequest); + constructor(properties?: vtctldata.IGetSchemaRequest); + + /** GetSchemaRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** GetSchemaRequest tables. */ + public tables: string[]; + + /** GetSchemaRequest exclude_tables. */ + public exclude_tables: string[]; + + /** GetSchemaRequest include_views. */ + public include_views: boolean; + + /** GetSchemaRequest table_names_only. */ + public table_names_only: boolean; + + /** GetSchemaRequest table_sizes_only. */ + public table_sizes_only: boolean; /** - * Creates a new GetCellsAliasesRequest instance using the specified properties. + * Creates a new GetSchemaRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetCellsAliasesRequest instance + * @returns GetSchemaRequest instance */ - public static create(properties?: vtctldata.IGetCellsAliasesRequest): vtctldata.GetCellsAliasesRequest; + public static create(properties?: vtctldata.IGetSchemaRequest): vtctldata.GetSchemaRequest; /** - * Encodes the specified GetCellsAliasesRequest message. Does not implicitly {@link vtctldata.GetCellsAliasesRequest.verify|verify} messages. - * @param message GetCellsAliasesRequest message or plain object to encode + * Encodes the specified GetSchemaRequest message. Does not implicitly {@link vtctldata.GetSchemaRequest.verify|verify} messages. + * @param message GetSchemaRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IGetCellsAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetCellsAliasesRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellsAliasesRequest.verify|verify} messages. - * @param message GetCellsAliasesRequest message or plain object to encode + * Encodes the specified GetSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetSchemaRequest.verify|verify} messages. + * @param message GetSchemaRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IGetCellsAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCellsAliasesRequest message from the specified reader or buffer. + * Decodes a GetSchemaRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetCellsAliasesRequest + * @returns GetSchemaRequest * @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): vtctldata.GetCellsAliasesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSchemaRequest; /** - * Decodes a GetCellsAliasesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSchemaRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetCellsAliasesRequest + * @returns GetSchemaRequest * @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)): vtctldata.GetCellsAliasesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSchemaRequest; /** - * Verifies a GetCellsAliasesRequest message. + * Verifies a GetSchemaRequest 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. + * Creates a GetSchemaRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetCellsAliasesRequest + * @returns GetSchemaRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellsAliasesRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaRequest; /** - * Creates a plain object from a GetCellsAliasesRequest message. Also converts values to other types if specified. - * @param message GetCellsAliasesRequest + * Creates a plain object from a GetSchemaRequest message. Also converts values to other types if specified. + * @param message GetSchemaRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetCellsAliasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCellsAliasesRequest to JSON. + * Converts this GetSchemaRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetCellsAliasesResponse. */ - interface IGetCellsAliasesResponse { + /** Properties of a GetSchemaResponse. */ + interface IGetSchemaResponse { - /** GetCellsAliasesResponse aliases */ - aliases?: ({ [k: string]: topodata.ICellsAlias }|null); + /** GetSchemaResponse schema */ + schema?: (tabletmanagerdata.ISchemaDefinition|null); } - /** Represents a GetCellsAliasesResponse. */ - class GetCellsAliasesResponse implements IGetCellsAliasesResponse { + /** Represents a GetSchemaResponse. */ + class GetSchemaResponse implements IGetSchemaResponse { /** - * Constructs a new GetCellsAliasesResponse. + * Constructs a new GetSchemaResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetCellsAliasesResponse); + constructor(properties?: vtctldata.IGetSchemaResponse); - /** GetCellsAliasesResponse aliases. */ - public aliases: { [k: string]: topodata.ICellsAlias }; + /** GetSchemaResponse schema. */ + public schema?: (tabletmanagerdata.ISchemaDefinition|null); /** - * Creates a new GetCellsAliasesResponse instance using the specified properties. + * Creates a new GetSchemaResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetCellsAliasesResponse instance + * @returns GetSchemaResponse instance */ - public static create(properties?: vtctldata.IGetCellsAliasesResponse): vtctldata.GetCellsAliasesResponse; + public static create(properties?: vtctldata.IGetSchemaResponse): vtctldata.GetSchemaResponse; /** - * Encodes the specified GetCellsAliasesResponse message. Does not implicitly {@link vtctldata.GetCellsAliasesResponse.verify|verify} messages. - * @param message GetCellsAliasesResponse message or plain object to encode + * Encodes the specified GetSchemaResponse message. Does not implicitly {@link vtctldata.GetSchemaResponse.verify|verify} messages. + * @param message GetSchemaResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IGetCellsAliasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetCellsAliasesResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellsAliasesResponse.verify|verify} messages. - * @param message GetCellsAliasesResponse message or plain object to encode + * Encodes the specified GetSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetSchemaResponse.verify|verify} messages. + * @param message GetSchemaResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IGetCellsAliasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCellsAliasesResponse message from the specified reader or buffer. + * Decodes a GetSchemaResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetCellsAliasesResponse + * @returns GetSchemaResponse * @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): vtctldata.GetCellsAliasesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSchemaResponse; /** - * Decodes a GetCellsAliasesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetSchemaResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetCellsAliasesResponse + * @returns GetSchemaResponse * @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)): vtctldata.GetCellsAliasesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSchemaResponse; /** - * Verifies a GetCellsAliasesResponse message. + * Verifies a GetSchemaResponse 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. + * Creates a GetSchemaResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetCellsAliasesResponse + * @returns GetSchemaResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellsAliasesResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaResponse; /** - * Creates a plain object from a GetCellsAliasesResponse message. Also converts values to other types if specified. - * @param message GetCellsAliasesResponse + * Creates a plain object from a GetSchemaResponse message. Also converts values to other types if specified. + * @param message GetSchemaResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetCellsAliasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCellsAliasesResponse to JSON. + * Converts this GetSchemaResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetKeyspacesRequest. */ - interface IGetKeyspacesRequest { + /** Properties of a GetShardRequest. */ + interface IGetShardRequest { + + /** GetShardRequest keyspace */ + keyspace?: (string|null); + + /** GetShardRequest shard_name */ + shard_name?: (string|null); } - /** Represents a GetKeyspacesRequest. */ - class GetKeyspacesRequest implements IGetKeyspacesRequest { + /** Represents a GetShardRequest. */ + class GetShardRequest implements IGetShardRequest { /** - * Constructs a new GetKeyspacesRequest. + * Constructs a new GetShardRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetKeyspacesRequest); + constructor(properties?: vtctldata.IGetShardRequest); + + /** GetShardRequest keyspace. */ + public keyspace: string; + + /** GetShardRequest shard_name. */ + public shard_name: string; /** - * Creates a new GetKeyspacesRequest instance using the specified properties. + * Creates a new GetShardRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetKeyspacesRequest instance + * @returns GetShardRequest instance */ - public static create(properties?: vtctldata.IGetKeyspacesRequest): vtctldata.GetKeyspacesRequest; + public static create(properties?: vtctldata.IGetShardRequest): vtctldata.GetShardRequest; /** - * Encodes the specified GetKeyspacesRequest message. Does not implicitly {@link vtctldata.GetKeyspacesRequest.verify|verify} messages. - * @param message GetKeyspacesRequest message or plain object to encode + * Encodes the specified GetShardRequest message. Does not implicitly {@link vtctldata.GetShardRequest.verify|verify} messages. + * @param message GetShardRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IGetKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetKeyspacesRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspacesRequest.verify|verify} messages. - * @param message GetKeyspacesRequest message or plain object to encode + * Encodes the specified GetShardRequest message, length delimited. Does not implicitly {@link vtctldata.GetShardRequest.verify|verify} messages. + * @param message GetShardRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IGetKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetKeyspacesRequest message from the specified reader or buffer. + * Decodes a GetShardRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetKeyspacesRequest + * @returns GetShardRequest * @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): vtctldata.GetKeyspacesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardRequest; /** - * Decodes a GetKeyspacesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetShardRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetKeyspacesRequest + * @returns GetShardRequest * @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)): vtctldata.GetKeyspacesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardRequest; /** - * Verifies a GetKeyspacesRequest message. + * Verifies a GetShardRequest 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 GetKeyspacesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetShardRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetKeyspacesRequest + * @returns GetShardRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspacesRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetShardRequest; /** - * Creates a plain object from a GetKeyspacesRequest message. Also converts values to other types if specified. - * @param message GetKeyspacesRequest + * Creates a plain object from a GetShardRequest message. Also converts values to other types if specified. + * @param message GetShardRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetKeyspacesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetKeyspacesRequest to JSON. + * Converts this GetShardRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetKeyspacesResponse. */ - interface IGetKeyspacesResponse { + /** Properties of a GetShardResponse. */ + interface IGetShardResponse { - /** GetKeyspacesResponse keyspaces */ - keyspaces?: (vtctldata.IKeyspace[]|null); + /** GetShardResponse shard */ + shard?: (vtctldata.IShard|null); } - /** Represents a GetKeyspacesResponse. */ - class GetKeyspacesResponse implements IGetKeyspacesResponse { + /** Represents a GetShardResponse. */ + class GetShardResponse implements IGetShardResponse { /** - * Constructs a new GetKeyspacesResponse. + * Constructs a new GetShardResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetKeyspacesResponse); + constructor(properties?: vtctldata.IGetShardResponse); - /** GetKeyspacesResponse keyspaces. */ - public keyspaces: vtctldata.IKeyspace[]; + /** GetShardResponse shard. */ + public shard?: (vtctldata.IShard|null); /** - * Creates a new GetKeyspacesResponse instance using the specified properties. + * Creates a new GetShardResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetKeyspacesResponse instance + * @returns GetShardResponse instance */ - public static create(properties?: vtctldata.IGetKeyspacesResponse): vtctldata.GetKeyspacesResponse; + public static create(properties?: vtctldata.IGetShardResponse): vtctldata.GetShardResponse; /** - * Encodes the specified GetKeyspacesResponse message. Does not implicitly {@link vtctldata.GetKeyspacesResponse.verify|verify} messages. - * @param message GetKeyspacesResponse message or plain object to encode + * Encodes the specified GetShardResponse message. Does not implicitly {@link vtctldata.GetShardResponse.verify|verify} messages. + * @param message GetShardResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IGetKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetKeyspacesResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspacesResponse.verify|verify} messages. - * @param message GetKeyspacesResponse message or plain object to encode + * Encodes the specified GetShardResponse message, length delimited. Does not implicitly {@link vtctldata.GetShardResponse.verify|verify} messages. + * @param message GetShardResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IGetKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetKeyspacesResponse message from the specified reader or buffer. + * Decodes a GetShardResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetKeyspacesResponse + * @returns GetShardResponse * @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): vtctldata.GetKeyspacesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardResponse; /** - * Decodes a GetKeyspacesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetShardResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetKeyspacesResponse + * @returns GetShardResponse * @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)): vtctldata.GetKeyspacesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardResponse; /** - * Verifies a GetKeyspacesResponse message. + * Verifies a GetShardResponse 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 GetKeyspacesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetShardResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetKeyspacesResponse + * @returns GetShardResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspacesResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetShardResponse; /** - * Creates a plain object from a GetKeyspacesResponse message. Also converts values to other types if specified. - * @param message GetKeyspacesResponse + * Creates a plain object from a GetShardResponse message. Also converts values to other types if specified. + * @param message GetShardResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetKeyspacesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetKeyspacesResponse to JSON. + * Converts this GetShardResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetKeyspaceRequest. */ - interface IGetKeyspaceRequest { + /** Properties of a GetSrvVSchemaRequest. */ + interface IGetSrvVSchemaRequest { - /** GetKeyspaceRequest keyspace */ - keyspace?: (string|null); + /** GetSrvVSchemaRequest cell */ + cell?: (string|null); } - /** Represents a GetKeyspaceRequest. */ - class GetKeyspaceRequest implements IGetKeyspaceRequest { + /** Represents a GetSrvVSchemaRequest. */ + class GetSrvVSchemaRequest implements IGetSrvVSchemaRequest { /** - * Constructs a new GetKeyspaceRequest. + * Constructs a new GetSrvVSchemaRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetKeyspaceRequest); + constructor(properties?: vtctldata.IGetSrvVSchemaRequest); - /** GetKeyspaceRequest keyspace. */ - public keyspace: string; + /** GetSrvVSchemaRequest cell. */ + public cell: string; /** - * Creates a new GetKeyspaceRequest instance using the specified properties. + * Creates a new GetSrvVSchemaRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetKeyspaceRequest instance + * @returns GetSrvVSchemaRequest instance */ - public static create(properties?: vtctldata.IGetKeyspaceRequest): vtctldata.GetKeyspaceRequest; + public static create(properties?: vtctldata.IGetSrvVSchemaRequest): vtctldata.GetSrvVSchemaRequest; /** - * Encodes the specified GetKeyspaceRequest message. Does not implicitly {@link vtctldata.GetKeyspaceRequest.verify|verify} messages. - * @param message GetKeyspaceRequest message or plain object to encode + * Encodes the specified GetSrvVSchemaRequest message. Does not implicitly {@link vtctldata.GetSrvVSchemaRequest.verify|verify} messages. + * @param message GetSrvVSchemaRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IGetKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceRequest.verify|verify} messages. - * @param message GetKeyspaceRequest message or plain object to encode + * Encodes the specified GetSrvVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemaRequest.verify|verify} messages. + * @param message GetSrvVSchemaRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IGetKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetKeyspaceRequest message from the specified reader or buffer. + * Decodes a GetSrvVSchemaRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetKeyspaceRequest + * @returns GetSrvVSchemaRequest * @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): vtctldata.GetKeyspaceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvVSchemaRequest; /** - * Decodes a GetKeyspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSrvVSchemaRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetKeyspaceRequest + * @returns GetSrvVSchemaRequest * @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)): vtctldata.GetKeyspaceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvVSchemaRequest; /** - * Verifies a GetKeyspaceRequest message. + * Verifies a GetSrvVSchemaRequest 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 GetKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetSrvVSchemaRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetKeyspaceRequest + * @returns GetSrvVSchemaRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemaRequest; /** - * Creates a plain object from a GetKeyspaceRequest message. Also converts values to other types if specified. - * @param message GetKeyspaceRequest + * Creates a plain object from a GetSrvVSchemaRequest message. Also converts values to other types if specified. + * @param message GetSrvVSchemaRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetSrvVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetKeyspaceRequest to JSON. + * Converts this GetSrvVSchemaRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetKeyspaceResponse. */ - interface IGetKeyspaceResponse { + /** Properties of a GetSrvVSchemaResponse. */ + interface IGetSrvVSchemaResponse { - /** GetKeyspaceResponse keyspace */ - keyspace?: (vtctldata.IKeyspace|null); + /** GetSrvVSchemaResponse srv_v_schema */ + srv_v_schema?: (vschema.ISrvVSchema|null); } - /** Represents a GetKeyspaceResponse. */ - class GetKeyspaceResponse implements IGetKeyspaceResponse { + /** Represents a GetSrvVSchemaResponse. */ + class GetSrvVSchemaResponse implements IGetSrvVSchemaResponse { /** - * Constructs a new GetKeyspaceResponse. + * Constructs a new GetSrvVSchemaResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetKeyspaceResponse); + constructor(properties?: vtctldata.IGetSrvVSchemaResponse); - /** GetKeyspaceResponse keyspace. */ - public keyspace?: (vtctldata.IKeyspace|null); + /** GetSrvVSchemaResponse srv_v_schema. */ + public srv_v_schema?: (vschema.ISrvVSchema|null); /** - * Creates a new GetKeyspaceResponse instance using the specified properties. + * Creates a new GetSrvVSchemaResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetKeyspaceResponse instance + * @returns GetSrvVSchemaResponse instance */ - public static create(properties?: vtctldata.IGetKeyspaceResponse): vtctldata.GetKeyspaceResponse; + public static create(properties?: vtctldata.IGetSrvVSchemaResponse): vtctldata.GetSrvVSchemaResponse; /** - * Encodes the specified GetKeyspaceResponse message. Does not implicitly {@link vtctldata.GetKeyspaceResponse.verify|verify} messages. - * @param message GetKeyspaceResponse message or plain object to encode + * Encodes the specified GetSrvVSchemaResponse message. Does not implicitly {@link vtctldata.GetSrvVSchemaResponse.verify|verify} messages. + * @param message GetSrvVSchemaResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IGetKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceResponse.verify|verify} messages. - * @param message GetKeyspaceResponse message or plain object to encode + * Encodes the specified GetSrvVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemaResponse.verify|verify} messages. + * @param message GetSrvVSchemaResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IGetKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetKeyspaceResponse message from the specified reader or buffer. + * Decodes a GetSrvVSchemaResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetKeyspaceResponse + * @returns GetSrvVSchemaResponse * @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): vtctldata.GetKeyspaceResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvVSchemaResponse; /** - * Decodes a GetKeyspaceResponse message from the specified reader or buffer, length delimited. + * Decodes a GetSrvVSchemaResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetKeyspaceResponse + * @returns GetSrvVSchemaResponse * @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)): vtctldata.GetKeyspaceResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvVSchemaResponse; /** - * Verifies a GetKeyspaceResponse message. + * Verifies a GetSrvVSchemaResponse 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 GetKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetSrvVSchemaResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetKeyspaceResponse + * @returns GetSrvVSchemaResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemaResponse; /** - * Creates a plain object from a GetKeyspaceResponse message. Also converts values to other types if specified. - * @param message GetKeyspaceResponse + * Creates a plain object from a GetSrvVSchemaResponse message. Also converts values to other types if specified. + * @param message GetSrvVSchemaResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetSrvVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetKeyspaceResponse to JSON. + * Converts this GetSrvVSchemaResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetSchemaRequest. */ - interface IGetSchemaRequest { + /** Properties of a GetTabletRequest. */ + interface IGetTabletRequest { - /** GetSchemaRequest tablet_alias */ + /** GetTabletRequest tablet_alias */ tablet_alias?: (topodata.ITabletAlias|null); - - /** GetSchemaRequest tables */ - tables?: (string[]|null); - - /** GetSchemaRequest exclude_tables */ - exclude_tables?: (string[]|null); - - /** GetSchemaRequest include_views */ - include_views?: (boolean|null); - - /** GetSchemaRequest table_names_only */ - table_names_only?: (boolean|null); - - /** GetSchemaRequest table_sizes_only */ - table_sizes_only?: (boolean|null); } - /** Represents a GetSchemaRequest. */ - class GetSchemaRequest implements IGetSchemaRequest { + /** Represents a GetTabletRequest. */ + class GetTabletRequest implements IGetTabletRequest { /** - * Constructs a new GetSchemaRequest. + * Constructs a new GetTabletRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetSchemaRequest); + constructor(properties?: vtctldata.IGetTabletRequest); - /** GetSchemaRequest tablet_alias. */ + /** GetTabletRequest tablet_alias. */ public tablet_alias?: (topodata.ITabletAlias|null); - /** GetSchemaRequest tables. */ - public tables: string[]; - - /** GetSchemaRequest exclude_tables. */ - public exclude_tables: string[]; - - /** GetSchemaRequest include_views. */ - public include_views: boolean; - - /** GetSchemaRequest table_names_only. */ - public table_names_only: boolean; - - /** GetSchemaRequest table_sizes_only. */ - public table_sizes_only: boolean; - /** - * Creates a new GetSchemaRequest instance using the specified properties. + * Creates a new GetTabletRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetSchemaRequest instance + * @returns GetTabletRequest instance */ - public static create(properties?: vtctldata.IGetSchemaRequest): vtctldata.GetSchemaRequest; + public static create(properties?: vtctldata.IGetTabletRequest): vtctldata.GetTabletRequest; /** - * Encodes the specified GetSchemaRequest message. Does not implicitly {@link vtctldata.GetSchemaRequest.verify|verify} messages. - * @param message GetSchemaRequest message or plain object to encode + * Encodes the specified GetTabletRequest message. Does not implicitly {@link vtctldata.GetTabletRequest.verify|verify} messages. + * @param message GetTabletRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetSchemaRequest.verify|verify} messages. - * @param message GetSchemaRequest message or plain object to encode + * Encodes the specified GetTabletRequest message, length delimited. Does not implicitly {@link vtctldata.GetTabletRequest.verify|verify} messages. + * @param message GetTabletRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSchemaRequest message from the specified reader or buffer. + * Decodes a GetTabletRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetSchemaRequest + * @returns GetTabletRequest * @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): vtctldata.GetSchemaRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletRequest; /** - * Decodes a GetSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a GetTabletRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetSchemaRequest + * @returns GetTabletRequest * @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)): vtctldata.GetSchemaRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletRequest; /** - * Verifies a GetSchemaRequest message. + * Verifies a GetTabletRequest 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 GetSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetTabletRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetSchemaRequest + * @returns GetTabletRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletRequest; /** - * Creates a plain object from a GetSchemaRequest message. Also converts values to other types if specified. - * @param message GetSchemaRequest + * Creates a plain object from a GetTabletRequest message. Also converts values to other types if specified. + * @param message GetTabletRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSchemaRequest to JSON. + * Converts this GetTabletRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetSchemaResponse. */ - interface IGetSchemaResponse { + /** Properties of a GetTabletResponse. */ + interface IGetTabletResponse { - /** GetSchemaResponse schema */ - schema?: (tabletmanagerdata.ISchemaDefinition|null); + /** GetTabletResponse tablet */ + tablet?: (topodata.ITablet|null); } - /** Represents a GetSchemaResponse. */ - class GetSchemaResponse implements IGetSchemaResponse { + /** Represents a GetTabletResponse. */ + class GetTabletResponse implements IGetTabletResponse { /** - * Constructs a new GetSchemaResponse. + * Constructs a new GetTabletResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetSchemaResponse); + constructor(properties?: vtctldata.IGetTabletResponse); - /** GetSchemaResponse schema. */ - public schema?: (tabletmanagerdata.ISchemaDefinition|null); + /** GetTabletResponse tablet. */ + public tablet?: (topodata.ITablet|null); /** - * Creates a new GetSchemaResponse instance using the specified properties. + * Creates a new GetTabletResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetSchemaResponse instance + * @returns GetTabletResponse instance */ - public static create(properties?: vtctldata.IGetSchemaResponse): vtctldata.GetSchemaResponse; + public static create(properties?: vtctldata.IGetTabletResponse): vtctldata.GetTabletResponse; /** - * Encodes the specified GetSchemaResponse message. Does not implicitly {@link vtctldata.GetSchemaResponse.verify|verify} messages. - * @param message GetSchemaResponse message or plain object to encode + * Encodes the specified GetTabletResponse message. Does not implicitly {@link vtctldata.GetTabletResponse.verify|verify} messages. + * @param message GetTabletResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetSchemaResponse.verify|verify} messages. - * @param message GetSchemaResponse message or plain object to encode + * Encodes the specified GetTabletResponse message, length delimited. Does not implicitly {@link vtctldata.GetTabletResponse.verify|verify} messages. + * @param message GetTabletResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSchemaResponse message from the specified reader or buffer. + * Decodes a GetTabletResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetSchemaResponse + * @returns GetTabletResponse * @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): vtctldata.GetSchemaResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletResponse; /** - * Decodes a GetSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a GetTabletResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetSchemaResponse + * @returns GetTabletResponse * @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)): vtctldata.GetSchemaResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletResponse; /** - * Verifies a GetSchemaResponse message. + * Verifies a GetTabletResponse 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 GetSchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetTabletResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetSchemaResponse + * @returns GetTabletResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletResponse; /** - * Creates a plain object from a GetSchemaResponse message. Also converts values to other types if specified. - * @param message GetSchemaResponse + * Creates a plain object from a GetTabletResponse message. Also converts values to other types if specified. + * @param message GetTabletResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSchemaResponse to JSON. + * Converts this GetTabletResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetShardRequest. */ - interface IGetShardRequest { + /** Properties of a GetTabletsRequest. */ + interface IGetTabletsRequest { - /** GetShardRequest keyspace */ + /** GetTabletsRequest keyspace */ keyspace?: (string|null); - /** GetShardRequest shard_name */ - shard_name?: (string|null); + /** GetTabletsRequest shard */ + shard?: (string|null); + + /** GetTabletsRequest cells */ + cells?: (string[]|null); } - /** Represents a GetShardRequest. */ - class GetShardRequest implements IGetShardRequest { + /** Represents a GetTabletsRequest. */ + class GetTabletsRequest implements IGetTabletsRequest { /** - * Constructs a new GetShardRequest. + * Constructs a new GetTabletsRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetShardRequest); + constructor(properties?: vtctldata.IGetTabletsRequest); - /** GetShardRequest keyspace. */ + /** GetTabletsRequest keyspace. */ public keyspace: string; - /** GetShardRequest shard_name. */ - public shard_name: string; + /** GetTabletsRequest shard. */ + public shard: string; + + /** GetTabletsRequest cells. */ + public cells: string[]; /** - * Creates a new GetShardRequest instance using the specified properties. + * Creates a new GetTabletsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetShardRequest instance + * @returns GetTabletsRequest instance */ - public static create(properties?: vtctldata.IGetShardRequest): vtctldata.GetShardRequest; + public static create(properties?: vtctldata.IGetTabletsRequest): vtctldata.GetTabletsRequest; /** - * Encodes the specified GetShardRequest message. Does not implicitly {@link vtctldata.GetShardRequest.verify|verify} messages. - * @param message GetShardRequest message or plain object to encode + * Encodes the specified GetTabletsRequest message. Does not implicitly {@link vtctldata.GetTabletsRequest.verify|verify} messages. + * @param message GetTabletsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IGetShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetShardRequest message, length delimited. Does not implicitly {@link vtctldata.GetShardRequest.verify|verify} messages. - * @param message GetShardRequest message or plain object to encode + * Encodes the specified GetTabletsRequest message, length delimited. Does not implicitly {@link vtctldata.GetTabletsRequest.verify|verify} messages. + * @param message GetTabletsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IGetShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetShardRequest message from the specified reader or buffer. + * Decodes a GetTabletsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetShardRequest + * @returns GetTabletsRequest * @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): vtctldata.GetShardRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletsRequest; /** - * Decodes a GetShardRequest message from the specified reader or buffer, length delimited. + * Decodes a GetTabletsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetShardRequest + * @returns GetTabletsRequest * @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)): vtctldata.GetShardRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletsRequest; /** - * Verifies a GetShardRequest message. + * Verifies a GetTabletsRequest 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 GetShardRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetTabletsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetShardRequest + * @returns GetTabletsRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetShardRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletsRequest; /** - * Creates a plain object from a GetShardRequest message. Also converts values to other types if specified. - * @param message GetShardRequest + * Creates a plain object from a GetTabletsRequest message. Also converts values to other types if specified. + * @param message GetTabletsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetTabletsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetShardRequest to JSON. + * Converts this GetTabletsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetShardResponse. */ - interface IGetShardResponse { + /** Properties of a GetTabletsResponse. */ + interface IGetTabletsResponse { - /** GetShardResponse shard */ - shard?: (vtctldata.IShard|null); + /** GetTabletsResponse tablets */ + tablets?: (topodata.ITablet[]|null); } - /** Represents a GetShardResponse. */ - class GetShardResponse implements IGetShardResponse { + /** Represents a GetTabletsResponse. */ + class GetTabletsResponse implements IGetTabletsResponse { /** - * Constructs a new GetShardResponse. + * Constructs a new GetTabletsResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetShardResponse); + constructor(properties?: vtctldata.IGetTabletsResponse); - /** GetShardResponse shard. */ - public shard?: (vtctldata.IShard|null); + /** GetTabletsResponse tablets. */ + public tablets: topodata.ITablet[]; /** - * Creates a new GetShardResponse instance using the specified properties. + * Creates a new GetTabletsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetShardResponse instance + * @returns GetTabletsResponse instance */ - public static create(properties?: vtctldata.IGetShardResponse): vtctldata.GetShardResponse; + public static create(properties?: vtctldata.IGetTabletsResponse): vtctldata.GetTabletsResponse; /** - * Encodes the specified GetShardResponse message. Does not implicitly {@link vtctldata.GetShardResponse.verify|verify} messages. - * @param message GetShardResponse message or plain object to encode + * Encodes the specified GetTabletsResponse message. Does not implicitly {@link vtctldata.GetTabletsResponse.verify|verify} messages. + * @param message GetTabletsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IGetShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetShardResponse message, length delimited. Does not implicitly {@link vtctldata.GetShardResponse.verify|verify} messages. - * @param message GetShardResponse message or plain object to encode + * Encodes the specified GetTabletsResponse message, length delimited. Does not implicitly {@link vtctldata.GetTabletsResponse.verify|verify} messages. + * @param message GetTabletsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IGetShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetShardResponse message from the specified reader or buffer. + * Decodes a GetTabletsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetShardResponse + * @returns GetTabletsResponse * @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): vtctldata.GetShardResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletsResponse; /** - * Decodes a GetShardResponse message from the specified reader or buffer, length delimited. + * Decodes a GetTabletsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetShardResponse + * @returns GetTabletsResponse * @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)): vtctldata.GetShardResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletsResponse; /** - * Verifies a GetShardResponse message. + * Verifies a GetTabletsResponse 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 GetShardResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetTabletsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetShardResponse + * @returns GetTabletsResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetShardResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletsResponse; /** - * Creates a plain object from a GetShardResponse message. Also converts values to other types if specified. - * @param message GetShardResponse + * Creates a plain object from a GetTabletsResponse message. Also converts values to other types if specified. + * @param message GetTabletsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetTabletsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetShardResponse to JSON. + * Converts this GetTabletsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetSrvVSchemaRequest. */ - interface IGetSrvVSchemaRequest { + /** Properties of a GetVSchemaRequest. */ + interface IGetVSchemaRequest { - /** GetSrvVSchemaRequest cell */ - cell?: (string|null); + /** GetVSchemaRequest keyspace */ + keyspace?: (string|null); } - /** Represents a GetSrvVSchemaRequest. */ - class GetSrvVSchemaRequest implements IGetSrvVSchemaRequest { + /** Represents a GetVSchemaRequest. */ + class GetVSchemaRequest implements IGetVSchemaRequest { /** - * Constructs a new GetSrvVSchemaRequest. + * Constructs a new GetVSchemaRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetSrvVSchemaRequest); + constructor(properties?: vtctldata.IGetVSchemaRequest); - /** GetSrvVSchemaRequest cell. */ - public cell: string; + /** GetVSchemaRequest keyspace. */ + public keyspace: string; /** - * Creates a new GetSrvVSchemaRequest instance using the specified properties. + * Creates a new GetVSchemaRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetSrvVSchemaRequest instance + * @returns GetVSchemaRequest instance */ - public static create(properties?: vtctldata.IGetSrvVSchemaRequest): vtctldata.GetSrvVSchemaRequest; + public static create(properties?: vtctldata.IGetVSchemaRequest): vtctldata.GetVSchemaRequest; /** - * Encodes the specified GetSrvVSchemaRequest message. Does not implicitly {@link vtctldata.GetSrvVSchemaRequest.verify|verify} messages. - * @param message GetSrvVSchemaRequest message or plain object to encode + * Encodes the specified GetVSchemaRequest message. Does not implicitly {@link vtctldata.GetVSchemaRequest.verify|verify} messages. + * @param message GetVSchemaRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IGetSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetSrvVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemaRequest.verify|verify} messages. - * @param message GetSrvVSchemaRequest message or plain object to encode + * Encodes the specified GetVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetVSchemaRequest.verify|verify} messages. + * @param message GetVSchemaRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IGetSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSrvVSchemaRequest message from the specified reader or buffer. + * Decodes a GetVSchemaRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetSrvVSchemaRequest + * @returns GetVSchemaRequest * @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): vtctldata.GetSrvVSchemaRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetVSchemaRequest; /** - * Decodes a GetSrvVSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a GetVSchemaRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetSrvVSchemaRequest + * @returns GetVSchemaRequest * @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)): vtctldata.GetSrvVSchemaRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetVSchemaRequest; /** - * Verifies a GetSrvVSchemaRequest message. + * Verifies a GetVSchemaRequest 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 GetSrvVSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetVSchemaRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetSrvVSchemaRequest + * @returns GetVSchemaRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemaRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.GetVSchemaRequest; /** - * Creates a plain object from a GetSrvVSchemaRequest message. Also converts values to other types if specified. - * @param message GetSrvVSchemaRequest + * Creates a plain object from a GetVSchemaRequest message. Also converts values to other types if specified. + * @param message GetVSchemaRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetSrvVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSrvVSchemaRequest to JSON. + * Converts this GetVSchemaRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetSrvVSchemaResponse. */ - interface IGetSrvVSchemaResponse { + /** Properties of a GetVSchemaResponse. */ + interface IGetVSchemaResponse { - /** GetSrvVSchemaResponse srv_v_schema */ - srv_v_schema?: (vschema.ISrvVSchema|null); + /** GetVSchemaResponse v_schema */ + v_schema?: (vschema.IKeyspace|null); } - /** Represents a GetSrvVSchemaResponse. */ - class GetSrvVSchemaResponse implements IGetSrvVSchemaResponse { + /** Represents a GetVSchemaResponse. */ + class GetVSchemaResponse implements IGetVSchemaResponse { /** - * Constructs a new GetSrvVSchemaResponse. + * Constructs a new GetVSchemaResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetSrvVSchemaResponse); + constructor(properties?: vtctldata.IGetVSchemaResponse); - /** GetSrvVSchemaResponse srv_v_schema. */ - public srv_v_schema?: (vschema.ISrvVSchema|null); + /** GetVSchemaResponse v_schema. */ + public v_schema?: (vschema.IKeyspace|null); /** - * Creates a new GetSrvVSchemaResponse instance using the specified properties. + * Creates a new GetVSchemaResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetSrvVSchemaResponse instance + * @returns GetVSchemaResponse instance */ - public static create(properties?: vtctldata.IGetSrvVSchemaResponse): vtctldata.GetSrvVSchemaResponse; + public static create(properties?: vtctldata.IGetVSchemaResponse): vtctldata.GetVSchemaResponse; /** - * Encodes the specified GetSrvVSchemaResponse message. Does not implicitly {@link vtctldata.GetSrvVSchemaResponse.verify|verify} messages. - * @param message GetSrvVSchemaResponse message or plain object to encode + * Encodes the specified GetVSchemaResponse message. Does not implicitly {@link vtctldata.GetVSchemaResponse.verify|verify} messages. + * @param message GetVSchemaResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IGetSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IGetVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetSrvVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemaResponse.verify|verify} messages. - * @param message GetSrvVSchemaResponse message or plain object to encode + * Encodes the specified GetVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetVSchemaResponse.verify|verify} messages. + * @param message GetVSchemaResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IGetSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IGetVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSrvVSchemaResponse message from the specified reader or buffer. + * Decodes a GetVSchemaResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetSrvVSchemaResponse + * @returns GetVSchemaResponse * @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): vtctldata.GetSrvVSchemaResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetVSchemaResponse; /** - * Decodes a GetSrvVSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a GetVSchemaResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetSrvVSchemaResponse + * @returns GetVSchemaResponse * @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)): vtctldata.GetSrvVSchemaResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetVSchemaResponse; /** - * Verifies a GetSrvVSchemaResponse message. + * Verifies a GetVSchemaResponse 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 GetSrvVSchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetVSchemaResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetSrvVSchemaResponse + * @returns GetVSchemaResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemaResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.GetVSchemaResponse; /** - * Creates a plain object from a GetSrvVSchemaResponse message. Also converts values to other types if specified. - * @param message GetSrvVSchemaResponse + * Creates a plain object from a GetVSchemaResponse message. Also converts values to other types if specified. + * @param message GetVSchemaResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetSrvVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.GetVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSrvVSchemaResponse to JSON. + * Converts this GetVSchemaResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetTabletRequest. */ - interface IGetTabletRequest { + /** Properties of an InitShardPrimaryRequest. */ + interface IInitShardPrimaryRequest { - /** GetTabletRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); + /** InitShardPrimaryRequest keyspace */ + keyspace?: (string|null); + + /** InitShardPrimaryRequest shard */ + shard?: (string|null); + + /** InitShardPrimaryRequest primary_elect_tablet_alias */ + primary_elect_tablet_alias?: (topodata.ITabletAlias|null); + + /** InitShardPrimaryRequest force */ + force?: (boolean|null); + + /** InitShardPrimaryRequest wait_replicas_timeout */ + wait_replicas_timeout?: (vttime.IDuration|null); } - /** Represents a GetTabletRequest. */ - class GetTabletRequest implements IGetTabletRequest { + /** Represents an InitShardPrimaryRequest. */ + class InitShardPrimaryRequest implements IInitShardPrimaryRequest { /** - * Constructs a new GetTabletRequest. + * Constructs a new InitShardPrimaryRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetTabletRequest); + constructor(properties?: vtctldata.IInitShardPrimaryRequest); - /** GetTabletRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); + /** InitShardPrimaryRequest keyspace. */ + public keyspace: string; + + /** InitShardPrimaryRequest shard. */ + public shard: string; + + /** InitShardPrimaryRequest primary_elect_tablet_alias. */ + public primary_elect_tablet_alias?: (topodata.ITabletAlias|null); + + /** InitShardPrimaryRequest force. */ + public force: boolean; + + /** InitShardPrimaryRequest wait_replicas_timeout. */ + public wait_replicas_timeout?: (vttime.IDuration|null); /** - * Creates a new GetTabletRequest instance using the specified properties. + * Creates a new InitShardPrimaryRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetTabletRequest instance + * @returns InitShardPrimaryRequest instance */ - public static create(properties?: vtctldata.IGetTabletRequest): vtctldata.GetTabletRequest; + public static create(properties?: vtctldata.IInitShardPrimaryRequest): vtctldata.InitShardPrimaryRequest; /** - * Encodes the specified GetTabletRequest message. Does not implicitly {@link vtctldata.GetTabletRequest.verify|verify} messages. - * @param message GetTabletRequest message or plain object to encode + * Encodes the specified InitShardPrimaryRequest message. Does not implicitly {@link vtctldata.InitShardPrimaryRequest.verify|verify} messages. + * @param message InitShardPrimaryRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IGetTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IInitShardPrimaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTabletRequest message, length delimited. Does not implicitly {@link vtctldata.GetTabletRequest.verify|verify} messages. - * @param message GetTabletRequest message or plain object to encode + * Encodes the specified InitShardPrimaryRequest message, length delimited. Does not implicitly {@link vtctldata.InitShardPrimaryRequest.verify|verify} messages. + * @param message InitShardPrimaryRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IGetTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IInitShardPrimaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTabletRequest message from the specified reader or buffer. + * Decodes an InitShardPrimaryRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetTabletRequest + * @returns InitShardPrimaryRequest * @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): vtctldata.GetTabletRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.InitShardPrimaryRequest; /** - * Decodes a GetTabletRequest message from the specified reader or buffer, length delimited. + * Decodes an InitShardPrimaryRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTabletRequest + * @returns InitShardPrimaryRequest * @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)): vtctldata.GetTabletRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.InitShardPrimaryRequest; /** - * Verifies a GetTabletRequest message. + * Verifies an InitShardPrimaryRequest 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 GetTabletRequest message from a plain object. Also converts values to their respective internal types. + * Creates an InitShardPrimaryRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTabletRequest + * @returns InitShardPrimaryRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.InitShardPrimaryRequest; /** - * Creates a plain object from a GetTabletRequest message. Also converts values to other types if specified. - * @param message GetTabletRequest + * Creates a plain object from an InitShardPrimaryRequest message. Also converts values to other types if specified. + * @param message InitShardPrimaryRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.InitShardPrimaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTabletRequest to JSON. + * Converts this InitShardPrimaryRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetTabletResponse. */ - interface IGetTabletResponse { + /** Properties of an InitShardPrimaryResponse. */ + interface IInitShardPrimaryResponse { - /** GetTabletResponse tablet */ - tablet?: (topodata.ITablet|null); + /** InitShardPrimaryResponse events */ + events?: (logutil.IEvent[]|null); } - /** Represents a GetTabletResponse. */ - class GetTabletResponse implements IGetTabletResponse { + /** Represents an InitShardPrimaryResponse. */ + class InitShardPrimaryResponse implements IInitShardPrimaryResponse { /** - * Constructs a new GetTabletResponse. + * Constructs a new InitShardPrimaryResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetTabletResponse); + constructor(properties?: vtctldata.IInitShardPrimaryResponse); - /** GetTabletResponse tablet. */ - public tablet?: (topodata.ITablet|null); + /** InitShardPrimaryResponse events. */ + public events: logutil.IEvent[]; /** - * Creates a new GetTabletResponse instance using the specified properties. + * Creates a new InitShardPrimaryResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetTabletResponse instance + * @returns InitShardPrimaryResponse instance */ - public static create(properties?: vtctldata.IGetTabletResponse): vtctldata.GetTabletResponse; + public static create(properties?: vtctldata.IInitShardPrimaryResponse): vtctldata.InitShardPrimaryResponse; /** - * Encodes the specified GetTabletResponse message. Does not implicitly {@link vtctldata.GetTabletResponse.verify|verify} messages. - * @param message GetTabletResponse message or plain object to encode + * Encodes the specified InitShardPrimaryResponse message. Does not implicitly {@link vtctldata.InitShardPrimaryResponse.verify|verify} messages. + * @param message InitShardPrimaryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IGetTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IInitShardPrimaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTabletResponse message, length delimited. Does not implicitly {@link vtctldata.GetTabletResponse.verify|verify} messages. - * @param message GetTabletResponse message or plain object to encode + * Encodes the specified InitShardPrimaryResponse message, length delimited. Does not implicitly {@link vtctldata.InitShardPrimaryResponse.verify|verify} messages. + * @param message InitShardPrimaryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IGetTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IInitShardPrimaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTabletResponse message from the specified reader or buffer. + * Decodes an InitShardPrimaryResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetTabletResponse + * @returns InitShardPrimaryResponse * @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): vtctldata.GetTabletResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.InitShardPrimaryResponse; /** - * Decodes a GetTabletResponse message from the specified reader or buffer, length delimited. + * Decodes an InitShardPrimaryResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTabletResponse + * @returns InitShardPrimaryResponse * @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)): vtctldata.GetTabletResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.InitShardPrimaryResponse; /** - * Verifies a GetTabletResponse message. + * Verifies an InitShardPrimaryResponse 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 GetTabletResponse message from a plain object. Also converts values to their respective internal types. + * Creates an InitShardPrimaryResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTabletResponse + * @returns InitShardPrimaryResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.InitShardPrimaryResponse; /** - * Creates a plain object from a GetTabletResponse message. Also converts values to other types if specified. - * @param message GetTabletResponse + * Creates a plain object from an InitShardPrimaryResponse message. Also converts values to other types if specified. + * @param message InitShardPrimaryResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.InitShardPrimaryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTabletResponse to JSON. + * Converts this InitShardPrimaryResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetTabletsRequest. */ - interface IGetTabletsRequest { + /** Properties of a PlannedReparentShardRequest. */ + interface IPlannedReparentShardRequest { - /** GetTabletsRequest keyspace */ + /** PlannedReparentShardRequest keyspace */ keyspace?: (string|null); - /** GetTabletsRequest shard */ + /** PlannedReparentShardRequest shard */ shard?: (string|null); - /** GetTabletsRequest cells */ - cells?: (string[]|null); + /** PlannedReparentShardRequest new_primary */ + new_primary?: (topodata.ITabletAlias|null); + + /** PlannedReparentShardRequest avoid_primary */ + avoid_primary?: (topodata.ITabletAlias|null); + + /** PlannedReparentShardRequest wait_replicas_timeout */ + wait_replicas_timeout?: (vttime.IDuration|null); } - /** Represents a GetTabletsRequest. */ - class GetTabletsRequest implements IGetTabletsRequest { + /** Represents a PlannedReparentShardRequest. */ + class PlannedReparentShardRequest implements IPlannedReparentShardRequest { /** - * Constructs a new GetTabletsRequest. + * Constructs a new PlannedReparentShardRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetTabletsRequest); + constructor(properties?: vtctldata.IPlannedReparentShardRequest); - /** GetTabletsRequest keyspace. */ + /** PlannedReparentShardRequest keyspace. */ public keyspace: string; - /** GetTabletsRequest shard. */ + /** PlannedReparentShardRequest shard. */ public shard: string; - /** GetTabletsRequest cells. */ - public cells: string[]; + /** PlannedReparentShardRequest new_primary. */ + public new_primary?: (topodata.ITabletAlias|null); + + /** PlannedReparentShardRequest avoid_primary. */ + public avoid_primary?: (topodata.ITabletAlias|null); + + /** PlannedReparentShardRequest wait_replicas_timeout. */ + public wait_replicas_timeout?: (vttime.IDuration|null); /** - * Creates a new GetTabletsRequest instance using the specified properties. + * Creates a new PlannedReparentShardRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetTabletsRequest instance + * @returns PlannedReparentShardRequest instance */ - public static create(properties?: vtctldata.IGetTabletsRequest): vtctldata.GetTabletsRequest; + public static create(properties?: vtctldata.IPlannedReparentShardRequest): vtctldata.PlannedReparentShardRequest; /** - * Encodes the specified GetTabletsRequest message. Does not implicitly {@link vtctldata.GetTabletsRequest.verify|verify} messages. - * @param message GetTabletsRequest message or plain object to encode + * Encodes the specified PlannedReparentShardRequest message. Does not implicitly {@link vtctldata.PlannedReparentShardRequest.verify|verify} messages. + * @param message PlannedReparentShardRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IGetTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IPlannedReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTabletsRequest message, length delimited. Does not implicitly {@link vtctldata.GetTabletsRequest.verify|verify} messages. - * @param message GetTabletsRequest message or plain object to encode + * Encodes the specified PlannedReparentShardRequest message, length delimited. Does not implicitly {@link vtctldata.PlannedReparentShardRequest.verify|verify} messages. + * @param message PlannedReparentShardRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IGetTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IPlannedReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTabletsRequest message from the specified reader or buffer. + * Decodes a PlannedReparentShardRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetTabletsRequest + * @returns PlannedReparentShardRequest * @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): vtctldata.GetTabletsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.PlannedReparentShardRequest; /** - * Decodes a GetTabletsRequest message from the specified reader or buffer, length delimited. + * Decodes a PlannedReparentShardRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTabletsRequest + * @returns PlannedReparentShardRequest * @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)): vtctldata.GetTabletsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.PlannedReparentShardRequest; /** - * Verifies a GetTabletsRequest message. + * Verifies a PlannedReparentShardRequest 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 GetTabletsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PlannedReparentShardRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTabletsRequest + * @returns PlannedReparentShardRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletsRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.PlannedReparentShardRequest; /** - * Creates a plain object from a GetTabletsRequest message. Also converts values to other types if specified. - * @param message GetTabletsRequest + * Creates a plain object from a PlannedReparentShardRequest message. Also converts values to other types if specified. + * @param message PlannedReparentShardRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetTabletsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.PlannedReparentShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTabletsRequest to JSON. + * Converts this PlannedReparentShardRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetTabletsResponse. */ - interface IGetTabletsResponse { + /** Properties of a PlannedReparentShardResponse. */ + interface IPlannedReparentShardResponse { - /** GetTabletsResponse tablets */ - tablets?: (topodata.ITablet[]|null); + /** PlannedReparentShardResponse keyspace */ + keyspace?: (string|null); + + /** PlannedReparentShardResponse shard */ + shard?: (string|null); + + /** PlannedReparentShardResponse promoted_primary */ + promoted_primary?: (topodata.ITabletAlias|null); + + /** PlannedReparentShardResponse events */ + events?: (logutil.IEvent[]|null); } - /** Represents a GetTabletsResponse. */ - class GetTabletsResponse implements IGetTabletsResponse { + /** Represents a PlannedReparentShardResponse. */ + class PlannedReparentShardResponse implements IPlannedReparentShardResponse { /** - * Constructs a new GetTabletsResponse. + * Constructs a new PlannedReparentShardResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetTabletsResponse); + constructor(properties?: vtctldata.IPlannedReparentShardResponse); - /** GetTabletsResponse tablets. */ - public tablets: topodata.ITablet[]; + /** PlannedReparentShardResponse keyspace. */ + public keyspace: string; + + /** PlannedReparentShardResponse shard. */ + public shard: string; + + /** PlannedReparentShardResponse promoted_primary. */ + public promoted_primary?: (topodata.ITabletAlias|null); + + /** PlannedReparentShardResponse events. */ + public events: logutil.IEvent[]; /** - * Creates a new GetTabletsResponse instance using the specified properties. + * Creates a new PlannedReparentShardResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetTabletsResponse instance + * @returns PlannedReparentShardResponse instance */ - public static create(properties?: vtctldata.IGetTabletsResponse): vtctldata.GetTabletsResponse; + public static create(properties?: vtctldata.IPlannedReparentShardResponse): vtctldata.PlannedReparentShardResponse; /** - * Encodes the specified GetTabletsResponse message. Does not implicitly {@link vtctldata.GetTabletsResponse.verify|verify} messages. - * @param message GetTabletsResponse message or plain object to encode + * Encodes the specified PlannedReparentShardResponse message. Does not implicitly {@link vtctldata.PlannedReparentShardResponse.verify|verify} messages. + * @param message PlannedReparentShardResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IGetTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IPlannedReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTabletsResponse message, length delimited. Does not implicitly {@link vtctldata.GetTabletsResponse.verify|verify} messages. - * @param message GetTabletsResponse message or plain object to encode + * Encodes the specified PlannedReparentShardResponse message, length delimited. Does not implicitly {@link vtctldata.PlannedReparentShardResponse.verify|verify} messages. + * @param message PlannedReparentShardResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IGetTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IPlannedReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTabletsResponse message from the specified reader or buffer. + * Decodes a PlannedReparentShardResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetTabletsResponse + * @returns PlannedReparentShardResponse * @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): vtctldata.GetTabletsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.PlannedReparentShardResponse; /** - * Decodes a GetTabletsResponse message from the specified reader or buffer, length delimited. + * Decodes a PlannedReparentShardResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTabletsResponse + * @returns PlannedReparentShardResponse * @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)): vtctldata.GetTabletsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.PlannedReparentShardResponse; /** - * Verifies a GetTabletsResponse message. + * Verifies a PlannedReparentShardResponse 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 GetTabletsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PlannedReparentShardResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTabletsResponse + * @returns PlannedReparentShardResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletsResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.PlannedReparentShardResponse; /** - * Creates a plain object from a GetTabletsResponse message. Also converts values to other types if specified. - * @param message GetTabletsResponse + * Creates a plain object from a PlannedReparentShardResponse message. Also converts values to other types if specified. + * @param message PlannedReparentShardResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetTabletsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.PlannedReparentShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTabletsResponse to JSON. + * Converts this PlannedReparentShardResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetVSchemaRequest. */ - interface IGetVSchemaRequest { + /** Properties of a RemoveKeyspaceCellRequest. */ + interface IRemoveKeyspaceCellRequest { - /** GetVSchemaRequest keyspace */ + /** RemoveKeyspaceCellRequest keyspace */ keyspace?: (string|null); + + /** RemoveKeyspaceCellRequest cell */ + cell?: (string|null); + + /** RemoveKeyspaceCellRequest force */ + force?: (boolean|null); + + /** RemoveKeyspaceCellRequest recursive */ + recursive?: (boolean|null); } - /** Represents a GetVSchemaRequest. */ - class GetVSchemaRequest implements IGetVSchemaRequest { + /** Represents a RemoveKeyspaceCellRequest. */ + class RemoveKeyspaceCellRequest implements IRemoveKeyspaceCellRequest { /** - * Constructs a new GetVSchemaRequest. + * Constructs a new RemoveKeyspaceCellRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetVSchemaRequest); + constructor(properties?: vtctldata.IRemoveKeyspaceCellRequest); - /** GetVSchemaRequest keyspace. */ + /** RemoveKeyspaceCellRequest keyspace. */ public keyspace: string; + /** RemoveKeyspaceCellRequest cell. */ + public cell: string; + + /** RemoveKeyspaceCellRequest force. */ + public force: boolean; + + /** RemoveKeyspaceCellRequest recursive. */ + public recursive: boolean; + /** - * Creates a new GetVSchemaRequest instance using the specified properties. + * Creates a new RemoveKeyspaceCellRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetVSchemaRequest instance + * @returns RemoveKeyspaceCellRequest instance */ - public static create(properties?: vtctldata.IGetVSchemaRequest): vtctldata.GetVSchemaRequest; + public static create(properties?: vtctldata.IRemoveKeyspaceCellRequest): vtctldata.RemoveKeyspaceCellRequest; /** - * Encodes the specified GetVSchemaRequest message. Does not implicitly {@link vtctldata.GetVSchemaRequest.verify|verify} messages. - * @param message GetVSchemaRequest message or plain object to encode + * Encodes the specified RemoveKeyspaceCellRequest message. Does not implicitly {@link vtctldata.RemoveKeyspaceCellRequest.verify|verify} messages. + * @param message RemoveKeyspaceCellRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IGetVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRemoveKeyspaceCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetVSchemaRequest.verify|verify} messages. - * @param message GetVSchemaRequest message or plain object to encode + * Encodes the specified RemoveKeyspaceCellRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveKeyspaceCellRequest.verify|verify} messages. + * @param message RemoveKeyspaceCellRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IGetVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRemoveKeyspaceCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetVSchemaRequest message from the specified reader or buffer. + * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetVSchemaRequest + * @returns RemoveKeyspaceCellRequest * @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): vtctldata.GetVSchemaRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveKeyspaceCellRequest; /** - * Decodes a GetVSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetVSchemaRequest + * @returns RemoveKeyspaceCellRequest * @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)): vtctldata.GetVSchemaRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveKeyspaceCellRequest; /** - * Verifies a GetVSchemaRequest message. + * Verifies a RemoveKeyspaceCellRequest 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 GetVSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveKeyspaceCellRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetVSchemaRequest + * @returns RemoveKeyspaceCellRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetVSchemaRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.RemoveKeyspaceCellRequest; /** - * Creates a plain object from a GetVSchemaRequest message. Also converts values to other types if specified. - * @param message GetVSchemaRequest + * Creates a plain object from a RemoveKeyspaceCellRequest message. Also converts values to other types if specified. + * @param message RemoveKeyspaceCellRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RemoveKeyspaceCellRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetVSchemaRequest to JSON. + * Converts this RemoveKeyspaceCellRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetVSchemaResponse. */ - interface IGetVSchemaResponse { - - /** GetVSchemaResponse v_schema */ - v_schema?: (vschema.IKeyspace|null); + /** Properties of a RemoveKeyspaceCellResponse. */ + interface IRemoveKeyspaceCellResponse { } - /** Represents a GetVSchemaResponse. */ - class GetVSchemaResponse implements IGetVSchemaResponse { + /** Represents a RemoveKeyspaceCellResponse. */ + class RemoveKeyspaceCellResponse implements IRemoveKeyspaceCellResponse { /** - * Constructs a new GetVSchemaResponse. + * Constructs a new RemoveKeyspaceCellResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IGetVSchemaResponse); - - /** GetVSchemaResponse v_schema. */ - public v_schema?: (vschema.IKeyspace|null); + constructor(properties?: vtctldata.IRemoveKeyspaceCellResponse); /** - * Creates a new GetVSchemaResponse instance using the specified properties. + * Creates a new RemoveKeyspaceCellResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetVSchemaResponse instance + * @returns RemoveKeyspaceCellResponse instance */ - public static create(properties?: vtctldata.IGetVSchemaResponse): vtctldata.GetVSchemaResponse; + public static create(properties?: vtctldata.IRemoveKeyspaceCellResponse): vtctldata.RemoveKeyspaceCellResponse; /** - * Encodes the specified GetVSchemaResponse message. Does not implicitly {@link vtctldata.GetVSchemaResponse.verify|verify} messages. - * @param message GetVSchemaResponse message or plain object to encode + * Encodes the specified RemoveKeyspaceCellResponse message. Does not implicitly {@link vtctldata.RemoveKeyspaceCellResponse.verify|verify} messages. + * @param message RemoveKeyspaceCellResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IGetVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRemoveKeyspaceCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetVSchemaResponse.verify|verify} messages. - * @param message GetVSchemaResponse message or plain object to encode + * Encodes the specified RemoveKeyspaceCellResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveKeyspaceCellResponse.verify|verify} messages. + * @param message RemoveKeyspaceCellResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IGetVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRemoveKeyspaceCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetVSchemaResponse message from the specified reader or buffer. + * Decodes a RemoveKeyspaceCellResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetVSchemaResponse + * @returns RemoveKeyspaceCellResponse * @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): vtctldata.GetVSchemaResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveKeyspaceCellResponse; /** - * Decodes a GetVSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a RemoveKeyspaceCellResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetVSchemaResponse + * @returns RemoveKeyspaceCellResponse * @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)): vtctldata.GetVSchemaResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveKeyspaceCellResponse; /** - * Verifies a GetVSchemaResponse message. + * Verifies a RemoveKeyspaceCellResponse 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 GetVSchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveKeyspaceCellResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetVSchemaResponse + * @returns RemoveKeyspaceCellResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetVSchemaResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.RemoveKeyspaceCellResponse; /** - * Creates a plain object from a GetVSchemaResponse message. Also converts values to other types if specified. - * @param message GetVSchemaResponse + * Creates a plain object from a RemoveKeyspaceCellResponse message. Also converts values to other types if specified. + * @param message RemoveKeyspaceCellResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.GetVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RemoveKeyspaceCellResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetVSchemaResponse to JSON. + * Converts this RemoveKeyspaceCellResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an InitShardPrimaryRequest. */ - interface IInitShardPrimaryRequest { + /** Properties of a RemoveShardCellRequest. */ + interface IRemoveShardCellRequest { - /** InitShardPrimaryRequest keyspace */ + /** RemoveShardCellRequest keyspace */ keyspace?: (string|null); - /** InitShardPrimaryRequest shard */ - shard?: (string|null); + /** RemoveShardCellRequest shard_name */ + shard_name?: (string|null); - /** InitShardPrimaryRequest primary_elect_tablet_alias */ - primary_elect_tablet_alias?: (topodata.ITabletAlias|null); + /** RemoveShardCellRequest cell */ + cell?: (string|null); - /** InitShardPrimaryRequest force */ + /** RemoveShardCellRequest force */ force?: (boolean|null); - /** InitShardPrimaryRequest wait_replicas_timeout */ - wait_replicas_timeout?: (google.protobuf.IDuration|null); + /** RemoveShardCellRequest recursive */ + recursive?: (boolean|null); } - /** Represents an InitShardPrimaryRequest. */ - class InitShardPrimaryRequest implements IInitShardPrimaryRequest { + /** Represents a RemoveShardCellRequest. */ + class RemoveShardCellRequest implements IRemoveShardCellRequest { /** - * Constructs a new InitShardPrimaryRequest. + * Constructs a new RemoveShardCellRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IInitShardPrimaryRequest); + constructor(properties?: vtctldata.IRemoveShardCellRequest); - /** InitShardPrimaryRequest keyspace. */ + /** RemoveShardCellRequest keyspace. */ public keyspace: string; - /** InitShardPrimaryRequest shard. */ - public shard: string; + /** RemoveShardCellRequest shard_name. */ + public shard_name: string; - /** InitShardPrimaryRequest primary_elect_tablet_alias. */ - public primary_elect_tablet_alias?: (topodata.ITabletAlias|null); + /** RemoveShardCellRequest cell. */ + public cell: string; - /** InitShardPrimaryRequest force. */ + /** RemoveShardCellRequest force. */ public force: boolean; - /** InitShardPrimaryRequest wait_replicas_timeout. */ - public wait_replicas_timeout?: (google.protobuf.IDuration|null); + /** RemoveShardCellRequest recursive. */ + public recursive: boolean; /** - * Creates a new InitShardPrimaryRequest instance using the specified properties. + * Creates a new RemoveShardCellRequest instance using the specified properties. * @param [properties] Properties to set - * @returns InitShardPrimaryRequest instance + * @returns RemoveShardCellRequest instance */ - public static create(properties?: vtctldata.IInitShardPrimaryRequest): vtctldata.InitShardPrimaryRequest; + public static create(properties?: vtctldata.IRemoveShardCellRequest): vtctldata.RemoveShardCellRequest; /** - * Encodes the specified InitShardPrimaryRequest message. Does not implicitly {@link vtctldata.InitShardPrimaryRequest.verify|verify} messages. - * @param message InitShardPrimaryRequest message or plain object to encode + * Encodes the specified RemoveShardCellRequest message. Does not implicitly {@link vtctldata.RemoveShardCellRequest.verify|verify} messages. + * @param message RemoveShardCellRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IInitShardPrimaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRemoveShardCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified InitShardPrimaryRequest message, length delimited. Does not implicitly {@link vtctldata.InitShardPrimaryRequest.verify|verify} messages. - * @param message InitShardPrimaryRequest message or plain object to encode + * Encodes the specified RemoveShardCellRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveShardCellRequest.verify|verify} messages. + * @param message RemoveShardCellRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IInitShardPrimaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRemoveShardCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an InitShardPrimaryRequest message from the specified reader or buffer. + * Decodes a RemoveShardCellRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns InitShardPrimaryRequest + * @returns RemoveShardCellRequest * @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): vtctldata.InitShardPrimaryRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveShardCellRequest; /** - * Decodes an InitShardPrimaryRequest message from the specified reader or buffer, length delimited. + * Decodes a RemoveShardCellRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns InitShardPrimaryRequest + * @returns RemoveShardCellRequest * @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)): vtctldata.InitShardPrimaryRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveShardCellRequest; /** - * Verifies an InitShardPrimaryRequest message. + * Verifies a RemoveShardCellRequest 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 an InitShardPrimaryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveShardCellRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns InitShardPrimaryRequest + * @returns RemoveShardCellRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.InitShardPrimaryRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.RemoveShardCellRequest; /** - * Creates a plain object from an InitShardPrimaryRequest message. Also converts values to other types if specified. - * @param message InitShardPrimaryRequest + * Creates a plain object from a RemoveShardCellRequest message. Also converts values to other types if specified. + * @param message RemoveShardCellRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.InitShardPrimaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RemoveShardCellRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this InitShardPrimaryRequest to JSON. + * Converts this RemoveShardCellRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an InitShardPrimaryResponse. */ - interface IInitShardPrimaryResponse { - - /** InitShardPrimaryResponse events */ - events?: (logutil.IEvent[]|null); + /** Properties of a RemoveShardCellResponse. */ + interface IRemoveShardCellResponse { } - /** Represents an InitShardPrimaryResponse. */ - class InitShardPrimaryResponse implements IInitShardPrimaryResponse { + /** Represents a RemoveShardCellResponse. */ + class RemoveShardCellResponse implements IRemoveShardCellResponse { /** - * Constructs a new InitShardPrimaryResponse. + * Constructs a new RemoveShardCellResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IInitShardPrimaryResponse); - - /** InitShardPrimaryResponse events. */ - public events: logutil.IEvent[]; + constructor(properties?: vtctldata.IRemoveShardCellResponse); /** - * Creates a new InitShardPrimaryResponse instance using the specified properties. + * Creates a new RemoveShardCellResponse instance using the specified properties. * @param [properties] Properties to set - * @returns InitShardPrimaryResponse instance + * @returns RemoveShardCellResponse instance */ - public static create(properties?: vtctldata.IInitShardPrimaryResponse): vtctldata.InitShardPrimaryResponse; + public static create(properties?: vtctldata.IRemoveShardCellResponse): vtctldata.RemoveShardCellResponse; /** - * Encodes the specified InitShardPrimaryResponse message. Does not implicitly {@link vtctldata.InitShardPrimaryResponse.verify|verify} messages. - * @param message InitShardPrimaryResponse message or plain object to encode + * Encodes the specified RemoveShardCellResponse message. Does not implicitly {@link vtctldata.RemoveShardCellResponse.verify|verify} messages. + * @param message RemoveShardCellResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IInitShardPrimaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IRemoveShardCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified InitShardPrimaryResponse message, length delimited. Does not implicitly {@link vtctldata.InitShardPrimaryResponse.verify|verify} messages. - * @param message InitShardPrimaryResponse message or plain object to encode + * Encodes the specified RemoveShardCellResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveShardCellResponse.verify|verify} messages. + * @param message RemoveShardCellResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IInitShardPrimaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IRemoveShardCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an InitShardPrimaryResponse message from the specified reader or buffer. + * Decodes a RemoveShardCellResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns InitShardPrimaryResponse + * @returns RemoveShardCellResponse * @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): vtctldata.InitShardPrimaryResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveShardCellResponse; /** - * Decodes an InitShardPrimaryResponse message from the specified reader or buffer, length delimited. + * Decodes a RemoveShardCellResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns InitShardPrimaryResponse + * @returns RemoveShardCellResponse * @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)): vtctldata.InitShardPrimaryResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveShardCellResponse; /** - * Verifies an InitShardPrimaryResponse message. + * Verifies a RemoveShardCellResponse 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 an InitShardPrimaryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveShardCellResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns InitShardPrimaryResponse + * @returns RemoveShardCellResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.InitShardPrimaryResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.RemoveShardCellResponse; /** - * Creates a plain object from an InitShardPrimaryResponse message. Also converts values to other types if specified. - * @param message InitShardPrimaryResponse + * Creates a plain object from a RemoveShardCellResponse message. Also converts values to other types if specified. + * @param message RemoveShardCellResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.InitShardPrimaryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.RemoveShardCellResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this InitShardPrimaryResponse to JSON. + * Converts this RemoveShardCellResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RemoveKeyspaceCellRequest. */ - interface IRemoveKeyspaceCellRequest { - - /** RemoveKeyspaceCellRequest keyspace */ - keyspace?: (string|null); - - /** RemoveKeyspaceCellRequest cell */ - cell?: (string|null); - - /** RemoveKeyspaceCellRequest force */ - force?: (boolean|null); + /** Properties of a ReparentTabletRequest. */ + interface IReparentTabletRequest { - /** RemoveKeyspaceCellRequest recursive */ - recursive?: (boolean|null); + /** ReparentTabletRequest tablet */ + tablet?: (topodata.ITabletAlias|null); } - /** Represents a RemoveKeyspaceCellRequest. */ - class RemoveKeyspaceCellRequest implements IRemoveKeyspaceCellRequest { + /** Represents a ReparentTabletRequest. */ + class ReparentTabletRequest implements IReparentTabletRequest { /** - * Constructs a new RemoveKeyspaceCellRequest. + * Constructs a new ReparentTabletRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IRemoveKeyspaceCellRequest); - - /** RemoveKeyspaceCellRequest keyspace. */ - public keyspace: string; - - /** RemoveKeyspaceCellRequest cell. */ - public cell: string; - - /** RemoveKeyspaceCellRequest force. */ - public force: boolean; + constructor(properties?: vtctldata.IReparentTabletRequest); - /** RemoveKeyspaceCellRequest recursive. */ - public recursive: boolean; + /** ReparentTabletRequest tablet. */ + public tablet?: (topodata.ITabletAlias|null); /** - * Creates a new RemoveKeyspaceCellRequest instance using the specified properties. + * Creates a new ReparentTabletRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RemoveKeyspaceCellRequest instance + * @returns ReparentTabletRequest instance */ - public static create(properties?: vtctldata.IRemoveKeyspaceCellRequest): vtctldata.RemoveKeyspaceCellRequest; + public static create(properties?: vtctldata.IReparentTabletRequest): vtctldata.ReparentTabletRequest; /** - * Encodes the specified RemoveKeyspaceCellRequest message. Does not implicitly {@link vtctldata.RemoveKeyspaceCellRequest.verify|verify} messages. - * @param message RemoveKeyspaceCellRequest message or plain object to encode + * Encodes the specified ReparentTabletRequest message. Does not implicitly {@link vtctldata.ReparentTabletRequest.verify|verify} messages. + * @param message ReparentTabletRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IRemoveKeyspaceCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IReparentTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RemoveKeyspaceCellRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveKeyspaceCellRequest.verify|verify} messages. - * @param message RemoveKeyspaceCellRequest message or plain object to encode + * Encodes the specified ReparentTabletRequest message, length delimited. Does not implicitly {@link vtctldata.ReparentTabletRequest.verify|verify} messages. + * @param message ReparentTabletRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IRemoveKeyspaceCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IReparentTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer. + * Decodes a ReparentTabletRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RemoveKeyspaceCellRequest + * @returns ReparentTabletRequest * @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): vtctldata.RemoveKeyspaceCellRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReparentTabletRequest; /** - * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer, length delimited. + * Decodes a ReparentTabletRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RemoveKeyspaceCellRequest + * @returns ReparentTabletRequest * @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)): vtctldata.RemoveKeyspaceCellRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReparentTabletRequest; /** - * Verifies a RemoveKeyspaceCellRequest message. + * Verifies a ReparentTabletRequest 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 RemoveKeyspaceCellRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReparentTabletRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RemoveKeyspaceCellRequest + * @returns ReparentTabletRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.RemoveKeyspaceCellRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.ReparentTabletRequest; /** - * Creates a plain object from a RemoveKeyspaceCellRequest message. Also converts values to other types if specified. - * @param message RemoveKeyspaceCellRequest + * Creates a plain object from a ReparentTabletRequest message. Also converts values to other types if specified. + * @param message ReparentTabletRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.RemoveKeyspaceCellRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ReparentTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RemoveKeyspaceCellRequest to JSON. + * Converts this ReparentTabletRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RemoveKeyspaceCellResponse. */ - interface IRemoveKeyspaceCellResponse { + /** Properties of a ReparentTabletResponse. */ + interface IReparentTabletResponse { + + /** ReparentTabletResponse keyspace */ + keyspace?: (string|null); + + /** ReparentTabletResponse shard */ + shard?: (string|null); + + /** ReparentTabletResponse primary */ + primary?: (topodata.ITabletAlias|null); } - /** Represents a RemoveKeyspaceCellResponse. */ - class RemoveKeyspaceCellResponse implements IRemoveKeyspaceCellResponse { + /** Represents a ReparentTabletResponse. */ + class ReparentTabletResponse implements IReparentTabletResponse { /** - * Constructs a new RemoveKeyspaceCellResponse. + * Constructs a new ReparentTabletResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IRemoveKeyspaceCellResponse); + constructor(properties?: vtctldata.IReparentTabletResponse); + + /** ReparentTabletResponse keyspace. */ + public keyspace: string; + + /** ReparentTabletResponse shard. */ + public shard: string; + + /** ReparentTabletResponse primary. */ + public primary?: (topodata.ITabletAlias|null); /** - * Creates a new RemoveKeyspaceCellResponse instance using the specified properties. + * Creates a new ReparentTabletResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RemoveKeyspaceCellResponse instance + * @returns ReparentTabletResponse instance */ - public static create(properties?: vtctldata.IRemoveKeyspaceCellResponse): vtctldata.RemoveKeyspaceCellResponse; + public static create(properties?: vtctldata.IReparentTabletResponse): vtctldata.ReparentTabletResponse; /** - * Encodes the specified RemoveKeyspaceCellResponse message. Does not implicitly {@link vtctldata.RemoveKeyspaceCellResponse.verify|verify} messages. - * @param message RemoveKeyspaceCellResponse message or plain object to encode + * Encodes the specified ReparentTabletResponse message. Does not implicitly {@link vtctldata.ReparentTabletResponse.verify|verify} messages. + * @param message ReparentTabletResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IRemoveKeyspaceCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.IReparentTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RemoveKeyspaceCellResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveKeyspaceCellResponse.verify|verify} messages. - * @param message RemoveKeyspaceCellResponse message or plain object to encode + * Encodes the specified ReparentTabletResponse message, length delimited. Does not implicitly {@link vtctldata.ReparentTabletResponse.verify|verify} messages. + * @param message ReparentTabletResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IRemoveKeyspaceCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.IReparentTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RemoveKeyspaceCellResponse message from the specified reader or buffer. + * Decodes a ReparentTabletResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RemoveKeyspaceCellResponse + * @returns ReparentTabletResponse * @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): vtctldata.RemoveKeyspaceCellResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReparentTabletResponse; /** - * Decodes a RemoveKeyspaceCellResponse message from the specified reader or buffer, length delimited. + * Decodes a ReparentTabletResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RemoveKeyspaceCellResponse + * @returns ReparentTabletResponse * @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)): vtctldata.RemoveKeyspaceCellResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReparentTabletResponse; /** - * Verifies a RemoveKeyspaceCellResponse message. + * Verifies a ReparentTabletResponse 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 RemoveKeyspaceCellResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReparentTabletResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RemoveKeyspaceCellResponse + * @returns ReparentTabletResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.RemoveKeyspaceCellResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.ReparentTabletResponse; /** - * Creates a plain object from a RemoveKeyspaceCellResponse message. Also converts values to other types if specified. - * @param message RemoveKeyspaceCellResponse + * Creates a plain object from a ReparentTabletResponse message. Also converts values to other types if specified. + * @param message ReparentTabletResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.RemoveKeyspaceCellResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.ReparentTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RemoveKeyspaceCellResponse to JSON. + * Converts this ReparentTabletResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RemoveShardCellRequest. */ - interface IRemoveShardCellRequest { - - /** RemoveShardCellRequest keyspace */ - keyspace?: (string|null); - - /** RemoveShardCellRequest shard_name */ - shard_name?: (string|null); - - /** RemoveShardCellRequest cell */ - cell?: (string|null); + /** Properties of a TabletExternallyReparentedRequest. */ + interface ITabletExternallyReparentedRequest { - /** RemoveShardCellRequest force */ - force?: (boolean|null); - - /** RemoveShardCellRequest recursive */ - recursive?: (boolean|null); + /** TabletExternallyReparentedRequest tablet */ + tablet?: (topodata.ITabletAlias|null); } - /** Represents a RemoveShardCellRequest. */ - class RemoveShardCellRequest implements IRemoveShardCellRequest { + /** Represents a TabletExternallyReparentedRequest. */ + class TabletExternallyReparentedRequest implements ITabletExternallyReparentedRequest { /** - * Constructs a new RemoveShardCellRequest. + * Constructs a new TabletExternallyReparentedRequest. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IRemoveShardCellRequest); - - /** RemoveShardCellRequest keyspace. */ - public keyspace: string; - - /** RemoveShardCellRequest shard_name. */ - public shard_name: string; - - /** RemoveShardCellRequest cell. */ - public cell: string; - - /** RemoveShardCellRequest force. */ - public force: boolean; + constructor(properties?: vtctldata.ITabletExternallyReparentedRequest); - /** RemoveShardCellRequest recursive. */ - public recursive: boolean; + /** TabletExternallyReparentedRequest tablet. */ + public tablet?: (topodata.ITabletAlias|null); /** - * Creates a new RemoveShardCellRequest instance using the specified properties. + * Creates a new TabletExternallyReparentedRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RemoveShardCellRequest instance + * @returns TabletExternallyReparentedRequest instance */ - public static create(properties?: vtctldata.IRemoveShardCellRequest): vtctldata.RemoveShardCellRequest; + public static create(properties?: vtctldata.ITabletExternallyReparentedRequest): vtctldata.TabletExternallyReparentedRequest; /** - * Encodes the specified RemoveShardCellRequest message. Does not implicitly {@link vtctldata.RemoveShardCellRequest.verify|verify} messages. - * @param message RemoveShardCellRequest message or plain object to encode + * Encodes the specified TabletExternallyReparentedRequest message. Does not implicitly {@link vtctldata.TabletExternallyReparentedRequest.verify|verify} messages. + * @param message TabletExternallyReparentedRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IRemoveShardCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ITabletExternallyReparentedRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RemoveShardCellRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveShardCellRequest.verify|verify} messages. - * @param message RemoveShardCellRequest message or plain object to encode + * Encodes the specified TabletExternallyReparentedRequest message, length delimited. Does not implicitly {@link vtctldata.TabletExternallyReparentedRequest.verify|verify} messages. + * @param message TabletExternallyReparentedRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IRemoveShardCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ITabletExternallyReparentedRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RemoveShardCellRequest message from the specified reader or buffer. + * Decodes a TabletExternallyReparentedRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RemoveShardCellRequest + * @returns TabletExternallyReparentedRequest * @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): vtctldata.RemoveShardCellRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.TabletExternallyReparentedRequest; /** - * Decodes a RemoveShardCellRequest message from the specified reader or buffer, length delimited. + * Decodes a TabletExternallyReparentedRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RemoveShardCellRequest + * @returns TabletExternallyReparentedRequest * @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)): vtctldata.RemoveShardCellRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.TabletExternallyReparentedRequest; /** - * Verifies a RemoveShardCellRequest message. + * Verifies a TabletExternallyReparentedRequest 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 RemoveShardCellRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TabletExternallyReparentedRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RemoveShardCellRequest + * @returns TabletExternallyReparentedRequest */ - public static fromObject(object: { [k: string]: any }): vtctldata.RemoveShardCellRequest; + public static fromObject(object: { [k: string]: any }): vtctldata.TabletExternallyReparentedRequest; /** - * Creates a plain object from a RemoveShardCellRequest message. Also converts values to other types if specified. - * @param message RemoveShardCellRequest + * Creates a plain object from a TabletExternallyReparentedRequest message. Also converts values to other types if specified. + * @param message TabletExternallyReparentedRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.RemoveShardCellRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.TabletExternallyReparentedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RemoveShardCellRequest to JSON. + * Converts this TabletExternallyReparentedRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RemoveShardCellResponse. */ - interface IRemoveShardCellResponse { + /** Properties of a TabletExternallyReparentedResponse. */ + interface ITabletExternallyReparentedResponse { + + /** TabletExternallyReparentedResponse keyspace */ + keyspace?: (string|null); + + /** TabletExternallyReparentedResponse shard */ + shard?: (string|null); + + /** TabletExternallyReparentedResponse new_primary */ + new_primary?: (topodata.ITabletAlias|null); + + /** TabletExternallyReparentedResponse old_primary */ + old_primary?: (topodata.ITabletAlias|null); } - /** Represents a RemoveShardCellResponse. */ - class RemoveShardCellResponse implements IRemoveShardCellResponse { + /** Represents a TabletExternallyReparentedResponse. */ + class TabletExternallyReparentedResponse implements ITabletExternallyReparentedResponse { /** - * Constructs a new RemoveShardCellResponse. + * Constructs a new TabletExternallyReparentedResponse. * @param [properties] Properties to set */ - constructor(properties?: vtctldata.IRemoveShardCellResponse); + constructor(properties?: vtctldata.ITabletExternallyReparentedResponse); + + /** TabletExternallyReparentedResponse keyspace. */ + public keyspace: string; + + /** TabletExternallyReparentedResponse shard. */ + public shard: string; + + /** TabletExternallyReparentedResponse new_primary. */ + public new_primary?: (topodata.ITabletAlias|null); + + /** TabletExternallyReparentedResponse old_primary. */ + public old_primary?: (topodata.ITabletAlias|null); /** - * Creates a new RemoveShardCellResponse instance using the specified properties. + * Creates a new TabletExternallyReparentedResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RemoveShardCellResponse instance + * @returns TabletExternallyReparentedResponse instance */ - public static create(properties?: vtctldata.IRemoveShardCellResponse): vtctldata.RemoveShardCellResponse; + public static create(properties?: vtctldata.ITabletExternallyReparentedResponse): vtctldata.TabletExternallyReparentedResponse; /** - * Encodes the specified RemoveShardCellResponse message. Does not implicitly {@link vtctldata.RemoveShardCellResponse.verify|verify} messages. - * @param message RemoveShardCellResponse message or plain object to encode + * Encodes the specified TabletExternallyReparentedResponse message. Does not implicitly {@link vtctldata.TabletExternallyReparentedResponse.verify|verify} messages. + * @param message TabletExternallyReparentedResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: vtctldata.IRemoveShardCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: vtctldata.ITabletExternallyReparentedResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RemoveShardCellResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveShardCellResponse.verify|verify} messages. - * @param message RemoveShardCellResponse message or plain object to encode + * Encodes the specified TabletExternallyReparentedResponse message, length delimited. Does not implicitly {@link vtctldata.TabletExternallyReparentedResponse.verify|verify} messages. + * @param message TabletExternallyReparentedResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: vtctldata.IRemoveShardCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: vtctldata.ITabletExternallyReparentedResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RemoveShardCellResponse message from the specified reader or buffer. + * Decodes a TabletExternallyReparentedResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RemoveShardCellResponse + * @returns TabletExternallyReparentedResponse * @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): vtctldata.RemoveShardCellResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.TabletExternallyReparentedResponse; /** - * Decodes a RemoveShardCellResponse message from the specified reader or buffer, length delimited. + * Decodes a TabletExternallyReparentedResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RemoveShardCellResponse + * @returns TabletExternallyReparentedResponse * @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)): vtctldata.RemoveShardCellResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.TabletExternallyReparentedResponse; /** - * Verifies a RemoveShardCellResponse message. + * Verifies a TabletExternallyReparentedResponse 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 RemoveShardCellResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TabletExternallyReparentedResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RemoveShardCellResponse + * @returns TabletExternallyReparentedResponse */ - public static fromObject(object: { [k: string]: any }): vtctldata.RemoveShardCellResponse; + public static fromObject(object: { [k: string]: any }): vtctldata.TabletExternallyReparentedResponse; /** - * Creates a plain object from a RemoveShardCellResponse message. Also converts values to other types if specified. - * @param message RemoveShardCellResponse + * Creates a plain object from a TabletExternallyReparentedResponse message. Also converts values to other types if specified. + * @param message TabletExternallyReparentedResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: vtctldata.RemoveShardCellResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: vtctldata.TabletExternallyReparentedResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RemoveShardCellResponse to JSON. + * Converts this TabletExternallyReparentedResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; @@ -24430,6 +25765,9 @@ export namespace vtctldata { /** MaterializeSettings tablet_types */ tablet_types?: (string|null); + + /** MaterializeSettings external_cluster */ + external_cluster?: (string|null); } /** Represents a MaterializeSettings. */ @@ -24462,6 +25800,9 @@ export namespace vtctldata { /** MaterializeSettings tablet_types. */ public tablet_types: string; + /** MaterializeSettings external_cluster. */ + public external_cluster: string; + /** * Creates a new MaterializeSettings instance using the specified properties. * @param [properties] Properties to set @@ -24534,110 +25875,6 @@ export namespace vtctldata { } } -/** Namespace google. */ -export namespace google { - - /** Namespace protobuf. */ - namespace protobuf { - - /** Properties of a Duration. */ - interface IDuration { - - /** Duration seconds */ - seconds?: (number|Long|null); - - /** Duration nanos */ - nanos?: (number|null); - } - - /** Represents a Duration. */ - class Duration implements IDuration { - - /** - * Constructs a new Duration. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IDuration); - - /** Duration seconds. */ - public seconds: (number|Long); - - /** Duration nanos. */ - public nanos: number; - - /** - * Creates a new Duration instance using the specified properties. - * @param [properties] Properties to set - * @returns Duration instance - */ - public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration; - - /** - * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. - * @param message Duration message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. - * @param message Duration message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Duration message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Duration - * @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): google.protobuf.Duration; - - /** - * Decodes a Duration message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Duration - * @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)): google.protobuf.Duration; - - /** - * Verifies a Duration 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 Duration message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Duration - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.Duration; - - /** - * Creates a plain object from a Duration message. Also converts values to other types if specified. - * @param message Duration - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Duration to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } -} - /** Namespace mysqlctl. */ export namespace mysqlctl { diff --git a/web/vtadmin/src/proto/vtadmin.js b/web/vtadmin/src/proto/vtadmin.js index 06f9a59d50d..95e16348a97 100644 --- a/web/vtadmin/src/proto/vtadmin.js +++ b/web/vtadmin/src/proto/vtadmin.js @@ -149,6 +149,39 @@ $root.vtadmin = (function() { * @variation 2 */ + /** + * Callback as used by {@link vtadmin.VTAdmin#getSchema}. + * @memberof vtadmin.VTAdmin + * @typedef GetSchemaCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {vtadmin.Schema} [response] Schema + */ + + /** + * Calls GetSchema. + * @function getSchema + * @memberof vtadmin.VTAdmin + * @instance + * @param {vtadmin.IGetSchemaRequest} request GetSchemaRequest message or plain object + * @param {vtadmin.VTAdmin.GetSchemaCallback} callback Node-style callback called with the error, if any, and Schema + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(VTAdmin.prototype.getSchema = function getSchema(request, callback) { + return this.rpcCall(getSchema, $root.vtadmin.GetSchemaRequest, $root.vtadmin.Schema, request, callback); + }, "name", { value: "GetSchema" }); + + /** + * Calls GetSchema. + * @function getSchema + * @memberof vtadmin.VTAdmin + * @instance + * @param {vtadmin.IGetSchemaRequest} request GetSchemaRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link vtadmin.VTAdmin#getSchemas}. * @memberof vtadmin.VTAdmin @@ -3017,6 +3050,238 @@ $root.vtadmin = (function() { return GetKeyspacesResponse; })(); + vtadmin.GetSchemaRequest = (function() { + + /** + * Properties of a GetSchemaRequest. + * @memberof vtadmin + * @interface IGetSchemaRequest + * @property {string|null} [cluster_id] GetSchemaRequest cluster_id + * @property {string|null} [keyspace] GetSchemaRequest keyspace + * @property {string|null} [table] GetSchemaRequest table + */ + + /** + * Constructs a new GetSchemaRequest. + * @memberof vtadmin + * @classdesc Represents a GetSchemaRequest. + * @implements IGetSchemaRequest + * @constructor + * @param {vtadmin.IGetSchemaRequest=} [properties] Properties to set + */ + function GetSchemaRequest(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]]; + } + + /** + * GetSchemaRequest cluster_id. + * @member {string} cluster_id + * @memberof vtadmin.GetSchemaRequest + * @instance + */ + GetSchemaRequest.prototype.cluster_id = ""; + + /** + * GetSchemaRequest keyspace. + * @member {string} keyspace + * @memberof vtadmin.GetSchemaRequest + * @instance + */ + GetSchemaRequest.prototype.keyspace = ""; + + /** + * GetSchemaRequest table. + * @member {string} table + * @memberof vtadmin.GetSchemaRequest + * @instance + */ + GetSchemaRequest.prototype.table = ""; + + /** + * Creates a new GetSchemaRequest instance using the specified properties. + * @function create + * @memberof vtadmin.GetSchemaRequest + * @static + * @param {vtadmin.IGetSchemaRequest=} [properties] Properties to set + * @returns {vtadmin.GetSchemaRequest} GetSchemaRequest instance + */ + GetSchemaRequest.create = function create(properties) { + return new GetSchemaRequest(properties); + }; + + /** + * Encodes the specified GetSchemaRequest message. Does not implicitly {@link vtadmin.GetSchemaRequest.verify|verify} messages. + * @function encode + * @memberof vtadmin.GetSchemaRequest + * @static + * @param {vtadmin.IGetSchemaRequest} message GetSchemaRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetSchemaRequest.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.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.keyspace); + if (message.table != null && Object.hasOwnProperty.call(message, "table")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.table); + return writer; + }; + + /** + * Encodes the specified GetSchemaRequest message, length delimited. Does not implicitly {@link vtadmin.GetSchemaRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtadmin.GetSchemaRequest + * @static + * @param {vtadmin.IGetSchemaRequest} message GetSchemaRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetSchemaRequest message from the specified reader or buffer. + * @function decode + * @memberof vtadmin.GetSchemaRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtadmin.GetSchemaRequest} GetSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetSchemaRequest.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.GetSchemaRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.cluster_id = reader.string(); + break; + case 2: + message.keyspace = reader.string(); + break; + case 3: + message.table = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetSchemaRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtadmin.GetSchemaRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtadmin.GetSchemaRequest} GetSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetSchemaRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetSchemaRequest message. + * @function verify + * @memberof vtadmin.GetSchemaRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetSchemaRequest.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.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.table != null && message.hasOwnProperty("table")) + if (!$util.isString(message.table)) + return "table: string expected"; + return null; + }; + + /** + * Creates a GetSchemaRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtadmin.GetSchemaRequest + * @static + * @param {Object.} object Plain object + * @returns {vtadmin.GetSchemaRequest} GetSchemaRequest + */ + GetSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtadmin.GetSchemaRequest) + return object; + var message = new $root.vtadmin.GetSchemaRequest(); + if (object.cluster_id != null) + message.cluster_id = String(object.cluster_id); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.table != null) + message.table = String(object.table); + return message; + }; + + /** + * Creates a plain object from a GetSchemaRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtadmin.GetSchemaRequest + * @static + * @param {vtadmin.GetSchemaRequest} message GetSchemaRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetSchemaRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.cluster_id = ""; + object.keyspace = ""; + object.table = ""; + } + if (message.cluster_id != null && message.hasOwnProperty("cluster_id")) + object.cluster_id = message.cluster_id; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.table != null && message.hasOwnProperty("table")) + object.table = message.table; + return object; + }; + + /** + * Converts this GetSchemaRequest to JSON. + * @function toJSON + * @memberof vtadmin.GetSchemaRequest + * @instance + * @returns {Object.} JSON object + */ + GetSchemaRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetSchemaRequest; + })(); + vtadmin.GetSchemasRequest = (function() { /** @@ -45038,37 +45303,26 @@ $root.topodata = (function() { return CellsAlias; })(); - return topodata; -})(); - -$root.vttime = (function() { - - /** - * Namespace vttime. - * @exports vttime - * @namespace - */ - var vttime = {}; - - vttime.Time = (function() { + topodata.TopoConfig = (function() { /** - * Properties of a Time. - * @memberof vttime - * @interface ITime - * @property {number|Long|null} [seconds] Time seconds - * @property {number|null} [nanoseconds] Time nanoseconds + * Properties of a TopoConfig. + * @memberof topodata + * @interface ITopoConfig + * @property {string|null} [topo_type] TopoConfig topo_type + * @property {string|null} [server] TopoConfig server + * @property {string|null} [root] TopoConfig root */ /** - * Constructs a new Time. - * @memberof vttime - * @classdesc Represents a Time. - * @implements ITime + * Constructs a new TopoConfig. + * @memberof topodata + * @classdesc Represents a TopoConfig. + * @implements ITopoConfig * @constructor - * @param {vttime.ITime=} [properties] Properties to set + * @param {topodata.ITopoConfig=} [properties] Properties to set */ - function Time(properties) { + function TopoConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45076,88 +45330,101 @@ $root.vttime = (function() { } /** - * Time seconds. - * @member {number|Long} seconds - * @memberof vttime.Time + * TopoConfig topo_type. + * @member {string} topo_type + * @memberof topodata.TopoConfig * @instance */ - Time.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + TopoConfig.prototype.topo_type = ""; /** - * Time nanoseconds. - * @member {number} nanoseconds - * @memberof vttime.Time + * TopoConfig server. + * @member {string} server + * @memberof topodata.TopoConfig * @instance */ - Time.prototype.nanoseconds = 0; + TopoConfig.prototype.server = ""; /** - * Creates a new Time instance using the specified properties. + * TopoConfig root. + * @member {string} root + * @memberof topodata.TopoConfig + * @instance + */ + TopoConfig.prototype.root = ""; + + /** + * Creates a new TopoConfig instance using the specified properties. * @function create - * @memberof vttime.Time + * @memberof topodata.TopoConfig * @static - * @param {vttime.ITime=} [properties] Properties to set - * @returns {vttime.Time} Time instance + * @param {topodata.ITopoConfig=} [properties] Properties to set + * @returns {topodata.TopoConfig} TopoConfig instance */ - Time.create = function create(properties) { - return new Time(properties); + TopoConfig.create = function create(properties) { + return new TopoConfig(properties); }; /** - * Encodes the specified Time message. Does not implicitly {@link vttime.Time.verify|verify} messages. + * Encodes the specified TopoConfig message. Does not implicitly {@link topodata.TopoConfig.verify|verify} messages. * @function encode - * @memberof vttime.Time + * @memberof topodata.TopoConfig * @static - * @param {vttime.ITime} message Time message or plain object to encode + * @param {topodata.ITopoConfig} message TopoConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Time.encode = function encode(message, writer) { + TopoConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); - if (message.nanoseconds != null && Object.hasOwnProperty.call(message, "nanoseconds")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanoseconds); + if (message.topo_type != null && Object.hasOwnProperty.call(message, "topo_type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.topo_type); + if (message.server != null && Object.hasOwnProperty.call(message, "server")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.server); + if (message.root != null && Object.hasOwnProperty.call(message, "root")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.root); return writer; }; /** - * Encodes the specified Time message, length delimited. Does not implicitly {@link vttime.Time.verify|verify} messages. + * Encodes the specified TopoConfig message, length delimited. Does not implicitly {@link topodata.TopoConfig.verify|verify} messages. * @function encodeDelimited - * @memberof vttime.Time + * @memberof topodata.TopoConfig * @static - * @param {vttime.ITime} message Time message or plain object to encode + * @param {topodata.ITopoConfig} message TopoConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Time.encodeDelimited = function encodeDelimited(message, writer) { + TopoConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Time message from the specified reader or buffer. + * Decodes a TopoConfig message from the specified reader or buffer. * @function decode - * @memberof vttime.Time + * @memberof topodata.TopoConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vttime.Time} Time + * @returns {topodata.TopoConfig} TopoConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Time.decode = function decode(reader, length) { + TopoConfig.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.vttime.Time(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.TopoConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.seconds = reader.int64(); + message.topo_type = reader.string(); break; case 2: - message.nanoseconds = reader.int32(); + message.server = reader.string(); + break; + case 3: + message.root = reader.string(); break; default: reader.skipType(tag & 7); @@ -45168,144 +45435,124 @@ $root.vttime = (function() { }; /** - * Decodes a Time message from the specified reader or buffer, length delimited. + * Decodes a TopoConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vttime.Time + * @memberof topodata.TopoConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vttime.Time} Time + * @returns {topodata.TopoConfig} TopoConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Time.decodeDelimited = function decodeDelimited(reader) { + TopoConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Time message. + * Verifies a TopoConfig message. * @function verify - * @memberof vttime.Time + * @memberof topodata.TopoConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Time.verify = function verify(message) { + TopoConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) - return "seconds: integer|Long expected"; - if (message.nanoseconds != null && message.hasOwnProperty("nanoseconds")) - if (!$util.isInteger(message.nanoseconds)) - return "nanoseconds: integer expected"; + if (message.topo_type != null && message.hasOwnProperty("topo_type")) + if (!$util.isString(message.topo_type)) + return "topo_type: string expected"; + if (message.server != null && message.hasOwnProperty("server")) + if (!$util.isString(message.server)) + return "server: string expected"; + if (message.root != null && message.hasOwnProperty("root")) + if (!$util.isString(message.root)) + return "root: string expected"; return null; }; /** - * Creates a Time message from a plain object. Also converts values to their respective internal types. + * Creates a TopoConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vttime.Time + * @memberof topodata.TopoConfig * @static * @param {Object.} object Plain object - * @returns {vttime.Time} Time + * @returns {topodata.TopoConfig} TopoConfig */ - Time.fromObject = function fromObject(object) { - if (object instanceof $root.vttime.Time) + TopoConfig.fromObject = function fromObject(object) { + if (object instanceof $root.topodata.TopoConfig) return object; - var message = new $root.vttime.Time(); - if (object.seconds != null) - if ($util.Long) - (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; - else if (typeof object.seconds === "string") - message.seconds = parseInt(object.seconds, 10); - else if (typeof object.seconds === "number") - message.seconds = object.seconds; - else if (typeof object.seconds === "object") - message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); - if (object.nanoseconds != null) - message.nanoseconds = object.nanoseconds | 0; + var message = new $root.topodata.TopoConfig(); + if (object.topo_type != null) + message.topo_type = String(object.topo_type); + if (object.server != null) + message.server = String(object.server); + if (object.root != null) + message.root = String(object.root); return message; }; /** - * Creates a plain object from a Time message. Also converts values to other types if specified. + * Creates a plain object from a TopoConfig message. Also converts values to other types if specified. * @function toObject - * @memberof vttime.Time + * @memberof topodata.TopoConfig * @static - * @param {vttime.Time} message Time + * @param {topodata.TopoConfig} message TopoConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Time.toObject = function toObject(message, options) { + TopoConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.seconds = options.longs === String ? "0" : 0; - object.nanoseconds = 0; + object.topo_type = ""; + object.server = ""; + object.root = ""; } - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (typeof message.seconds === "number") - object.seconds = options.longs === String ? String(message.seconds) : message.seconds; - else - object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; - if (message.nanoseconds != null && message.hasOwnProperty("nanoseconds")) - object.nanoseconds = message.nanoseconds; + if (message.topo_type != null && message.hasOwnProperty("topo_type")) + object.topo_type = message.topo_type; + if (message.server != null && message.hasOwnProperty("server")) + object.server = message.server; + if (message.root != null && message.hasOwnProperty("root")) + object.root = message.root; return object; }; /** - * Converts this Time to JSON. + * Converts this TopoConfig to JSON. * @function toJSON - * @memberof vttime.Time + * @memberof topodata.TopoConfig * @instance * @returns {Object.} JSON object */ - Time.prototype.toJSON = function toJSON() { + TopoConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Time; + return TopoConfig; })(); - return vttime; -})(); - -$root.vtrpc = (function() { - - /** - * Namespace vtrpc. - * @exports vtrpc - * @namespace - */ - var vtrpc = {}; - - vtrpc.CallerID = (function() { + topodata.ExternalVitessCluster = (function() { /** - * Properties of a CallerID. - * @memberof vtrpc - * @interface ICallerID - * @property {string|null} [principal] CallerID principal - * @property {string|null} [component] CallerID component - * @property {string|null} [subcomponent] CallerID subcomponent + * Properties of an ExternalVitessCluster. + * @memberof topodata + * @interface IExternalVitessCluster + * @property {topodata.ITopoConfig|null} [topo_config] ExternalVitessCluster topo_config */ /** - * Constructs a new CallerID. - * @memberof vtrpc - * @classdesc Represents a CallerID. - * @implements ICallerID + * Constructs a new ExternalVitessCluster. + * @memberof topodata + * @classdesc Represents an ExternalVitessCluster. + * @implements IExternalVitessCluster * @constructor - * @param {vtrpc.ICallerID=} [properties] Properties to set + * @param {topodata.IExternalVitessCluster=} [properties] Properties to set */ - function CallerID(properties) { + function ExternalVitessCluster(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45313,101 +45560,75 @@ $root.vtrpc = (function() { } /** - * CallerID principal. - * @member {string} principal - * @memberof vtrpc.CallerID - * @instance - */ - CallerID.prototype.principal = ""; - - /** - * CallerID component. - * @member {string} component - * @memberof vtrpc.CallerID - * @instance - */ - CallerID.prototype.component = ""; - - /** - * CallerID subcomponent. - * @member {string} subcomponent - * @memberof vtrpc.CallerID + * ExternalVitessCluster topo_config. + * @member {topodata.ITopoConfig|null|undefined} topo_config + * @memberof topodata.ExternalVitessCluster * @instance */ - CallerID.prototype.subcomponent = ""; + ExternalVitessCluster.prototype.topo_config = null; /** - * Creates a new CallerID instance using the specified properties. + * Creates a new ExternalVitessCluster instance using the specified properties. * @function create - * @memberof vtrpc.CallerID + * @memberof topodata.ExternalVitessCluster * @static - * @param {vtrpc.ICallerID=} [properties] Properties to set - * @returns {vtrpc.CallerID} CallerID instance + * @param {topodata.IExternalVitessCluster=} [properties] Properties to set + * @returns {topodata.ExternalVitessCluster} ExternalVitessCluster instance */ - CallerID.create = function create(properties) { - return new CallerID(properties); + ExternalVitessCluster.create = function create(properties) { + return new ExternalVitessCluster(properties); }; /** - * Encodes the specified CallerID message. Does not implicitly {@link vtrpc.CallerID.verify|verify} messages. + * Encodes the specified ExternalVitessCluster message. Does not implicitly {@link topodata.ExternalVitessCluster.verify|verify} messages. * @function encode - * @memberof vtrpc.CallerID + * @memberof topodata.ExternalVitessCluster * @static - * @param {vtrpc.ICallerID} message CallerID message or plain object to encode + * @param {topodata.IExternalVitessCluster} message ExternalVitessCluster message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CallerID.encode = function encode(message, writer) { + ExternalVitessCluster.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.principal != null && Object.hasOwnProperty.call(message, "principal")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.principal); - if (message.component != null && Object.hasOwnProperty.call(message, "component")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.component); - if (message.subcomponent != null && Object.hasOwnProperty.call(message, "subcomponent")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.subcomponent); + if (message.topo_config != null && Object.hasOwnProperty.call(message, "topo_config")) + $root.topodata.TopoConfig.encode(message.topo_config, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified CallerID message, length delimited. Does not implicitly {@link vtrpc.CallerID.verify|verify} messages. + * Encodes the specified ExternalVitessCluster message, length delimited. Does not implicitly {@link topodata.ExternalVitessCluster.verify|verify} messages. * @function encodeDelimited - * @memberof vtrpc.CallerID + * @memberof topodata.ExternalVitessCluster * @static - * @param {vtrpc.ICallerID} message CallerID message or plain object to encode + * @param {topodata.IExternalVitessCluster} message ExternalVitessCluster message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CallerID.encodeDelimited = function encodeDelimited(message, writer) { + ExternalVitessCluster.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CallerID message from the specified reader or buffer. + * Decodes an ExternalVitessCluster message from the specified reader or buffer. * @function decode - * @memberof vtrpc.CallerID + * @memberof topodata.ExternalVitessCluster * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtrpc.CallerID} CallerID + * @returns {topodata.ExternalVitessCluster} ExternalVitessCluster * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CallerID.decode = function decode(reader, length) { + ExternalVitessCluster.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.vtrpc.CallerID(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.ExternalVitessCluster(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.principal = reader.string(); - break; - case 2: - message.component = reader.string(); - break; - case 3: - message.subcomponent = reader.string(); + message.topo_config = $root.topodata.TopoConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -45418,206 +45639,113 @@ $root.vtrpc = (function() { }; /** - * Decodes a CallerID message from the specified reader or buffer, length delimited. + * Decodes an ExternalVitessCluster message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtrpc.CallerID + * @memberof topodata.ExternalVitessCluster * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtrpc.CallerID} CallerID + * @returns {topodata.ExternalVitessCluster} ExternalVitessCluster * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CallerID.decodeDelimited = function decodeDelimited(reader) { + ExternalVitessCluster.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CallerID message. + * Verifies an ExternalVitessCluster message. * @function verify - * @memberof vtrpc.CallerID + * @memberof topodata.ExternalVitessCluster * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CallerID.verify = function verify(message) { + ExternalVitessCluster.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.principal != null && message.hasOwnProperty("principal")) - if (!$util.isString(message.principal)) - return "principal: string expected"; - if (message.component != null && message.hasOwnProperty("component")) - if (!$util.isString(message.component)) - return "component: string expected"; - if (message.subcomponent != null && message.hasOwnProperty("subcomponent")) - if (!$util.isString(message.subcomponent)) - return "subcomponent: string expected"; + if (message.topo_config != null && message.hasOwnProperty("topo_config")) { + var error = $root.topodata.TopoConfig.verify(message.topo_config); + if (error) + return "topo_config." + error; + } return null; }; /** - * Creates a CallerID message from a plain object. Also converts values to their respective internal types. + * Creates an ExternalVitessCluster message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtrpc.CallerID + * @memberof topodata.ExternalVitessCluster * @static * @param {Object.} object Plain object - * @returns {vtrpc.CallerID} CallerID + * @returns {topodata.ExternalVitessCluster} ExternalVitessCluster */ - CallerID.fromObject = function fromObject(object) { - if (object instanceof $root.vtrpc.CallerID) + ExternalVitessCluster.fromObject = function fromObject(object) { + if (object instanceof $root.topodata.ExternalVitessCluster) return object; - var message = new $root.vtrpc.CallerID(); - if (object.principal != null) - message.principal = String(object.principal); - if (object.component != null) - message.component = String(object.component); - if (object.subcomponent != null) - message.subcomponent = String(object.subcomponent); + var message = new $root.topodata.ExternalVitessCluster(); + if (object.topo_config != null) { + if (typeof object.topo_config !== "object") + throw TypeError(".topodata.ExternalVitessCluster.topo_config: object expected"); + message.topo_config = $root.topodata.TopoConfig.fromObject(object.topo_config); + } return message; }; /** - * Creates a plain object from a CallerID message. Also converts values to other types if specified. + * Creates a plain object from an ExternalVitessCluster message. Also converts values to other types if specified. * @function toObject - * @memberof vtrpc.CallerID + * @memberof topodata.ExternalVitessCluster * @static - * @param {vtrpc.CallerID} message CallerID + * @param {topodata.ExternalVitessCluster} message ExternalVitessCluster * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CallerID.toObject = function toObject(message, options) { + ExternalVitessCluster.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.principal = ""; - object.component = ""; - object.subcomponent = ""; - } - if (message.principal != null && message.hasOwnProperty("principal")) - object.principal = message.principal; - if (message.component != null && message.hasOwnProperty("component")) - object.component = message.component; - if (message.subcomponent != null && message.hasOwnProperty("subcomponent")) - object.subcomponent = message.subcomponent; + if (options.defaults) + object.topo_config = null; + if (message.topo_config != null && message.hasOwnProperty("topo_config")) + object.topo_config = $root.topodata.TopoConfig.toObject(message.topo_config, options); return object; }; /** - * Converts this CallerID to JSON. + * Converts this ExternalVitessCluster to JSON. * @function toJSON - * @memberof vtrpc.CallerID + * @memberof topodata.ExternalVitessCluster * @instance * @returns {Object.} JSON object */ - CallerID.prototype.toJSON = function toJSON() { + ExternalVitessCluster.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CallerID; + return ExternalVitessCluster; })(); - /** - * Code enum. - * @name vtrpc.Code - * @enum {number} - * @property {number} OK=0 OK value - * @property {number} CANCELED=1 CANCELED value - * @property {number} UNKNOWN=2 UNKNOWN value - * @property {number} INVALID_ARGUMENT=3 INVALID_ARGUMENT value - * @property {number} DEADLINE_EXCEEDED=4 DEADLINE_EXCEEDED value - * @property {number} NOT_FOUND=5 NOT_FOUND value - * @property {number} ALREADY_EXISTS=6 ALREADY_EXISTS value - * @property {number} PERMISSION_DENIED=7 PERMISSION_DENIED value - * @property {number} UNAUTHENTICATED=16 UNAUTHENTICATED value - * @property {number} RESOURCE_EXHAUSTED=8 RESOURCE_EXHAUSTED value - * @property {number} FAILED_PRECONDITION=9 FAILED_PRECONDITION value - * @property {number} ABORTED=10 ABORTED value - * @property {number} OUT_OF_RANGE=11 OUT_OF_RANGE value - * @property {number} UNIMPLEMENTED=12 UNIMPLEMENTED value - * @property {number} INTERNAL=13 INTERNAL value - * @property {number} UNAVAILABLE=14 UNAVAILABLE value - * @property {number} DATA_LOSS=15 DATA_LOSS value - */ - vtrpc.Code = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "OK"] = 0; - values[valuesById[1] = "CANCELED"] = 1; - values[valuesById[2] = "UNKNOWN"] = 2; - values[valuesById[3] = "INVALID_ARGUMENT"] = 3; - values[valuesById[4] = "DEADLINE_EXCEEDED"] = 4; - values[valuesById[5] = "NOT_FOUND"] = 5; - values[valuesById[6] = "ALREADY_EXISTS"] = 6; - values[valuesById[7] = "PERMISSION_DENIED"] = 7; - values[valuesById[16] = "UNAUTHENTICATED"] = 16; - values[valuesById[8] = "RESOURCE_EXHAUSTED"] = 8; - values[valuesById[9] = "FAILED_PRECONDITION"] = 9; - values[valuesById[10] = "ABORTED"] = 10; - values[valuesById[11] = "OUT_OF_RANGE"] = 11; - values[valuesById[12] = "UNIMPLEMENTED"] = 12; - values[valuesById[13] = "INTERNAL"] = 13; - values[valuesById[14] = "UNAVAILABLE"] = 14; - values[valuesById[15] = "DATA_LOSS"] = 15; - return values; - })(); - - /** - * LegacyErrorCode enum. - * @name vtrpc.LegacyErrorCode - * @enum {number} - * @property {number} SUCCESS_LEGACY=0 SUCCESS_LEGACY value - * @property {number} CANCELLED_LEGACY=1 CANCELLED_LEGACY value - * @property {number} UNKNOWN_ERROR_LEGACY=2 UNKNOWN_ERROR_LEGACY value - * @property {number} BAD_INPUT_LEGACY=3 BAD_INPUT_LEGACY value - * @property {number} DEADLINE_EXCEEDED_LEGACY=4 DEADLINE_EXCEEDED_LEGACY value - * @property {number} INTEGRITY_ERROR_LEGACY=5 INTEGRITY_ERROR_LEGACY value - * @property {number} PERMISSION_DENIED_LEGACY=6 PERMISSION_DENIED_LEGACY value - * @property {number} RESOURCE_EXHAUSTED_LEGACY=7 RESOURCE_EXHAUSTED_LEGACY value - * @property {number} QUERY_NOT_SERVED_LEGACY=8 QUERY_NOT_SERVED_LEGACY value - * @property {number} NOT_IN_TX_LEGACY=9 NOT_IN_TX_LEGACY value - * @property {number} INTERNAL_ERROR_LEGACY=10 INTERNAL_ERROR_LEGACY value - * @property {number} TRANSIENT_ERROR_LEGACY=11 TRANSIENT_ERROR_LEGACY value - * @property {number} UNAUTHENTICATED_LEGACY=12 UNAUTHENTICATED_LEGACY value - */ - vtrpc.LegacyErrorCode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SUCCESS_LEGACY"] = 0; - values[valuesById[1] = "CANCELLED_LEGACY"] = 1; - values[valuesById[2] = "UNKNOWN_ERROR_LEGACY"] = 2; - values[valuesById[3] = "BAD_INPUT_LEGACY"] = 3; - values[valuesById[4] = "DEADLINE_EXCEEDED_LEGACY"] = 4; - values[valuesById[5] = "INTEGRITY_ERROR_LEGACY"] = 5; - values[valuesById[6] = "PERMISSION_DENIED_LEGACY"] = 6; - values[valuesById[7] = "RESOURCE_EXHAUSTED_LEGACY"] = 7; - values[valuesById[8] = "QUERY_NOT_SERVED_LEGACY"] = 8; - values[valuesById[9] = "NOT_IN_TX_LEGACY"] = 9; - values[valuesById[10] = "INTERNAL_ERROR_LEGACY"] = 10; - values[valuesById[11] = "TRANSIENT_ERROR_LEGACY"] = 11; - values[valuesById[12] = "UNAUTHENTICATED_LEGACY"] = 12; - return values; - })(); - - vtrpc.RPCError = (function() { + topodata.ExternalClusters = (function() { /** - * Properties of a RPCError. - * @memberof vtrpc - * @interface IRPCError - * @property {vtrpc.LegacyErrorCode|null} [legacy_code] RPCError legacy_code - * @property {string|null} [message] RPCError message - * @property {vtrpc.Code|null} [code] RPCError code + * Properties of an ExternalClusters. + * @memberof topodata + * @interface IExternalClusters + * @property {Array.|null} [vitess_cluster] ExternalClusters vitess_cluster */ /** - * Constructs a new RPCError. - * @memberof vtrpc - * @classdesc Represents a RPCError. - * @implements IRPCError + * Constructs a new ExternalClusters. + * @memberof topodata + * @classdesc Represents an ExternalClusters. + * @implements IExternalClusters * @constructor - * @param {vtrpc.IRPCError=} [properties] Properties to set + * @param {topodata.IExternalClusters=} [properties] Properties to set */ - function RPCError(properties) { + function ExternalClusters(properties) { + this.vitess_cluster = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45625,101 +45753,78 @@ $root.vtrpc = (function() { } /** - * RPCError legacy_code. - * @member {vtrpc.LegacyErrorCode} legacy_code - * @memberof vtrpc.RPCError - * @instance - */ - RPCError.prototype.legacy_code = 0; - - /** - * RPCError message. - * @member {string} message - * @memberof vtrpc.RPCError - * @instance - */ - RPCError.prototype.message = ""; - - /** - * RPCError code. - * @member {vtrpc.Code} code - * @memberof vtrpc.RPCError + * ExternalClusters vitess_cluster. + * @member {Array.} vitess_cluster + * @memberof topodata.ExternalClusters * @instance */ - RPCError.prototype.code = 0; + ExternalClusters.prototype.vitess_cluster = $util.emptyArray; /** - * Creates a new RPCError instance using the specified properties. + * Creates a new ExternalClusters instance using the specified properties. * @function create - * @memberof vtrpc.RPCError + * @memberof topodata.ExternalClusters * @static - * @param {vtrpc.IRPCError=} [properties] Properties to set - * @returns {vtrpc.RPCError} RPCError instance + * @param {topodata.IExternalClusters=} [properties] Properties to set + * @returns {topodata.ExternalClusters} ExternalClusters instance */ - RPCError.create = function create(properties) { - return new RPCError(properties); + ExternalClusters.create = function create(properties) { + return new ExternalClusters(properties); }; /** - * Encodes the specified RPCError message. Does not implicitly {@link vtrpc.RPCError.verify|verify} messages. + * Encodes the specified ExternalClusters message. Does not implicitly {@link topodata.ExternalClusters.verify|verify} messages. * @function encode - * @memberof vtrpc.RPCError + * @memberof topodata.ExternalClusters * @static - * @param {vtrpc.IRPCError} message RPCError message or plain object to encode + * @param {topodata.IExternalClusters} message ExternalClusters message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RPCError.encode = function encode(message, writer) { + ExternalClusters.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.legacy_code != null && Object.hasOwnProperty.call(message, "legacy_code")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.legacy_code); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); - if (message.code != null && Object.hasOwnProperty.call(message, "code")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.code); + if (message.vitess_cluster != null && message.vitess_cluster.length) + for (var i = 0; i < message.vitess_cluster.length; ++i) + $root.topodata.ExternalVitessCluster.encode(message.vitess_cluster[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified RPCError message, length delimited. Does not implicitly {@link vtrpc.RPCError.verify|verify} messages. + * Encodes the specified ExternalClusters message, length delimited. Does not implicitly {@link topodata.ExternalClusters.verify|verify} messages. * @function encodeDelimited - * @memberof vtrpc.RPCError + * @memberof topodata.ExternalClusters * @static - * @param {vtrpc.IRPCError} message RPCError message or plain object to encode + * @param {topodata.IExternalClusters} message ExternalClusters message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RPCError.encodeDelimited = function encodeDelimited(message, writer) { + ExternalClusters.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RPCError message from the specified reader or buffer. + * Decodes an ExternalClusters message from the specified reader or buffer. * @function decode - * @memberof vtrpc.RPCError + * @memberof topodata.ExternalClusters * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtrpc.RPCError} RPCError + * @returns {topodata.ExternalClusters} ExternalClusters * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RPCError.decode = function decode(reader, length) { + ExternalClusters.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.vtrpc.RPCError(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.topodata.ExternalClusters(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.legacy_code = reader.int32(); - break; - case 2: - message.message = reader.string(); - break; - case 3: - message.code = reader.int32(); + if (!(message.vitess_cluster && message.vitess_cluster.length)) + message.vitess_cluster = []; + message.vitess_cluster.push($root.topodata.ExternalVitessCluster.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -45730,303 +45835,137 @@ $root.vtrpc = (function() { }; /** - * Decodes a RPCError message from the specified reader or buffer, length delimited. + * Decodes an ExternalClusters message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtrpc.RPCError + * @memberof topodata.ExternalClusters * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtrpc.RPCError} RPCError + * @returns {topodata.ExternalClusters} ExternalClusters * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RPCError.decodeDelimited = function decodeDelimited(reader) { + ExternalClusters.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RPCError message. + * Verifies an ExternalClusters message. * @function verify - * @memberof vtrpc.RPCError + * @memberof topodata.ExternalClusters * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RPCError.verify = function verify(message) { + ExternalClusters.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.legacy_code != null && message.hasOwnProperty("legacy_code")) - switch (message.legacy_code) { - default: - return "legacy_code: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - break; - } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.code != null && message.hasOwnProperty("code")) - switch (message.code) { - default: - return "code: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 16: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - break; + if (message.vitess_cluster != null && message.hasOwnProperty("vitess_cluster")) { + if (!Array.isArray(message.vitess_cluster)) + return "vitess_cluster: array expected"; + for (var i = 0; i < message.vitess_cluster.length; ++i) { + var error = $root.topodata.ExternalVitessCluster.verify(message.vitess_cluster[i]); + if (error) + return "vitess_cluster." + error; } + } return null; }; /** - * Creates a RPCError message from a plain object. Also converts values to their respective internal types. + * Creates an ExternalClusters message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtrpc.RPCError + * @memberof topodata.ExternalClusters * @static * @param {Object.} object Plain object - * @returns {vtrpc.RPCError} RPCError + * @returns {topodata.ExternalClusters} ExternalClusters */ - RPCError.fromObject = function fromObject(object) { - if (object instanceof $root.vtrpc.RPCError) + ExternalClusters.fromObject = function fromObject(object) { + if (object instanceof $root.topodata.ExternalClusters) return object; - var message = new $root.vtrpc.RPCError(); - switch (object.legacy_code) { - case "SUCCESS_LEGACY": - case 0: - message.legacy_code = 0; - break; - case "CANCELLED_LEGACY": - case 1: - message.legacy_code = 1; - break; - case "UNKNOWN_ERROR_LEGACY": - case 2: - message.legacy_code = 2; - break; - case "BAD_INPUT_LEGACY": - case 3: - message.legacy_code = 3; - break; - case "DEADLINE_EXCEEDED_LEGACY": - case 4: - message.legacy_code = 4; - break; - case "INTEGRITY_ERROR_LEGACY": - case 5: - message.legacy_code = 5; - break; - case "PERMISSION_DENIED_LEGACY": - case 6: - message.legacy_code = 6; - break; - case "RESOURCE_EXHAUSTED_LEGACY": - case 7: - message.legacy_code = 7; - break; - case "QUERY_NOT_SERVED_LEGACY": - case 8: - message.legacy_code = 8; - break; - case "NOT_IN_TX_LEGACY": - case 9: - message.legacy_code = 9; - break; - case "INTERNAL_ERROR_LEGACY": - case 10: - message.legacy_code = 10; - break; - case "TRANSIENT_ERROR_LEGACY": - case 11: - message.legacy_code = 11; - break; - case "UNAUTHENTICATED_LEGACY": - case 12: - message.legacy_code = 12; - break; - } - if (object.message != null) - message.message = String(object.message); - switch (object.code) { - case "OK": - case 0: - message.code = 0; - break; - case "CANCELED": - case 1: - message.code = 1; - break; - case "UNKNOWN": - case 2: - message.code = 2; - break; - case "INVALID_ARGUMENT": - case 3: - message.code = 3; - break; - case "DEADLINE_EXCEEDED": - case 4: - message.code = 4; - break; - case "NOT_FOUND": - case 5: - message.code = 5; - break; - case "ALREADY_EXISTS": - case 6: - message.code = 6; - break; - case "PERMISSION_DENIED": - case 7: - message.code = 7; - break; - case "UNAUTHENTICATED": - case 16: - message.code = 16; - break; - case "RESOURCE_EXHAUSTED": - case 8: - message.code = 8; - break; - case "FAILED_PRECONDITION": - case 9: - message.code = 9; - break; - case "ABORTED": - case 10: - message.code = 10; - break; - case "OUT_OF_RANGE": - case 11: - message.code = 11; - break; - case "UNIMPLEMENTED": - case 12: - message.code = 12; - break; - case "INTERNAL": - case 13: - message.code = 13; - break; - case "UNAVAILABLE": - case 14: - message.code = 14; - break; - case "DATA_LOSS": - case 15: - message.code = 15; - break; + var message = new $root.topodata.ExternalClusters(); + if (object.vitess_cluster) { + if (!Array.isArray(object.vitess_cluster)) + throw TypeError(".topodata.ExternalClusters.vitess_cluster: array expected"); + message.vitess_cluster = []; + for (var i = 0; i < object.vitess_cluster.length; ++i) { + if (typeof object.vitess_cluster[i] !== "object") + throw TypeError(".topodata.ExternalClusters.vitess_cluster: object expected"); + message.vitess_cluster[i] = $root.topodata.ExternalVitessCluster.fromObject(object.vitess_cluster[i]); + } } return message; }; /** - * Creates a plain object from a RPCError message. Also converts values to other types if specified. + * Creates a plain object from an ExternalClusters message. Also converts values to other types if specified. * @function toObject - * @memberof vtrpc.RPCError + * @memberof topodata.ExternalClusters * @static - * @param {vtrpc.RPCError} message RPCError + * @param {topodata.ExternalClusters} message ExternalClusters * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RPCError.toObject = function toObject(message, options) { + ExternalClusters.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.legacy_code = options.enums === String ? "SUCCESS_LEGACY" : 0; - object.message = ""; - object.code = options.enums === String ? "OK" : 0; + if (options.arrays || options.defaults) + object.vitess_cluster = []; + if (message.vitess_cluster && message.vitess_cluster.length) { + object.vitess_cluster = []; + for (var j = 0; j < message.vitess_cluster.length; ++j) + object.vitess_cluster[j] = $root.topodata.ExternalVitessCluster.toObject(message.vitess_cluster[j], options); } - if (message.legacy_code != null && message.hasOwnProperty("legacy_code")) - object.legacy_code = options.enums === String ? $root.vtrpc.LegacyErrorCode[message.legacy_code] : message.legacy_code; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.code != null && message.hasOwnProperty("code")) - object.code = options.enums === String ? $root.vtrpc.Code[message.code] : message.code; return object; }; /** - * Converts this RPCError to JSON. + * Converts this ExternalClusters to JSON. * @function toJSON - * @memberof vtrpc.RPCError + * @memberof topodata.ExternalClusters * @instance * @returns {Object.} JSON object */ - RPCError.prototype.toJSON = function toJSON() { + ExternalClusters.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RPCError; + return ExternalClusters; })(); - return vtrpc; + return topodata; })(); -$root.replicationdata = (function() { +$root.vttime = (function() { /** - * Namespace replicationdata. - * @exports replicationdata + * Namespace vttime. + * @exports vttime * @namespace */ - var replicationdata = {}; + var vttime = {}; - replicationdata.Status = (function() { + vttime.Time = (function() { /** - * Properties of a Status. - * @memberof replicationdata - * @interface IStatus - * @property {string|null} [position] Status position - * @property {boolean|null} [io_thread_running] Status io_thread_running - * @property {boolean|null} [sql_thread_running] Status sql_thread_running - * @property {number|null} [seconds_behind_master] Status seconds_behind_master - * @property {string|null} [master_host] Status master_host - * @property {number|null} [master_port] Status master_port - * @property {number|null} [master_connect_retry] Status master_connect_retry - * @property {string|null} [relay_log_position] Status relay_log_position - * @property {string|null} [file_position] Status file_position - * @property {string|null} [file_relay_log_position] Status file_relay_log_position - * @property {number|null} [master_server_id] Status master_server_id - * @property {string|null} [master_uuid] Status master_uuid + * Properties of a Time. + * @memberof vttime + * @interface ITime + * @property {number|Long|null} [seconds] Time seconds + * @property {number|null} [nanoseconds] Time nanoseconds */ /** - * Constructs a new Status. - * @memberof replicationdata - * @classdesc Represents a Status. - * @implements IStatus + * Constructs a new Time. + * @memberof vttime + * @classdesc Represents a Time. + * @implements ITime * @constructor - * @param {replicationdata.IStatus=} [properties] Properties to set + * @param {vttime.ITime=} [properties] Properties to set */ - function Status(properties) { + function Time(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46034,218 +45973,3560 @@ $root.replicationdata = (function() { } /** - * Status position. - * @member {string} position - * @memberof replicationdata.Status - * @instance - */ - Status.prototype.position = ""; - - /** - * Status io_thread_running. - * @member {boolean} io_thread_running - * @memberof replicationdata.Status - * @instance - */ - Status.prototype.io_thread_running = false; - - /** - * Status sql_thread_running. - * @member {boolean} sql_thread_running - * @memberof replicationdata.Status - * @instance - */ - Status.prototype.sql_thread_running = false; - - /** - * Status seconds_behind_master. - * @member {number} seconds_behind_master - * @memberof replicationdata.Status - * @instance - */ - Status.prototype.seconds_behind_master = 0; - - /** - * Status master_host. - * @member {string} master_host - * @memberof replicationdata.Status - * @instance - */ - Status.prototype.master_host = ""; - - /** - * Status master_port. - * @member {number} master_port - * @memberof replicationdata.Status - * @instance - */ - Status.prototype.master_port = 0; - - /** - * Status master_connect_retry. - * @member {number} master_connect_retry - * @memberof replicationdata.Status - * @instance - */ - Status.prototype.master_connect_retry = 0; - - /** - * Status relay_log_position. - * @member {string} relay_log_position - * @memberof replicationdata.Status - * @instance - */ - Status.prototype.relay_log_position = ""; - - /** - * Status file_position. - * @member {string} file_position - * @memberof replicationdata.Status - * @instance - */ - Status.prototype.file_position = ""; - - /** - * Status file_relay_log_position. - * @member {string} file_relay_log_position - * @memberof replicationdata.Status - * @instance - */ - Status.prototype.file_relay_log_position = ""; - - /** - * Status master_server_id. - * @member {number} master_server_id - * @memberof replicationdata.Status + * Time seconds. + * @member {number|Long} seconds + * @memberof vttime.Time * @instance */ - Status.prototype.master_server_id = 0; + Time.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Status master_uuid. - * @member {string} master_uuid - * @memberof replicationdata.Status + * Time nanoseconds. + * @member {number} nanoseconds + * @memberof vttime.Time * @instance */ - Status.prototype.master_uuid = ""; + Time.prototype.nanoseconds = 0; /** - * Creates a new Status instance using the specified properties. + * Creates a new Time instance using the specified properties. * @function create - * @memberof replicationdata.Status + * @memberof vttime.Time * @static - * @param {replicationdata.IStatus=} [properties] Properties to set - * @returns {replicationdata.Status} Status instance + * @param {vttime.ITime=} [properties] Properties to set + * @returns {vttime.Time} Time instance */ - Status.create = function create(properties) { - return new Status(properties); + Time.create = function create(properties) { + return new Time(properties); }; /** - * Encodes the specified Status message. Does not implicitly {@link replicationdata.Status.verify|verify} messages. + * Encodes the specified Time message. Does not implicitly {@link vttime.Time.verify|verify} messages. * @function encode - * @memberof replicationdata.Status + * @memberof vttime.Time * @static - * @param {replicationdata.IStatus} message Status message or plain object to encode + * @param {vttime.ITime} message Time message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Status.encode = function encode(message, writer) { + Time.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.position != null && Object.hasOwnProperty.call(message, "position")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.position); - if (message.io_thread_running != null && Object.hasOwnProperty.call(message, "io_thread_running")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.io_thread_running); - if (message.sql_thread_running != null && Object.hasOwnProperty.call(message, "sql_thread_running")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.sql_thread_running); - if (message.seconds_behind_master != null && Object.hasOwnProperty.call(message, "seconds_behind_master")) - writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.seconds_behind_master); - if (message.master_host != null && Object.hasOwnProperty.call(message, "master_host")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.master_host); - if (message.master_port != null && Object.hasOwnProperty.call(message, "master_port")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.master_port); - if (message.master_connect_retry != null && Object.hasOwnProperty.call(message, "master_connect_retry")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.master_connect_retry); - if (message.relay_log_position != null && Object.hasOwnProperty.call(message, "relay_log_position")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.relay_log_position); - if (message.file_position != null && Object.hasOwnProperty.call(message, "file_position")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.file_position); - if (message.file_relay_log_position != null && Object.hasOwnProperty.call(message, "file_relay_log_position")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.file_relay_log_position); - if (message.master_server_id != null && Object.hasOwnProperty.call(message, "master_server_id")) - writer.uint32(/* id 11, wireType 0 =*/88).uint32(message.master_server_id); - if (message.master_uuid != null && Object.hasOwnProperty.call(message, "master_uuid")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.master_uuid); + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanoseconds != null && Object.hasOwnProperty.call(message, "nanoseconds")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanoseconds); return writer; }; /** - * Encodes the specified Status message, length delimited. Does not implicitly {@link replicationdata.Status.verify|verify} messages. + * Encodes the specified Time message, length delimited. Does not implicitly {@link vttime.Time.verify|verify} messages. * @function encodeDelimited - * @memberof replicationdata.Status + * @memberof vttime.Time * @static - * @param {replicationdata.IStatus} message Status message or plain object to encode + * @param {vttime.ITime} message Time message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Status.encodeDelimited = function encodeDelimited(message, writer) { + Time.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Status message from the specified reader or buffer. + * Decodes a Time message from the specified reader or buffer. * @function decode - * @memberof replicationdata.Status + * @memberof vttime.Time * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {replicationdata.Status} Status + * @returns {vttime.Time} Time * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Status.decode = function decode(reader, length) { + Time.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.replicationdata.Status(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vttime.Time(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.position = reader.string(); + message.seconds = reader.int64(); break; case 2: - message.io_thread_running = reader.bool(); - break; - case 3: - message.sql_thread_running = reader.bool(); + message.nanoseconds = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Time message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vttime.Time + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vttime.Time} Time + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Time.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Time message. + * @function verify + * @memberof vttime.Time + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Time.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanoseconds != null && message.hasOwnProperty("nanoseconds")) + if (!$util.isInteger(message.nanoseconds)) + return "nanoseconds: integer expected"; + return null; + }; + + /** + * Creates a Time message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vttime.Time + * @static + * @param {Object.} object Plain object + * @returns {vttime.Time} Time + */ + Time.fromObject = function fromObject(object) { + if (object instanceof $root.vttime.Time) + return object; + var message = new $root.vttime.Time(); + if (object.seconds != null) + if ($util.Long) + (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; + else if (typeof object.seconds === "string") + message.seconds = parseInt(object.seconds, 10); + else if (typeof object.seconds === "number") + message.seconds = object.seconds; + else if (typeof object.seconds === "object") + message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); + if (object.nanoseconds != null) + message.nanoseconds = object.nanoseconds | 0; + return message; + }; + + /** + * Creates a plain object from a Time message. Also converts values to other types if specified. + * @function toObject + * @memberof vttime.Time + * @static + * @param {vttime.Time} message Time + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Time.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.seconds = options.longs === String ? "0" : 0; + object.nanoseconds = 0; + } + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (typeof message.seconds === "number") + object.seconds = options.longs === String ? String(message.seconds) : message.seconds; + else + object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; + if (message.nanoseconds != null && message.hasOwnProperty("nanoseconds")) + object.nanoseconds = message.nanoseconds; + return object; + }; + + /** + * Converts this Time to JSON. + * @function toJSON + * @memberof vttime.Time + * @instance + * @returns {Object.} JSON object + */ + Time.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Time; + })(); + + vttime.Duration = (function() { + + /** + * Properties of a Duration. + * @memberof vttime + * @interface IDuration + * @property {number|Long|null} [seconds] Duration seconds + * @property {number|null} [nanos] Duration nanos + */ + + /** + * Constructs a new Duration. + * @memberof vttime + * @classdesc Represents a Duration. + * @implements IDuration + * @constructor + * @param {vttime.IDuration=} [properties] Properties to set + */ + function Duration(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]]; + } + + /** + * Duration seconds. + * @member {number|Long} seconds + * @memberof vttime.Duration + * @instance + */ + Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Duration nanos. + * @member {number} nanos + * @memberof vttime.Duration + * @instance + */ + Duration.prototype.nanos = 0; + + /** + * Creates a new Duration instance using the specified properties. + * @function create + * @memberof vttime.Duration + * @static + * @param {vttime.IDuration=} [properties] Properties to set + * @returns {vttime.Duration} Duration instance + */ + Duration.create = function create(properties) { + return new Duration(properties); + }; + + /** + * Encodes the specified Duration message. Does not implicitly {@link vttime.Duration.verify|verify} messages. + * @function encode + * @memberof vttime.Duration + * @static + * @param {vttime.IDuration} message Duration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Duration.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + return writer; + }; + + /** + * Encodes the specified Duration message, length delimited. Does not implicitly {@link vttime.Duration.verify|verify} messages. + * @function encodeDelimited + * @memberof vttime.Duration + * @static + * @param {vttime.IDuration} message Duration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Duration.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Duration message from the specified reader or buffer. + * @function decode + * @memberof vttime.Duration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vttime.Duration} Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Duration.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.vttime.Duration(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seconds = reader.int64(); + break; + case 2: + message.nanos = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Duration message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vttime.Duration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vttime.Duration} Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Duration.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Duration message. + * @function verify + * @memberof vttime.Duration + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Duration.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; + return null; + }; + + /** + * Creates a Duration message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vttime.Duration + * @static + * @param {Object.} object Plain object + * @returns {vttime.Duration} Duration + */ + Duration.fromObject = function fromObject(object) { + if (object instanceof $root.vttime.Duration) + return object; + var message = new $root.vttime.Duration(); + if (object.seconds != null) + if ($util.Long) + (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; + else if (typeof object.seconds === "string") + message.seconds = parseInt(object.seconds, 10); + else if (typeof object.seconds === "number") + message.seconds = object.seconds; + else if (typeof object.seconds === "object") + message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); + if (object.nanos != null) + message.nanos = object.nanos | 0; + return message; + }; + + /** + * Creates a plain object from a Duration message. Also converts values to other types if specified. + * @function toObject + * @memberof vttime.Duration + * @static + * @param {vttime.Duration} message Duration + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Duration.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.seconds = options.longs === String ? "0" : 0; + object.nanos = 0; + } + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (typeof message.seconds === "number") + object.seconds = options.longs === String ? String(message.seconds) : message.seconds; + else + object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; + if (message.nanos != null && message.hasOwnProperty("nanos")) + object.nanos = message.nanos; + return object; + }; + + /** + * Converts this Duration to JSON. + * @function toJSON + * @memberof vttime.Duration + * @instance + * @returns {Object.} JSON object + */ + Duration.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Duration; + })(); + + return vttime; +})(); + +$root.vtrpc = (function() { + + /** + * Namespace vtrpc. + * @exports vtrpc + * @namespace + */ + var vtrpc = {}; + + vtrpc.CallerID = (function() { + + /** + * Properties of a CallerID. + * @memberof vtrpc + * @interface ICallerID + * @property {string|null} [principal] CallerID principal + * @property {string|null} [component] CallerID component + * @property {string|null} [subcomponent] CallerID subcomponent + */ + + /** + * Constructs a new CallerID. + * @memberof vtrpc + * @classdesc Represents a CallerID. + * @implements ICallerID + * @constructor + * @param {vtrpc.ICallerID=} [properties] Properties to set + */ + function CallerID(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]]; + } + + /** + * CallerID principal. + * @member {string} principal + * @memberof vtrpc.CallerID + * @instance + */ + CallerID.prototype.principal = ""; + + /** + * CallerID component. + * @member {string} component + * @memberof vtrpc.CallerID + * @instance + */ + CallerID.prototype.component = ""; + + /** + * CallerID subcomponent. + * @member {string} subcomponent + * @memberof vtrpc.CallerID + * @instance + */ + CallerID.prototype.subcomponent = ""; + + /** + * Creates a new CallerID instance using the specified properties. + * @function create + * @memberof vtrpc.CallerID + * @static + * @param {vtrpc.ICallerID=} [properties] Properties to set + * @returns {vtrpc.CallerID} CallerID instance + */ + CallerID.create = function create(properties) { + return new CallerID(properties); + }; + + /** + * Encodes the specified CallerID message. Does not implicitly {@link vtrpc.CallerID.verify|verify} messages. + * @function encode + * @memberof vtrpc.CallerID + * @static + * @param {vtrpc.ICallerID} message CallerID message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CallerID.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.principal != null && Object.hasOwnProperty.call(message, "principal")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.principal); + if (message.component != null && Object.hasOwnProperty.call(message, "component")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.component); + if (message.subcomponent != null && Object.hasOwnProperty.call(message, "subcomponent")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.subcomponent); + return writer; + }; + + /** + * Encodes the specified CallerID message, length delimited. Does not implicitly {@link vtrpc.CallerID.verify|verify} messages. + * @function encodeDelimited + * @memberof vtrpc.CallerID + * @static + * @param {vtrpc.ICallerID} message CallerID message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CallerID.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CallerID message from the specified reader or buffer. + * @function decode + * @memberof vtrpc.CallerID + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtrpc.CallerID} CallerID + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CallerID.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.vtrpc.CallerID(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.principal = reader.string(); + break; + case 2: + message.component = reader.string(); + break; + case 3: + message.subcomponent = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CallerID message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtrpc.CallerID + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtrpc.CallerID} CallerID + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CallerID.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CallerID message. + * @function verify + * @memberof vtrpc.CallerID + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CallerID.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.principal != null && message.hasOwnProperty("principal")) + if (!$util.isString(message.principal)) + return "principal: string expected"; + if (message.component != null && message.hasOwnProperty("component")) + if (!$util.isString(message.component)) + return "component: string expected"; + if (message.subcomponent != null && message.hasOwnProperty("subcomponent")) + if (!$util.isString(message.subcomponent)) + return "subcomponent: string expected"; + return null; + }; + + /** + * Creates a CallerID message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtrpc.CallerID + * @static + * @param {Object.} object Plain object + * @returns {vtrpc.CallerID} CallerID + */ + CallerID.fromObject = function fromObject(object) { + if (object instanceof $root.vtrpc.CallerID) + return object; + var message = new $root.vtrpc.CallerID(); + if (object.principal != null) + message.principal = String(object.principal); + if (object.component != null) + message.component = String(object.component); + if (object.subcomponent != null) + message.subcomponent = String(object.subcomponent); + return message; + }; + + /** + * Creates a plain object from a CallerID message. Also converts values to other types if specified. + * @function toObject + * @memberof vtrpc.CallerID + * @static + * @param {vtrpc.CallerID} message CallerID + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CallerID.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.principal = ""; + object.component = ""; + object.subcomponent = ""; + } + if (message.principal != null && message.hasOwnProperty("principal")) + object.principal = message.principal; + if (message.component != null && message.hasOwnProperty("component")) + object.component = message.component; + if (message.subcomponent != null && message.hasOwnProperty("subcomponent")) + object.subcomponent = message.subcomponent; + return object; + }; + + /** + * Converts this CallerID to JSON. + * @function toJSON + * @memberof vtrpc.CallerID + * @instance + * @returns {Object.} JSON object + */ + CallerID.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CallerID; + })(); + + /** + * Code enum. + * @name vtrpc.Code + * @enum {number} + * @property {number} OK=0 OK value + * @property {number} CANCELED=1 CANCELED value + * @property {number} UNKNOWN=2 UNKNOWN value + * @property {number} INVALID_ARGUMENT=3 INVALID_ARGUMENT value + * @property {number} DEADLINE_EXCEEDED=4 DEADLINE_EXCEEDED value + * @property {number} NOT_FOUND=5 NOT_FOUND value + * @property {number} ALREADY_EXISTS=6 ALREADY_EXISTS value + * @property {number} PERMISSION_DENIED=7 PERMISSION_DENIED value + * @property {number} UNAUTHENTICATED=16 UNAUTHENTICATED value + * @property {number} RESOURCE_EXHAUSTED=8 RESOURCE_EXHAUSTED value + * @property {number} FAILED_PRECONDITION=9 FAILED_PRECONDITION value + * @property {number} ABORTED=10 ABORTED value + * @property {number} OUT_OF_RANGE=11 OUT_OF_RANGE value + * @property {number} UNIMPLEMENTED=12 UNIMPLEMENTED value + * @property {number} INTERNAL=13 INTERNAL value + * @property {number} UNAVAILABLE=14 UNAVAILABLE value + * @property {number} DATA_LOSS=15 DATA_LOSS value + */ + vtrpc.Code = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "OK"] = 0; + values[valuesById[1] = "CANCELED"] = 1; + values[valuesById[2] = "UNKNOWN"] = 2; + values[valuesById[3] = "INVALID_ARGUMENT"] = 3; + values[valuesById[4] = "DEADLINE_EXCEEDED"] = 4; + values[valuesById[5] = "NOT_FOUND"] = 5; + values[valuesById[6] = "ALREADY_EXISTS"] = 6; + values[valuesById[7] = "PERMISSION_DENIED"] = 7; + values[valuesById[16] = "UNAUTHENTICATED"] = 16; + values[valuesById[8] = "RESOURCE_EXHAUSTED"] = 8; + values[valuesById[9] = "FAILED_PRECONDITION"] = 9; + values[valuesById[10] = "ABORTED"] = 10; + values[valuesById[11] = "OUT_OF_RANGE"] = 11; + values[valuesById[12] = "UNIMPLEMENTED"] = 12; + values[valuesById[13] = "INTERNAL"] = 13; + values[valuesById[14] = "UNAVAILABLE"] = 14; + values[valuesById[15] = "DATA_LOSS"] = 15; + return values; + })(); + + /** + * LegacyErrorCode enum. + * @name vtrpc.LegacyErrorCode + * @enum {number} + * @property {number} SUCCESS_LEGACY=0 SUCCESS_LEGACY value + * @property {number} CANCELLED_LEGACY=1 CANCELLED_LEGACY value + * @property {number} UNKNOWN_ERROR_LEGACY=2 UNKNOWN_ERROR_LEGACY value + * @property {number} BAD_INPUT_LEGACY=3 BAD_INPUT_LEGACY value + * @property {number} DEADLINE_EXCEEDED_LEGACY=4 DEADLINE_EXCEEDED_LEGACY value + * @property {number} INTEGRITY_ERROR_LEGACY=5 INTEGRITY_ERROR_LEGACY value + * @property {number} PERMISSION_DENIED_LEGACY=6 PERMISSION_DENIED_LEGACY value + * @property {number} RESOURCE_EXHAUSTED_LEGACY=7 RESOURCE_EXHAUSTED_LEGACY value + * @property {number} QUERY_NOT_SERVED_LEGACY=8 QUERY_NOT_SERVED_LEGACY value + * @property {number} NOT_IN_TX_LEGACY=9 NOT_IN_TX_LEGACY value + * @property {number} INTERNAL_ERROR_LEGACY=10 INTERNAL_ERROR_LEGACY value + * @property {number} TRANSIENT_ERROR_LEGACY=11 TRANSIENT_ERROR_LEGACY value + * @property {number} UNAUTHENTICATED_LEGACY=12 UNAUTHENTICATED_LEGACY value + */ + vtrpc.LegacyErrorCode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SUCCESS_LEGACY"] = 0; + values[valuesById[1] = "CANCELLED_LEGACY"] = 1; + values[valuesById[2] = "UNKNOWN_ERROR_LEGACY"] = 2; + values[valuesById[3] = "BAD_INPUT_LEGACY"] = 3; + values[valuesById[4] = "DEADLINE_EXCEEDED_LEGACY"] = 4; + values[valuesById[5] = "INTEGRITY_ERROR_LEGACY"] = 5; + values[valuesById[6] = "PERMISSION_DENIED_LEGACY"] = 6; + values[valuesById[7] = "RESOURCE_EXHAUSTED_LEGACY"] = 7; + values[valuesById[8] = "QUERY_NOT_SERVED_LEGACY"] = 8; + values[valuesById[9] = "NOT_IN_TX_LEGACY"] = 9; + values[valuesById[10] = "INTERNAL_ERROR_LEGACY"] = 10; + values[valuesById[11] = "TRANSIENT_ERROR_LEGACY"] = 11; + values[valuesById[12] = "UNAUTHENTICATED_LEGACY"] = 12; + return values; + })(); + + vtrpc.RPCError = (function() { + + /** + * Properties of a RPCError. + * @memberof vtrpc + * @interface IRPCError + * @property {vtrpc.LegacyErrorCode|null} [legacy_code] RPCError legacy_code + * @property {string|null} [message] RPCError message + * @property {vtrpc.Code|null} [code] RPCError code + */ + + /** + * Constructs a new RPCError. + * @memberof vtrpc + * @classdesc Represents a RPCError. + * @implements IRPCError + * @constructor + * @param {vtrpc.IRPCError=} [properties] Properties to set + */ + function RPCError(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]]; + } + + /** + * RPCError legacy_code. + * @member {vtrpc.LegacyErrorCode} legacy_code + * @memberof vtrpc.RPCError + * @instance + */ + RPCError.prototype.legacy_code = 0; + + /** + * RPCError message. + * @member {string} message + * @memberof vtrpc.RPCError + * @instance + */ + RPCError.prototype.message = ""; + + /** + * RPCError code. + * @member {vtrpc.Code} code + * @memberof vtrpc.RPCError + * @instance + */ + RPCError.prototype.code = 0; + + /** + * Creates a new RPCError instance using the specified properties. + * @function create + * @memberof vtrpc.RPCError + * @static + * @param {vtrpc.IRPCError=} [properties] Properties to set + * @returns {vtrpc.RPCError} RPCError instance + */ + RPCError.create = function create(properties) { + return new RPCError(properties); + }; + + /** + * Encodes the specified RPCError message. Does not implicitly {@link vtrpc.RPCError.verify|verify} messages. + * @function encode + * @memberof vtrpc.RPCError + * @static + * @param {vtrpc.IRPCError} message RPCError message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RPCError.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.legacy_code != null && Object.hasOwnProperty.call(message, "legacy_code")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.legacy_code); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (message.code != null && Object.hasOwnProperty.call(message, "code")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.code); + return writer; + }; + + /** + * Encodes the specified RPCError message, length delimited. Does not implicitly {@link vtrpc.RPCError.verify|verify} messages. + * @function encodeDelimited + * @memberof vtrpc.RPCError + * @static + * @param {vtrpc.IRPCError} message RPCError message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RPCError.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RPCError message from the specified reader or buffer. + * @function decode + * @memberof vtrpc.RPCError + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtrpc.RPCError} RPCError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RPCError.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.vtrpc.RPCError(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.legacy_code = reader.int32(); + break; + case 2: + message.message = reader.string(); + break; + case 3: + message.code = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RPCError message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtrpc.RPCError + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtrpc.RPCError} RPCError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RPCError.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RPCError message. + * @function verify + * @memberof vtrpc.RPCError + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RPCError.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.legacy_code != null && message.hasOwnProperty("legacy_code")) + switch (message.legacy_code) { + default: + return "legacy_code: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + break; + } + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + if (message.code != null && message.hasOwnProperty("code")) + switch (message.code) { + default: + return "code: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 16: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + break; + } + return null; + }; + + /** + * Creates a RPCError message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtrpc.RPCError + * @static + * @param {Object.} object Plain object + * @returns {vtrpc.RPCError} RPCError + */ + RPCError.fromObject = function fromObject(object) { + if (object instanceof $root.vtrpc.RPCError) + return object; + var message = new $root.vtrpc.RPCError(); + switch (object.legacy_code) { + case "SUCCESS_LEGACY": + case 0: + message.legacy_code = 0; + break; + case "CANCELLED_LEGACY": + case 1: + message.legacy_code = 1; + break; + case "UNKNOWN_ERROR_LEGACY": + case 2: + message.legacy_code = 2; + break; + case "BAD_INPUT_LEGACY": + case 3: + message.legacy_code = 3; + break; + case "DEADLINE_EXCEEDED_LEGACY": + case 4: + message.legacy_code = 4; + break; + case "INTEGRITY_ERROR_LEGACY": + case 5: + message.legacy_code = 5; + break; + case "PERMISSION_DENIED_LEGACY": + case 6: + message.legacy_code = 6; + break; + case "RESOURCE_EXHAUSTED_LEGACY": + case 7: + message.legacy_code = 7; + break; + case "QUERY_NOT_SERVED_LEGACY": + case 8: + message.legacy_code = 8; + break; + case "NOT_IN_TX_LEGACY": + case 9: + message.legacy_code = 9; + break; + case "INTERNAL_ERROR_LEGACY": + case 10: + message.legacy_code = 10; + break; + case "TRANSIENT_ERROR_LEGACY": + case 11: + message.legacy_code = 11; + break; + case "UNAUTHENTICATED_LEGACY": + case 12: + message.legacy_code = 12; + break; + } + if (object.message != null) + message.message = String(object.message); + switch (object.code) { + case "OK": + case 0: + message.code = 0; + break; + case "CANCELED": + case 1: + message.code = 1; + break; + case "UNKNOWN": + case 2: + message.code = 2; + break; + case "INVALID_ARGUMENT": + case 3: + message.code = 3; + break; + case "DEADLINE_EXCEEDED": + case 4: + message.code = 4; + break; + case "NOT_FOUND": + case 5: + message.code = 5; + break; + case "ALREADY_EXISTS": + case 6: + message.code = 6; + break; + case "PERMISSION_DENIED": + case 7: + message.code = 7; + break; + case "UNAUTHENTICATED": + case 16: + message.code = 16; + break; + case "RESOURCE_EXHAUSTED": + case 8: + message.code = 8; + break; + case "FAILED_PRECONDITION": + case 9: + message.code = 9; + break; + case "ABORTED": + case 10: + message.code = 10; + break; + case "OUT_OF_RANGE": + case 11: + message.code = 11; + break; + case "UNIMPLEMENTED": + case 12: + message.code = 12; + break; + case "INTERNAL": + case 13: + message.code = 13; + break; + case "UNAVAILABLE": + case 14: + message.code = 14; + break; + case "DATA_LOSS": + case 15: + message.code = 15; + break; + } + return message; + }; + + /** + * Creates a plain object from a RPCError message. Also converts values to other types if specified. + * @function toObject + * @memberof vtrpc.RPCError + * @static + * @param {vtrpc.RPCError} message RPCError + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RPCError.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.legacy_code = options.enums === String ? "SUCCESS_LEGACY" : 0; + object.message = ""; + object.code = options.enums === String ? "OK" : 0; + } + if (message.legacy_code != null && message.hasOwnProperty("legacy_code")) + object.legacy_code = options.enums === String ? $root.vtrpc.LegacyErrorCode[message.legacy_code] : message.legacy_code; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; + if (message.code != null && message.hasOwnProperty("code")) + object.code = options.enums === String ? $root.vtrpc.Code[message.code] : message.code; + return object; + }; + + /** + * Converts this RPCError to JSON. + * @function toJSON + * @memberof vtrpc.RPCError + * @instance + * @returns {Object.} JSON object + */ + RPCError.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return RPCError; + })(); + + return vtrpc; +})(); + +$root.replicationdata = (function() { + + /** + * Namespace replicationdata. + * @exports replicationdata + * @namespace + */ + var replicationdata = {}; + + replicationdata.Status = (function() { + + /** + * Properties of a Status. + * @memberof replicationdata + * @interface IStatus + * @property {string|null} [position] Status position + * @property {boolean|null} [io_thread_running] Status io_thread_running + * @property {boolean|null} [sql_thread_running] Status sql_thread_running + * @property {number|null} [seconds_behind_master] Status seconds_behind_master + * @property {string|null} [master_host] Status master_host + * @property {number|null} [master_port] Status master_port + * @property {number|null} [master_connect_retry] Status master_connect_retry + * @property {string|null} [relay_log_position] Status relay_log_position + * @property {string|null} [file_position] Status file_position + * @property {string|null} [file_relay_log_position] Status file_relay_log_position + * @property {number|null} [master_server_id] Status master_server_id + * @property {string|null} [master_uuid] Status master_uuid + */ + + /** + * Constructs a new Status. + * @memberof replicationdata + * @classdesc Represents a Status. + * @implements IStatus + * @constructor + * @param {replicationdata.IStatus=} [properties] Properties to set + */ + function Status(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]]; + } + + /** + * Status position. + * @member {string} position + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.position = ""; + + /** + * Status io_thread_running. + * @member {boolean} io_thread_running + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.io_thread_running = false; + + /** + * Status sql_thread_running. + * @member {boolean} sql_thread_running + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.sql_thread_running = false; + + /** + * Status seconds_behind_master. + * @member {number} seconds_behind_master + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.seconds_behind_master = 0; + + /** + * Status master_host. + * @member {string} master_host + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.master_host = ""; + + /** + * Status master_port. + * @member {number} master_port + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.master_port = 0; + + /** + * Status master_connect_retry. + * @member {number} master_connect_retry + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.master_connect_retry = 0; + + /** + * Status relay_log_position. + * @member {string} relay_log_position + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.relay_log_position = ""; + + /** + * Status file_position. + * @member {string} file_position + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.file_position = ""; + + /** + * Status file_relay_log_position. + * @member {string} file_relay_log_position + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.file_relay_log_position = ""; + + /** + * Status master_server_id. + * @member {number} master_server_id + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.master_server_id = 0; + + /** + * Status master_uuid. + * @member {string} master_uuid + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.master_uuid = ""; + + /** + * Creates a new Status instance using the specified properties. + * @function create + * @memberof replicationdata.Status + * @static + * @param {replicationdata.IStatus=} [properties] Properties to set + * @returns {replicationdata.Status} Status instance + */ + Status.create = function create(properties) { + return new Status(properties); + }; + + /** + * Encodes the specified Status message. Does not implicitly {@link replicationdata.Status.verify|verify} messages. + * @function encode + * @memberof replicationdata.Status + * @static + * @param {replicationdata.IStatus} message Status message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Status.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.position != null && Object.hasOwnProperty.call(message, "position")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.position); + if (message.io_thread_running != null && Object.hasOwnProperty.call(message, "io_thread_running")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.io_thread_running); + if (message.sql_thread_running != null && Object.hasOwnProperty.call(message, "sql_thread_running")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.sql_thread_running); + if (message.seconds_behind_master != null && Object.hasOwnProperty.call(message, "seconds_behind_master")) + writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.seconds_behind_master); + if (message.master_host != null && Object.hasOwnProperty.call(message, "master_host")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.master_host); + if (message.master_port != null && Object.hasOwnProperty.call(message, "master_port")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.master_port); + if (message.master_connect_retry != null && Object.hasOwnProperty.call(message, "master_connect_retry")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.master_connect_retry); + if (message.relay_log_position != null && Object.hasOwnProperty.call(message, "relay_log_position")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.relay_log_position); + if (message.file_position != null && Object.hasOwnProperty.call(message, "file_position")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.file_position); + if (message.file_relay_log_position != null && Object.hasOwnProperty.call(message, "file_relay_log_position")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.file_relay_log_position); + if (message.master_server_id != null && Object.hasOwnProperty.call(message, "master_server_id")) + writer.uint32(/* id 11, wireType 0 =*/88).uint32(message.master_server_id); + if (message.master_uuid != null && Object.hasOwnProperty.call(message, "master_uuid")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.master_uuid); + return writer; + }; + + /** + * Encodes the specified Status message, length delimited. Does not implicitly {@link replicationdata.Status.verify|verify} messages. + * @function encodeDelimited + * @memberof replicationdata.Status + * @static + * @param {replicationdata.IStatus} message Status message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Status.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Status message from the specified reader or buffer. + * @function decode + * @memberof replicationdata.Status + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {replicationdata.Status} Status + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Status.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.replicationdata.Status(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.position = reader.string(); + break; + case 2: + message.io_thread_running = reader.bool(); + break; + case 3: + message.sql_thread_running = reader.bool(); + break; + case 4: + message.seconds_behind_master = reader.uint32(); + break; + case 5: + message.master_host = reader.string(); + break; + case 6: + message.master_port = reader.int32(); + break; + case 7: + message.master_connect_retry = reader.int32(); + break; + case 8: + message.relay_log_position = reader.string(); + break; + case 9: + message.file_position = reader.string(); + break; + case 10: + message.file_relay_log_position = reader.string(); + break; + case 11: + message.master_server_id = reader.uint32(); + break; + case 12: + message.master_uuid = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Status message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof replicationdata.Status + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {replicationdata.Status} Status + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Status.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Status message. + * @function verify + * @memberof replicationdata.Status + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Status.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.position != null && message.hasOwnProperty("position")) + if (!$util.isString(message.position)) + return "position: string expected"; + if (message.io_thread_running != null && message.hasOwnProperty("io_thread_running")) + if (typeof message.io_thread_running !== "boolean") + return "io_thread_running: boolean expected"; + if (message.sql_thread_running != null && message.hasOwnProperty("sql_thread_running")) + if (typeof message.sql_thread_running !== "boolean") + return "sql_thread_running: boolean expected"; + if (message.seconds_behind_master != null && message.hasOwnProperty("seconds_behind_master")) + if (!$util.isInteger(message.seconds_behind_master)) + return "seconds_behind_master: integer expected"; + if (message.master_host != null && message.hasOwnProperty("master_host")) + if (!$util.isString(message.master_host)) + return "master_host: string expected"; + if (message.master_port != null && message.hasOwnProperty("master_port")) + if (!$util.isInteger(message.master_port)) + return "master_port: integer expected"; + if (message.master_connect_retry != null && message.hasOwnProperty("master_connect_retry")) + if (!$util.isInteger(message.master_connect_retry)) + return "master_connect_retry: integer expected"; + if (message.relay_log_position != null && message.hasOwnProperty("relay_log_position")) + if (!$util.isString(message.relay_log_position)) + return "relay_log_position: string expected"; + if (message.file_position != null && message.hasOwnProperty("file_position")) + if (!$util.isString(message.file_position)) + return "file_position: string expected"; + if (message.file_relay_log_position != null && message.hasOwnProperty("file_relay_log_position")) + if (!$util.isString(message.file_relay_log_position)) + return "file_relay_log_position: string expected"; + if (message.master_server_id != null && message.hasOwnProperty("master_server_id")) + if (!$util.isInteger(message.master_server_id)) + return "master_server_id: integer expected"; + if (message.master_uuid != null && message.hasOwnProperty("master_uuid")) + if (!$util.isString(message.master_uuid)) + return "master_uuid: string expected"; + return null; + }; + + /** + * Creates a Status message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof replicationdata.Status + * @static + * @param {Object.} object Plain object + * @returns {replicationdata.Status} Status + */ + Status.fromObject = function fromObject(object) { + if (object instanceof $root.replicationdata.Status) + return object; + var message = new $root.replicationdata.Status(); + if (object.position != null) + message.position = String(object.position); + if (object.io_thread_running != null) + message.io_thread_running = Boolean(object.io_thread_running); + if (object.sql_thread_running != null) + message.sql_thread_running = Boolean(object.sql_thread_running); + if (object.seconds_behind_master != null) + message.seconds_behind_master = object.seconds_behind_master >>> 0; + if (object.master_host != null) + message.master_host = String(object.master_host); + if (object.master_port != null) + message.master_port = object.master_port | 0; + if (object.master_connect_retry != null) + message.master_connect_retry = object.master_connect_retry | 0; + if (object.relay_log_position != null) + message.relay_log_position = String(object.relay_log_position); + if (object.file_position != null) + message.file_position = String(object.file_position); + if (object.file_relay_log_position != null) + message.file_relay_log_position = String(object.file_relay_log_position); + if (object.master_server_id != null) + message.master_server_id = object.master_server_id >>> 0; + if (object.master_uuid != null) + message.master_uuid = String(object.master_uuid); + return message; + }; + + /** + * Creates a plain object from a Status message. Also converts values to other types if specified. + * @function toObject + * @memberof replicationdata.Status + * @static + * @param {replicationdata.Status} message Status + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Status.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.position = ""; + object.io_thread_running = false; + object.sql_thread_running = false; + object.seconds_behind_master = 0; + object.master_host = ""; + object.master_port = 0; + object.master_connect_retry = 0; + object.relay_log_position = ""; + object.file_position = ""; + object.file_relay_log_position = ""; + object.master_server_id = 0; + object.master_uuid = ""; + } + if (message.position != null && message.hasOwnProperty("position")) + object.position = message.position; + if (message.io_thread_running != null && message.hasOwnProperty("io_thread_running")) + object.io_thread_running = message.io_thread_running; + if (message.sql_thread_running != null && message.hasOwnProperty("sql_thread_running")) + object.sql_thread_running = message.sql_thread_running; + if (message.seconds_behind_master != null && message.hasOwnProperty("seconds_behind_master")) + object.seconds_behind_master = message.seconds_behind_master; + if (message.master_host != null && message.hasOwnProperty("master_host")) + object.master_host = message.master_host; + if (message.master_port != null && message.hasOwnProperty("master_port")) + object.master_port = message.master_port; + if (message.master_connect_retry != null && message.hasOwnProperty("master_connect_retry")) + object.master_connect_retry = message.master_connect_retry; + if (message.relay_log_position != null && message.hasOwnProperty("relay_log_position")) + object.relay_log_position = message.relay_log_position; + if (message.file_position != null && message.hasOwnProperty("file_position")) + object.file_position = message.file_position; + if (message.file_relay_log_position != null && message.hasOwnProperty("file_relay_log_position")) + object.file_relay_log_position = message.file_relay_log_position; + if (message.master_server_id != null && message.hasOwnProperty("master_server_id")) + object.master_server_id = message.master_server_id; + if (message.master_uuid != null && message.hasOwnProperty("master_uuid")) + object.master_uuid = message.master_uuid; + return object; + }; + + /** + * Converts this Status to JSON. + * @function toJSON + * @memberof replicationdata.Status + * @instance + * @returns {Object.} JSON object + */ + Status.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Status; + })(); + + replicationdata.StopReplicationStatus = (function() { + + /** + * Properties of a StopReplicationStatus. + * @memberof replicationdata + * @interface IStopReplicationStatus + * @property {replicationdata.IStatus|null} [before] StopReplicationStatus before + * @property {replicationdata.IStatus|null} [after] StopReplicationStatus after + */ + + /** + * Constructs a new StopReplicationStatus. + * @memberof replicationdata + * @classdesc Represents a StopReplicationStatus. + * @implements IStopReplicationStatus + * @constructor + * @param {replicationdata.IStopReplicationStatus=} [properties] Properties to set + */ + function StopReplicationStatus(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]]; + } + + /** + * StopReplicationStatus before. + * @member {replicationdata.IStatus|null|undefined} before + * @memberof replicationdata.StopReplicationStatus + * @instance + */ + StopReplicationStatus.prototype.before = null; + + /** + * StopReplicationStatus after. + * @member {replicationdata.IStatus|null|undefined} after + * @memberof replicationdata.StopReplicationStatus + * @instance + */ + StopReplicationStatus.prototype.after = null; + + /** + * Creates a new StopReplicationStatus instance using the specified properties. + * @function create + * @memberof replicationdata.StopReplicationStatus + * @static + * @param {replicationdata.IStopReplicationStatus=} [properties] Properties to set + * @returns {replicationdata.StopReplicationStatus} StopReplicationStatus instance + */ + StopReplicationStatus.create = function create(properties) { + return new StopReplicationStatus(properties); + }; + + /** + * Encodes the specified StopReplicationStatus message. Does not implicitly {@link replicationdata.StopReplicationStatus.verify|verify} messages. + * @function encode + * @memberof replicationdata.StopReplicationStatus + * @static + * @param {replicationdata.IStopReplicationStatus} message StopReplicationStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StopReplicationStatus.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.before != null && Object.hasOwnProperty.call(message, "before")) + $root.replicationdata.Status.encode(message.before, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.after != null && Object.hasOwnProperty.call(message, "after")) + $root.replicationdata.Status.encode(message.after, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified StopReplicationStatus message, length delimited. Does not implicitly {@link replicationdata.StopReplicationStatus.verify|verify} messages. + * @function encodeDelimited + * @memberof replicationdata.StopReplicationStatus + * @static + * @param {replicationdata.IStopReplicationStatus} message StopReplicationStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StopReplicationStatus.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StopReplicationStatus message from the specified reader or buffer. + * @function decode + * @memberof replicationdata.StopReplicationStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {replicationdata.StopReplicationStatus} StopReplicationStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StopReplicationStatus.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.replicationdata.StopReplicationStatus(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.before = $root.replicationdata.Status.decode(reader, reader.uint32()); + break; + case 2: + message.after = $root.replicationdata.Status.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StopReplicationStatus message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof replicationdata.StopReplicationStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {replicationdata.StopReplicationStatus} StopReplicationStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StopReplicationStatus.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StopReplicationStatus message. + * @function verify + * @memberof replicationdata.StopReplicationStatus + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StopReplicationStatus.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.before != null && message.hasOwnProperty("before")) { + var error = $root.replicationdata.Status.verify(message.before); + if (error) + return "before." + error; + } + if (message.after != null && message.hasOwnProperty("after")) { + var error = $root.replicationdata.Status.verify(message.after); + if (error) + return "after." + error; + } + return null; + }; + + /** + * Creates a StopReplicationStatus message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof replicationdata.StopReplicationStatus + * @static + * @param {Object.} object Plain object + * @returns {replicationdata.StopReplicationStatus} StopReplicationStatus + */ + StopReplicationStatus.fromObject = function fromObject(object) { + if (object instanceof $root.replicationdata.StopReplicationStatus) + return object; + var message = new $root.replicationdata.StopReplicationStatus(); + if (object.before != null) { + if (typeof object.before !== "object") + throw TypeError(".replicationdata.StopReplicationStatus.before: object expected"); + message.before = $root.replicationdata.Status.fromObject(object.before); + } + if (object.after != null) { + if (typeof object.after !== "object") + throw TypeError(".replicationdata.StopReplicationStatus.after: object expected"); + message.after = $root.replicationdata.Status.fromObject(object.after); + } + return message; + }; + + /** + * Creates a plain object from a StopReplicationStatus message. Also converts values to other types if specified. + * @function toObject + * @memberof replicationdata.StopReplicationStatus + * @static + * @param {replicationdata.StopReplicationStatus} message StopReplicationStatus + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StopReplicationStatus.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.before = null; + object.after = null; + } + if (message.before != null && message.hasOwnProperty("before")) + object.before = $root.replicationdata.Status.toObject(message.before, options); + if (message.after != null && message.hasOwnProperty("after")) + object.after = $root.replicationdata.Status.toObject(message.after, options); + return object; + }; + + /** + * Converts this StopReplicationStatus to JSON. + * @function toJSON + * @memberof replicationdata.StopReplicationStatus + * @instance + * @returns {Object.} JSON object + */ + StopReplicationStatus.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return StopReplicationStatus; + })(); + + /** + * StopReplicationMode enum. + * @name replicationdata.StopReplicationMode + * @enum {number} + * @property {number} IOANDSQLTHREAD=0 IOANDSQLTHREAD value + * @property {number} IOTHREADONLY=1 IOTHREADONLY value + */ + replicationdata.StopReplicationMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "IOANDSQLTHREAD"] = 0; + values[valuesById[1] = "IOTHREADONLY"] = 1; + return values; + })(); + + replicationdata.MasterStatus = (function() { + + /** + * Properties of a MasterStatus. + * @memberof replicationdata + * @interface IMasterStatus + * @property {string|null} [position] MasterStatus position + * @property {string|null} [file_position] MasterStatus file_position + */ + + /** + * Constructs a new MasterStatus. + * @memberof replicationdata + * @classdesc Represents a MasterStatus. + * @implements IMasterStatus + * @constructor + * @param {replicationdata.IMasterStatus=} [properties] Properties to set + */ + function MasterStatus(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]]; + } + + /** + * MasterStatus position. + * @member {string} position + * @memberof replicationdata.MasterStatus + * @instance + */ + MasterStatus.prototype.position = ""; + + /** + * MasterStatus file_position. + * @member {string} file_position + * @memberof replicationdata.MasterStatus + * @instance + */ + MasterStatus.prototype.file_position = ""; + + /** + * Creates a new MasterStatus instance using the specified properties. + * @function create + * @memberof replicationdata.MasterStatus + * @static + * @param {replicationdata.IMasterStatus=} [properties] Properties to set + * @returns {replicationdata.MasterStatus} MasterStatus instance + */ + MasterStatus.create = function create(properties) { + return new MasterStatus(properties); + }; + + /** + * Encodes the specified MasterStatus message. Does not implicitly {@link replicationdata.MasterStatus.verify|verify} messages. + * @function encode + * @memberof replicationdata.MasterStatus + * @static + * @param {replicationdata.IMasterStatus} message MasterStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MasterStatus.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.position != null && Object.hasOwnProperty.call(message, "position")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.position); + if (message.file_position != null && Object.hasOwnProperty.call(message, "file_position")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.file_position); + return writer; + }; + + /** + * Encodes the specified MasterStatus message, length delimited. Does not implicitly {@link replicationdata.MasterStatus.verify|verify} messages. + * @function encodeDelimited + * @memberof replicationdata.MasterStatus + * @static + * @param {replicationdata.IMasterStatus} message MasterStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MasterStatus.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MasterStatus message from the specified reader or buffer. + * @function decode + * @memberof replicationdata.MasterStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {replicationdata.MasterStatus} MasterStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MasterStatus.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.replicationdata.MasterStatus(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.position = reader.string(); + break; + case 2: + message.file_position = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MasterStatus message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof replicationdata.MasterStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {replicationdata.MasterStatus} MasterStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MasterStatus.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MasterStatus message. + * @function verify + * @memberof replicationdata.MasterStatus + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MasterStatus.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.position != null && message.hasOwnProperty("position")) + if (!$util.isString(message.position)) + return "position: string expected"; + if (message.file_position != null && message.hasOwnProperty("file_position")) + if (!$util.isString(message.file_position)) + return "file_position: string expected"; + return null; + }; + + /** + * Creates a MasterStatus message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof replicationdata.MasterStatus + * @static + * @param {Object.} object Plain object + * @returns {replicationdata.MasterStatus} MasterStatus + */ + MasterStatus.fromObject = function fromObject(object) { + if (object instanceof $root.replicationdata.MasterStatus) + return object; + var message = new $root.replicationdata.MasterStatus(); + if (object.position != null) + message.position = String(object.position); + if (object.file_position != null) + message.file_position = String(object.file_position); + return message; + }; + + /** + * Creates a plain object from a MasterStatus message. Also converts values to other types if specified. + * @function toObject + * @memberof replicationdata.MasterStatus + * @static + * @param {replicationdata.MasterStatus} message MasterStatus + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MasterStatus.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.position = ""; + object.file_position = ""; + } + if (message.position != null && message.hasOwnProperty("position")) + object.position = message.position; + if (message.file_position != null && message.hasOwnProperty("file_position")) + object.file_position = message.file_position; + return object; + }; + + /** + * Converts this MasterStatus to JSON. + * @function toJSON + * @memberof replicationdata.MasterStatus + * @instance + * @returns {Object.} JSON object + */ + MasterStatus.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MasterStatus; + })(); + + return replicationdata; +})(); + +$root.logutil = (function() { + + /** + * Namespace logutil. + * @exports logutil + * @namespace + */ + var logutil = {}; + + /** + * Level enum. + * @name logutil.Level + * @enum {number} + * @property {number} INFO=0 INFO value + * @property {number} WARNING=1 WARNING value + * @property {number} ERROR=2 ERROR value + * @property {number} CONSOLE=3 CONSOLE value + */ + logutil.Level = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INFO"] = 0; + values[valuesById[1] = "WARNING"] = 1; + values[valuesById[2] = "ERROR"] = 2; + values[valuesById[3] = "CONSOLE"] = 3; + return values; + })(); + + logutil.Event = (function() { + + /** + * Properties of an Event. + * @memberof logutil + * @interface IEvent + * @property {vttime.ITime|null} [time] Event time + * @property {logutil.Level|null} [level] Event level + * @property {string|null} [file] Event file + * @property {number|Long|null} [line] Event line + * @property {string|null} [value] Event value + */ + + /** + * Constructs a new Event. + * @memberof logutil + * @classdesc Represents an Event. + * @implements IEvent + * @constructor + * @param {logutil.IEvent=} [properties] Properties to set + */ + function Event(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]]; + } + + /** + * Event time. + * @member {vttime.ITime|null|undefined} time + * @memberof logutil.Event + * @instance + */ + Event.prototype.time = null; + + /** + * Event level. + * @member {logutil.Level} level + * @memberof logutil.Event + * @instance + */ + Event.prototype.level = 0; + + /** + * Event file. + * @member {string} file + * @memberof logutil.Event + * @instance + */ + Event.prototype.file = ""; + + /** + * Event line. + * @member {number|Long} line + * @memberof logutil.Event + * @instance + */ + Event.prototype.line = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Event value. + * @member {string} value + * @memberof logutil.Event + * @instance + */ + Event.prototype.value = ""; + + /** + * Creates a new Event instance using the specified properties. + * @function create + * @memberof logutil.Event + * @static + * @param {logutil.IEvent=} [properties] Properties to set + * @returns {logutil.Event} Event instance + */ + Event.create = function create(properties) { + return new Event(properties); + }; + + /** + * Encodes the specified Event message. Does not implicitly {@link logutil.Event.verify|verify} messages. + * @function encode + * @memberof logutil.Event + * @static + * @param {logutil.IEvent} message Event message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Event.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.time != null && Object.hasOwnProperty.call(message, "time")) + $root.vttime.Time.encode(message.time, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.level != null && Object.hasOwnProperty.call(message, "level")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.level); + if (message.file != null && Object.hasOwnProperty.call(message, "file")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.file); + if (message.line != null && Object.hasOwnProperty.call(message, "line")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.line); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.value); + return writer; + }; + + /** + * Encodes the specified Event message, length delimited. Does not implicitly {@link logutil.Event.verify|verify} messages. + * @function encodeDelimited + * @memberof logutil.Event + * @static + * @param {logutil.IEvent} message Event message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Event.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Event message from the specified reader or buffer. + * @function decode + * @memberof logutil.Event + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {logutil.Event} Event + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Event.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.logutil.Event(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.time = $root.vttime.Time.decode(reader, reader.uint32()); + break; + case 2: + message.level = reader.int32(); + break; + case 3: + message.file = reader.string(); + break; + case 4: + message.line = reader.int64(); + break; + case 5: + message.value = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Event message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof logutil.Event + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {logutil.Event} Event + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Event.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Event message. + * @function verify + * @memberof logutil.Event + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Event.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.time != null && message.hasOwnProperty("time")) { + var error = $root.vttime.Time.verify(message.time); + if (error) + return "time." + error; + } + if (message.level != null && message.hasOwnProperty("level")) + switch (message.level) { + default: + return "level: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.file != null && message.hasOwnProperty("file")) + if (!$util.isString(message.file)) + return "file: string expected"; + if (message.line != null && message.hasOwnProperty("line")) + if (!$util.isInteger(message.line) && !(message.line && $util.isInteger(message.line.low) && $util.isInteger(message.line.high))) + return "line: integer|Long expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + return null; + }; + + /** + * Creates an Event message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof logutil.Event + * @static + * @param {Object.} object Plain object + * @returns {logutil.Event} Event + */ + Event.fromObject = function fromObject(object) { + if (object instanceof $root.logutil.Event) + return object; + var message = new $root.logutil.Event(); + if (object.time != null) { + if (typeof object.time !== "object") + throw TypeError(".logutil.Event.time: object expected"); + message.time = $root.vttime.Time.fromObject(object.time); + } + switch (object.level) { + case "INFO": + case 0: + message.level = 0; + break; + case "WARNING": + case 1: + message.level = 1; + break; + case "ERROR": + case 2: + message.level = 2; + break; + case "CONSOLE": + case 3: + message.level = 3; + break; + } + if (object.file != null) + message.file = String(object.file); + if (object.line != null) + if ($util.Long) + (message.line = $util.Long.fromValue(object.line)).unsigned = false; + else if (typeof object.line === "string") + message.line = parseInt(object.line, 10); + else if (typeof object.line === "number") + message.line = object.line; + else if (typeof object.line === "object") + message.line = new $util.LongBits(object.line.low >>> 0, object.line.high >>> 0).toNumber(); + if (object.value != null) + message.value = String(object.value); + return message; + }; + + /** + * Creates a plain object from an Event message. Also converts values to other types if specified. + * @function toObject + * @memberof logutil.Event + * @static + * @param {logutil.Event} message Event + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Event.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.time = null; + object.level = options.enums === String ? "INFO" : 0; + object.file = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.line = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.line = options.longs === String ? "0" : 0; + object.value = ""; + } + if (message.time != null && message.hasOwnProperty("time")) + object.time = $root.vttime.Time.toObject(message.time, options); + if (message.level != null && message.hasOwnProperty("level")) + object.level = options.enums === String ? $root.logutil.Level[message.level] : message.level; + if (message.file != null && message.hasOwnProperty("file")) + object.file = message.file; + if (message.line != null && message.hasOwnProperty("line")) + if (typeof message.line === "number") + object.line = options.longs === String ? String(message.line) : message.line; + else + object.line = options.longs === String ? $util.Long.prototype.toString.call(message.line) : options.longs === Number ? new $util.LongBits(message.line.low >>> 0, message.line.high >>> 0).toNumber() : message.line; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + return object; + }; + + /** + * Converts this Event to JSON. + * @function toJSON + * @memberof logutil.Event + * @instance + * @returns {Object.} JSON object + */ + Event.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Event; + })(); + + return logutil; +})(); + +$root.vtctldata = (function() { + + /** + * Namespace vtctldata. + * @exports vtctldata + * @namespace + */ + var vtctldata = {}; + + vtctldata.ExecuteVtctlCommandRequest = (function() { + + /** + * Properties of an ExecuteVtctlCommandRequest. + * @memberof vtctldata + * @interface IExecuteVtctlCommandRequest + * @property {Array.|null} [args] ExecuteVtctlCommandRequest args + * @property {number|Long|null} [action_timeout] ExecuteVtctlCommandRequest action_timeout + */ + + /** + * Constructs a new ExecuteVtctlCommandRequest. + * @memberof vtctldata + * @classdesc Represents an ExecuteVtctlCommandRequest. + * @implements IExecuteVtctlCommandRequest + * @constructor + * @param {vtctldata.IExecuteVtctlCommandRequest=} [properties] Properties to set + */ + function ExecuteVtctlCommandRequest(properties) { + this.args = []; + 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]]; + } + + /** + * ExecuteVtctlCommandRequest args. + * @member {Array.} args + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @instance + */ + ExecuteVtctlCommandRequest.prototype.args = $util.emptyArray; + + /** + * ExecuteVtctlCommandRequest action_timeout. + * @member {number|Long} action_timeout + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @instance + */ + ExecuteVtctlCommandRequest.prototype.action_timeout = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new ExecuteVtctlCommandRequest instance using the specified properties. + * @function create + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @static + * @param {vtctldata.IExecuteVtctlCommandRequest=} [properties] Properties to set + * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest instance + */ + ExecuteVtctlCommandRequest.create = function create(properties) { + return new ExecuteVtctlCommandRequest(properties); + }; + + /** + * Encodes the specified ExecuteVtctlCommandRequest message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @static + * @param {vtctldata.IExecuteVtctlCommandRequest} message ExecuteVtctlCommandRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecuteVtctlCommandRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.args != null && message.args.length) + for (var i = 0; i < message.args.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.args[i]); + if (message.action_timeout != null && Object.hasOwnProperty.call(message, "action_timeout")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.action_timeout); + return writer; + }; + + /** + * Encodes the specified ExecuteVtctlCommandRequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @static + * @param {vtctldata.IExecuteVtctlCommandRequest} message ExecuteVtctlCommandRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecuteVtctlCommandRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecuteVtctlCommandRequest.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.vtctldata.ExecuteVtctlCommandRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.args && message.args.length)) + message.args = []; + message.args.push(reader.string()); + break; + case 2: + message.action_timeout = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecuteVtctlCommandRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExecuteVtctlCommandRequest message. + * @function verify + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecuteVtctlCommandRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.args != null && message.hasOwnProperty("args")) { + if (!Array.isArray(message.args)) + return "args: array expected"; + for (var i = 0; i < message.args.length; ++i) + if (!$util.isString(message.args[i])) + return "args: string[] expected"; + } + if (message.action_timeout != null && message.hasOwnProperty("action_timeout")) + if (!$util.isInteger(message.action_timeout) && !(message.action_timeout && $util.isInteger(message.action_timeout.low) && $util.isInteger(message.action_timeout.high))) + return "action_timeout: integer|Long expected"; + return null; + }; + + /** + * Creates an ExecuteVtctlCommandRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest + */ + ExecuteVtctlCommandRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ExecuteVtctlCommandRequest) + return object; + var message = new $root.vtctldata.ExecuteVtctlCommandRequest(); + if (object.args) { + if (!Array.isArray(object.args)) + throw TypeError(".vtctldata.ExecuteVtctlCommandRequest.args: array expected"); + message.args = []; + for (var i = 0; i < object.args.length; ++i) + message.args[i] = String(object.args[i]); + } + if (object.action_timeout != null) + if ($util.Long) + (message.action_timeout = $util.Long.fromValue(object.action_timeout)).unsigned = false; + else if (typeof object.action_timeout === "string") + message.action_timeout = parseInt(object.action_timeout, 10); + else if (typeof object.action_timeout === "number") + message.action_timeout = object.action_timeout; + else if (typeof object.action_timeout === "object") + message.action_timeout = new $util.LongBits(object.action_timeout.low >>> 0, object.action_timeout.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from an ExecuteVtctlCommandRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @static + * @param {vtctldata.ExecuteVtctlCommandRequest} message ExecuteVtctlCommandRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExecuteVtctlCommandRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.args = []; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.action_timeout = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.action_timeout = options.longs === String ? "0" : 0; + if (message.args && message.args.length) { + object.args = []; + for (var j = 0; j < message.args.length; ++j) + object.args[j] = message.args[j]; + } + if (message.action_timeout != null && message.hasOwnProperty("action_timeout")) + if (typeof message.action_timeout === "number") + object.action_timeout = options.longs === String ? String(message.action_timeout) : message.action_timeout; + else + object.action_timeout = options.longs === String ? $util.Long.prototype.toString.call(message.action_timeout) : options.longs === Number ? new $util.LongBits(message.action_timeout.low >>> 0, message.action_timeout.high >>> 0).toNumber() : message.action_timeout; + return object; + }; + + /** + * Converts this ExecuteVtctlCommandRequest to JSON. + * @function toJSON + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @instance + * @returns {Object.} JSON object + */ + ExecuteVtctlCommandRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ExecuteVtctlCommandRequest; + })(); + + vtctldata.ExecuteVtctlCommandResponse = (function() { + + /** + * Properties of an ExecuteVtctlCommandResponse. + * @memberof vtctldata + * @interface IExecuteVtctlCommandResponse + * @property {logutil.IEvent|null} [event] ExecuteVtctlCommandResponse event + */ + + /** + * Constructs a new ExecuteVtctlCommandResponse. + * @memberof vtctldata + * @classdesc Represents an ExecuteVtctlCommandResponse. + * @implements IExecuteVtctlCommandResponse + * @constructor + * @param {vtctldata.IExecuteVtctlCommandResponse=} [properties] Properties to set + */ + function ExecuteVtctlCommandResponse(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]]; + } + + /** + * ExecuteVtctlCommandResponse event. + * @member {logutil.IEvent|null|undefined} event + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @instance + */ + ExecuteVtctlCommandResponse.prototype.event = null; + + /** + * Creates a new ExecuteVtctlCommandResponse instance using the specified properties. + * @function create + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @static + * @param {vtctldata.IExecuteVtctlCommandResponse=} [properties] Properties to set + * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse instance + */ + ExecuteVtctlCommandResponse.create = function create(properties) { + return new ExecuteVtctlCommandResponse(properties); + }; + + /** + * Encodes the specified ExecuteVtctlCommandResponse message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @static + * @param {vtctldata.IExecuteVtctlCommandResponse} message ExecuteVtctlCommandResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecuteVtctlCommandResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.event != null && Object.hasOwnProperty.call(message, "event")) + $root.logutil.Event.encode(message.event, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExecuteVtctlCommandResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @static + * @param {vtctldata.IExecuteVtctlCommandResponse} message ExecuteVtctlCommandResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecuteVtctlCommandResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecuteVtctlCommandResponse.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.vtctldata.ExecuteVtctlCommandResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.event = $root.logutil.Event.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecuteVtctlCommandResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExecuteVtctlCommandResponse message. + * @function verify + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecuteVtctlCommandResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.event != null && message.hasOwnProperty("event")) { + var error = $root.logutil.Event.verify(message.event); + if (error) + return "event." + error; + } + return null; + }; + + /** + * Creates an ExecuteVtctlCommandResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse + */ + ExecuteVtctlCommandResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ExecuteVtctlCommandResponse) + return object; + var message = new $root.vtctldata.ExecuteVtctlCommandResponse(); + if (object.event != null) { + if (typeof object.event !== "object") + throw TypeError(".vtctldata.ExecuteVtctlCommandResponse.event: object expected"); + message.event = $root.logutil.Event.fromObject(object.event); + } + return message; + }; + + /** + * Creates a plain object from an ExecuteVtctlCommandResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @static + * @param {vtctldata.ExecuteVtctlCommandResponse} message ExecuteVtctlCommandResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExecuteVtctlCommandResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.event = null; + if (message.event != null && message.hasOwnProperty("event")) + object.event = $root.logutil.Event.toObject(message.event, options); + return object; + }; + + /** + * Converts this ExecuteVtctlCommandResponse to JSON. + * @function toJSON + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @instance + * @returns {Object.} JSON object + */ + ExecuteVtctlCommandResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ExecuteVtctlCommandResponse; + })(); + + vtctldata.ChangeTabletTypeRequest = (function() { + + /** + * Properties of a ChangeTabletTypeRequest. + * @memberof vtctldata + * @interface IChangeTabletTypeRequest + * @property {topodata.ITabletAlias|null} [tablet_alias] ChangeTabletTypeRequest tablet_alias + * @property {topodata.TabletType|null} [db_type] ChangeTabletTypeRequest db_type + * @property {boolean|null} [dry_run] ChangeTabletTypeRequest dry_run + */ + + /** + * Constructs a new ChangeTabletTypeRequest. + * @memberof vtctldata + * @classdesc Represents a ChangeTabletTypeRequest. + * @implements IChangeTabletTypeRequest + * @constructor + * @param {vtctldata.IChangeTabletTypeRequest=} [properties] Properties to set + */ + function ChangeTabletTypeRequest(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]]; + } + + /** + * ChangeTabletTypeRequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.ChangeTabletTypeRequest + * @instance + */ + ChangeTabletTypeRequest.prototype.tablet_alias = null; + + /** + * ChangeTabletTypeRequest db_type. + * @member {topodata.TabletType} db_type + * @memberof vtctldata.ChangeTabletTypeRequest + * @instance + */ + ChangeTabletTypeRequest.prototype.db_type = 0; + + /** + * ChangeTabletTypeRequest dry_run. + * @member {boolean} dry_run + * @memberof vtctldata.ChangeTabletTypeRequest + * @instance + */ + ChangeTabletTypeRequest.prototype.dry_run = false; + + /** + * Creates a new ChangeTabletTypeRequest instance using the specified properties. + * @function create + * @memberof vtctldata.ChangeTabletTypeRequest + * @static + * @param {vtctldata.IChangeTabletTypeRequest=} [properties] Properties to set + * @returns {vtctldata.ChangeTabletTypeRequest} ChangeTabletTypeRequest instance + */ + ChangeTabletTypeRequest.create = function create(properties) { + return new ChangeTabletTypeRequest(properties); + }; + + /** + * Encodes the specified ChangeTabletTypeRequest message. Does not implicitly {@link vtctldata.ChangeTabletTypeRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.ChangeTabletTypeRequest + * @static + * @param {vtctldata.IChangeTabletTypeRequest} message ChangeTabletTypeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeTabletTypeRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) + $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.db_type != null && Object.hasOwnProperty.call(message, "db_type")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.db_type); + if (message.dry_run != null && Object.hasOwnProperty.call(message, "dry_run")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.dry_run); + return writer; + }; + + /** + * Encodes the specified ChangeTabletTypeRequest message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTypeRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.ChangeTabletTypeRequest + * @static + * @param {vtctldata.IChangeTabletTypeRequest} message ChangeTabletTypeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeTabletTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.ChangeTabletTypeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.ChangeTabletTypeRequest} ChangeTabletTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeTabletTypeRequest.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.vtctldata.ChangeTabletTypeRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + case 2: + message.db_type = reader.int32(); + break; + case 3: + message.dry_run = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.ChangeTabletTypeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.ChangeTabletTypeRequest} ChangeTabletTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeTabletTypeRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ChangeTabletTypeRequest message. + * @function verify + * @memberof vtctldata.ChangeTabletTypeRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ChangeTabletTypeRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + var error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; + } + if (message.db_type != null && message.hasOwnProperty("db_type")) + switch (message.db_type) { + default: + return "db_type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; + } + if (message.dry_run != null && message.hasOwnProperty("dry_run")) + if (typeof message.dry_run !== "boolean") + return "dry_run: boolean expected"; + return null; + }; + + /** + * Creates a ChangeTabletTypeRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.ChangeTabletTypeRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.ChangeTabletTypeRequest} ChangeTabletTypeRequest + */ + ChangeTabletTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ChangeTabletTypeRequest) + return object; + var message = new $root.vtctldata.ChangeTabletTypeRequest(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".vtctldata.ChangeTabletTypeRequest.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + } + switch (object.db_type) { + case "UNKNOWN": + case 0: + message.db_type = 0; + break; + case "MASTER": + case 1: + message.db_type = 1; + break; + case "REPLICA": + case 2: + message.db_type = 2; + break; + case "RDONLY": + case 3: + message.db_type = 3; + break; + case "BATCH": + case 3: + message.db_type = 3; + break; + case "SPARE": + case 4: + message.db_type = 4; + break; + case "EXPERIMENTAL": + case 5: + message.db_type = 5; + break; + case "BACKUP": + case 6: + message.db_type = 6; + break; + case "RESTORE": + case 7: + message.db_type = 7; + break; + case "DRAINED": + case 8: + message.db_type = 8; + break; + } + if (object.dry_run != null) + message.dry_run = Boolean(object.dry_run); + return message; + }; + + /** + * Creates a plain object from a ChangeTabletTypeRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.ChangeTabletTypeRequest + * @static + * @param {vtctldata.ChangeTabletTypeRequest} message ChangeTabletTypeRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ChangeTabletTypeRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.tablet_alias = null; + object.db_type = options.enums === String ? "UNKNOWN" : 0; + object.dry_run = false; + } + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (message.db_type != null && message.hasOwnProperty("db_type")) + object.db_type = options.enums === String ? $root.topodata.TabletType[message.db_type] : message.db_type; + if (message.dry_run != null && message.hasOwnProperty("dry_run")) + object.dry_run = message.dry_run; + return object; + }; + + /** + * Converts this ChangeTabletTypeRequest to JSON. + * @function toJSON + * @memberof vtctldata.ChangeTabletTypeRequest + * @instance + * @returns {Object.} JSON object + */ + ChangeTabletTypeRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ChangeTabletTypeRequest; + })(); + + vtctldata.ChangeTabletTypeResponse = (function() { + + /** + * Properties of a ChangeTabletTypeResponse. + * @memberof vtctldata + * @interface IChangeTabletTypeResponse + * @property {topodata.ITablet|null} [before_tablet] ChangeTabletTypeResponse before_tablet + * @property {topodata.ITablet|null} [after_tablet] ChangeTabletTypeResponse after_tablet + * @property {boolean|null} [was_dry_run] ChangeTabletTypeResponse was_dry_run + */ + + /** + * Constructs a new ChangeTabletTypeResponse. + * @memberof vtctldata + * @classdesc Represents a ChangeTabletTypeResponse. + * @implements IChangeTabletTypeResponse + * @constructor + * @param {vtctldata.IChangeTabletTypeResponse=} [properties] Properties to set + */ + function ChangeTabletTypeResponse(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]]; + } + + /** + * ChangeTabletTypeResponse before_tablet. + * @member {topodata.ITablet|null|undefined} before_tablet + * @memberof vtctldata.ChangeTabletTypeResponse + * @instance + */ + ChangeTabletTypeResponse.prototype.before_tablet = null; + + /** + * ChangeTabletTypeResponse after_tablet. + * @member {topodata.ITablet|null|undefined} after_tablet + * @memberof vtctldata.ChangeTabletTypeResponse + * @instance + */ + ChangeTabletTypeResponse.prototype.after_tablet = null; + + /** + * ChangeTabletTypeResponse was_dry_run. + * @member {boolean} was_dry_run + * @memberof vtctldata.ChangeTabletTypeResponse + * @instance + */ + ChangeTabletTypeResponse.prototype.was_dry_run = false; + + /** + * Creates a new ChangeTabletTypeResponse instance using the specified properties. + * @function create + * @memberof vtctldata.ChangeTabletTypeResponse + * @static + * @param {vtctldata.IChangeTabletTypeResponse=} [properties] Properties to set + * @returns {vtctldata.ChangeTabletTypeResponse} ChangeTabletTypeResponse instance + */ + ChangeTabletTypeResponse.create = function create(properties) { + return new ChangeTabletTypeResponse(properties); + }; + + /** + * Encodes the specified ChangeTabletTypeResponse message. Does not implicitly {@link vtctldata.ChangeTabletTypeResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.ChangeTabletTypeResponse + * @static + * @param {vtctldata.IChangeTabletTypeResponse} message ChangeTabletTypeResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeTabletTypeResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.before_tablet != null && Object.hasOwnProperty.call(message, "before_tablet")) + $root.topodata.Tablet.encode(message.before_tablet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.after_tablet != null && Object.hasOwnProperty.call(message, "after_tablet")) + $root.topodata.Tablet.encode(message.after_tablet, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.was_dry_run != null && Object.hasOwnProperty.call(message, "was_dry_run")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.was_dry_run); + return writer; + }; + + /** + * Encodes the specified ChangeTabletTypeResponse message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTypeResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.ChangeTabletTypeResponse + * @static + * @param {vtctldata.IChangeTabletTypeResponse} message ChangeTabletTypeResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChangeTabletTypeResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ChangeTabletTypeResponse message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.ChangeTabletTypeResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.ChangeTabletTypeResponse} ChangeTabletTypeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeTabletTypeResponse.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.vtctldata.ChangeTabletTypeResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.before_tablet = $root.topodata.Tablet.decode(reader, reader.uint32()); + break; + case 2: + message.after_tablet = $root.topodata.Tablet.decode(reader, reader.uint32()); + break; + case 3: + message.was_dry_run = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ChangeTabletTypeResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.ChangeTabletTypeResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.ChangeTabletTypeResponse} ChangeTabletTypeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeTabletTypeResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ChangeTabletTypeResponse message. + * @function verify + * @memberof vtctldata.ChangeTabletTypeResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ChangeTabletTypeResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.before_tablet != null && message.hasOwnProperty("before_tablet")) { + var error = $root.topodata.Tablet.verify(message.before_tablet); + if (error) + return "before_tablet." + error; + } + if (message.after_tablet != null && message.hasOwnProperty("after_tablet")) { + var error = $root.topodata.Tablet.verify(message.after_tablet); + if (error) + return "after_tablet." + error; + } + if (message.was_dry_run != null && message.hasOwnProperty("was_dry_run")) + if (typeof message.was_dry_run !== "boolean") + return "was_dry_run: boolean expected"; + return null; + }; + + /** + * Creates a ChangeTabletTypeResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.ChangeTabletTypeResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.ChangeTabletTypeResponse} ChangeTabletTypeResponse + */ + ChangeTabletTypeResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ChangeTabletTypeResponse) + return object; + var message = new $root.vtctldata.ChangeTabletTypeResponse(); + if (object.before_tablet != null) { + if (typeof object.before_tablet !== "object") + throw TypeError(".vtctldata.ChangeTabletTypeResponse.before_tablet: object expected"); + message.before_tablet = $root.topodata.Tablet.fromObject(object.before_tablet); + } + if (object.after_tablet != null) { + if (typeof object.after_tablet !== "object") + throw TypeError(".vtctldata.ChangeTabletTypeResponse.after_tablet: object expected"); + message.after_tablet = $root.topodata.Tablet.fromObject(object.after_tablet); + } + if (object.was_dry_run != null) + message.was_dry_run = Boolean(object.was_dry_run); + return message; + }; + + /** + * Creates a plain object from a ChangeTabletTypeResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.ChangeTabletTypeResponse + * @static + * @param {vtctldata.ChangeTabletTypeResponse} message ChangeTabletTypeResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ChangeTabletTypeResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.before_tablet = null; + object.after_tablet = null; + object.was_dry_run = false; + } + if (message.before_tablet != null && message.hasOwnProperty("before_tablet")) + object.before_tablet = $root.topodata.Tablet.toObject(message.before_tablet, options); + if (message.after_tablet != null && message.hasOwnProperty("after_tablet")) + object.after_tablet = $root.topodata.Tablet.toObject(message.after_tablet, options); + if (message.was_dry_run != null && message.hasOwnProperty("was_dry_run")) + object.was_dry_run = message.was_dry_run; + return object; + }; + + /** + * Converts this ChangeTabletTypeResponse to JSON. + * @function toJSON + * @memberof vtctldata.ChangeTabletTypeResponse + * @instance + * @returns {Object.} JSON object + */ + ChangeTabletTypeResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ChangeTabletTypeResponse; + })(); + + vtctldata.CreateKeyspaceRequest = (function() { + + /** + * Properties of a CreateKeyspaceRequest. + * @memberof vtctldata + * @interface ICreateKeyspaceRequest + * @property {string|null} [name] CreateKeyspaceRequest name + * @property {boolean|null} [force] CreateKeyspaceRequest force + * @property {boolean|null} [allow_empty_v_schema] CreateKeyspaceRequest allow_empty_v_schema + * @property {string|null} [sharding_column_name] CreateKeyspaceRequest sharding_column_name + * @property {topodata.KeyspaceIdType|null} [sharding_column_type] CreateKeyspaceRequest sharding_column_type + * @property {Array.|null} [served_froms] CreateKeyspaceRequest served_froms + * @property {topodata.KeyspaceType|null} [type] CreateKeyspaceRequest type + * @property {string|null} [base_keyspace] CreateKeyspaceRequest base_keyspace + * @property {vttime.ITime|null} [snapshot_time] CreateKeyspaceRequest snapshot_time + */ + + /** + * Constructs a new CreateKeyspaceRequest. + * @memberof vtctldata + * @classdesc Represents a CreateKeyspaceRequest. + * @implements ICreateKeyspaceRequest + * @constructor + * @param {vtctldata.ICreateKeyspaceRequest=} [properties] Properties to set + */ + function CreateKeyspaceRequest(properties) { + this.served_froms = []; + 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]]; + } + + /** + * CreateKeyspaceRequest name. + * @member {string} name + * @memberof vtctldata.CreateKeyspaceRequest + * @instance + */ + CreateKeyspaceRequest.prototype.name = ""; + + /** + * CreateKeyspaceRequest force. + * @member {boolean} force + * @memberof vtctldata.CreateKeyspaceRequest + * @instance + */ + CreateKeyspaceRequest.prototype.force = false; + + /** + * CreateKeyspaceRequest allow_empty_v_schema. + * @member {boolean} allow_empty_v_schema + * @memberof vtctldata.CreateKeyspaceRequest + * @instance + */ + CreateKeyspaceRequest.prototype.allow_empty_v_schema = false; + + /** + * CreateKeyspaceRequest sharding_column_name. + * @member {string} sharding_column_name + * @memberof vtctldata.CreateKeyspaceRequest + * @instance + */ + CreateKeyspaceRequest.prototype.sharding_column_name = ""; + + /** + * CreateKeyspaceRequest sharding_column_type. + * @member {topodata.KeyspaceIdType} sharding_column_type + * @memberof vtctldata.CreateKeyspaceRequest + * @instance + */ + CreateKeyspaceRequest.prototype.sharding_column_type = 0; + + /** + * CreateKeyspaceRequest served_froms. + * @member {Array.} served_froms + * @memberof vtctldata.CreateKeyspaceRequest + * @instance + */ + CreateKeyspaceRequest.prototype.served_froms = $util.emptyArray; + + /** + * CreateKeyspaceRequest type. + * @member {topodata.KeyspaceType} type + * @memberof vtctldata.CreateKeyspaceRequest + * @instance + */ + CreateKeyspaceRequest.prototype.type = 0; + + /** + * CreateKeyspaceRequest base_keyspace. + * @member {string} base_keyspace + * @memberof vtctldata.CreateKeyspaceRequest + * @instance + */ + CreateKeyspaceRequest.prototype.base_keyspace = ""; + + /** + * CreateKeyspaceRequest snapshot_time. + * @member {vttime.ITime|null|undefined} snapshot_time + * @memberof vtctldata.CreateKeyspaceRequest + * @instance + */ + CreateKeyspaceRequest.prototype.snapshot_time = null; + + /** + * Creates a new CreateKeyspaceRequest instance using the specified properties. + * @function create + * @memberof vtctldata.CreateKeyspaceRequest + * @static + * @param {vtctldata.ICreateKeyspaceRequest=} [properties] Properties to set + * @returns {vtctldata.CreateKeyspaceRequest} CreateKeyspaceRequest instance + */ + CreateKeyspaceRequest.create = function create(properties) { + return new CreateKeyspaceRequest(properties); + }; + + /** + * Encodes the specified CreateKeyspaceRequest message. Does not implicitly {@link vtctldata.CreateKeyspaceRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.CreateKeyspaceRequest + * @static + * @param {vtctldata.ICreateKeyspaceRequest} message CreateKeyspaceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateKeyspaceRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); + if (message.allow_empty_v_schema != null && Object.hasOwnProperty.call(message, "allow_empty_v_schema")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allow_empty_v_schema); + if (message.sharding_column_name != null && Object.hasOwnProperty.call(message, "sharding_column_name")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.sharding_column_name); + if (message.sharding_column_type != null && Object.hasOwnProperty.call(message, "sharding_column_type")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.sharding_column_type); + if (message.served_froms != null && message.served_froms.length) + for (var i = 0; i < message.served_froms.length; ++i) + $root.topodata.Keyspace.ServedFrom.encode(message.served_froms[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.type); + if (message.base_keyspace != null && Object.hasOwnProperty.call(message, "base_keyspace")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.base_keyspace); + if (message.snapshot_time != null && Object.hasOwnProperty.call(message, "snapshot_time")) + $root.vttime.Time.encode(message.snapshot_time, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.CreateKeyspaceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.CreateKeyspaceRequest + * @static + * @param {vtctldata.ICreateKeyspaceRequest} message CreateKeyspaceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateKeyspaceRequest message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.CreateKeyspaceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.CreateKeyspaceRequest} CreateKeyspaceRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CreateKeyspaceRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.force = reader.bool(); + break; + case 3: + message.allow_empty_v_schema = reader.bool(); break; case 4: - message.seconds_behind_master = reader.uint32(); + message.sharding_column_name = reader.string(); break; case 5: - message.master_host = reader.string(); + message.sharding_column_type = reader.int32(); break; case 6: - message.master_port = reader.int32(); + if (!(message.served_froms && message.served_froms.length)) + message.served_froms = []; + message.served_froms.push($root.topodata.Keyspace.ServedFrom.decode(reader, reader.uint32())); break; case 7: - message.master_connect_retry = reader.int32(); + message.type = reader.int32(); break; case 8: - message.relay_log_position = reader.string(); + message.base_keyspace = reader.string(); break; case 9: - message.file_position = reader.string(); - break; - case 10: - message.file_relay_log_position = reader.string(); - break; - case 11: - message.master_server_id = reader.uint32(); - break; - case 12: - message.master_uuid = reader.string(); + message.snapshot_time = $root.vttime.Time.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -46256,197 +49537,226 @@ $root.replicationdata = (function() { }; /** - * Decodes a Status message from the specified reader or buffer, length delimited. + * Decodes a CreateKeyspaceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof replicationdata.Status + * @memberof vtctldata.CreateKeyspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {replicationdata.Status} Status + * @returns {vtctldata.CreateKeyspaceRequest} CreateKeyspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Status.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 Status message. + * Verifies a CreateKeyspaceRequest message. * @function verify - * @memberof replicationdata.Status + * @memberof vtctldata.CreateKeyspaceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Status.verify = function verify(message) { + CreateKeyspaceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.position != null && message.hasOwnProperty("position")) - if (!$util.isString(message.position)) - return "position: string expected"; - if (message.io_thread_running != null && message.hasOwnProperty("io_thread_running")) - if (typeof message.io_thread_running !== "boolean") - return "io_thread_running: boolean expected"; - if (message.sql_thread_running != null && message.hasOwnProperty("sql_thread_running")) - if (typeof message.sql_thread_running !== "boolean") - return "sql_thread_running: boolean expected"; - if (message.seconds_behind_master != null && message.hasOwnProperty("seconds_behind_master")) - if (!$util.isInteger(message.seconds_behind_master)) - return "seconds_behind_master: integer expected"; - if (message.master_host != null && message.hasOwnProperty("master_host")) - if (!$util.isString(message.master_host)) - return "master_host: string expected"; - if (message.master_port != null && message.hasOwnProperty("master_port")) - if (!$util.isInteger(message.master_port)) - return "master_port: integer expected"; - if (message.master_connect_retry != null && message.hasOwnProperty("master_connect_retry")) - if (!$util.isInteger(message.master_connect_retry)) - return "master_connect_retry: integer expected"; - if (message.relay_log_position != null && message.hasOwnProperty("relay_log_position")) - if (!$util.isString(message.relay_log_position)) - return "relay_log_position: string expected"; - if (message.file_position != null && message.hasOwnProperty("file_position")) - if (!$util.isString(message.file_position)) - return "file_position: string expected"; - if (message.file_relay_log_position != null && message.hasOwnProperty("file_relay_log_position")) - if (!$util.isString(message.file_relay_log_position)) - return "file_relay_log_position: string expected"; - if (message.master_server_id != null && message.hasOwnProperty("master_server_id")) - if (!$util.isInteger(message.master_server_id)) - return "master_server_id: integer expected"; - if (message.master_uuid != null && message.hasOwnProperty("master_uuid")) - if (!$util.isString(message.master_uuid)) - return "master_uuid: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; + if (message.allow_empty_v_schema != null && message.hasOwnProperty("allow_empty_v_schema")) + if (typeof message.allow_empty_v_schema !== "boolean") + return "allow_empty_v_schema: boolean expected"; + if (message.sharding_column_name != null && message.hasOwnProperty("sharding_column_name")) + if (!$util.isString(message.sharding_column_name)) + return "sharding_column_name: string expected"; + if (message.sharding_column_type != null && message.hasOwnProperty("sharding_column_type")) + switch (message.sharding_column_type) { + default: + return "sharding_column_type: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.served_froms != null && message.hasOwnProperty("served_froms")) { + if (!Array.isArray(message.served_froms)) + return "served_froms: array expected"; + for (var i = 0; i < message.served_froms.length; ++i) { + var error = $root.topodata.Keyspace.ServedFrom.verify(message.served_froms[i]); + if (error) + return "served_froms." + error; + } + } + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + break; + } + if (message.base_keyspace != null && message.hasOwnProperty("base_keyspace")) + if (!$util.isString(message.base_keyspace)) + return "base_keyspace: string expected"; + if (message.snapshot_time != null && message.hasOwnProperty("snapshot_time")) { + var error = $root.vttime.Time.verify(message.snapshot_time); + if (error) + return "snapshot_time." + error; + } return null; }; /** - * Creates a Status 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 replicationdata.Status + * @memberof vtctldata.CreateKeyspaceRequest * @static * @param {Object.} object Plain object - * @returns {replicationdata.Status} Status + * @returns {vtctldata.CreateKeyspaceRequest} CreateKeyspaceRequest */ - Status.fromObject = function fromObject(object) { - if (object instanceof $root.replicationdata.Status) + CreateKeyspaceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.CreateKeyspaceRequest) return object; - var message = new $root.replicationdata.Status(); - if (object.position != null) - message.position = String(object.position); - if (object.io_thread_running != null) - message.io_thread_running = Boolean(object.io_thread_running); - if (object.sql_thread_running != null) - message.sql_thread_running = Boolean(object.sql_thread_running); - if (object.seconds_behind_master != null) - message.seconds_behind_master = object.seconds_behind_master >>> 0; - if (object.master_host != null) - message.master_host = String(object.master_host); - if (object.master_port != null) - message.master_port = object.master_port | 0; - if (object.master_connect_retry != null) - message.master_connect_retry = object.master_connect_retry | 0; - if (object.relay_log_position != null) - message.relay_log_position = String(object.relay_log_position); - if (object.file_position != null) - message.file_position = String(object.file_position); - if (object.file_relay_log_position != null) - message.file_relay_log_position = String(object.file_relay_log_position); - if (object.master_server_id != null) - message.master_server_id = object.master_server_id >>> 0; - if (object.master_uuid != null) - message.master_uuid = String(object.master_uuid); + var message = new $root.vtctldata.CreateKeyspaceRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.force != null) + message.force = Boolean(object.force); + if (object.allow_empty_v_schema != null) + message.allow_empty_v_schema = Boolean(object.allow_empty_v_schema); + if (object.sharding_column_name != null) + message.sharding_column_name = String(object.sharding_column_name); + switch (object.sharding_column_type) { + case "UNSET": + case 0: + message.sharding_column_type = 0; + break; + case "UINT64": + case 1: + message.sharding_column_type = 1; + break; + case "BYTES": + case 2: + message.sharding_column_type = 2; + break; + } + if (object.served_froms) { + if (!Array.isArray(object.served_froms)) + throw TypeError(".vtctldata.CreateKeyspaceRequest.served_froms: array expected"); + message.served_froms = []; + for (var i = 0; i < object.served_froms.length; ++i) { + if (typeof object.served_froms[i] !== "object") + throw TypeError(".vtctldata.CreateKeyspaceRequest.served_froms: object expected"); + message.served_froms[i] = $root.topodata.Keyspace.ServedFrom.fromObject(object.served_froms[i]); + } + } + switch (object.type) { + case "NORMAL": + case 0: + message.type = 0; + break; + case "SNAPSHOT": + case 1: + message.type = 1; + break; + } + if (object.base_keyspace != null) + message.base_keyspace = String(object.base_keyspace); + if (object.snapshot_time != null) { + if (typeof object.snapshot_time !== "object") + throw TypeError(".vtctldata.CreateKeyspaceRequest.snapshot_time: object expected"); + message.snapshot_time = $root.vttime.Time.fromObject(object.snapshot_time); + } return message; }; /** - * Creates a plain object from a Status 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 replicationdata.Status + * @memberof vtctldata.CreateKeyspaceRequest * @static - * @param {replicationdata.Status} message Status + * @param {vtctldata.CreateKeyspaceRequest} message CreateKeyspaceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Status.toObject = function toObject(message, options) { + CreateKeyspaceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.served_froms = []; if (options.defaults) { - object.position = ""; - object.io_thread_running = false; - object.sql_thread_running = false; - object.seconds_behind_master = 0; - object.master_host = ""; - object.master_port = 0; - object.master_connect_retry = 0; - object.relay_log_position = ""; - object.file_position = ""; - object.file_relay_log_position = ""; - object.master_server_id = 0; - object.master_uuid = ""; + object.name = ""; + object.force = false; + object.allow_empty_v_schema = false; + object.sharding_column_name = ""; + object.sharding_column_type = options.enums === String ? "UNSET" : 0; + object.type = options.enums === String ? "NORMAL" : 0; + object.base_keyspace = ""; + object.snapshot_time = null; } - if (message.position != null && message.hasOwnProperty("position")) - object.position = message.position; - if (message.io_thread_running != null && message.hasOwnProperty("io_thread_running")) - object.io_thread_running = message.io_thread_running; - if (message.sql_thread_running != null && message.hasOwnProperty("sql_thread_running")) - object.sql_thread_running = message.sql_thread_running; - if (message.seconds_behind_master != null && message.hasOwnProperty("seconds_behind_master")) - object.seconds_behind_master = message.seconds_behind_master; - if (message.master_host != null && message.hasOwnProperty("master_host")) - object.master_host = message.master_host; - if (message.master_port != null && message.hasOwnProperty("master_port")) - object.master_port = message.master_port; - if (message.master_connect_retry != null && message.hasOwnProperty("master_connect_retry")) - object.master_connect_retry = message.master_connect_retry; - if (message.relay_log_position != null && message.hasOwnProperty("relay_log_position")) - object.relay_log_position = message.relay_log_position; - if (message.file_position != null && message.hasOwnProperty("file_position")) - object.file_position = message.file_position; - if (message.file_relay_log_position != null && message.hasOwnProperty("file_relay_log_position")) - object.file_relay_log_position = message.file_relay_log_position; - if (message.master_server_id != null && message.hasOwnProperty("master_server_id")) - object.master_server_id = message.master_server_id; - if (message.master_uuid != null && message.hasOwnProperty("master_uuid")) - object.master_uuid = message.master_uuid; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; + if (message.allow_empty_v_schema != null && message.hasOwnProperty("allow_empty_v_schema")) + object.allow_empty_v_schema = message.allow_empty_v_schema; + if (message.sharding_column_name != null && message.hasOwnProperty("sharding_column_name")) + object.sharding_column_name = message.sharding_column_name; + if (message.sharding_column_type != null && message.hasOwnProperty("sharding_column_type")) + object.sharding_column_type = options.enums === String ? $root.topodata.KeyspaceIdType[message.sharding_column_type] : message.sharding_column_type; + if (message.served_froms && message.served_froms.length) { + object.served_froms = []; + for (var j = 0; j < message.served_froms.length; ++j) + object.served_froms[j] = $root.topodata.Keyspace.ServedFrom.toObject(message.served_froms[j], options); + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.topodata.KeyspaceType[message.type] : message.type; + if (message.base_keyspace != null && message.hasOwnProperty("base_keyspace")) + object.base_keyspace = message.base_keyspace; + if (message.snapshot_time != null && message.hasOwnProperty("snapshot_time")) + object.snapshot_time = $root.vttime.Time.toObject(message.snapshot_time, options); return object; }; /** - * Converts this Status to JSON. + * Converts this CreateKeyspaceRequest to JSON. * @function toJSON - * @memberof replicationdata.Status + * @memberof vtctldata.CreateKeyspaceRequest * @instance * @returns {Object.} JSON object */ - Status.prototype.toJSON = function toJSON() { + CreateKeyspaceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Status; + return CreateKeyspaceRequest; })(); - replicationdata.StopReplicationStatus = (function() { + vtctldata.CreateKeyspaceResponse = (function() { /** - * Properties of a StopReplicationStatus. - * @memberof replicationdata - * @interface IStopReplicationStatus - * @property {replicationdata.IStatus|null} [before] StopReplicationStatus before - * @property {replicationdata.IStatus|null} [after] StopReplicationStatus after + * Properties of a CreateKeyspaceResponse. + * @memberof vtctldata + * @interface ICreateKeyspaceResponse + * @property {vtctldata.IKeyspace|null} [keyspace] CreateKeyspaceResponse keyspace */ /** - * Constructs a new StopReplicationStatus. - * @memberof replicationdata - * @classdesc Represents a StopReplicationStatus. - * @implements IStopReplicationStatus + * Constructs a new CreateKeyspaceResponse. + * @memberof vtctldata + * @classdesc Represents a CreateKeyspaceResponse. + * @implements ICreateKeyspaceResponse * @constructor - * @param {replicationdata.IStopReplicationStatus=} [properties] Properties to set + * @param {vtctldata.ICreateKeyspaceResponse=} [properties] Properties to set */ - function StopReplicationStatus(properties) { + function CreateKeyspaceResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46454,88 +49764,75 @@ $root.replicationdata = (function() { } /** - * StopReplicationStatus before. - * @member {replicationdata.IStatus|null|undefined} before - * @memberof replicationdata.StopReplicationStatus - * @instance - */ - StopReplicationStatus.prototype.before = null; - - /** - * StopReplicationStatus after. - * @member {replicationdata.IStatus|null|undefined} after - * @memberof replicationdata.StopReplicationStatus + * CreateKeyspaceResponse keyspace. + * @member {vtctldata.IKeyspace|null|undefined} keyspace + * @memberof vtctldata.CreateKeyspaceResponse * @instance */ - StopReplicationStatus.prototype.after = null; + CreateKeyspaceResponse.prototype.keyspace = null; /** - * Creates a new StopReplicationStatus instance using the specified properties. + * Creates a new CreateKeyspaceResponse instance using the specified properties. * @function create - * @memberof replicationdata.StopReplicationStatus + * @memberof vtctldata.CreateKeyspaceResponse * @static - * @param {replicationdata.IStopReplicationStatus=} [properties] Properties to set - * @returns {replicationdata.StopReplicationStatus} StopReplicationStatus instance + * @param {vtctldata.ICreateKeyspaceResponse=} [properties] Properties to set + * @returns {vtctldata.CreateKeyspaceResponse} CreateKeyspaceResponse instance */ - StopReplicationStatus.create = function create(properties) { - return new StopReplicationStatus(properties); + CreateKeyspaceResponse.create = function create(properties) { + return new CreateKeyspaceResponse(properties); }; /** - * Encodes the specified StopReplicationStatus message. Does not implicitly {@link replicationdata.StopReplicationStatus.verify|verify} messages. + * Encodes the specified CreateKeyspaceResponse message. Does not implicitly {@link vtctldata.CreateKeyspaceResponse.verify|verify} messages. * @function encode - * @memberof replicationdata.StopReplicationStatus + * @memberof vtctldata.CreateKeyspaceResponse * @static - * @param {replicationdata.IStopReplicationStatus} message StopReplicationStatus message or plain object to encode + * @param {vtctldata.ICreateKeyspaceResponse} message CreateKeyspaceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopReplicationStatus.encode = function encode(message, writer) { + CreateKeyspaceResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.before != null && Object.hasOwnProperty.call(message, "before")) - $root.replicationdata.Status.encode(message.before, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.after != null && Object.hasOwnProperty.call(message, "after")) - $root.replicationdata.Status.encode(message.after, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + $root.vtctldata.Keyspace.encode(message.keyspace, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified StopReplicationStatus message, length delimited. Does not implicitly {@link replicationdata.StopReplicationStatus.verify|verify} messages. + * Encodes the specified CreateKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.CreateKeyspaceResponse.verify|verify} messages. * @function encodeDelimited - * @memberof replicationdata.StopReplicationStatus + * @memberof vtctldata.CreateKeyspaceResponse * @static - * @param {replicationdata.IStopReplicationStatus} message StopReplicationStatus message or plain object to encode + * @param {vtctldata.ICreateKeyspaceResponse} message CreateKeyspaceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopReplicationStatus.encodeDelimited = function encodeDelimited(message, writer) { + CreateKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StopReplicationStatus message from the specified reader or buffer. + * Decodes a CreateKeyspaceResponse message from the specified reader or buffer. * @function decode - * @memberof replicationdata.StopReplicationStatus + * @memberof vtctldata.CreateKeyspaceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {replicationdata.StopReplicationStatus} StopReplicationStatus + * @returns {vtctldata.CreateKeyspaceResponse} CreateKeyspaceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopReplicationStatus.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.replicationdata.StopReplicationStatus(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CreateKeyspaceResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.before = $root.replicationdata.Status.decode(reader, reader.uint32()); - break; - case 2: - message.after = $root.replicationdata.Status.decode(reader, reader.uint32()); + message.keyspace = $root.vtctldata.Keyspace.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -46546,141 +49843,115 @@ $root.replicationdata = (function() { }; /** - * Decodes a StopReplicationStatus message from the specified reader or buffer, length delimited. + * Decodes a CreateKeyspaceResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof replicationdata.StopReplicationStatus + * @memberof vtctldata.CreateKeyspaceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {replicationdata.StopReplicationStatus} StopReplicationStatus + * @returns {vtctldata.CreateKeyspaceResponse} CreateKeyspaceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopReplicationStatus.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 StopReplicationStatus message. + * Verifies a CreateKeyspaceResponse message. * @function verify - * @memberof replicationdata.StopReplicationStatus + * @memberof vtctldata.CreateKeyspaceResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StopReplicationStatus.verify = function verify(message) { + CreateKeyspaceResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.before != null && message.hasOwnProperty("before")) { - var error = $root.replicationdata.Status.verify(message.before); - if (error) - return "before." + error; - } - if (message.after != null && message.hasOwnProperty("after")) { - var error = $root.replicationdata.Status.verify(message.after); + if (message.keyspace != null && message.hasOwnProperty("keyspace")) { + var error = $root.vtctldata.Keyspace.verify(message.keyspace); if (error) - return "after." + error; + return "keyspace." + error; } return null; }; /** - * Creates a StopReplicationStatus 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 replicationdata.StopReplicationStatus + * @memberof vtctldata.CreateKeyspaceResponse * @static * @param {Object.} object Plain object - * @returns {replicationdata.StopReplicationStatus} StopReplicationStatus + * @returns {vtctldata.CreateKeyspaceResponse} CreateKeyspaceResponse */ - StopReplicationStatus.fromObject = function fromObject(object) { - if (object instanceof $root.replicationdata.StopReplicationStatus) + CreateKeyspaceResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.CreateKeyspaceResponse) return object; - var message = new $root.replicationdata.StopReplicationStatus(); - if (object.before != null) { - if (typeof object.before !== "object") - throw TypeError(".replicationdata.StopReplicationStatus.before: object expected"); - message.before = $root.replicationdata.Status.fromObject(object.before); - } - if (object.after != null) { - if (typeof object.after !== "object") - throw TypeError(".replicationdata.StopReplicationStatus.after: object expected"); - message.after = $root.replicationdata.Status.fromObject(object.after); + var message = new $root.vtctldata.CreateKeyspaceResponse(); + if (object.keyspace != null) { + if (typeof object.keyspace !== "object") + throw TypeError(".vtctldata.CreateKeyspaceResponse.keyspace: object expected"); + message.keyspace = $root.vtctldata.Keyspace.fromObject(object.keyspace); } return message; }; /** - * Creates a plain object from a StopReplicationStatus 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 replicationdata.StopReplicationStatus + * @memberof vtctldata.CreateKeyspaceResponse * @static - * @param {replicationdata.StopReplicationStatus} message StopReplicationStatus + * @param {vtctldata.CreateKeyspaceResponse} message CreateKeyspaceResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StopReplicationStatus.toObject = function toObject(message, options) { + CreateKeyspaceResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.before = null; - object.after = null; - } - if (message.before != null && message.hasOwnProperty("before")) - object.before = $root.replicationdata.Status.toObject(message.before, options); - if (message.after != null && message.hasOwnProperty("after")) - object.after = $root.replicationdata.Status.toObject(message.after, options); + if (options.defaults) + object.keyspace = null; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = $root.vtctldata.Keyspace.toObject(message.keyspace, options); return object; }; /** - * Converts this StopReplicationStatus to JSON. + * Converts this CreateKeyspaceResponse to JSON. * @function toJSON - * @memberof replicationdata.StopReplicationStatus + * @memberof vtctldata.CreateKeyspaceResponse * @instance * @returns {Object.} JSON object */ - StopReplicationStatus.prototype.toJSON = function toJSON() { + CreateKeyspaceResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StopReplicationStatus; - })(); - - /** - * StopReplicationMode enum. - * @name replicationdata.StopReplicationMode - * @enum {number} - * @property {number} IOANDSQLTHREAD=0 IOANDSQLTHREAD value - * @property {number} IOTHREADONLY=1 IOTHREADONLY value - */ - replicationdata.StopReplicationMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "IOANDSQLTHREAD"] = 0; - values[valuesById[1] = "IOTHREADONLY"] = 1; - return values; + return CreateKeyspaceResponse; })(); - replicationdata.MasterStatus = (function() { + vtctldata.CreateShardRequest = (function() { /** - * Properties of a MasterStatus. - * @memberof replicationdata - * @interface IMasterStatus - * @property {string|null} [position] MasterStatus position - * @property {string|null} [file_position] MasterStatus file_position + * Properties of a CreateShardRequest. + * @memberof vtctldata + * @interface ICreateShardRequest + * @property {string|null} [keyspace] CreateShardRequest keyspace + * @property {string|null} [shard_name] CreateShardRequest shard_name + * @property {boolean|null} [force] CreateShardRequest force + * @property {boolean|null} [include_parent] CreateShardRequest include_parent */ /** - * Constructs a new MasterStatus. - * @memberof replicationdata - * @classdesc Represents a MasterStatus. - * @implements IMasterStatus + * Constructs a new CreateShardRequest. + * @memberof vtctldata + * @classdesc Represents a CreateShardRequest. + * @implements ICreateShardRequest * @constructor - * @param {replicationdata.IMasterStatus=} [properties] Properties to set + * @param {vtctldata.ICreateShardRequest=} [properties] Properties to set */ - function MasterStatus(properties) { + function CreateShardRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46688,88 +49959,114 @@ $root.replicationdata = (function() { } /** - * MasterStatus position. - * @member {string} position - * @memberof replicationdata.MasterStatus + * CreateShardRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.CreateShardRequest * @instance */ - MasterStatus.prototype.position = ""; + CreateShardRequest.prototype.keyspace = ""; /** - * MasterStatus file_position. - * @member {string} file_position - * @memberof replicationdata.MasterStatus + * CreateShardRequest shard_name. + * @member {string} shard_name + * @memberof vtctldata.CreateShardRequest * @instance */ - MasterStatus.prototype.file_position = ""; + CreateShardRequest.prototype.shard_name = ""; /** - * Creates a new MasterStatus instance using the specified properties. + * CreateShardRequest force. + * @member {boolean} force + * @memberof vtctldata.CreateShardRequest + * @instance + */ + CreateShardRequest.prototype.force = false; + + /** + * CreateShardRequest include_parent. + * @member {boolean} include_parent + * @memberof vtctldata.CreateShardRequest + * @instance + */ + CreateShardRequest.prototype.include_parent = false; + + /** + * Creates a new CreateShardRequest instance using the specified properties. * @function create - * @memberof replicationdata.MasterStatus + * @memberof vtctldata.CreateShardRequest * @static - * @param {replicationdata.IMasterStatus=} [properties] Properties to set - * @returns {replicationdata.MasterStatus} MasterStatus instance + * @param {vtctldata.ICreateShardRequest=} [properties] Properties to set + * @returns {vtctldata.CreateShardRequest} CreateShardRequest instance */ - MasterStatus.create = function create(properties) { - return new MasterStatus(properties); + CreateShardRequest.create = function create(properties) { + return new CreateShardRequest(properties); }; /** - * Encodes the specified MasterStatus message. Does not implicitly {@link replicationdata.MasterStatus.verify|verify} messages. + * Encodes the specified CreateShardRequest message. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. * @function encode - * @memberof replicationdata.MasterStatus + * @memberof vtctldata.CreateShardRequest * @static - * @param {replicationdata.IMasterStatus} message MasterStatus message or plain object to encode + * @param {vtctldata.ICreateShardRequest} message CreateShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MasterStatus.encode = function encode(message, writer) { + CreateShardRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.position != null && Object.hasOwnProperty.call(message, "position")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.position); - if (message.file_position != null && Object.hasOwnProperty.call(message, "file_position")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.file_position); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.shard_name != null && Object.hasOwnProperty.call(message, "shard_name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard_name); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); + if (message.include_parent != null && Object.hasOwnProperty.call(message, "include_parent")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.include_parent); return writer; }; /** - * Encodes the specified MasterStatus message, length delimited. Does not implicitly {@link replicationdata.MasterStatus.verify|verify} messages. + * Encodes the specified CreateShardRequest message, length delimited. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. * @function encodeDelimited - * @memberof replicationdata.MasterStatus + * @memberof vtctldata.CreateShardRequest * @static - * @param {replicationdata.IMasterStatus} message MasterStatus message or plain object to encode + * @param {vtctldata.ICreateShardRequest} message CreateShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MasterStatus.encodeDelimited = function encodeDelimited(message, writer) { + CreateShardRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MasterStatus message from the specified reader or buffer. + * Decodes a CreateShardRequest message from the specified reader or buffer. * @function decode - * @memberof replicationdata.MasterStatus + * @memberof vtctldata.CreateShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {replicationdata.MasterStatus} MasterStatus + * @returns {vtctldata.CreateShardRequest} CreateShardRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MasterStatus.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.replicationdata.MasterStatus(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CreateShardRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.position = reader.string(); + message.keyspace = reader.string(); break; case 2: - message.file_position = reader.string(); + message.shard_name = reader.string(); + break; + case 3: + message.force = reader.bool(); + break; + case 4: + message.include_parent = reader.bool(); break; default: reader.skipType(tag & 7); @@ -46780,150 +50077,134 @@ $root.replicationdata = (function() { }; /** - * Decodes a MasterStatus message from the specified reader or buffer, length delimited. + * Decodes a CreateShardRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof replicationdata.MasterStatus + * @memberof vtctldata.CreateShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {replicationdata.MasterStatus} MasterStatus + * @returns {vtctldata.CreateShardRequest} CreateShardRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MasterStatus.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 MasterStatus message. + * Verifies a CreateShardRequest message. * @function verify - * @memberof replicationdata.MasterStatus + * @memberof vtctldata.CreateShardRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MasterStatus.verify = function verify(message) { + CreateShardRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.position != null && message.hasOwnProperty("position")) - if (!$util.isString(message.position)) - return "position: string expected"; - if (message.file_position != null && message.hasOwnProperty("file_position")) - if (!$util.isString(message.file_position)) - return "file_position: string expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.shard_name != null && message.hasOwnProperty("shard_name")) + if (!$util.isString(message.shard_name)) + return "shard_name: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; + if (message.include_parent != null && message.hasOwnProperty("include_parent")) + if (typeof message.include_parent !== "boolean") + return "include_parent: boolean expected"; return null; }; /** - * Creates a MasterStatus 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 replicationdata.MasterStatus + * @memberof vtctldata.CreateShardRequest * @static * @param {Object.} object Plain object - * @returns {replicationdata.MasterStatus} MasterStatus + * @returns {vtctldata.CreateShardRequest} CreateShardRequest */ - MasterStatus.fromObject = function fromObject(object) { - if (object instanceof $root.replicationdata.MasterStatus) + CreateShardRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.CreateShardRequest) return object; - var message = new $root.replicationdata.MasterStatus(); - if (object.position != null) - message.position = String(object.position); - if (object.file_position != null) - message.file_position = String(object.file_position); + var message = new $root.vtctldata.CreateShardRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard_name != null) + message.shard_name = String(object.shard_name); + if (object.force != null) + message.force = Boolean(object.force); + if (object.include_parent != null) + message.include_parent = Boolean(object.include_parent); return message; }; /** - * Creates a plain object from a MasterStatus 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 replicationdata.MasterStatus + * @memberof vtctldata.CreateShardRequest * @static - * @param {replicationdata.MasterStatus} message MasterStatus + * @param {vtctldata.CreateShardRequest} message CreateShardRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MasterStatus.toObject = function toObject(message, options) { + CreateShardRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.position = ""; - object.file_position = ""; + object.keyspace = ""; + object.shard_name = ""; + object.force = false; + object.include_parent = false; } - if (message.position != null && message.hasOwnProperty("position")) - object.position = message.position; - if (message.file_position != null && message.hasOwnProperty("file_position")) - object.file_position = message.file_position; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard_name != null && message.hasOwnProperty("shard_name")) + object.shard_name = message.shard_name; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; + if (message.include_parent != null && message.hasOwnProperty("include_parent")) + object.include_parent = message.include_parent; return object; }; /** - * Converts this MasterStatus to JSON. + * Converts this CreateShardRequest to JSON. * @function toJSON - * @memberof replicationdata.MasterStatus + * @memberof vtctldata.CreateShardRequest * @instance * @returns {Object.} JSON object */ - MasterStatus.prototype.toJSON = function toJSON() { + CreateShardRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MasterStatus; - })(); - - return replicationdata; -})(); - -$root.logutil = (function() { - - /** - * Namespace logutil. - * @exports logutil - * @namespace - */ - var logutil = {}; - - /** - * Level enum. - * @name logutil.Level - * @enum {number} - * @property {number} INFO=0 INFO value - * @property {number} WARNING=1 WARNING value - * @property {number} ERROR=2 ERROR value - * @property {number} CONSOLE=3 CONSOLE value - */ - logutil.Level = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "INFO"] = 0; - values[valuesById[1] = "WARNING"] = 1; - values[valuesById[2] = "ERROR"] = 2; - values[valuesById[3] = "CONSOLE"] = 3; - return values; + return CreateShardRequest; })(); - logutil.Event = (function() { + vtctldata.CreateShardResponse = (function() { /** - * Properties of an Event. - * @memberof logutil - * @interface IEvent - * @property {vttime.ITime|null} [time] Event time - * @property {logutil.Level|null} [level] Event level - * @property {string|null} [file] Event file - * @property {number|Long|null} [line] Event line - * @property {string|null} [value] Event value + * Properties of a CreateShardResponse. + * @memberof vtctldata + * @interface ICreateShardResponse + * @property {vtctldata.IKeyspace|null} [keyspace] CreateShardResponse keyspace + * @property {vtctldata.IShard|null} [shard] CreateShardResponse shard + * @property {boolean|null} [shard_already_exists] CreateShardResponse shard_already_exists */ /** - * Constructs a new Event. - * @memberof logutil - * @classdesc Represents an Event. - * @implements IEvent + * Constructs a new CreateShardResponse. + * @memberof vtctldata + * @classdesc Represents a CreateShardResponse. + * @implements ICreateShardResponse * @constructor - * @param {logutil.IEvent=} [properties] Properties to set + * @param {vtctldata.ICreateShardResponse=} [properties] Properties to set */ - function Event(properties) { + function CreateShardResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46931,127 +50212,101 @@ $root.logutil = (function() { } /** - * Event time. - * @member {vttime.ITime|null|undefined} time - * @memberof logutil.Event - * @instance - */ - Event.prototype.time = null; - - /** - * Event level. - * @member {logutil.Level} level - * @memberof logutil.Event - * @instance - */ - Event.prototype.level = 0; - - /** - * Event file. - * @member {string} file - * @memberof logutil.Event + * CreateShardResponse keyspace. + * @member {vtctldata.IKeyspace|null|undefined} keyspace + * @memberof vtctldata.CreateShardResponse * @instance */ - Event.prototype.file = ""; + CreateShardResponse.prototype.keyspace = null; /** - * Event line. - * @member {number|Long} line - * @memberof logutil.Event + * CreateShardResponse shard. + * @member {vtctldata.IShard|null|undefined} shard + * @memberof vtctldata.CreateShardResponse * @instance */ - Event.prototype.line = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + CreateShardResponse.prototype.shard = null; /** - * Event value. - * @member {string} value - * @memberof logutil.Event + * CreateShardResponse shard_already_exists. + * @member {boolean} shard_already_exists + * @memberof vtctldata.CreateShardResponse * @instance */ - Event.prototype.value = ""; + CreateShardResponse.prototype.shard_already_exists = false; /** - * Creates a new Event instance using the specified properties. + * Creates a new CreateShardResponse instance using the specified properties. * @function create - * @memberof logutil.Event + * @memberof vtctldata.CreateShardResponse * @static - * @param {logutil.IEvent=} [properties] Properties to set - * @returns {logutil.Event} Event instance + * @param {vtctldata.ICreateShardResponse=} [properties] Properties to set + * @returns {vtctldata.CreateShardResponse} CreateShardResponse instance */ - Event.create = function create(properties) { - return new Event(properties); + CreateShardResponse.create = function create(properties) { + return new CreateShardResponse(properties); }; /** - * Encodes the specified Event message. Does not implicitly {@link logutil.Event.verify|verify} messages. + * Encodes the specified CreateShardResponse message. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. * @function encode - * @memberof logutil.Event + * @memberof vtctldata.CreateShardResponse * @static - * @param {logutil.IEvent} message Event message or plain object to encode + * @param {vtctldata.ICreateShardResponse} message CreateShardResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Event.encode = function encode(message, writer) { + CreateShardResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.time != null && Object.hasOwnProperty.call(message, "time")) - $root.vttime.Time.encode(message.time, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.level != null && Object.hasOwnProperty.call(message, "level")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.level); - if (message.file != null && Object.hasOwnProperty.call(message, "file")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.file); - if (message.line != null && Object.hasOwnProperty.call(message, "line")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.line); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.value); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + $root.vtctldata.Keyspace.encode(message.keyspace, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + $root.vtctldata.Shard.encode(message.shard, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.shard_already_exists != null && Object.hasOwnProperty.call(message, "shard_already_exists")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.shard_already_exists); return writer; }; /** - * Encodes the specified Event message, length delimited. Does not implicitly {@link logutil.Event.verify|verify} messages. + * Encodes the specified CreateShardResponse message, length delimited. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. * @function encodeDelimited - * @memberof logutil.Event + * @memberof vtctldata.CreateShardResponse * @static - * @param {logutil.IEvent} message Event message or plain object to encode + * @param {vtctldata.ICreateShardResponse} message CreateShardResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Event.encodeDelimited = function encodeDelimited(message, writer) { + CreateShardResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Event message from the specified reader or buffer. + * Decodes a CreateShardResponse message from the specified reader or buffer. * @function decode - * @memberof logutil.Event + * @memberof vtctldata.CreateShardResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {logutil.Event} Event + * @returns {vtctldata.CreateShardResponse} CreateShardResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Event.decode = function decode(reader, length) { + CreateShardResponse.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.logutil.Event(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CreateShardResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.time = $root.vttime.Time.decode(reader, reader.uint32()); + message.keyspace = $root.vtctldata.Keyspace.decode(reader, reader.uint32()); break; case 2: - message.level = reader.int32(); + message.shard = $root.vtctldata.Shard.decode(reader, reader.uint32()); break; case 3: - message.file = reader.string(); - break; - case 4: - message.line = reader.int64(); - break; - case 5: - message.value = reader.string(); + message.shard_already_exists = reader.bool(); break; default: reader.skipType(tag & 7); @@ -47062,196 +50317,135 @@ $root.logutil = (function() { }; /** - * Decodes an Event message from the specified reader or buffer, length delimited. + * Decodes a CreateShardResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof logutil.Event + * @memberof vtctldata.CreateShardResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {logutil.Event} Event + * @returns {vtctldata.CreateShardResponse} CreateShardResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Event.decodeDelimited = function decodeDelimited(reader) { + CreateShardResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Event message. + * Verifies a CreateShardResponse message. * @function verify - * @memberof logutil.Event + * @memberof vtctldata.CreateShardResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Event.verify = function verify(message) { + CreateShardResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.time != null && message.hasOwnProperty("time")) { - var error = $root.vttime.Time.verify(message.time); + if (message.keyspace != null && message.hasOwnProperty("keyspace")) { + var error = $root.vtctldata.Keyspace.verify(message.keyspace); if (error) - return "time." + error; + return "keyspace." + error; } - if (message.level != null && message.hasOwnProperty("level")) - switch (message.level) { - default: - return "level: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.file != null && message.hasOwnProperty("file")) - if (!$util.isString(message.file)) - return "file: string expected"; - if (message.line != null && message.hasOwnProperty("line")) - if (!$util.isInteger(message.line) && !(message.line && $util.isInteger(message.line.low) && $util.isInteger(message.line.high))) - return "line: integer|Long expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; + if (message.shard != null && message.hasOwnProperty("shard")) { + var error = $root.vtctldata.Shard.verify(message.shard); + if (error) + return "shard." + error; + } + if (message.shard_already_exists != null && message.hasOwnProperty("shard_already_exists")) + if (typeof message.shard_already_exists !== "boolean") + return "shard_already_exists: boolean expected"; return null; }; /** - * Creates an Event message from a plain object. Also converts values to their respective internal types. + * Creates a CreateShardResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof logutil.Event + * @memberof vtctldata.CreateShardResponse * @static * @param {Object.} object Plain object - * @returns {logutil.Event} Event + * @returns {vtctldata.CreateShardResponse} CreateShardResponse */ - Event.fromObject = function fromObject(object) { - if (object instanceof $root.logutil.Event) + CreateShardResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.CreateShardResponse) return object; - var message = new $root.logutil.Event(); - if (object.time != null) { - if (typeof object.time !== "object") - throw TypeError(".logutil.Event.time: object expected"); - message.time = $root.vttime.Time.fromObject(object.time); + var message = new $root.vtctldata.CreateShardResponse(); + if (object.keyspace != null) { + if (typeof object.keyspace !== "object") + throw TypeError(".vtctldata.CreateShardResponse.keyspace: object expected"); + message.keyspace = $root.vtctldata.Keyspace.fromObject(object.keyspace); } - switch (object.level) { - case "INFO": - case 0: - message.level = 0; - break; - case "WARNING": - case 1: - message.level = 1; - break; - case "ERROR": - case 2: - message.level = 2; - break; - case "CONSOLE": - case 3: - message.level = 3; - break; + if (object.shard != null) { + if (typeof object.shard !== "object") + throw TypeError(".vtctldata.CreateShardResponse.shard: object expected"); + message.shard = $root.vtctldata.Shard.fromObject(object.shard); } - if (object.file != null) - message.file = String(object.file); - if (object.line != null) - if ($util.Long) - (message.line = $util.Long.fromValue(object.line)).unsigned = false; - else if (typeof object.line === "string") - message.line = parseInt(object.line, 10); - else if (typeof object.line === "number") - message.line = object.line; - else if (typeof object.line === "object") - message.line = new $util.LongBits(object.line.low >>> 0, object.line.high >>> 0).toNumber(); - if (object.value != null) - message.value = String(object.value); + if (object.shard_already_exists != null) + message.shard_already_exists = Boolean(object.shard_already_exists); return message; }; /** - * Creates a plain object from an Event message. Also converts values to other types if specified. + * Creates a plain object from a CreateShardResponse message. Also converts values to other types if specified. * @function toObject - * @memberof logutil.Event + * @memberof vtctldata.CreateShardResponse * @static - * @param {logutil.Event} message Event + * @param {vtctldata.CreateShardResponse} message CreateShardResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Event.toObject = function toObject(message, options) { + CreateShardResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.time = null; - object.level = options.enums === String ? "INFO" : 0; - object.file = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.line = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.line = options.longs === String ? "0" : 0; - object.value = ""; + object.keyspace = null; + object.shard = null; + object.shard_already_exists = false; } - if (message.time != null && message.hasOwnProperty("time")) - object.time = $root.vttime.Time.toObject(message.time, options); - if (message.level != null && message.hasOwnProperty("level")) - object.level = options.enums === String ? $root.logutil.Level[message.level] : message.level; - if (message.file != null && message.hasOwnProperty("file")) - object.file = message.file; - if (message.line != null && message.hasOwnProperty("line")) - if (typeof message.line === "number") - object.line = options.longs === String ? String(message.line) : message.line; - else - object.line = options.longs === String ? $util.Long.prototype.toString.call(message.line) : options.longs === Number ? new $util.LongBits(message.line.low >>> 0, message.line.high >>> 0).toNumber() : message.line; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = $root.vtctldata.Keyspace.toObject(message.keyspace, options); + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = $root.vtctldata.Shard.toObject(message.shard, options); + if (message.shard_already_exists != null && message.hasOwnProperty("shard_already_exists")) + object.shard_already_exists = message.shard_already_exists; return object; }; /** - * Converts this Event to JSON. + * Converts this CreateShardResponse to JSON. * @function toJSON - * @memberof logutil.Event + * @memberof vtctldata.CreateShardResponse * @instance * @returns {Object.} JSON object */ - Event.prototype.toJSON = function toJSON() { + CreateShardResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Event; + return CreateShardResponse; })(); - return logutil; -})(); - -$root.vtctldata = (function() { - - /** - * Namespace vtctldata. - * @exports vtctldata - * @namespace - */ - var vtctldata = {}; - - vtctldata.ExecuteVtctlCommandRequest = (function() { + vtctldata.DeleteKeyspaceRequest = (function() { /** - * Properties of an ExecuteVtctlCommandRequest. + * Properties of a DeleteKeyspaceRequest. * @memberof vtctldata - * @interface IExecuteVtctlCommandRequest - * @property {Array.|null} [args] ExecuteVtctlCommandRequest args - * @property {number|Long|null} [action_timeout] ExecuteVtctlCommandRequest action_timeout + * @interface IDeleteKeyspaceRequest + * @property {string|null} [keyspace] DeleteKeyspaceRequest keyspace + * @property {boolean|null} [recursive] DeleteKeyspaceRequest recursive */ /** - * Constructs a new ExecuteVtctlCommandRequest. + * Constructs a new DeleteKeyspaceRequest. * @memberof vtctldata - * @classdesc Represents an ExecuteVtctlCommandRequest. - * @implements IExecuteVtctlCommandRequest + * @classdesc Represents a DeleteKeyspaceRequest. + * @implements IDeleteKeyspaceRequest * @constructor - * @param {vtctldata.IExecuteVtctlCommandRequest=} [properties] Properties to set + * @param {vtctldata.IDeleteKeyspaceRequest=} [properties] Properties to set */ - function ExecuteVtctlCommandRequest(properties) { - this.args = []; + function DeleteKeyspaceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -47259,91 +50453,88 @@ $root.vtctldata = (function() { } /** - * ExecuteVtctlCommandRequest args. - * @member {Array.} args - * @memberof vtctldata.ExecuteVtctlCommandRequest + * DeleteKeyspaceRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.DeleteKeyspaceRequest * @instance */ - ExecuteVtctlCommandRequest.prototype.args = $util.emptyArray; + DeleteKeyspaceRequest.prototype.keyspace = ""; /** - * ExecuteVtctlCommandRequest action_timeout. - * @member {number|Long} action_timeout - * @memberof vtctldata.ExecuteVtctlCommandRequest + * DeleteKeyspaceRequest recursive. + * @member {boolean} recursive + * @memberof vtctldata.DeleteKeyspaceRequest * @instance */ - ExecuteVtctlCommandRequest.prototype.action_timeout = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DeleteKeyspaceRequest.prototype.recursive = false; /** - * Creates a new ExecuteVtctlCommandRequest instance using the specified properties. + * Creates a new DeleteKeyspaceRequest instance using the specified properties. * @function create - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vtctldata.DeleteKeyspaceRequest * @static - * @param {vtctldata.IExecuteVtctlCommandRequest=} [properties] Properties to set - * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest instance + * @param {vtctldata.IDeleteKeyspaceRequest=} [properties] Properties to set + * @returns {vtctldata.DeleteKeyspaceRequest} DeleteKeyspaceRequest instance */ - ExecuteVtctlCommandRequest.create = function create(properties) { - return new ExecuteVtctlCommandRequest(properties); + DeleteKeyspaceRequest.create = function create(properties) { + return new DeleteKeyspaceRequest(properties); }; /** - * Encodes the specified ExecuteVtctlCommandRequest message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. + * Encodes the specified DeleteKeyspaceRequest message. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vtctldata.DeleteKeyspaceRequest * @static - * @param {vtctldata.IExecuteVtctlCommandRequest} message ExecuteVtctlCommandRequest message or plain object to encode + * @param {vtctldata.IDeleteKeyspaceRequest} message DeleteKeyspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteVtctlCommandRequest.encode = function encode(message, writer) { + DeleteKeyspaceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.args != null && message.args.length) - for (var i = 0; i < message.args.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.args[i]); - if (message.action_timeout != null && Object.hasOwnProperty.call(message, "action_timeout")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.action_timeout); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.recursive != null && Object.hasOwnProperty.call(message, "recursive")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.recursive); return writer; }; /** - * Encodes the specified ExecuteVtctlCommandRequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. + * Encodes the specified DeleteKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vtctldata.DeleteKeyspaceRequest * @static - * @param {vtctldata.IExecuteVtctlCommandRequest} message ExecuteVtctlCommandRequest message or plain object to encode + * @param {vtctldata.IDeleteKeyspaceRequest} message DeleteKeyspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteVtctlCommandRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer. + * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vtctldata.DeleteKeyspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest + * @returns {vtctldata.DeleteKeyspaceRequest} DeleteKeyspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteVtctlCommandRequest.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.vtctldata.ExecuteVtctlCommandRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteKeyspaceRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.args && message.args.length)) - message.args = []; - message.args.push(reader.string()); + message.keyspace = reader.string(); break; case 2: - message.action_timeout = reader.int64(); + message.recursive = reader.bool(); break; default: reader.skipType(tag & 7); @@ -47354,142 +50545,115 @@ $root.vtctldata = (function() { }; /** - * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vtctldata.DeleteKeyspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest + * @returns {vtctldata.DeleteKeyspaceRequest} DeleteKeyspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteVtctlCommandRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteVtctlCommandRequest message. + * Verifies a DeleteKeyspaceRequest message. * @function verify - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vtctldata.DeleteKeyspaceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteVtctlCommandRequest.verify = function verify(message) { + DeleteKeyspaceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.args != null && message.hasOwnProperty("args")) { - if (!Array.isArray(message.args)) - return "args: array expected"; - for (var i = 0; i < message.args.length; ++i) - if (!$util.isString(message.args[i])) - return "args: string[] expected"; - } - if (message.action_timeout != null && message.hasOwnProperty("action_timeout")) - if (!$util.isInteger(message.action_timeout) && !(message.action_timeout && $util.isInteger(message.action_timeout.low) && $util.isInteger(message.action_timeout.high))) - return "action_timeout: integer|Long expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.recursive != null && message.hasOwnProperty("recursive")) + if (typeof message.recursive !== "boolean") + return "recursive: boolean expected"; return null; }; /** - * Creates an ExecuteVtctlCommandRequest 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 vtctldata.ExecuteVtctlCommandRequest + * @memberof vtctldata.DeleteKeyspaceRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest + * @returns {vtctldata.DeleteKeyspaceRequest} DeleteKeyspaceRequest */ - ExecuteVtctlCommandRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ExecuteVtctlCommandRequest) + DeleteKeyspaceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.DeleteKeyspaceRequest) return object; - var message = new $root.vtctldata.ExecuteVtctlCommandRequest(); - if (object.args) { - if (!Array.isArray(object.args)) - throw TypeError(".vtctldata.ExecuteVtctlCommandRequest.args: array expected"); - message.args = []; - for (var i = 0; i < object.args.length; ++i) - message.args[i] = String(object.args[i]); - } - if (object.action_timeout != null) - if ($util.Long) - (message.action_timeout = $util.Long.fromValue(object.action_timeout)).unsigned = false; - else if (typeof object.action_timeout === "string") - message.action_timeout = parseInt(object.action_timeout, 10); - else if (typeof object.action_timeout === "number") - message.action_timeout = object.action_timeout; - else if (typeof object.action_timeout === "object") - message.action_timeout = new $util.LongBits(object.action_timeout.low >>> 0, object.action_timeout.high >>> 0).toNumber(); + var message = new $root.vtctldata.DeleteKeyspaceRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.recursive != null) + message.recursive = Boolean(object.recursive); return message; }; /** - * Creates a plain object from an ExecuteVtctlCommandRequest 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 vtctldata.ExecuteVtctlCommandRequest + * @memberof vtctldata.DeleteKeyspaceRequest * @static - * @param {vtctldata.ExecuteVtctlCommandRequest} message ExecuteVtctlCommandRequest + * @param {vtctldata.DeleteKeyspaceRequest} message DeleteKeyspaceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteVtctlCommandRequest.toObject = function toObject(message, options) { + DeleteKeyspaceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.args = []; - if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.action_timeout = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.action_timeout = options.longs === String ? "0" : 0; - if (message.args && message.args.length) { - object.args = []; - for (var j = 0; j < message.args.length; ++j) - object.args[j] = message.args[j]; + if (options.defaults) { + object.keyspace = ""; + object.recursive = false; } - if (message.action_timeout != null && message.hasOwnProperty("action_timeout")) - if (typeof message.action_timeout === "number") - object.action_timeout = options.longs === String ? String(message.action_timeout) : message.action_timeout; - else - object.action_timeout = options.longs === String ? $util.Long.prototype.toString.call(message.action_timeout) : options.longs === Number ? new $util.LongBits(message.action_timeout.low >>> 0, message.action_timeout.high >>> 0).toNumber() : message.action_timeout; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.recursive != null && message.hasOwnProperty("recursive")) + object.recursive = message.recursive; return object; }; /** - * Converts this ExecuteVtctlCommandRequest to JSON. + * Converts this DeleteKeyspaceRequest to JSON. * @function toJSON - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vtctldata.DeleteKeyspaceRequest * @instance * @returns {Object.} JSON object */ - ExecuteVtctlCommandRequest.prototype.toJSON = function toJSON() { + DeleteKeyspaceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExecuteVtctlCommandRequest; + return DeleteKeyspaceRequest; })(); - vtctldata.ExecuteVtctlCommandResponse = (function() { + vtctldata.DeleteKeyspaceResponse = (function() { /** - * Properties of an ExecuteVtctlCommandResponse. + * Properties of a DeleteKeyspaceResponse. * @memberof vtctldata - * @interface IExecuteVtctlCommandResponse - * @property {logutil.IEvent|null} [event] ExecuteVtctlCommandResponse event + * @interface IDeleteKeyspaceResponse */ /** - * Constructs a new ExecuteVtctlCommandResponse. + * Constructs a new DeleteKeyspaceResponse. * @memberof vtctldata - * @classdesc Represents an ExecuteVtctlCommandResponse. - * @implements IExecuteVtctlCommandResponse + * @classdesc Represents a DeleteKeyspaceResponse. + * @implements IDeleteKeyspaceResponse * @constructor - * @param {vtctldata.IExecuteVtctlCommandResponse=} [properties] Properties to set + * @param {vtctldata.IDeleteKeyspaceResponse=} [properties] Properties to set */ - function ExecuteVtctlCommandResponse(properties) { + function DeleteKeyspaceResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -47497,76 +50661,63 @@ $root.vtctldata = (function() { } /** - * ExecuteVtctlCommandResponse event. - * @member {logutil.IEvent|null|undefined} event - * @memberof vtctldata.ExecuteVtctlCommandResponse - * @instance - */ - ExecuteVtctlCommandResponse.prototype.event = null; - - /** - * Creates a new ExecuteVtctlCommandResponse instance using the specified properties. + * Creates a new DeleteKeyspaceResponse instance using the specified properties. * @function create - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vtctldata.DeleteKeyspaceResponse * @static - * @param {vtctldata.IExecuteVtctlCommandResponse=} [properties] Properties to set - * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse instance + * @param {vtctldata.IDeleteKeyspaceResponse=} [properties] Properties to set + * @returns {vtctldata.DeleteKeyspaceResponse} DeleteKeyspaceResponse instance */ - ExecuteVtctlCommandResponse.create = function create(properties) { - return new ExecuteVtctlCommandResponse(properties); + DeleteKeyspaceResponse.create = function create(properties) { + return new DeleteKeyspaceResponse(properties); }; /** - * Encodes the specified ExecuteVtctlCommandResponse message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. + * Encodes the specified DeleteKeyspaceResponse message. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vtctldata.DeleteKeyspaceResponse * @static - * @param {vtctldata.IExecuteVtctlCommandResponse} message ExecuteVtctlCommandResponse message or plain object to encode + * @param {vtctldata.IDeleteKeyspaceResponse} message DeleteKeyspaceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteVtctlCommandResponse.encode = function encode(message, writer) { + DeleteKeyspaceResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.event != null && Object.hasOwnProperty.call(message, "event")) - $root.logutil.Event.encode(message.event, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExecuteVtctlCommandResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. + * Encodes the specified DeleteKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vtctldata.DeleteKeyspaceResponse * @static - * @param {vtctldata.IExecuteVtctlCommandResponse} message ExecuteVtctlCommandResponse message or plain object to encode + * @param {vtctldata.IDeleteKeyspaceResponse} message DeleteKeyspaceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteVtctlCommandResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer. + * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vtctldata.DeleteKeyspaceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse + * @returns {vtctldata.DeleteKeyspaceResponse} DeleteKeyspaceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteVtctlCommandResponse.decode = function decode(reader, length) { + DeleteKeyspaceResponse.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.vtctldata.ExecuteVtctlCommandResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteKeyspaceResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.event = $root.logutil.Event.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -47576,114 +50727,97 @@ $root.vtctldata = (function() { }; /** - * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vtctldata.DeleteKeyspaceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse + * @returns {vtctldata.DeleteKeyspaceResponse} DeleteKeyspaceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteVtctlCommandResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteVtctlCommandResponse message. + * Verifies a DeleteKeyspaceResponse message. * @function verify - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vtctldata.DeleteKeyspaceResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteVtctlCommandResponse.verify = function verify(message) { + DeleteKeyspaceResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.event != null && message.hasOwnProperty("event")) { - var error = $root.logutil.Event.verify(message.event); - if (error) - return "event." + error; - } return null; }; /** - * Creates an ExecuteVtctlCommandResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteKeyspaceResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vtctldata.DeleteKeyspaceResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse + * @returns {vtctldata.DeleteKeyspaceResponse} DeleteKeyspaceResponse */ - ExecuteVtctlCommandResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ExecuteVtctlCommandResponse) + DeleteKeyspaceResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.DeleteKeyspaceResponse) return object; - var message = new $root.vtctldata.ExecuteVtctlCommandResponse(); - if (object.event != null) { - if (typeof object.event !== "object") - throw TypeError(".vtctldata.ExecuteVtctlCommandResponse.event: object expected"); - message.event = $root.logutil.Event.fromObject(object.event); - } - return message; + return new $root.vtctldata.DeleteKeyspaceResponse(); }; /** - * Creates a plain object from an ExecuteVtctlCommandResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteKeyspaceResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vtctldata.DeleteKeyspaceResponse * @static - * @param {vtctldata.ExecuteVtctlCommandResponse} message ExecuteVtctlCommandResponse + * @param {vtctldata.DeleteKeyspaceResponse} message DeleteKeyspaceResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteVtctlCommandResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.event = null; - if (message.event != null && message.hasOwnProperty("event")) - object.event = $root.logutil.Event.toObject(message.event, options); - return object; + DeleteKeyspaceResponse.toObject = function toObject() { + return {}; }; /** - * Converts this ExecuteVtctlCommandResponse to JSON. + * Converts this DeleteKeyspaceResponse to JSON. * @function toJSON - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vtctldata.DeleteKeyspaceResponse * @instance * @returns {Object.} JSON object */ - ExecuteVtctlCommandResponse.prototype.toJSON = function toJSON() { + DeleteKeyspaceResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExecuteVtctlCommandResponse; + return DeleteKeyspaceResponse; })(); - vtctldata.ChangeTabletTypeRequest = (function() { + vtctldata.DeleteShardsRequest = (function() { /** - * Properties of a ChangeTabletTypeRequest. + * Properties of a DeleteShardsRequest. * @memberof vtctldata - * @interface IChangeTabletTypeRequest - * @property {topodata.ITabletAlias|null} [tablet_alias] ChangeTabletTypeRequest tablet_alias - * @property {topodata.TabletType|null} [db_type] ChangeTabletTypeRequest db_type - * @property {boolean|null} [dry_run] ChangeTabletTypeRequest dry_run + * @interface IDeleteShardsRequest + * @property {Array.|null} [shards] DeleteShardsRequest shards + * @property {boolean|null} [recursive] DeleteShardsRequest recursive + * @property {boolean|null} [even_if_serving] DeleteShardsRequest even_if_serving */ /** - * Constructs a new ChangeTabletTypeRequest. + * Constructs a new DeleteShardsRequest. * @memberof vtctldata - * @classdesc Represents a ChangeTabletTypeRequest. - * @implements IChangeTabletTypeRequest + * @classdesc Represents a DeleteShardsRequest. + * @implements IDeleteShardsRequest * @constructor - * @param {vtctldata.IChangeTabletTypeRequest=} [properties] Properties to set + * @param {vtctldata.IDeleteShardsRequest=} [properties] Properties to set */ - function ChangeTabletTypeRequest(properties) { + function DeleteShardsRequest(properties) { + this.shards = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -47691,101 +50825,104 @@ $root.vtctldata = (function() { } /** - * ChangeTabletTypeRequest tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.ChangeTabletTypeRequest + * DeleteShardsRequest shards. + * @member {Array.} shards + * @memberof vtctldata.DeleteShardsRequest * @instance */ - ChangeTabletTypeRequest.prototype.tablet_alias = null; + DeleteShardsRequest.prototype.shards = $util.emptyArray; /** - * ChangeTabletTypeRequest db_type. - * @member {topodata.TabletType} db_type - * @memberof vtctldata.ChangeTabletTypeRequest + * DeleteShardsRequest recursive. + * @member {boolean} recursive + * @memberof vtctldata.DeleteShardsRequest * @instance */ - ChangeTabletTypeRequest.prototype.db_type = 0; + DeleteShardsRequest.prototype.recursive = false; /** - * ChangeTabletTypeRequest dry_run. - * @member {boolean} dry_run - * @memberof vtctldata.ChangeTabletTypeRequest + * DeleteShardsRequest even_if_serving. + * @member {boolean} even_if_serving + * @memberof vtctldata.DeleteShardsRequest * @instance */ - ChangeTabletTypeRequest.prototype.dry_run = false; + DeleteShardsRequest.prototype.even_if_serving = false; /** - * Creates a new ChangeTabletTypeRequest instance using the specified properties. + * Creates a new DeleteShardsRequest instance using the specified properties. * @function create - * @memberof vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.DeleteShardsRequest * @static - * @param {vtctldata.IChangeTabletTypeRequest=} [properties] Properties to set - * @returns {vtctldata.ChangeTabletTypeRequest} ChangeTabletTypeRequest instance + * @param {vtctldata.IDeleteShardsRequest=} [properties] Properties to set + * @returns {vtctldata.DeleteShardsRequest} DeleteShardsRequest instance */ - ChangeTabletTypeRequest.create = function create(properties) { - return new ChangeTabletTypeRequest(properties); + DeleteShardsRequest.create = function create(properties) { + return new DeleteShardsRequest(properties); }; /** - * Encodes the specified ChangeTabletTypeRequest message. Does not implicitly {@link vtctldata.ChangeTabletTypeRequest.verify|verify} messages. + * Encodes the specified DeleteShardsRequest message. Does not implicitly {@link vtctldata.DeleteShardsRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.DeleteShardsRequest * @static - * @param {vtctldata.IChangeTabletTypeRequest} message ChangeTabletTypeRequest message or plain object to encode + * @param {vtctldata.IDeleteShardsRequest} message DeleteShardsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTabletTypeRequest.encode = function encode(message, writer) { + DeleteShardsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) - $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.db_type != null && Object.hasOwnProperty.call(message, "db_type")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.db_type); - if (message.dry_run != null && Object.hasOwnProperty.call(message, "dry_run")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.dry_run); + if (message.shards != null && message.shards.length) + for (var i = 0; i < message.shards.length; ++i) + $root.vtctldata.Shard.encode(message.shards[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.recursive != null && Object.hasOwnProperty.call(message, "recursive")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.recursive); + if (message.even_if_serving != null && Object.hasOwnProperty.call(message, "even_if_serving")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.even_if_serving); return writer; }; /** - * Encodes the specified ChangeTabletTypeRequest message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTypeRequest.verify|verify} messages. + * Encodes the specified DeleteShardsRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteShardsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.DeleteShardsRequest * @static - * @param {vtctldata.IChangeTabletTypeRequest} message ChangeTabletTypeRequest message or plain object to encode + * @param {vtctldata.IDeleteShardsRequest} message DeleteShardsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTabletTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteShardsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer. + * Decodes a DeleteShardsRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.DeleteShardsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ChangeTabletTypeRequest} ChangeTabletTypeRequest + * @returns {vtctldata.DeleteShardsRequest} DeleteShardsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeTabletTypeRequest.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.vtctldata.ChangeTabletTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteShardsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + if (!(message.shards && message.shards.length)) + message.shards = []; + message.shards.push($root.vtctldata.Shard.decode(reader, reader.uint32())); break; case 2: - message.db_type = reader.int32(); + message.recursive = reader.bool(); break; - case 3: - message.dry_run = reader.bool(); + case 4: + message.even_if_serving = reader.bool(); break; default: reader.skipType(tag & 7); @@ -47796,184 +50933,141 @@ $root.vtctldata = (function() { }; /** - * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteShardsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.DeleteShardsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ChangeTabletTypeRequest} ChangeTabletTypeRequest + * @returns {vtctldata.DeleteShardsRequest} DeleteShardsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeTabletTypeRequest.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 ChangeTabletTypeRequest message. + * Verifies a DeleteShardsRequest message. * @function verify - * @memberof vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.DeleteShardsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeTabletTypeRequest.verify = function verify(message) { + DeleteShardsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - var error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; - } - if (message.db_type != null && message.hasOwnProperty("db_type")) - switch (message.db_type) { - default: - return "db_type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - break; + if (message.shards != null && message.hasOwnProperty("shards")) { + if (!Array.isArray(message.shards)) + return "shards: array expected"; + for (var i = 0; i < message.shards.length; ++i) { + var error = $root.vtctldata.Shard.verify(message.shards[i]); + if (error) + return "shards." + error; } - if (message.dry_run != null && message.hasOwnProperty("dry_run")) - if (typeof message.dry_run !== "boolean") - return "dry_run: boolean expected"; + } + if (message.recursive != null && message.hasOwnProperty("recursive")) + if (typeof message.recursive !== "boolean") + return "recursive: boolean expected"; + if (message.even_if_serving != null && message.hasOwnProperty("even_if_serving")) + if (typeof message.even_if_serving !== "boolean") + return "even_if_serving: boolean expected"; return null; }; /** - * Creates a ChangeTabletTypeRequest 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 vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.DeleteShardsRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ChangeTabletTypeRequest} ChangeTabletTypeRequest + * @returns {vtctldata.DeleteShardsRequest} DeleteShardsRequest */ - ChangeTabletTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ChangeTabletTypeRequest) + DeleteShardsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.DeleteShardsRequest) return object; - var message = new $root.vtctldata.ChangeTabletTypeRequest(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.ChangeTabletTypeRequest.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); - } - switch (object.db_type) { - case "UNKNOWN": - case 0: - message.db_type = 0; - break; - case "MASTER": - case 1: - message.db_type = 1; - break; - case "REPLICA": - case 2: - message.db_type = 2; - break; - case "RDONLY": - case 3: - message.db_type = 3; - break; - case "BATCH": - case 3: - message.db_type = 3; - break; - case "SPARE": - case 4: - message.db_type = 4; - break; - case "EXPERIMENTAL": - case 5: - message.db_type = 5; - break; - case "BACKUP": - case 6: - message.db_type = 6; - break; - case "RESTORE": - case 7: - message.db_type = 7; - break; - case "DRAINED": - case 8: - message.db_type = 8; - break; + var message = new $root.vtctldata.DeleteShardsRequest(); + if (object.shards) { + if (!Array.isArray(object.shards)) + throw TypeError(".vtctldata.DeleteShardsRequest.shards: array expected"); + message.shards = []; + for (var i = 0; i < object.shards.length; ++i) { + if (typeof object.shards[i] !== "object") + throw TypeError(".vtctldata.DeleteShardsRequest.shards: object expected"); + message.shards[i] = $root.vtctldata.Shard.fromObject(object.shards[i]); + } } - if (object.dry_run != null) - message.dry_run = Boolean(object.dry_run); + if (object.recursive != null) + message.recursive = Boolean(object.recursive); + if (object.even_if_serving != null) + message.even_if_serving = Boolean(object.even_if_serving); return message; }; /** - * Creates a plain object from a ChangeTabletTypeRequest 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 vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.DeleteShardsRequest * @static - * @param {vtctldata.ChangeTabletTypeRequest} message ChangeTabletTypeRequest + * @param {vtctldata.DeleteShardsRequest} message DeleteShardsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeTabletTypeRequest.toObject = function toObject(message, options) { + DeleteShardsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.shards = []; if (options.defaults) { - object.tablet_alias = null; - object.db_type = options.enums === String ? "UNKNOWN" : 0; - object.dry_run = false; + object.recursive = false; + object.even_if_serving = false; } - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - if (message.db_type != null && message.hasOwnProperty("db_type")) - object.db_type = options.enums === String ? $root.topodata.TabletType[message.db_type] : message.db_type; - if (message.dry_run != null && message.hasOwnProperty("dry_run")) - object.dry_run = message.dry_run; + if (message.shards && message.shards.length) { + object.shards = []; + for (var j = 0; j < message.shards.length; ++j) + object.shards[j] = $root.vtctldata.Shard.toObject(message.shards[j], options); + } + if (message.recursive != null && message.hasOwnProperty("recursive")) + object.recursive = message.recursive; + if (message.even_if_serving != null && message.hasOwnProperty("even_if_serving")) + object.even_if_serving = message.even_if_serving; return object; }; /** - * Converts this ChangeTabletTypeRequest to JSON. + * Converts this DeleteShardsRequest to JSON. * @function toJSON - * @memberof vtctldata.ChangeTabletTypeRequest + * @memberof vtctldata.DeleteShardsRequest * @instance * @returns {Object.} JSON object */ - ChangeTabletTypeRequest.prototype.toJSON = function toJSON() { + DeleteShardsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ChangeTabletTypeRequest; + return DeleteShardsRequest; })(); - vtctldata.ChangeTabletTypeResponse = (function() { + vtctldata.DeleteShardsResponse = (function() { /** - * Properties of a ChangeTabletTypeResponse. + * Properties of a DeleteShardsResponse. * @memberof vtctldata - * @interface IChangeTabletTypeResponse - * @property {topodata.ITablet|null} [before_tablet] ChangeTabletTypeResponse before_tablet - * @property {topodata.ITablet|null} [after_tablet] ChangeTabletTypeResponse after_tablet - * @property {boolean|null} [was_dry_run] ChangeTabletTypeResponse was_dry_run + * @interface IDeleteShardsResponse */ /** - * Constructs a new ChangeTabletTypeResponse. + * Constructs a new DeleteShardsResponse. * @memberof vtctldata - * @classdesc Represents a ChangeTabletTypeResponse. - * @implements IChangeTabletTypeResponse + * @classdesc Represents a DeleteShardsResponse. + * @implements IDeleteShardsResponse * @constructor - * @param {vtctldata.IChangeTabletTypeResponse=} [properties] Properties to set + * @param {vtctldata.IDeleteShardsResponse=} [properties] Properties to set */ - function ChangeTabletTypeResponse(properties) { + function DeleteShardsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -47981,102 +51075,63 @@ $root.vtctldata = (function() { } /** - * ChangeTabletTypeResponse before_tablet. - * @member {topodata.ITablet|null|undefined} before_tablet - * @memberof vtctldata.ChangeTabletTypeResponse - * @instance - */ - ChangeTabletTypeResponse.prototype.before_tablet = null; - - /** - * ChangeTabletTypeResponse after_tablet. - * @member {topodata.ITablet|null|undefined} after_tablet - * @memberof vtctldata.ChangeTabletTypeResponse - * @instance - */ - ChangeTabletTypeResponse.prototype.after_tablet = null; - - /** - * ChangeTabletTypeResponse was_dry_run. - * @member {boolean} was_dry_run - * @memberof vtctldata.ChangeTabletTypeResponse - * @instance - */ - ChangeTabletTypeResponse.prototype.was_dry_run = false; - - /** - * Creates a new ChangeTabletTypeResponse instance using the specified properties. + * Creates a new DeleteShardsResponse instance using the specified properties. * @function create - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.DeleteShardsResponse * @static - * @param {vtctldata.IChangeTabletTypeResponse=} [properties] Properties to set - * @returns {vtctldata.ChangeTabletTypeResponse} ChangeTabletTypeResponse instance + * @param {vtctldata.IDeleteShardsResponse=} [properties] Properties to set + * @returns {vtctldata.DeleteShardsResponse} DeleteShardsResponse instance */ - ChangeTabletTypeResponse.create = function create(properties) { - return new ChangeTabletTypeResponse(properties); + DeleteShardsResponse.create = function create(properties) { + return new DeleteShardsResponse(properties); }; /** - * Encodes the specified ChangeTabletTypeResponse message. Does not implicitly {@link vtctldata.ChangeTabletTypeResponse.verify|verify} messages. + * Encodes the specified DeleteShardsResponse message. Does not implicitly {@link vtctldata.DeleteShardsResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.DeleteShardsResponse * @static - * @param {vtctldata.IChangeTabletTypeResponse} message ChangeTabletTypeResponse message or plain object to encode + * @param {vtctldata.IDeleteShardsResponse} message DeleteShardsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTabletTypeResponse.encode = function encode(message, writer) { + DeleteShardsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.before_tablet != null && Object.hasOwnProperty.call(message, "before_tablet")) - $root.topodata.Tablet.encode(message.before_tablet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.after_tablet != null && Object.hasOwnProperty.call(message, "after_tablet")) - $root.topodata.Tablet.encode(message.after_tablet, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.was_dry_run != null && Object.hasOwnProperty.call(message, "was_dry_run")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.was_dry_run); return writer; }; /** - * Encodes the specified ChangeTabletTypeResponse message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTypeResponse.verify|verify} messages. + * Encodes the specified DeleteShardsResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteShardsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.DeleteShardsResponse * @static - * @param {vtctldata.IChangeTabletTypeResponse} message ChangeTabletTypeResponse message or plain object to encode + * @param {vtctldata.IDeleteShardsResponse} message DeleteShardsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTabletTypeResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteShardsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChangeTabletTypeResponse message from the specified reader or buffer. + * Decodes a DeleteShardsResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.DeleteShardsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ChangeTabletTypeResponse} ChangeTabletTypeResponse + * @returns {vtctldata.DeleteShardsResponse} DeleteShardsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeTabletTypeResponse.decode = function decode(reader, length) { + DeleteShardsResponse.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.vtctldata.ChangeTabletTypeResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteShardsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.before_tablet = $root.topodata.Tablet.decode(reader, reader.uint32()); - break; - case 2: - message.after_tablet = $root.topodata.Tablet.decode(reader, reader.uint32()); - break; - case 3: - message.was_dry_run = reader.bool(); - break; default: reader.skipType(tag & 7); break; @@ -48086,143 +51141,96 @@ $root.vtctldata = (function() { }; /** - * Decodes a ChangeTabletTypeResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteShardsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.DeleteShardsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ChangeTabletTypeResponse} ChangeTabletTypeResponse + * @returns {vtctldata.DeleteShardsResponse} DeleteShardsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeTabletTypeResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteShardsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChangeTabletTypeResponse message. + * Verifies a DeleteShardsResponse message. * @function verify - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.DeleteShardsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeTabletTypeResponse.verify = function verify(message) { + DeleteShardsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.before_tablet != null && message.hasOwnProperty("before_tablet")) { - var error = $root.topodata.Tablet.verify(message.before_tablet); - if (error) - return "before_tablet." + error; - } - if (message.after_tablet != null && message.hasOwnProperty("after_tablet")) { - var error = $root.topodata.Tablet.verify(message.after_tablet); - if (error) - return "after_tablet." + error; - } - if (message.was_dry_run != null && message.hasOwnProperty("was_dry_run")) - if (typeof message.was_dry_run !== "boolean") - return "was_dry_run: boolean expected"; return null; }; /** - * Creates a ChangeTabletTypeResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteShardsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.DeleteShardsResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ChangeTabletTypeResponse} ChangeTabletTypeResponse + * @returns {vtctldata.DeleteShardsResponse} DeleteShardsResponse */ - ChangeTabletTypeResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ChangeTabletTypeResponse) + DeleteShardsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.DeleteShardsResponse) return object; - var message = new $root.vtctldata.ChangeTabletTypeResponse(); - if (object.before_tablet != null) { - if (typeof object.before_tablet !== "object") - throw TypeError(".vtctldata.ChangeTabletTypeResponse.before_tablet: object expected"); - message.before_tablet = $root.topodata.Tablet.fromObject(object.before_tablet); - } - if (object.after_tablet != null) { - if (typeof object.after_tablet !== "object") - throw TypeError(".vtctldata.ChangeTabletTypeResponse.after_tablet: object expected"); - message.after_tablet = $root.topodata.Tablet.fromObject(object.after_tablet); - } - if (object.was_dry_run != null) - message.was_dry_run = Boolean(object.was_dry_run); - return message; + return new $root.vtctldata.DeleteShardsResponse(); }; /** - * Creates a plain object from a ChangeTabletTypeResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteShardsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.DeleteShardsResponse * @static - * @param {vtctldata.ChangeTabletTypeResponse} message ChangeTabletTypeResponse + * @param {vtctldata.DeleteShardsResponse} message DeleteShardsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeTabletTypeResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.before_tablet = null; - object.after_tablet = null; - object.was_dry_run = false; - } - if (message.before_tablet != null && message.hasOwnProperty("before_tablet")) - object.before_tablet = $root.topodata.Tablet.toObject(message.before_tablet, options); - if (message.after_tablet != null && message.hasOwnProperty("after_tablet")) - object.after_tablet = $root.topodata.Tablet.toObject(message.after_tablet, options); - if (message.was_dry_run != null && message.hasOwnProperty("was_dry_run")) - object.was_dry_run = message.was_dry_run; - return object; + DeleteShardsResponse.toObject = function toObject() { + return {}; }; /** - * Converts this ChangeTabletTypeResponse to JSON. + * Converts this DeleteShardsResponse to JSON. * @function toJSON - * @memberof vtctldata.ChangeTabletTypeResponse + * @memberof vtctldata.DeleteShardsResponse * @instance * @returns {Object.} JSON object */ - ChangeTabletTypeResponse.prototype.toJSON = function toJSON() { + DeleteShardsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ChangeTabletTypeResponse; + return DeleteShardsResponse; })(); - vtctldata.CreateKeyspaceRequest = (function() { + vtctldata.DeleteTabletsRequest = (function() { /** - * Properties of a CreateKeyspaceRequest. + * Properties of a DeleteTabletsRequest. * @memberof vtctldata - * @interface ICreateKeyspaceRequest - * @property {string|null} [name] CreateKeyspaceRequest name - * @property {boolean|null} [force] CreateKeyspaceRequest force - * @property {boolean|null} [allow_empty_v_schema] CreateKeyspaceRequest allow_empty_v_schema - * @property {string|null} [sharding_column_name] CreateKeyspaceRequest sharding_column_name - * @property {topodata.KeyspaceIdType|null} [sharding_column_type] CreateKeyspaceRequest sharding_column_type - * @property {Array.|null} [served_froms] CreateKeyspaceRequest served_froms - * @property {topodata.KeyspaceType|null} [type] CreateKeyspaceRequest type - * @property {string|null} [base_keyspace] CreateKeyspaceRequest base_keyspace - * @property {vttime.ITime|null} [snapshot_time] CreateKeyspaceRequest snapshot_time + * @interface IDeleteTabletsRequest + * @property {Array.|null} [tablet_aliases] DeleteTabletsRequest tablet_aliases + * @property {boolean|null} [allow_primary] DeleteTabletsRequest allow_primary */ /** - * Constructs a new CreateKeyspaceRequest. + * Constructs a new DeleteTabletsRequest. * @memberof vtctldata - * @classdesc Represents a CreateKeyspaceRequest. - * @implements ICreateKeyspaceRequest + * @classdesc Represents a DeleteTabletsRequest. + * @implements IDeleteTabletsRequest * @constructor - * @param {vtctldata.ICreateKeyspaceRequest=} [properties] Properties to set + * @param {vtctldata.IDeleteTabletsRequest=} [properties] Properties to set */ - function CreateKeyspaceRequest(properties) { - this.served_froms = []; + function DeleteTabletsRequest(properties) { + this.tablet_aliases = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -48230,182 +51238,91 @@ $root.vtctldata = (function() { } /** - * CreateKeyspaceRequest name. - * @member {string} name - * @memberof vtctldata.CreateKeyspaceRequest - * @instance - */ - CreateKeyspaceRequest.prototype.name = ""; - - /** - * CreateKeyspaceRequest force. - * @member {boolean} force - * @memberof vtctldata.CreateKeyspaceRequest - * @instance - */ - CreateKeyspaceRequest.prototype.force = false; - - /** - * CreateKeyspaceRequest allow_empty_v_schema. - * @member {boolean} allow_empty_v_schema - * @memberof vtctldata.CreateKeyspaceRequest - * @instance - */ - CreateKeyspaceRequest.prototype.allow_empty_v_schema = false; - - /** - * CreateKeyspaceRequest sharding_column_name. - * @member {string} sharding_column_name - * @memberof vtctldata.CreateKeyspaceRequest - * @instance - */ - CreateKeyspaceRequest.prototype.sharding_column_name = ""; - - /** - * CreateKeyspaceRequest sharding_column_type. - * @member {topodata.KeyspaceIdType} sharding_column_type - * @memberof vtctldata.CreateKeyspaceRequest - * @instance - */ - CreateKeyspaceRequest.prototype.sharding_column_type = 0; - - /** - * CreateKeyspaceRequest served_froms. - * @member {Array.} served_froms - * @memberof vtctldata.CreateKeyspaceRequest - * @instance - */ - CreateKeyspaceRequest.prototype.served_froms = $util.emptyArray; - - /** - * CreateKeyspaceRequest type. - * @member {topodata.KeyspaceType} type - * @memberof vtctldata.CreateKeyspaceRequest - * @instance - */ - CreateKeyspaceRequest.prototype.type = 0; - - /** - * CreateKeyspaceRequest base_keyspace. - * @member {string} base_keyspace - * @memberof vtctldata.CreateKeyspaceRequest + * DeleteTabletsRequest tablet_aliases. + * @member {Array.} tablet_aliases + * @memberof vtctldata.DeleteTabletsRequest * @instance */ - CreateKeyspaceRequest.prototype.base_keyspace = ""; + DeleteTabletsRequest.prototype.tablet_aliases = $util.emptyArray; /** - * CreateKeyspaceRequest snapshot_time. - * @member {vttime.ITime|null|undefined} snapshot_time - * @memberof vtctldata.CreateKeyspaceRequest + * DeleteTabletsRequest allow_primary. + * @member {boolean} allow_primary + * @memberof vtctldata.DeleteTabletsRequest * @instance */ - CreateKeyspaceRequest.prototype.snapshot_time = null; + DeleteTabletsRequest.prototype.allow_primary = false; /** - * Creates a new CreateKeyspaceRequest instance using the specified properties. + * Creates a new DeleteTabletsRequest instance using the specified properties. * @function create - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.DeleteTabletsRequest * @static - * @param {vtctldata.ICreateKeyspaceRequest=} [properties] Properties to set - * @returns {vtctldata.CreateKeyspaceRequest} CreateKeyspaceRequest instance + * @param {vtctldata.IDeleteTabletsRequest=} [properties] Properties to set + * @returns {vtctldata.DeleteTabletsRequest} DeleteTabletsRequest instance */ - CreateKeyspaceRequest.create = function create(properties) { - return new CreateKeyspaceRequest(properties); + DeleteTabletsRequest.create = function create(properties) { + return new DeleteTabletsRequest(properties); }; /** - * Encodes the specified CreateKeyspaceRequest message. Does not implicitly {@link vtctldata.CreateKeyspaceRequest.verify|verify} messages. + * Encodes the specified DeleteTabletsRequest message. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.DeleteTabletsRequest * @static - * @param {vtctldata.ICreateKeyspaceRequest} message CreateKeyspaceRequest message or plain object to encode + * @param {vtctldata.IDeleteTabletsRequest} message DeleteTabletsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateKeyspaceRequest.encode = function encode(message, writer) { + DeleteTabletsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); - if (message.allow_empty_v_schema != null && Object.hasOwnProperty.call(message, "allow_empty_v_schema")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allow_empty_v_schema); - if (message.sharding_column_name != null && Object.hasOwnProperty.call(message, "sharding_column_name")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.sharding_column_name); - if (message.sharding_column_type != null && Object.hasOwnProperty.call(message, "sharding_column_type")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.sharding_column_type); - if (message.served_froms != null && message.served_froms.length) - for (var i = 0; i < message.served_froms.length; ++i) - $root.topodata.Keyspace.ServedFrom.encode(message.served_froms[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.type); - if (message.base_keyspace != null && Object.hasOwnProperty.call(message, "base_keyspace")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.base_keyspace); - if (message.snapshot_time != null && Object.hasOwnProperty.call(message, "snapshot_time")) - $root.vttime.Time.encode(message.snapshot_time, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.tablet_aliases != null && message.tablet_aliases.length) + for (var i = 0; i < message.tablet_aliases.length; ++i) + $root.topodata.TabletAlias.encode(message.tablet_aliases[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.allow_primary != null && Object.hasOwnProperty.call(message, "allow_primary")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allow_primary); return writer; }; /** - * Encodes the specified CreateKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.CreateKeyspaceRequest.verify|verify} messages. + * Encodes the specified DeleteTabletsRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.DeleteTabletsRequest * @static - * @param {vtctldata.ICreateKeyspaceRequest} message CreateKeyspaceRequest message or plain object to encode + * @param {vtctldata.IDeleteTabletsRequest} message DeleteTabletsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteTabletsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateKeyspaceRequest message from the specified reader or buffer. + * Decodes a DeleteTabletsRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.DeleteTabletsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.CreateKeyspaceRequest} CreateKeyspaceRequest + * @returns {vtctldata.DeleteTabletsRequest} DeleteTabletsRequest * @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) { + DeleteTabletsRequest.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.vtctldata.CreateKeyspaceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteTabletsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.tablet_aliases && message.tablet_aliases.length)) + message.tablet_aliases = []; + message.tablet_aliases.push($root.topodata.TabletAlias.decode(reader, reader.uint32())); break; case 2: - message.force = reader.bool(); - break; - case 3: - message.allow_empty_v_schema = reader.bool(); - break; - case 4: - message.sharding_column_name = reader.string(); - break; - case 5: - message.sharding_column_type = reader.int32(); - break; - case 6: - if (!(message.served_froms && message.served_froms.length)) - message.served_froms = []; - message.served_froms.push($root.topodata.Keyspace.ServedFrom.decode(reader, reader.uint32())); - break; - case 7: - message.type = reader.int32(); - break; - case 8: - message.base_keyspace = reader.string(); - break; - case 9: - message.snapshot_time = $root.vttime.Time.decode(reader, reader.uint32()); + message.allow_primary = reader.bool(); break; default: reader.skipType(tag & 7); @@ -48416,226 +51333,132 @@ $root.vtctldata = (function() { }; /** - * Decodes a CreateKeyspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteTabletsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.DeleteTabletsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.CreateKeyspaceRequest} CreateKeyspaceRequest + * @returns {vtctldata.DeleteTabletsRequest} DeleteTabletsRequest * @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) { + DeleteTabletsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateKeyspaceRequest message. + * Verifies a DeleteTabletsRequest message. * @function verify - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.DeleteTabletsRequest * @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) { + DeleteTabletsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; - if (message.allow_empty_v_schema != null && message.hasOwnProperty("allow_empty_v_schema")) - if (typeof message.allow_empty_v_schema !== "boolean") - return "allow_empty_v_schema: boolean expected"; - if (message.sharding_column_name != null && message.hasOwnProperty("sharding_column_name")) - if (!$util.isString(message.sharding_column_name)) - return "sharding_column_name: string expected"; - if (message.sharding_column_type != null && message.hasOwnProperty("sharding_column_type")) - switch (message.sharding_column_type) { - default: - return "sharding_column_type: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.served_froms != null && message.hasOwnProperty("served_froms")) { - if (!Array.isArray(message.served_froms)) - return "served_froms: array expected"; - for (var i = 0; i < message.served_froms.length; ++i) { - var error = $root.topodata.Keyspace.ServedFrom.verify(message.served_froms[i]); + if (message.tablet_aliases != null && message.hasOwnProperty("tablet_aliases")) { + if (!Array.isArray(message.tablet_aliases)) + return "tablet_aliases: array expected"; + for (var i = 0; i < message.tablet_aliases.length; ++i) { + var error = $root.topodata.TabletAlias.verify(message.tablet_aliases[i]); if (error) - return "served_froms." + error; - } - } - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - break; + return "tablet_aliases." + error; } - if (message.base_keyspace != null && message.hasOwnProperty("base_keyspace")) - if (!$util.isString(message.base_keyspace)) - return "base_keyspace: string expected"; - if (message.snapshot_time != null && message.hasOwnProperty("snapshot_time")) { - var error = $root.vttime.Time.verify(message.snapshot_time); - if (error) - return "snapshot_time." + error; } + if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) + if (typeof message.allow_primary !== "boolean") + return "allow_primary: boolean expected"; return null; }; /** - * Creates a CreateKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteTabletsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.DeleteTabletsRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.CreateKeyspaceRequest} CreateKeyspaceRequest + * @returns {vtctldata.DeleteTabletsRequest} DeleteTabletsRequest */ - CreateKeyspaceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.CreateKeyspaceRequest) + DeleteTabletsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.DeleteTabletsRequest) return object; - var message = new $root.vtctldata.CreateKeyspaceRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.force != null) - message.force = Boolean(object.force); - if (object.allow_empty_v_schema != null) - message.allow_empty_v_schema = Boolean(object.allow_empty_v_schema); - if (object.sharding_column_name != null) - message.sharding_column_name = String(object.sharding_column_name); - switch (object.sharding_column_type) { - case "UNSET": - case 0: - message.sharding_column_type = 0; - break; - case "UINT64": - case 1: - message.sharding_column_type = 1; - break; - case "BYTES": - case 2: - message.sharding_column_type = 2; - break; - } - if (object.served_froms) { - if (!Array.isArray(object.served_froms)) - throw TypeError(".vtctldata.CreateKeyspaceRequest.served_froms: array expected"); - message.served_froms = []; - for (var i = 0; i < object.served_froms.length; ++i) { - if (typeof object.served_froms[i] !== "object") - throw TypeError(".vtctldata.CreateKeyspaceRequest.served_froms: object expected"); - message.served_froms[i] = $root.topodata.Keyspace.ServedFrom.fromObject(object.served_froms[i]); + var message = new $root.vtctldata.DeleteTabletsRequest(); + if (object.tablet_aliases) { + if (!Array.isArray(object.tablet_aliases)) + throw TypeError(".vtctldata.DeleteTabletsRequest.tablet_aliases: array expected"); + message.tablet_aliases = []; + for (var i = 0; i < object.tablet_aliases.length; ++i) { + if (typeof object.tablet_aliases[i] !== "object") + throw TypeError(".vtctldata.DeleteTabletsRequest.tablet_aliases: object expected"); + message.tablet_aliases[i] = $root.topodata.TabletAlias.fromObject(object.tablet_aliases[i]); } } - switch (object.type) { - case "NORMAL": - case 0: - message.type = 0; - break; - case "SNAPSHOT": - case 1: - message.type = 1; - break; - } - if (object.base_keyspace != null) - message.base_keyspace = String(object.base_keyspace); - if (object.snapshot_time != null) { - if (typeof object.snapshot_time !== "object") - throw TypeError(".vtctldata.CreateKeyspaceRequest.snapshot_time: object expected"); - message.snapshot_time = $root.vttime.Time.fromObject(object.snapshot_time); - } + if (object.allow_primary != null) + message.allow_primary = Boolean(object.allow_primary); return message; }; /** - * Creates a plain object from a CreateKeyspaceRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteTabletsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.DeleteTabletsRequest * @static - * @param {vtctldata.CreateKeyspaceRequest} message CreateKeyspaceRequest + * @param {vtctldata.DeleteTabletsRequest} message DeleteTabletsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateKeyspaceRequest.toObject = function toObject(message, options) { + DeleteTabletsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.served_froms = []; - if (options.defaults) { - object.name = ""; - object.force = false; - object.allow_empty_v_schema = false; - object.sharding_column_name = ""; - object.sharding_column_type = options.enums === String ? "UNSET" : 0; - object.type = options.enums === String ? "NORMAL" : 0; - object.base_keyspace = ""; - object.snapshot_time = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; - if (message.allow_empty_v_schema != null && message.hasOwnProperty("allow_empty_v_schema")) - object.allow_empty_v_schema = message.allow_empty_v_schema; - if (message.sharding_column_name != null && message.hasOwnProperty("sharding_column_name")) - object.sharding_column_name = message.sharding_column_name; - if (message.sharding_column_type != null && message.hasOwnProperty("sharding_column_type")) - object.sharding_column_type = options.enums === String ? $root.topodata.KeyspaceIdType[message.sharding_column_type] : message.sharding_column_type; - if (message.served_froms && message.served_froms.length) { - object.served_froms = []; - for (var j = 0; j < message.served_froms.length; ++j) - object.served_froms[j] = $root.topodata.Keyspace.ServedFrom.toObject(message.served_froms[j], options); + object.tablet_aliases = []; + if (options.defaults) + object.allow_primary = false; + if (message.tablet_aliases && message.tablet_aliases.length) { + object.tablet_aliases = []; + for (var j = 0; j < message.tablet_aliases.length; ++j) + object.tablet_aliases[j] = $root.topodata.TabletAlias.toObject(message.tablet_aliases[j], options); } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.topodata.KeyspaceType[message.type] : message.type; - if (message.base_keyspace != null && message.hasOwnProperty("base_keyspace")) - object.base_keyspace = message.base_keyspace; - if (message.snapshot_time != null && message.hasOwnProperty("snapshot_time")) - object.snapshot_time = $root.vttime.Time.toObject(message.snapshot_time, options); + if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) + object.allow_primary = message.allow_primary; return object; }; /** - * Converts this CreateKeyspaceRequest to JSON. + * Converts this DeleteTabletsRequest to JSON. * @function toJSON - * @memberof vtctldata.CreateKeyspaceRequest + * @memberof vtctldata.DeleteTabletsRequest * @instance * @returns {Object.} JSON object */ - CreateKeyspaceRequest.prototype.toJSON = function toJSON() { + DeleteTabletsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateKeyspaceRequest; + return DeleteTabletsRequest; })(); - vtctldata.CreateKeyspaceResponse = (function() { + vtctldata.DeleteTabletsResponse = (function() { /** - * Properties of a CreateKeyspaceResponse. + * Properties of a DeleteTabletsResponse. * @memberof vtctldata - * @interface ICreateKeyspaceResponse - * @property {vtctldata.IKeyspace|null} [keyspace] CreateKeyspaceResponse keyspace + * @interface IDeleteTabletsResponse */ /** - * Constructs a new CreateKeyspaceResponse. + * Constructs a new DeleteTabletsResponse. * @memberof vtctldata - * @classdesc Represents a CreateKeyspaceResponse. - * @implements ICreateKeyspaceResponse + * @classdesc Represents a DeleteTabletsResponse. + * @implements IDeleteTabletsResponse * @constructor - * @param {vtctldata.ICreateKeyspaceResponse=} [properties] Properties to set + * @param {vtctldata.IDeleteTabletsResponse=} [properties] Properties to set */ - function CreateKeyspaceResponse(properties) { + function DeleteTabletsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -48643,76 +51466,63 @@ $root.vtctldata = (function() { } /** - * CreateKeyspaceResponse keyspace. - * @member {vtctldata.IKeyspace|null|undefined} keyspace - * @memberof vtctldata.CreateKeyspaceResponse - * @instance - */ - CreateKeyspaceResponse.prototype.keyspace = null; - - /** - * Creates a new CreateKeyspaceResponse instance using the specified properties. + * Creates a new DeleteTabletsResponse instance using the specified properties. * @function create - * @memberof vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.DeleteTabletsResponse * @static - * @param {vtctldata.ICreateKeyspaceResponse=} [properties] Properties to set - * @returns {vtctldata.CreateKeyspaceResponse} CreateKeyspaceResponse instance + * @param {vtctldata.IDeleteTabletsResponse=} [properties] Properties to set + * @returns {vtctldata.DeleteTabletsResponse} DeleteTabletsResponse instance */ - CreateKeyspaceResponse.create = function create(properties) { - return new CreateKeyspaceResponse(properties); + DeleteTabletsResponse.create = function create(properties) { + return new DeleteTabletsResponse(properties); }; /** - * Encodes the specified CreateKeyspaceResponse message. Does not implicitly {@link vtctldata.CreateKeyspaceResponse.verify|verify} messages. + * Encodes the specified DeleteTabletsResponse message. Does not implicitly {@link vtctldata.DeleteTabletsResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.DeleteTabletsResponse * @static - * @param {vtctldata.ICreateKeyspaceResponse} message CreateKeyspaceResponse message or plain object to encode + * @param {vtctldata.IDeleteTabletsResponse} message DeleteTabletsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateKeyspaceResponse.encode = function encode(message, writer) { + DeleteTabletsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - $root.vtctldata.Keyspace.encode(message.keyspace, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.CreateKeyspaceResponse.verify|verify} messages. + * Encodes the specified DeleteTabletsResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteTabletsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.DeleteTabletsResponse * @static - * @param {vtctldata.ICreateKeyspaceResponse} message CreateKeyspaceResponse message or plain object to encode + * @param {vtctldata.IDeleteTabletsResponse} message DeleteTabletsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteTabletsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateKeyspaceResponse message from the specified reader or buffer. + * Decodes a DeleteTabletsResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.DeleteTabletsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.CreateKeyspaceResponse} CreateKeyspaceResponse + * @returns {vtctldata.DeleteTabletsResponse} DeleteTabletsResponse * @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) { + DeleteTabletsResponse.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.vtctldata.CreateKeyspaceResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.DeleteTabletsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.keyspace = $root.vtctldata.Keyspace.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -48722,115 +51532,99 @@ $root.vtctldata = (function() { }; /** - * Decodes a CreateKeyspaceResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteTabletsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.DeleteTabletsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.CreateKeyspaceResponse} CreateKeyspaceResponse + * @returns {vtctldata.DeleteTabletsResponse} DeleteTabletsResponse * @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) { + DeleteTabletsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateKeyspaceResponse message. + * Verifies a DeleteTabletsResponse message. * @function verify - * @memberof vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.DeleteTabletsResponse * @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) { + DeleteTabletsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) { - var error = $root.vtctldata.Keyspace.verify(message.keyspace); - if (error) - return "keyspace." + error; - } return null; }; /** - * Creates a CreateKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteTabletsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.DeleteTabletsResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.CreateKeyspaceResponse} CreateKeyspaceResponse + * @returns {vtctldata.DeleteTabletsResponse} DeleteTabletsResponse */ - CreateKeyspaceResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.CreateKeyspaceResponse) + DeleteTabletsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.DeleteTabletsResponse) return object; - var message = new $root.vtctldata.CreateKeyspaceResponse(); - if (object.keyspace != null) { - if (typeof object.keyspace !== "object") - throw TypeError(".vtctldata.CreateKeyspaceResponse.keyspace: object expected"); - message.keyspace = $root.vtctldata.Keyspace.fromObject(object.keyspace); - } - return message; + return new $root.vtctldata.DeleteTabletsResponse(); }; /** - * Creates a plain object from a CreateKeyspaceResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteTabletsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.DeleteTabletsResponse * @static - * @param {vtctldata.CreateKeyspaceResponse} message CreateKeyspaceResponse + * @param {vtctldata.DeleteTabletsResponse} message DeleteTabletsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateKeyspaceResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.keyspace = null; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = $root.vtctldata.Keyspace.toObject(message.keyspace, options); - return object; + DeleteTabletsResponse.toObject = function toObject() { + return {}; }; /** - * Converts this CreateKeyspaceResponse to JSON. + * Converts this DeleteTabletsResponse to JSON. * @function toJSON - * @memberof vtctldata.CreateKeyspaceResponse + * @memberof vtctldata.DeleteTabletsResponse * @instance * @returns {Object.} JSON object */ - CreateKeyspaceResponse.prototype.toJSON = function toJSON() { + DeleteTabletsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateKeyspaceResponse; + return DeleteTabletsResponse; })(); - vtctldata.CreateShardRequest = (function() { + vtctldata.EmergencyReparentShardRequest = (function() { /** - * Properties of a CreateShardRequest. + * Properties of an EmergencyReparentShardRequest. * @memberof vtctldata - * @interface ICreateShardRequest - * @property {string|null} [keyspace] CreateShardRequest keyspace - * @property {string|null} [shard_name] CreateShardRequest shard_name - * @property {boolean|null} [force] CreateShardRequest force - * @property {boolean|null} [include_parent] CreateShardRequest include_parent + * @interface IEmergencyReparentShardRequest + * @property {string|null} [keyspace] EmergencyReparentShardRequest keyspace + * @property {string|null} [shard] EmergencyReparentShardRequest shard + * @property {topodata.ITabletAlias|null} [new_primary] EmergencyReparentShardRequest new_primary + * @property {Array.|null} [ignore_replicas] EmergencyReparentShardRequest ignore_replicas + * @property {vttime.IDuration|null} [wait_replicas_timeout] EmergencyReparentShardRequest wait_replicas_timeout */ /** - * Constructs a new CreateShardRequest. + * Constructs a new EmergencyReparentShardRequest. * @memberof vtctldata - * @classdesc Represents a CreateShardRequest. - * @implements ICreateShardRequest + * @classdesc Represents an EmergencyReparentShardRequest. + * @implements IEmergencyReparentShardRequest * @constructor - * @param {vtctldata.ICreateShardRequest=} [properties] Properties to set + * @param {vtctldata.IEmergencyReparentShardRequest=} [properties] Properties to set */ - function CreateShardRequest(properties) { + function EmergencyReparentShardRequest(properties) { + this.ignore_replicas = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -48838,100 +51632,111 @@ $root.vtctldata = (function() { } /** - * CreateShardRequest keyspace. + * EmergencyReparentShardRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.EmergencyReparentShardRequest * @instance */ - CreateShardRequest.prototype.keyspace = ""; + EmergencyReparentShardRequest.prototype.keyspace = ""; /** - * CreateShardRequest shard_name. - * @member {string} shard_name - * @memberof vtctldata.CreateShardRequest + * EmergencyReparentShardRequest shard. + * @member {string} shard + * @memberof vtctldata.EmergencyReparentShardRequest * @instance */ - CreateShardRequest.prototype.shard_name = ""; + EmergencyReparentShardRequest.prototype.shard = ""; /** - * CreateShardRequest force. - * @member {boolean} force - * @memberof vtctldata.CreateShardRequest + * EmergencyReparentShardRequest new_primary. + * @member {topodata.ITabletAlias|null|undefined} new_primary + * @memberof vtctldata.EmergencyReparentShardRequest * @instance */ - CreateShardRequest.prototype.force = false; + EmergencyReparentShardRequest.prototype.new_primary = null; /** - * CreateShardRequest include_parent. - * @member {boolean} include_parent - * @memberof vtctldata.CreateShardRequest + * EmergencyReparentShardRequest ignore_replicas. + * @member {Array.} ignore_replicas + * @memberof vtctldata.EmergencyReparentShardRequest * @instance */ - CreateShardRequest.prototype.include_parent = false; + EmergencyReparentShardRequest.prototype.ignore_replicas = $util.emptyArray; /** - * Creates a new CreateShardRequest instance using the specified properties. + * EmergencyReparentShardRequest wait_replicas_timeout. + * @member {vttime.IDuration|null|undefined} wait_replicas_timeout + * @memberof vtctldata.EmergencyReparentShardRequest + * @instance + */ + EmergencyReparentShardRequest.prototype.wait_replicas_timeout = null; + + /** + * Creates a new EmergencyReparentShardRequest instance using the specified properties. * @function create - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.EmergencyReparentShardRequest * @static - * @param {vtctldata.ICreateShardRequest=} [properties] Properties to set - * @returns {vtctldata.CreateShardRequest} CreateShardRequest instance + * @param {vtctldata.IEmergencyReparentShardRequest=} [properties] Properties to set + * @returns {vtctldata.EmergencyReparentShardRequest} EmergencyReparentShardRequest instance */ - CreateShardRequest.create = function create(properties) { - return new CreateShardRequest(properties); + EmergencyReparentShardRequest.create = function create(properties) { + return new EmergencyReparentShardRequest(properties); }; /** - * Encodes the specified CreateShardRequest message. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. + * Encodes the specified EmergencyReparentShardRequest message. Does not implicitly {@link vtctldata.EmergencyReparentShardRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.EmergencyReparentShardRequest * @static - * @param {vtctldata.ICreateShardRequest} message CreateShardRequest message or plain object to encode + * @param {vtctldata.IEmergencyReparentShardRequest} message EmergencyReparentShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateShardRequest.encode = function encode(message, writer) { + EmergencyReparentShardRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.shard_name != null && Object.hasOwnProperty.call(message, "shard_name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard_name); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); - if (message.include_parent != null && Object.hasOwnProperty.call(message, "include_parent")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.include_parent); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); + if (message.new_primary != null && Object.hasOwnProperty.call(message, "new_primary")) + $root.topodata.TabletAlias.encode(message.new_primary, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.ignore_replicas != null && message.ignore_replicas.length) + for (var i = 0; i < message.ignore_replicas.length; ++i) + $root.topodata.TabletAlias.encode(message.ignore_replicas[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.wait_replicas_timeout != null && Object.hasOwnProperty.call(message, "wait_replicas_timeout")) + $root.vttime.Duration.encode(message.wait_replicas_timeout, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateShardRequest message, length delimited. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. + * Encodes the specified EmergencyReparentShardRequest message, length delimited. Does not implicitly {@link vtctldata.EmergencyReparentShardRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.EmergencyReparentShardRequest * @static - * @param {vtctldata.ICreateShardRequest} message CreateShardRequest message or plain object to encode + * @param {vtctldata.IEmergencyReparentShardRequest} message EmergencyReparentShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateShardRequest.encodeDelimited = function encodeDelimited(message, writer) { + EmergencyReparentShardRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateShardRequest message from the specified reader or buffer. + * Decodes an EmergencyReparentShardRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.EmergencyReparentShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.CreateShardRequest} CreateShardRequest + * @returns {vtctldata.EmergencyReparentShardRequest} EmergencyReparentShardRequest * @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) { + EmergencyReparentShardRequest.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.vtctldata.CreateShardRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.EmergencyReparentShardRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -48939,13 +51744,18 @@ $root.vtctldata = (function() { message.keyspace = reader.string(); break; case 2: - message.shard_name = reader.string(); + message.shard = reader.string(); break; case 3: - message.force = reader.bool(); + message.new_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; case 4: - message.include_parent = reader.bool(); + if (!(message.ignore_replicas && message.ignore_replicas.length)) + message.ignore_replicas = []; + message.ignore_replicas.push($root.topodata.TabletAlias.decode(reader, reader.uint32())); + break; + case 5: + message.wait_replicas_timeout = $root.vttime.Duration.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -48956,134 +51766,172 @@ $root.vtctldata = (function() { }; /** - * Decodes a CreateShardRequest message from the specified reader or buffer, length delimited. + * Decodes an EmergencyReparentShardRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.EmergencyReparentShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.CreateShardRequest} CreateShardRequest + * @returns {vtctldata.EmergencyReparentShardRequest} EmergencyReparentShardRequest * @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) { + EmergencyReparentShardRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateShardRequest message. + * Verifies an EmergencyReparentShardRequest message. * @function verify - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.EmergencyReparentShardRequest * @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) { + EmergencyReparentShardRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.keyspace != null && message.hasOwnProperty("keyspace")) if (!$util.isString(message.keyspace)) return "keyspace: string expected"; - if (message.shard_name != null && message.hasOwnProperty("shard_name")) - if (!$util.isString(message.shard_name)) - return "shard_name: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; - if (message.include_parent != null && message.hasOwnProperty("include_parent")) - if (typeof message.include_parent !== "boolean") - return "include_parent: boolean expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.new_primary != null && message.hasOwnProperty("new_primary")) { + var error = $root.topodata.TabletAlias.verify(message.new_primary); + if (error) + return "new_primary." + error; + } + if (message.ignore_replicas != null && message.hasOwnProperty("ignore_replicas")) { + if (!Array.isArray(message.ignore_replicas)) + return "ignore_replicas: array expected"; + for (var i = 0; i < message.ignore_replicas.length; ++i) { + var error = $root.topodata.TabletAlias.verify(message.ignore_replicas[i]); + if (error) + return "ignore_replicas." + error; + } + } + if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout")) { + var error = $root.vttime.Duration.verify(message.wait_replicas_timeout); + if (error) + return "wait_replicas_timeout." + error; + } return null; }; /** - * Creates a CreateShardRequest message from a plain object. Also converts values to their respective internal types. + * Creates an EmergencyReparentShardRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.EmergencyReparentShardRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.CreateShardRequest} CreateShardRequest + * @returns {vtctldata.EmergencyReparentShardRequest} EmergencyReparentShardRequest */ - CreateShardRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.CreateShardRequest) + EmergencyReparentShardRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.EmergencyReparentShardRequest) return object; - var message = new $root.vtctldata.CreateShardRequest(); + var message = new $root.vtctldata.EmergencyReparentShardRequest(); if (object.keyspace != null) message.keyspace = String(object.keyspace); - if (object.shard_name != null) - message.shard_name = String(object.shard_name); - if (object.force != null) - message.force = Boolean(object.force); - if (object.include_parent != null) - message.include_parent = Boolean(object.include_parent); + if (object.shard != null) + message.shard = String(object.shard); + if (object.new_primary != null) { + if (typeof object.new_primary !== "object") + throw TypeError(".vtctldata.EmergencyReparentShardRequest.new_primary: object expected"); + message.new_primary = $root.topodata.TabletAlias.fromObject(object.new_primary); + } + if (object.ignore_replicas) { + if (!Array.isArray(object.ignore_replicas)) + throw TypeError(".vtctldata.EmergencyReparentShardRequest.ignore_replicas: array expected"); + message.ignore_replicas = []; + for (var i = 0; i < object.ignore_replicas.length; ++i) { + if (typeof object.ignore_replicas[i] !== "object") + throw TypeError(".vtctldata.EmergencyReparentShardRequest.ignore_replicas: object expected"); + message.ignore_replicas[i] = $root.topodata.TabletAlias.fromObject(object.ignore_replicas[i]); + } + } + if (object.wait_replicas_timeout != null) { + if (typeof object.wait_replicas_timeout !== "object") + throw TypeError(".vtctldata.EmergencyReparentShardRequest.wait_replicas_timeout: object expected"); + message.wait_replicas_timeout = $root.vttime.Duration.fromObject(object.wait_replicas_timeout); + } return message; }; /** - * Creates a plain object from a CreateShardRequest message. Also converts values to other types if specified. + * Creates a plain object from an EmergencyReparentShardRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.EmergencyReparentShardRequest * @static - * @param {vtctldata.CreateShardRequest} message CreateShardRequest + * @param {vtctldata.EmergencyReparentShardRequest} message EmergencyReparentShardRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateShardRequest.toObject = function toObject(message, options) { + EmergencyReparentShardRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.ignore_replicas = []; if (options.defaults) { object.keyspace = ""; - object.shard_name = ""; - object.force = false; - object.include_parent = false; + object.shard = ""; + object.new_primary = null; + object.wait_replicas_timeout = null; } if (message.keyspace != null && message.hasOwnProperty("keyspace")) object.keyspace = message.keyspace; - if (message.shard_name != null && message.hasOwnProperty("shard_name")) - object.shard_name = message.shard_name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; - if (message.include_parent != null && message.hasOwnProperty("include_parent")) - object.include_parent = message.include_parent; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.new_primary != null && message.hasOwnProperty("new_primary")) + object.new_primary = $root.topodata.TabletAlias.toObject(message.new_primary, options); + if (message.ignore_replicas && message.ignore_replicas.length) { + object.ignore_replicas = []; + for (var j = 0; j < message.ignore_replicas.length; ++j) + object.ignore_replicas[j] = $root.topodata.TabletAlias.toObject(message.ignore_replicas[j], options); + } + if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout")) + object.wait_replicas_timeout = $root.vttime.Duration.toObject(message.wait_replicas_timeout, options); return object; }; /** - * Converts this CreateShardRequest to JSON. + * Converts this EmergencyReparentShardRequest to JSON. * @function toJSON - * @memberof vtctldata.CreateShardRequest + * @memberof vtctldata.EmergencyReparentShardRequest * @instance * @returns {Object.} JSON object */ - CreateShardRequest.prototype.toJSON = function toJSON() { + EmergencyReparentShardRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateShardRequest; + return EmergencyReparentShardRequest; })(); - vtctldata.CreateShardResponse = (function() { + vtctldata.EmergencyReparentShardResponse = (function() { /** - * Properties of a CreateShardResponse. + * Properties of an EmergencyReparentShardResponse. * @memberof vtctldata - * @interface ICreateShardResponse - * @property {vtctldata.IKeyspace|null} [keyspace] CreateShardResponse keyspace - * @property {vtctldata.IShard|null} [shard] CreateShardResponse shard - * @property {boolean|null} [shard_already_exists] CreateShardResponse shard_already_exists + * @interface IEmergencyReparentShardResponse + * @property {string|null} [keyspace] EmergencyReparentShardResponse keyspace + * @property {string|null} [shard] EmergencyReparentShardResponse shard + * @property {topodata.ITabletAlias|null} [promoted_primary] EmergencyReparentShardResponse promoted_primary + * @property {Array.|null} [events] EmergencyReparentShardResponse events */ /** - * Constructs a new CreateShardResponse. + * Constructs a new EmergencyReparentShardResponse. * @memberof vtctldata - * @classdesc Represents a CreateShardResponse. - * @implements ICreateShardResponse + * @classdesc Represents an EmergencyReparentShardResponse. + * @implements IEmergencyReparentShardResponse * @constructor - * @param {vtctldata.ICreateShardResponse=} [properties] Properties to set + * @param {vtctldata.IEmergencyReparentShardResponse=} [properties] Properties to set */ - function CreateShardResponse(properties) { + function EmergencyReparentShardResponse(properties) { + this.events = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49091,101 +51939,117 @@ $root.vtctldata = (function() { } /** - * CreateShardResponse keyspace. - * @member {vtctldata.IKeyspace|null|undefined} keyspace - * @memberof vtctldata.CreateShardResponse + * EmergencyReparentShardResponse keyspace. + * @member {string} keyspace + * @memberof vtctldata.EmergencyReparentShardResponse * @instance */ - CreateShardResponse.prototype.keyspace = null; + EmergencyReparentShardResponse.prototype.keyspace = ""; /** - * CreateShardResponse shard. - * @member {vtctldata.IShard|null|undefined} shard - * @memberof vtctldata.CreateShardResponse + * EmergencyReparentShardResponse shard. + * @member {string} shard + * @memberof vtctldata.EmergencyReparentShardResponse * @instance */ - CreateShardResponse.prototype.shard = null; + EmergencyReparentShardResponse.prototype.shard = ""; /** - * CreateShardResponse shard_already_exists. - * @member {boolean} shard_already_exists - * @memberof vtctldata.CreateShardResponse + * EmergencyReparentShardResponse promoted_primary. + * @member {topodata.ITabletAlias|null|undefined} promoted_primary + * @memberof vtctldata.EmergencyReparentShardResponse * @instance */ - CreateShardResponse.prototype.shard_already_exists = false; + EmergencyReparentShardResponse.prototype.promoted_primary = null; /** - * Creates a new CreateShardResponse instance using the specified properties. + * EmergencyReparentShardResponse events. + * @member {Array.} events + * @memberof vtctldata.EmergencyReparentShardResponse + * @instance + */ + EmergencyReparentShardResponse.prototype.events = $util.emptyArray; + + /** + * Creates a new EmergencyReparentShardResponse instance using the specified properties. * @function create - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.EmergencyReparentShardResponse * @static - * @param {vtctldata.ICreateShardResponse=} [properties] Properties to set - * @returns {vtctldata.CreateShardResponse} CreateShardResponse instance + * @param {vtctldata.IEmergencyReparentShardResponse=} [properties] Properties to set + * @returns {vtctldata.EmergencyReparentShardResponse} EmergencyReparentShardResponse instance */ - CreateShardResponse.create = function create(properties) { - return new CreateShardResponse(properties); + EmergencyReparentShardResponse.create = function create(properties) { + return new EmergencyReparentShardResponse(properties); }; /** - * Encodes the specified CreateShardResponse message. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. + * Encodes the specified EmergencyReparentShardResponse message. Does not implicitly {@link vtctldata.EmergencyReparentShardResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.EmergencyReparentShardResponse * @static - * @param {vtctldata.ICreateShardResponse} message CreateShardResponse message or plain object to encode + * @param {vtctldata.IEmergencyReparentShardResponse} message EmergencyReparentShardResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateShardResponse.encode = function encode(message, writer) { + EmergencyReparentShardResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - $root.vtctldata.Keyspace.encode(message.keyspace, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - $root.vtctldata.Shard.encode(message.shard, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.shard_already_exists != null && Object.hasOwnProperty.call(message, "shard_already_exists")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.shard_already_exists); + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); + if (message.promoted_primary != null && Object.hasOwnProperty.call(message, "promoted_primary")) + $root.topodata.TabletAlias.encode(message.promoted_primary, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.events != null && message.events.length) + for (var i = 0; i < message.events.length; ++i) + $root.logutil.Event.encode(message.events[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateShardResponse message, length delimited. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. + * Encodes the specified EmergencyReparentShardResponse message, length delimited. Does not implicitly {@link vtctldata.EmergencyReparentShardResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.EmergencyReparentShardResponse * @static - * @param {vtctldata.ICreateShardResponse} message CreateShardResponse message or plain object to encode + * @param {vtctldata.IEmergencyReparentShardResponse} message EmergencyReparentShardResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateShardResponse.encodeDelimited = function encodeDelimited(message, writer) { + EmergencyReparentShardResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateShardResponse message from the specified reader or buffer. + * Decodes an EmergencyReparentShardResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.EmergencyReparentShardResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.CreateShardResponse} CreateShardResponse + * @returns {vtctldata.EmergencyReparentShardResponse} EmergencyReparentShardResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateShardResponse.decode = function decode(reader, length) { + EmergencyReparentShardResponse.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.vtctldata.CreateShardResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.EmergencyReparentShardResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = $root.vtctldata.Keyspace.decode(reader, reader.uint32()); + message.keyspace = reader.string(); break; case 2: - message.shard = $root.vtctldata.Shard.decode(reader, reader.uint32()); + message.shard = reader.string(); break; case 3: - message.shard_already_exists = reader.bool(); + message.promoted_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + case 4: + if (!(message.events && message.events.length)) + message.events = []; + message.events.push($root.logutil.Event.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -49196,135 +52060,156 @@ $root.vtctldata = (function() { }; /** - * Decodes a CreateShardResponse message from the specified reader or buffer, length delimited. + * Decodes an EmergencyReparentShardResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.EmergencyReparentShardResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.CreateShardResponse} CreateShardResponse + * @returns {vtctldata.EmergencyReparentShardResponse} EmergencyReparentShardResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateShardResponse.decodeDelimited = function decodeDelimited(reader) { + EmergencyReparentShardResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateShardResponse message. + * Verifies an EmergencyReparentShardResponse message. * @function verify - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.EmergencyReparentShardResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateShardResponse.verify = function verify(message) { + EmergencyReparentShardResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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.promoted_primary != null && message.hasOwnProperty("promoted_primary")) { + var error = $root.topodata.TabletAlias.verify(message.promoted_primary); if (error) - return "keyspace." + error; + return "promoted_primary." + error; } - if (message.shard != null && message.hasOwnProperty("shard")) { - var error = $root.vtctldata.Shard.verify(message.shard); - if (error) - return "shard." + error; + if (message.events != null && message.hasOwnProperty("events")) { + if (!Array.isArray(message.events)) + return "events: array expected"; + for (var i = 0; i < message.events.length; ++i) { + var error = $root.logutil.Event.verify(message.events[i]); + if (error) + return "events." + error; + } } - if (message.shard_already_exists != null && message.hasOwnProperty("shard_already_exists")) - if (typeof message.shard_already_exists !== "boolean") - return "shard_already_exists: boolean expected"; return null; }; /** - * Creates a CreateShardResponse message from a plain object. Also converts values to their respective internal types. + * Creates an EmergencyReparentShardResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.EmergencyReparentShardResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.CreateShardResponse} CreateShardResponse + * @returns {vtctldata.EmergencyReparentShardResponse} EmergencyReparentShardResponse */ - CreateShardResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.CreateShardResponse) + EmergencyReparentShardResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.EmergencyReparentShardResponse) return object; - var message = new $root.vtctldata.CreateShardResponse(); - if (object.keyspace != null) { - if (typeof object.keyspace !== "object") - throw TypeError(".vtctldata.CreateShardResponse.keyspace: object expected"); - message.keyspace = $root.vtctldata.Keyspace.fromObject(object.keyspace); + var message = new $root.vtctldata.EmergencyReparentShardResponse(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + if (object.promoted_primary != null) { + if (typeof object.promoted_primary !== "object") + throw TypeError(".vtctldata.EmergencyReparentShardResponse.promoted_primary: object expected"); + message.promoted_primary = $root.topodata.TabletAlias.fromObject(object.promoted_primary); } - if (object.shard != null) { - if (typeof object.shard !== "object") - throw TypeError(".vtctldata.CreateShardResponse.shard: object expected"); - message.shard = $root.vtctldata.Shard.fromObject(object.shard); + if (object.events) { + if (!Array.isArray(object.events)) + throw TypeError(".vtctldata.EmergencyReparentShardResponse.events: array expected"); + message.events = []; + for (var i = 0; i < object.events.length; ++i) { + if (typeof object.events[i] !== "object") + throw TypeError(".vtctldata.EmergencyReparentShardResponse.events: object expected"); + message.events[i] = $root.logutil.Event.fromObject(object.events[i]); + } } - if (object.shard_already_exists != null) - message.shard_already_exists = Boolean(object.shard_already_exists); return message; }; /** - * Creates a plain object from a CreateShardResponse message. Also converts values to other types if specified. + * Creates a plain object from an EmergencyReparentShardResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.EmergencyReparentShardResponse * @static - * @param {vtctldata.CreateShardResponse} message CreateShardResponse + * @param {vtctldata.EmergencyReparentShardResponse} message EmergencyReparentShardResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateShardResponse.toObject = function toObject(message, options) { + EmergencyReparentShardResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.events = []; if (options.defaults) { - object.keyspace = null; - object.shard = null; - object.shard_already_exists = false; + object.keyspace = ""; + object.shard = ""; + object.promoted_primary = null; } if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = $root.vtctldata.Keyspace.toObject(message.keyspace, options); + object.keyspace = message.keyspace; if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = $root.vtctldata.Shard.toObject(message.shard, options); - if (message.shard_already_exists != null && message.hasOwnProperty("shard_already_exists")) - object.shard_already_exists = message.shard_already_exists; + object.shard = message.shard; + if (message.promoted_primary != null && message.hasOwnProperty("promoted_primary")) + object.promoted_primary = $root.topodata.TabletAlias.toObject(message.promoted_primary, options); + if (message.events && message.events.length) { + object.events = []; + for (var j = 0; j < message.events.length; ++j) + object.events[j] = $root.logutil.Event.toObject(message.events[j], options); + } return object; }; /** - * Converts this CreateShardResponse to JSON. + * Converts this EmergencyReparentShardResponse to JSON. * @function toJSON - * @memberof vtctldata.CreateShardResponse + * @memberof vtctldata.EmergencyReparentShardResponse * @instance * @returns {Object.} JSON object */ - CreateShardResponse.prototype.toJSON = function toJSON() { + EmergencyReparentShardResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateShardResponse; + return EmergencyReparentShardResponse; })(); - vtctldata.DeleteKeyspaceRequest = (function() { + vtctldata.GetBackupsRequest = (function() { /** - * Properties of a DeleteKeyspaceRequest. + * Properties of a GetBackupsRequest. * @memberof vtctldata - * @interface IDeleteKeyspaceRequest - * @property {string|null} [keyspace] DeleteKeyspaceRequest keyspace - * @property {boolean|null} [recursive] DeleteKeyspaceRequest recursive + * @interface IGetBackupsRequest + * @property {string|null} [keyspace] GetBackupsRequest keyspace + * @property {string|null} [shard] GetBackupsRequest shard */ /** - * Constructs a new DeleteKeyspaceRequest. + * Constructs a new GetBackupsRequest. * @memberof vtctldata - * @classdesc Represents a DeleteKeyspaceRequest. - * @implements IDeleteKeyspaceRequest + * @classdesc Represents a GetBackupsRequest. + * @implements IGetBackupsRequest * @constructor - * @param {vtctldata.IDeleteKeyspaceRequest=} [properties] Properties to set + * @param {vtctldata.IGetBackupsRequest=} [properties] Properties to set */ - function DeleteKeyspaceRequest(properties) { + function GetBackupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49332,80 +52217,80 @@ $root.vtctldata = (function() { } /** - * DeleteKeyspaceRequest keyspace. + * GetBackupsRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.GetBackupsRequest * @instance */ - DeleteKeyspaceRequest.prototype.keyspace = ""; + GetBackupsRequest.prototype.keyspace = ""; /** - * DeleteKeyspaceRequest recursive. - * @member {boolean} recursive - * @memberof vtctldata.DeleteKeyspaceRequest + * GetBackupsRequest shard. + * @member {string} shard + * @memberof vtctldata.GetBackupsRequest * @instance */ - DeleteKeyspaceRequest.prototype.recursive = false; + GetBackupsRequest.prototype.shard = ""; /** - * Creates a new DeleteKeyspaceRequest instance using the specified properties. + * Creates a new GetBackupsRequest instance using the specified properties. * @function create - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.GetBackupsRequest * @static - * @param {vtctldata.IDeleteKeyspaceRequest=} [properties] Properties to set - * @returns {vtctldata.DeleteKeyspaceRequest} DeleteKeyspaceRequest instance + * @param {vtctldata.IGetBackupsRequest=} [properties] Properties to set + * @returns {vtctldata.GetBackupsRequest} GetBackupsRequest instance */ - DeleteKeyspaceRequest.create = function create(properties) { - return new DeleteKeyspaceRequest(properties); + GetBackupsRequest.create = function create(properties) { + return new GetBackupsRequest(properties); }; /** - * Encodes the specified DeleteKeyspaceRequest message. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. + * Encodes the specified GetBackupsRequest message. Does not implicitly {@link vtctldata.GetBackupsRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.GetBackupsRequest * @static - * @param {vtctldata.IDeleteKeyspaceRequest} message DeleteKeyspaceRequest message or plain object to encode + * @param {vtctldata.IGetBackupsRequest} message GetBackupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteKeyspaceRequest.encode = function encode(message, writer) { + GetBackupsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.recursive != null && Object.hasOwnProperty.call(message, "recursive")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.recursive); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); return writer; }; /** - * Encodes the specified DeleteKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. + * Encodes the specified GetBackupsRequest message, length delimited. Does not implicitly {@link vtctldata.GetBackupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.GetBackupsRequest * @static - * @param {vtctldata.IDeleteKeyspaceRequest} message DeleteKeyspaceRequest message or plain object to encode + * @param {vtctldata.IGetBackupsRequest} message GetBackupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetBackupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer. + * Decodes a GetBackupsRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.GetBackupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.DeleteKeyspaceRequest} DeleteKeyspaceRequest + * @returns {vtctldata.GetBackupsRequest} GetBackupsRequest * @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) { + 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.vtctldata.DeleteKeyspaceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetBackupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -49413,7 +52298,7 @@ $root.vtctldata = (function() { message.keyspace = reader.string(); break; case 2: - message.recursive = reader.bool(); + message.shard = reader.string(); break; default: reader.skipType(tag & 7); @@ -49424,115 +52309,117 @@ $root.vtctldata = (function() { }; /** - * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a GetBackupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.GetBackupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.DeleteKeyspaceRequest} DeleteKeyspaceRequest + * @returns {vtctldata.GetBackupsRequest} GetBackupsRequest * @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) { + GetBackupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteKeyspaceRequest message. + * Verifies a GetBackupsRequest message. * @function verify - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.GetBackupsRequest * @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) { + GetBackupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.keyspace != null && message.hasOwnProperty("keyspace")) if (!$util.isString(message.keyspace)) return "keyspace: string expected"; - if (message.recursive != null && message.hasOwnProperty("recursive")) - if (typeof message.recursive !== "boolean") - return "recursive: boolean expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; return null; }; /** - * Creates a DeleteKeyspaceRequest 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 vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.GetBackupsRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.DeleteKeyspaceRequest} DeleteKeyspaceRequest + * @returns {vtctldata.GetBackupsRequest} GetBackupsRequest */ - DeleteKeyspaceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.DeleteKeyspaceRequest) + GetBackupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetBackupsRequest) return object; - var message = new $root.vtctldata.DeleteKeyspaceRequest(); + var message = new $root.vtctldata.GetBackupsRequest(); if (object.keyspace != null) message.keyspace = String(object.keyspace); - if (object.recursive != null) - message.recursive = Boolean(object.recursive); + if (object.shard != null) + message.shard = String(object.shard); return message; }; /** - * Creates a plain object from a DeleteKeyspaceRequest 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 vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.GetBackupsRequest * @static - * @param {vtctldata.DeleteKeyspaceRequest} message DeleteKeyspaceRequest + * @param {vtctldata.GetBackupsRequest} message GetBackupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteKeyspaceRequest.toObject = function toObject(message, options) { + GetBackupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.keyspace = ""; - object.recursive = false; + object.shard = ""; } if (message.keyspace != null && message.hasOwnProperty("keyspace")) object.keyspace = message.keyspace; - if (message.recursive != null && message.hasOwnProperty("recursive")) - object.recursive = message.recursive; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; return object; }; /** - * Converts this DeleteKeyspaceRequest to JSON. + * Converts this GetBackupsRequest to JSON. * @function toJSON - * @memberof vtctldata.DeleteKeyspaceRequest + * @memberof vtctldata.GetBackupsRequest * @instance * @returns {Object.} JSON object */ - DeleteKeyspaceRequest.prototype.toJSON = function toJSON() { + GetBackupsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteKeyspaceRequest; + return GetBackupsRequest; })(); - vtctldata.DeleteKeyspaceResponse = (function() { + vtctldata.GetBackupsResponse = (function() { /** - * Properties of a DeleteKeyspaceResponse. + * Properties of a GetBackupsResponse. * @memberof vtctldata - * @interface IDeleteKeyspaceResponse + * @interface IGetBackupsResponse + * @property {Array.|null} [backups] GetBackupsResponse backups */ /** - * Constructs a new DeleteKeyspaceResponse. + * Constructs a new GetBackupsResponse. * @memberof vtctldata - * @classdesc Represents a DeleteKeyspaceResponse. - * @implements IDeleteKeyspaceResponse + * @classdesc Represents a GetBackupsResponse. + * @implements IGetBackupsResponse * @constructor - * @param {vtctldata.IDeleteKeyspaceResponse=} [properties] Properties to set + * @param {vtctldata.IGetBackupsResponse=} [properties] Properties to set */ - function DeleteKeyspaceResponse(properties) { + function GetBackupsResponse(properties) { + this.backups = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49540,63 +52427,79 @@ $root.vtctldata = (function() { } /** - * Creates a new DeleteKeyspaceResponse instance using the specified properties. + * GetBackupsResponse backups. + * @member {Array.} backups + * @memberof vtctldata.GetBackupsResponse + * @instance + */ + GetBackupsResponse.prototype.backups = $util.emptyArray; + + /** + * Creates a new GetBackupsResponse instance using the specified properties. * @function create - * @memberof vtctldata.DeleteKeyspaceResponse + * @memberof vtctldata.GetBackupsResponse * @static - * @param {vtctldata.IDeleteKeyspaceResponse=} [properties] Properties to set - * @returns {vtctldata.DeleteKeyspaceResponse} DeleteKeyspaceResponse instance + * @param {vtctldata.IGetBackupsResponse=} [properties] Properties to set + * @returns {vtctldata.GetBackupsResponse} GetBackupsResponse instance */ - DeleteKeyspaceResponse.create = function create(properties) { - return new DeleteKeyspaceResponse(properties); + GetBackupsResponse.create = function create(properties) { + return new GetBackupsResponse(properties); }; /** - * Encodes the specified DeleteKeyspaceResponse message. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. + * Encodes the specified GetBackupsResponse message. Does not implicitly {@link vtctldata.GetBackupsResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.DeleteKeyspaceResponse + * @memberof vtctldata.GetBackupsResponse * @static - * @param {vtctldata.IDeleteKeyspaceResponse} message DeleteKeyspaceResponse message or plain object to encode + * @param {vtctldata.IGetBackupsResponse} message GetBackupsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteKeyspaceResponse.encode = function encode(message, writer) { + GetBackupsResponse.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.mysqlctl.BackupInfo.encode(message.backups[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. + * Encodes the specified GetBackupsResponse message, length delimited. Does not implicitly {@link vtctldata.GetBackupsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.DeleteKeyspaceResponse + * @memberof vtctldata.GetBackupsResponse * @static - * @param {vtctldata.IDeleteKeyspaceResponse} message DeleteKeyspaceResponse message or plain object to encode + * @param {vtctldata.IGetBackupsResponse} message GetBackupsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetBackupsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer. + * Decodes a GetBackupsResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.DeleteKeyspaceResponse + * @memberof vtctldata.GetBackupsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.DeleteKeyspaceResponse} DeleteKeyspaceResponse + * @returns {vtctldata.GetBackupsResponse} GetBackupsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteKeyspaceResponse.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.vtctldata.DeleteKeyspaceResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetBackupsResponse(); 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.mysqlctl.BackupInfo.decode(reader, reader.uint32())); + break; default: reader.skipType(tag & 7); break; @@ -49606,97 +52509,123 @@ $root.vtctldata = (function() { }; /** - * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer, length delimited. + * Decodes a GetBackupsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.DeleteKeyspaceResponse + * @memberof vtctldata.GetBackupsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.DeleteKeyspaceResponse} DeleteKeyspaceResponse + * @returns {vtctldata.GetBackupsResponse} GetBackupsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteKeyspaceResponse.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 DeleteKeyspaceResponse message. + * Verifies a GetBackupsResponse message. * @function verify - * @memberof vtctldata.DeleteKeyspaceResponse + * @memberof vtctldata.GetBackupsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteKeyspaceResponse.verify = function verify(message) { + GetBackupsResponse.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.mysqlctl.BackupInfo.verify(message.backups[i]); + if (error) + return "backups." + error; + } + } return null; }; /** - * Creates a DeleteKeyspaceResponse 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 vtctldata.DeleteKeyspaceResponse + * @memberof vtctldata.GetBackupsResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.DeleteKeyspaceResponse} DeleteKeyspaceResponse + * @returns {vtctldata.GetBackupsResponse} GetBackupsResponse */ - DeleteKeyspaceResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.DeleteKeyspaceResponse) + GetBackupsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetBackupsResponse) return object; - return new $root.vtctldata.DeleteKeyspaceResponse(); + var message = new $root.vtctldata.GetBackupsResponse(); + if (object.backups) { + if (!Array.isArray(object.backups)) + throw TypeError(".vtctldata.GetBackupsResponse.backups: array expected"); + message.backups = []; + for (var i = 0; i < object.backups.length; ++i) { + if (typeof object.backups[i] !== "object") + throw TypeError(".vtctldata.GetBackupsResponse.backups: object expected"); + message.backups[i] = $root.mysqlctl.BackupInfo.fromObject(object.backups[i]); + } + } + return message; }; /** - * Creates a plain object from a DeleteKeyspaceResponse 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 vtctldata.DeleteKeyspaceResponse + * @memberof vtctldata.GetBackupsResponse * @static - * @param {vtctldata.DeleteKeyspaceResponse} message DeleteKeyspaceResponse + * @param {vtctldata.GetBackupsResponse} message GetBackupsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteKeyspaceResponse.toObject = function toObject() { - return {}; + GetBackupsResponse.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.mysqlctl.BackupInfo.toObject(message.backups[j], options); + } + return object; }; /** - * Converts this DeleteKeyspaceResponse to JSON. + * Converts this GetBackupsResponse to JSON. * @function toJSON - * @memberof vtctldata.DeleteKeyspaceResponse + * @memberof vtctldata.GetBackupsResponse * @instance * @returns {Object.} JSON object */ - DeleteKeyspaceResponse.prototype.toJSON = function toJSON() { + GetBackupsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteKeyspaceResponse; + return GetBackupsResponse; })(); - vtctldata.DeleteShardsRequest = (function() { + vtctldata.GetCellInfoNamesRequest = (function() { /** - * Properties of a DeleteShardsRequest. + * Properties of a GetCellInfoNamesRequest. * @memberof vtctldata - * @interface IDeleteShardsRequest - * @property {Array.|null} [shards] DeleteShardsRequest shards - * @property {boolean|null} [recursive] DeleteShardsRequest recursive - * @property {boolean|null} [even_if_serving] DeleteShardsRequest even_if_serving + * @interface IGetCellInfoNamesRequest */ /** - * Constructs a new DeleteShardsRequest. + * Constructs a new GetCellInfoNamesRequest. * @memberof vtctldata - * @classdesc Represents a DeleteShardsRequest. - * @implements IDeleteShardsRequest + * @classdesc Represents a GetCellInfoNamesRequest. + * @implements IGetCellInfoNamesRequest * @constructor - * @param {vtctldata.IDeleteShardsRequest=} [properties] Properties to set + * @param {vtctldata.IGetCellInfoNamesRequest=} [properties] Properties to set */ - function DeleteShardsRequest(properties) { - this.shards = []; + function GetCellInfoNamesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49704,105 +52633,63 @@ $root.vtctldata = (function() { } /** - * DeleteShardsRequest shards. - * @member {Array.} shards - * @memberof vtctldata.DeleteShardsRequest - * @instance - */ - DeleteShardsRequest.prototype.shards = $util.emptyArray; - - /** - * DeleteShardsRequest recursive. - * @member {boolean} recursive - * @memberof vtctldata.DeleteShardsRequest - * @instance - */ - DeleteShardsRequest.prototype.recursive = false; - - /** - * DeleteShardsRequest even_if_serving. - * @member {boolean} even_if_serving - * @memberof vtctldata.DeleteShardsRequest - * @instance - */ - DeleteShardsRequest.prototype.even_if_serving = false; - - /** - * Creates a new DeleteShardsRequest instance using the specified properties. + * Creates a new GetCellInfoNamesRequest instance using the specified properties. * @function create - * @memberof vtctldata.DeleteShardsRequest + * @memberof vtctldata.GetCellInfoNamesRequest * @static - * @param {vtctldata.IDeleteShardsRequest=} [properties] Properties to set - * @returns {vtctldata.DeleteShardsRequest} DeleteShardsRequest instance + * @param {vtctldata.IGetCellInfoNamesRequest=} [properties] Properties to set + * @returns {vtctldata.GetCellInfoNamesRequest} GetCellInfoNamesRequest instance */ - DeleteShardsRequest.create = function create(properties) { - return new DeleteShardsRequest(properties); + GetCellInfoNamesRequest.create = function create(properties) { + return new GetCellInfoNamesRequest(properties); }; /** - * Encodes the specified DeleteShardsRequest message. Does not implicitly {@link vtctldata.DeleteShardsRequest.verify|verify} messages. + * Encodes the specified GetCellInfoNamesRequest message. Does not implicitly {@link vtctldata.GetCellInfoNamesRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.DeleteShardsRequest + * @memberof vtctldata.GetCellInfoNamesRequest * @static - * @param {vtctldata.IDeleteShardsRequest} message DeleteShardsRequest message or plain object to encode + * @param {vtctldata.IGetCellInfoNamesRequest} message GetCellInfoNamesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteShardsRequest.encode = function encode(message, writer) { + GetCellInfoNamesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.shards != null && message.shards.length) - for (var i = 0; i < message.shards.length; ++i) - $root.vtctldata.Shard.encode(message.shards[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.recursive != null && Object.hasOwnProperty.call(message, "recursive")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.recursive); - if (message.even_if_serving != null && Object.hasOwnProperty.call(message, "even_if_serving")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.even_if_serving); return writer; }; /** - * Encodes the specified DeleteShardsRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteShardsRequest.verify|verify} messages. + * Encodes the specified GetCellInfoNamesRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoNamesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.DeleteShardsRequest + * @memberof vtctldata.GetCellInfoNamesRequest * @static - * @param {vtctldata.IDeleteShardsRequest} message DeleteShardsRequest message or plain object to encode + * @param {vtctldata.IGetCellInfoNamesRequest} message GetCellInfoNamesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteShardsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetCellInfoNamesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteShardsRequest message from the specified reader or buffer. + * Decodes a GetCellInfoNamesRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.DeleteShardsRequest + * @memberof vtctldata.GetCellInfoNamesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.DeleteShardsRequest} DeleteShardsRequest + * @returns {vtctldata.GetCellInfoNamesRequest} GetCellInfoNamesRequest * @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) { + GetCellInfoNamesRequest.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.vtctldata.DeleteShardsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellInfoNamesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.shards && message.shards.length)) - message.shards = []; - message.shards.push($root.vtctldata.Shard.decode(reader, reader.uint32())); - break; - case 2: - message.recursive = reader.bool(); - break; - case 4: - message.even_if_serving = reader.bool(); - break; default: reader.skipType(tag & 7); break; @@ -49812,141 +52699,95 @@ $root.vtctldata = (function() { }; /** - * Decodes a DeleteShardsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetCellInfoNamesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.DeleteShardsRequest + * @memberof vtctldata.GetCellInfoNamesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.DeleteShardsRequest} DeleteShardsRequest + * @returns {vtctldata.GetCellInfoNamesRequest} GetCellInfoNamesRequest * @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) { + GetCellInfoNamesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteShardsRequest message. + * Verifies a GetCellInfoNamesRequest message. * @function verify - * @memberof vtctldata.DeleteShardsRequest + * @memberof vtctldata.GetCellInfoNamesRequest * @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) { + GetCellInfoNamesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.shards != null && message.hasOwnProperty("shards")) { - if (!Array.isArray(message.shards)) - return "shards: array expected"; - for (var i = 0; i < message.shards.length; ++i) { - var error = $root.vtctldata.Shard.verify(message.shards[i]); - if (error) - return "shards." + error; - } - } - if (message.recursive != null && message.hasOwnProperty("recursive")) - if (typeof message.recursive !== "boolean") - return "recursive: boolean expected"; - if (message.even_if_serving != null && message.hasOwnProperty("even_if_serving")) - if (typeof message.even_if_serving !== "boolean") - return "even_if_serving: boolean expected"; return null; }; /** - * Creates a DeleteShardsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetCellInfoNamesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.DeleteShardsRequest + * @memberof vtctldata.GetCellInfoNamesRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.DeleteShardsRequest} DeleteShardsRequest + * @returns {vtctldata.GetCellInfoNamesRequest} GetCellInfoNamesRequest */ - DeleteShardsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.DeleteShardsRequest) + GetCellInfoNamesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetCellInfoNamesRequest) return object; - var message = new $root.vtctldata.DeleteShardsRequest(); - if (object.shards) { - if (!Array.isArray(object.shards)) - throw TypeError(".vtctldata.DeleteShardsRequest.shards: array expected"); - message.shards = []; - for (var i = 0; i < object.shards.length; ++i) { - if (typeof object.shards[i] !== "object") - throw TypeError(".vtctldata.DeleteShardsRequest.shards: object expected"); - message.shards[i] = $root.vtctldata.Shard.fromObject(object.shards[i]); - } - } - if (object.recursive != null) - message.recursive = Boolean(object.recursive); - if (object.even_if_serving != null) - message.even_if_serving = Boolean(object.even_if_serving); - return message; + return new $root.vtctldata.GetCellInfoNamesRequest(); }; /** - * Creates a plain object from a DeleteShardsRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetCellInfoNamesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.DeleteShardsRequest + * @memberof vtctldata.GetCellInfoNamesRequest * @static - * @param {vtctldata.DeleteShardsRequest} message DeleteShardsRequest + * @param {vtctldata.GetCellInfoNamesRequest} message GetCellInfoNamesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteShardsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.shards = []; - if (options.defaults) { - object.recursive = false; - object.even_if_serving = false; - } - if (message.shards && message.shards.length) { - object.shards = []; - for (var j = 0; j < message.shards.length; ++j) - object.shards[j] = $root.vtctldata.Shard.toObject(message.shards[j], options); - } - if (message.recursive != null && message.hasOwnProperty("recursive")) - object.recursive = message.recursive; - if (message.even_if_serving != null && message.hasOwnProperty("even_if_serving")) - object.even_if_serving = message.even_if_serving; - return object; + GetCellInfoNamesRequest.toObject = function toObject() { + return {}; }; /** - * Converts this DeleteShardsRequest to JSON. + * Converts this GetCellInfoNamesRequest to JSON. * @function toJSON - * @memberof vtctldata.DeleteShardsRequest + * @memberof vtctldata.GetCellInfoNamesRequest * @instance * @returns {Object.} JSON object */ - DeleteShardsRequest.prototype.toJSON = function toJSON() { + GetCellInfoNamesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteShardsRequest; + return GetCellInfoNamesRequest; })(); - vtctldata.DeleteShardsResponse = (function() { + vtctldata.GetCellInfoNamesResponse = (function() { /** - * Properties of a DeleteShardsResponse. + * Properties of a GetCellInfoNamesResponse. * @memberof vtctldata - * @interface IDeleteShardsResponse + * @interface IGetCellInfoNamesResponse + * @property {Array.|null} [names] GetCellInfoNamesResponse names */ /** - * Constructs a new DeleteShardsResponse. + * Constructs a new GetCellInfoNamesResponse. * @memberof vtctldata - * @classdesc Represents a DeleteShardsResponse. - * @implements IDeleteShardsResponse + * @classdesc Represents a GetCellInfoNamesResponse. + * @implements IGetCellInfoNamesResponse * @constructor - * @param {vtctldata.IDeleteShardsResponse=} [properties] Properties to set + * @param {vtctldata.IGetCellInfoNamesResponse=} [properties] Properties to set */ - function DeleteShardsResponse(properties) { + function GetCellInfoNamesResponse(properties) { + this.names = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49954,63 +52795,79 @@ $root.vtctldata = (function() { } /** - * Creates a new DeleteShardsResponse instance using the specified properties. + * GetCellInfoNamesResponse names. + * @member {Array.} names + * @memberof vtctldata.GetCellInfoNamesResponse + * @instance + */ + GetCellInfoNamesResponse.prototype.names = $util.emptyArray; + + /** + * Creates a new GetCellInfoNamesResponse instance using the specified properties. * @function create - * @memberof vtctldata.DeleteShardsResponse + * @memberof vtctldata.GetCellInfoNamesResponse * @static - * @param {vtctldata.IDeleteShardsResponse=} [properties] Properties to set - * @returns {vtctldata.DeleteShardsResponse} DeleteShardsResponse instance + * @param {vtctldata.IGetCellInfoNamesResponse=} [properties] Properties to set + * @returns {vtctldata.GetCellInfoNamesResponse} GetCellInfoNamesResponse instance */ - DeleteShardsResponse.create = function create(properties) { - return new DeleteShardsResponse(properties); + GetCellInfoNamesResponse.create = function create(properties) { + return new GetCellInfoNamesResponse(properties); }; /** - * Encodes the specified DeleteShardsResponse message. Does not implicitly {@link vtctldata.DeleteShardsResponse.verify|verify} messages. + * Encodes the specified GetCellInfoNamesResponse message. Does not implicitly {@link vtctldata.GetCellInfoNamesResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.DeleteShardsResponse + * @memberof vtctldata.GetCellInfoNamesResponse * @static - * @param {vtctldata.IDeleteShardsResponse} message DeleteShardsResponse message or plain object to encode + * @param {vtctldata.IGetCellInfoNamesResponse} message GetCellInfoNamesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteShardsResponse.encode = function encode(message, writer) { + GetCellInfoNamesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.names != null && message.names.length) + for (var i = 0; i < message.names.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.names[i]); return writer; }; /** - * Encodes the specified DeleteShardsResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteShardsResponse.verify|verify} messages. + * Encodes the specified GetCellInfoNamesResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoNamesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.DeleteShardsResponse + * @memberof vtctldata.GetCellInfoNamesResponse * @static - * @param {vtctldata.IDeleteShardsResponse} message DeleteShardsResponse message or plain object to encode + * @param {vtctldata.IGetCellInfoNamesResponse} message GetCellInfoNamesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteShardsResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetCellInfoNamesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteShardsResponse message from the specified reader or buffer. + * Decodes a GetCellInfoNamesResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.DeleteShardsResponse + * @memberof vtctldata.GetCellInfoNamesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.DeleteShardsResponse} DeleteShardsResponse + * @returns {vtctldata.GetCellInfoNamesResponse} GetCellInfoNamesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteShardsResponse.decode = function decode(reader, length) { + GetCellInfoNamesResponse.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.vtctldata.DeleteShardsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellInfoNamesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + if (!(message.names && message.names.length)) + message.names = []; + message.names.push(reader.string()); + break; default: reader.skipType(tag & 7); break; @@ -50020,96 +52877,119 @@ $root.vtctldata = (function() { }; /** - * Decodes a DeleteShardsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetCellInfoNamesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.DeleteShardsResponse + * @memberof vtctldata.GetCellInfoNamesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.DeleteShardsResponse} DeleteShardsResponse + * @returns {vtctldata.GetCellInfoNamesResponse} GetCellInfoNamesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteShardsResponse.decodeDelimited = function decodeDelimited(reader) { + GetCellInfoNamesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteShardsResponse message. + * Verifies a GetCellInfoNamesResponse message. * @function verify - * @memberof vtctldata.DeleteShardsResponse + * @memberof vtctldata.GetCellInfoNamesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteShardsResponse.verify = function verify(message) { + GetCellInfoNamesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.names != null && message.hasOwnProperty("names")) { + if (!Array.isArray(message.names)) + return "names: array expected"; + for (var i = 0; i < message.names.length; ++i) + if (!$util.isString(message.names[i])) + return "names: string[] expected"; + } return null; }; /** - * Creates a DeleteShardsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetCellInfoNamesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.DeleteShardsResponse + * @memberof vtctldata.GetCellInfoNamesResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.DeleteShardsResponse} DeleteShardsResponse + * @returns {vtctldata.GetCellInfoNamesResponse} GetCellInfoNamesResponse */ - DeleteShardsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.DeleteShardsResponse) + GetCellInfoNamesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetCellInfoNamesResponse) return object; - return new $root.vtctldata.DeleteShardsResponse(); + var message = new $root.vtctldata.GetCellInfoNamesResponse(); + if (object.names) { + if (!Array.isArray(object.names)) + throw TypeError(".vtctldata.GetCellInfoNamesResponse.names: array expected"); + message.names = []; + for (var i = 0; i < object.names.length; ++i) + message.names[i] = String(object.names[i]); + } + return message; }; /** - * Creates a plain object from a DeleteShardsResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetCellInfoNamesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.DeleteShardsResponse + * @memberof vtctldata.GetCellInfoNamesResponse * @static - * @param {vtctldata.DeleteShardsResponse} message DeleteShardsResponse + * @param {vtctldata.GetCellInfoNamesResponse} message GetCellInfoNamesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteShardsResponse.toObject = function toObject() { - return {}; + GetCellInfoNamesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.names = []; + if (message.names && message.names.length) { + object.names = []; + for (var j = 0; j < message.names.length; ++j) + object.names[j] = message.names[j]; + } + return object; }; /** - * Converts this DeleteShardsResponse to JSON. + * Converts this GetCellInfoNamesResponse to JSON. * @function toJSON - * @memberof vtctldata.DeleteShardsResponse + * @memberof vtctldata.GetCellInfoNamesResponse * @instance * @returns {Object.} JSON object */ - DeleteShardsResponse.prototype.toJSON = function toJSON() { + GetCellInfoNamesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteShardsResponse; + return GetCellInfoNamesResponse; })(); - vtctldata.DeleteTabletsRequest = (function() { + vtctldata.GetCellInfoRequest = (function() { /** - * Properties of a DeleteTabletsRequest. + * Properties of a GetCellInfoRequest. * @memberof vtctldata - * @interface IDeleteTabletsRequest - * @property {Array.|null} [tablet_aliases] DeleteTabletsRequest tablet_aliases - * @property {boolean|null} [allow_primary] DeleteTabletsRequest allow_primary + * @interface IGetCellInfoRequest + * @property {string|null} [cell] GetCellInfoRequest cell */ /** - * Constructs a new DeleteTabletsRequest. + * Constructs a new GetCellInfoRequest. * @memberof vtctldata - * @classdesc Represents a DeleteTabletsRequest. - * @implements IDeleteTabletsRequest + * @classdesc Represents a GetCellInfoRequest. + * @implements IGetCellInfoRequest * @constructor - * @param {vtctldata.IDeleteTabletsRequest=} [properties] Properties to set + * @param {vtctldata.IGetCellInfoRequest=} [properties] Properties to set */ - function DeleteTabletsRequest(properties) { - this.tablet_aliases = []; + function GetCellInfoRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -50117,91 +52997,75 @@ $root.vtctldata = (function() { } /** - * DeleteTabletsRequest tablet_aliases. - * @member {Array.} tablet_aliases - * @memberof vtctldata.DeleteTabletsRequest - * @instance - */ - DeleteTabletsRequest.prototype.tablet_aliases = $util.emptyArray; - - /** - * DeleteTabletsRequest allow_primary. - * @member {boolean} allow_primary - * @memberof vtctldata.DeleteTabletsRequest + * GetCellInfoRequest cell. + * @member {string} cell + * @memberof vtctldata.GetCellInfoRequest * @instance */ - DeleteTabletsRequest.prototype.allow_primary = false; + GetCellInfoRequest.prototype.cell = ""; /** - * Creates a new DeleteTabletsRequest instance using the specified properties. + * Creates a new GetCellInfoRequest instance using the specified properties. * @function create - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.GetCellInfoRequest * @static - * @param {vtctldata.IDeleteTabletsRequest=} [properties] Properties to set - * @returns {vtctldata.DeleteTabletsRequest} DeleteTabletsRequest instance + * @param {vtctldata.IGetCellInfoRequest=} [properties] Properties to set + * @returns {vtctldata.GetCellInfoRequest} GetCellInfoRequest instance */ - DeleteTabletsRequest.create = function create(properties) { - return new DeleteTabletsRequest(properties); + GetCellInfoRequest.create = function create(properties) { + return new GetCellInfoRequest(properties); }; /** - * Encodes the specified DeleteTabletsRequest message. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. + * Encodes the specified GetCellInfoRequest message. Does not implicitly {@link vtctldata.GetCellInfoRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.GetCellInfoRequest * @static - * @param {vtctldata.IDeleteTabletsRequest} message DeleteTabletsRequest message or plain object to encode + * @param {vtctldata.IGetCellInfoRequest} message GetCellInfoRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTabletsRequest.encode = function encode(message, writer) { + GetCellInfoRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tablet_aliases != null && message.tablet_aliases.length) - for (var i = 0; i < message.tablet_aliases.length; ++i) - $root.topodata.TabletAlias.encode(message.tablet_aliases[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.allow_primary != null && Object.hasOwnProperty.call(message, "allow_primary")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allow_primary); + if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cell); return writer; }; /** - * Encodes the specified DeleteTabletsRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. + * Encodes the specified GetCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.GetCellInfoRequest * @static - * @param {vtctldata.IDeleteTabletsRequest} message DeleteTabletsRequest message or plain object to encode + * @param {vtctldata.IGetCellInfoRequest} message GetCellInfoRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTabletsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetCellInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteTabletsRequest message from the specified reader or buffer. + * Decodes a GetCellInfoRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.GetCellInfoRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.DeleteTabletsRequest} DeleteTabletsRequest + * @returns {vtctldata.GetCellInfoRequest} GetCellInfoRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteTabletsRequest.decode = function decode(reader, length) { + GetCellInfoRequest.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.vtctldata.DeleteTabletsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellInfoRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.tablet_aliases && message.tablet_aliases.length)) - message.tablet_aliases = []; - message.tablet_aliases.push($root.topodata.TabletAlias.decode(reader, reader.uint32())); - break; - case 2: - message.allow_primary = reader.bool(); + message.cell = reader.string(); break; default: reader.skipType(tag & 7); @@ -50212,132 +53076,107 @@ $root.vtctldata = (function() { }; /** - * Decodes a DeleteTabletsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetCellInfoRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.GetCellInfoRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.DeleteTabletsRequest} DeleteTabletsRequest + * @returns {vtctldata.GetCellInfoRequest} GetCellInfoRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteTabletsRequest.decodeDelimited = function decodeDelimited(reader) { + GetCellInfoRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteTabletsRequest message. + * Verifies a GetCellInfoRequest message. * @function verify - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.GetCellInfoRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteTabletsRequest.verify = function verify(message) { + GetCellInfoRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_aliases != null && message.hasOwnProperty("tablet_aliases")) { - if (!Array.isArray(message.tablet_aliases)) - return "tablet_aliases: array expected"; - for (var i = 0; i < message.tablet_aliases.length; ++i) { - var error = $root.topodata.TabletAlias.verify(message.tablet_aliases[i]); - if (error) - return "tablet_aliases." + error; - } - } - if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) - if (typeof message.allow_primary !== "boolean") - return "allow_primary: boolean expected"; + if (message.cell != null && message.hasOwnProperty("cell")) + if (!$util.isString(message.cell)) + return "cell: string expected"; return null; }; /** - * Creates a DeleteTabletsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetCellInfoRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.GetCellInfoRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.DeleteTabletsRequest} DeleteTabletsRequest + * @returns {vtctldata.GetCellInfoRequest} GetCellInfoRequest */ - DeleteTabletsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.DeleteTabletsRequest) + GetCellInfoRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetCellInfoRequest) return object; - var message = new $root.vtctldata.DeleteTabletsRequest(); - if (object.tablet_aliases) { - if (!Array.isArray(object.tablet_aliases)) - throw TypeError(".vtctldata.DeleteTabletsRequest.tablet_aliases: array expected"); - message.tablet_aliases = []; - for (var i = 0; i < object.tablet_aliases.length; ++i) { - if (typeof object.tablet_aliases[i] !== "object") - throw TypeError(".vtctldata.DeleteTabletsRequest.tablet_aliases: object expected"); - message.tablet_aliases[i] = $root.topodata.TabletAlias.fromObject(object.tablet_aliases[i]); - } - } - if (object.allow_primary != null) - message.allow_primary = Boolean(object.allow_primary); + var message = new $root.vtctldata.GetCellInfoRequest(); + if (object.cell != null) + message.cell = String(object.cell); return message; }; /** - * Creates a plain object from a DeleteTabletsRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetCellInfoRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.GetCellInfoRequest * @static - * @param {vtctldata.DeleteTabletsRequest} message DeleteTabletsRequest + * @param {vtctldata.GetCellInfoRequest} message GetCellInfoRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteTabletsRequest.toObject = function toObject(message, options) { + GetCellInfoRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.tablet_aliases = []; if (options.defaults) - object.allow_primary = false; - if (message.tablet_aliases && message.tablet_aliases.length) { - object.tablet_aliases = []; - for (var j = 0; j < message.tablet_aliases.length; ++j) - object.tablet_aliases[j] = $root.topodata.TabletAlias.toObject(message.tablet_aliases[j], options); - } - if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) - object.allow_primary = message.allow_primary; + object.cell = ""; + if (message.cell != null && message.hasOwnProperty("cell")) + object.cell = message.cell; return object; }; /** - * Converts this DeleteTabletsRequest to JSON. + * Converts this GetCellInfoRequest to JSON. * @function toJSON - * @memberof vtctldata.DeleteTabletsRequest + * @memberof vtctldata.GetCellInfoRequest * @instance * @returns {Object.} JSON object */ - DeleteTabletsRequest.prototype.toJSON = function toJSON() { + GetCellInfoRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteTabletsRequest; + return GetCellInfoRequest; })(); - vtctldata.DeleteTabletsResponse = (function() { + vtctldata.GetCellInfoResponse = (function() { /** - * Properties of a DeleteTabletsResponse. + * Properties of a GetCellInfoResponse. * @memberof vtctldata - * @interface IDeleteTabletsResponse + * @interface IGetCellInfoResponse + * @property {topodata.ICellInfo|null} [cell_info] GetCellInfoResponse cell_info */ /** - * Constructs a new DeleteTabletsResponse. + * Constructs a new GetCellInfoResponse. * @memberof vtctldata - * @classdesc Represents a DeleteTabletsResponse. - * @implements IDeleteTabletsResponse + * @classdesc Represents a GetCellInfoResponse. + * @implements IGetCellInfoResponse * @constructor - * @param {vtctldata.IDeleteTabletsResponse=} [properties] Properties to set + * @param {vtctldata.IGetCellInfoResponse=} [properties] Properties to set */ - function DeleteTabletsResponse(properties) { + function GetCellInfoResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -50345,63 +53184,76 @@ $root.vtctldata = (function() { } /** - * Creates a new DeleteTabletsResponse instance using the specified properties. + * GetCellInfoResponse cell_info. + * @member {topodata.ICellInfo|null|undefined} cell_info + * @memberof vtctldata.GetCellInfoResponse + * @instance + */ + GetCellInfoResponse.prototype.cell_info = null; + + /** + * Creates a new GetCellInfoResponse instance using the specified properties. * @function create - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.GetCellInfoResponse * @static - * @param {vtctldata.IDeleteTabletsResponse=} [properties] Properties to set - * @returns {vtctldata.DeleteTabletsResponse} DeleteTabletsResponse instance + * @param {vtctldata.IGetCellInfoResponse=} [properties] Properties to set + * @returns {vtctldata.GetCellInfoResponse} GetCellInfoResponse instance */ - DeleteTabletsResponse.create = function create(properties) { - return new DeleteTabletsResponse(properties); + GetCellInfoResponse.create = function create(properties) { + return new GetCellInfoResponse(properties); }; /** - * Encodes the specified DeleteTabletsResponse message. Does not implicitly {@link vtctldata.DeleteTabletsResponse.verify|verify} messages. + * Encodes the specified GetCellInfoResponse message. Does not implicitly {@link vtctldata.GetCellInfoResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.GetCellInfoResponse * @static - * @param {vtctldata.IDeleteTabletsResponse} message DeleteTabletsResponse message or plain object to encode + * @param {vtctldata.IGetCellInfoResponse} message GetCellInfoResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTabletsResponse.encode = function encode(message, writer) { + GetCellInfoResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.cell_info != null && Object.hasOwnProperty.call(message, "cell_info")) + $root.topodata.CellInfo.encode(message.cell_info, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteTabletsResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteTabletsResponse.verify|verify} messages. + * Encodes the specified GetCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.GetCellInfoResponse * @static - * @param {vtctldata.IDeleteTabletsResponse} message DeleteTabletsResponse message or plain object to encode + * @param {vtctldata.IGetCellInfoResponse} message GetCellInfoResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTabletsResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetCellInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteTabletsResponse message from the specified reader or buffer. + * Decodes a GetCellInfoResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.GetCellInfoResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.DeleteTabletsResponse} DeleteTabletsResponse + * @returns {vtctldata.GetCellInfoResponse} GetCellInfoResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteTabletsResponse.decode = function decode(reader, length) { + GetCellInfoResponse.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.vtctldata.DeleteTabletsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellInfoResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.cell_info = $root.topodata.CellInfo.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -50411,95 +53263,111 @@ $root.vtctldata = (function() { }; /** - * Decodes a DeleteTabletsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetCellInfoResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.GetCellInfoResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.DeleteTabletsResponse} DeleteTabletsResponse + * @returns {vtctldata.GetCellInfoResponse} GetCellInfoResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteTabletsResponse.decodeDelimited = function decodeDelimited(reader) { + GetCellInfoResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteTabletsResponse message. + * Verifies a GetCellInfoResponse message. * @function verify - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.GetCellInfoResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteTabletsResponse.verify = function verify(message) { + GetCellInfoResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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 DeleteTabletsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetCellInfoResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.GetCellInfoResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.DeleteTabletsResponse} DeleteTabletsResponse + * @returns {vtctldata.GetCellInfoResponse} GetCellInfoResponse */ - DeleteTabletsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.DeleteTabletsResponse) + GetCellInfoResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetCellInfoResponse) return object; - return new $root.vtctldata.DeleteTabletsResponse(); + var message = new $root.vtctldata.GetCellInfoResponse(); + if (object.cell_info != null) { + if (typeof object.cell_info !== "object") + throw TypeError(".vtctldata.GetCellInfoResponse.cell_info: object expected"); + message.cell_info = $root.topodata.CellInfo.fromObject(object.cell_info); + } + return message; }; /** - * Creates a plain object from a DeleteTabletsResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetCellInfoResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.GetCellInfoResponse * @static - * @param {vtctldata.DeleteTabletsResponse} message DeleteTabletsResponse + * @param {vtctldata.GetCellInfoResponse} message GetCellInfoResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteTabletsResponse.toObject = function toObject() { - return {}; + GetCellInfoResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.cell_info = null; + if (message.cell_info != null && message.hasOwnProperty("cell_info")) + object.cell_info = $root.topodata.CellInfo.toObject(message.cell_info, options); + return object; }; /** - * Converts this DeleteTabletsResponse to JSON. + * Converts this GetCellInfoResponse to JSON. * @function toJSON - * @memberof vtctldata.DeleteTabletsResponse + * @memberof vtctldata.GetCellInfoResponse * @instance * @returns {Object.} JSON object */ - DeleteTabletsResponse.prototype.toJSON = function toJSON() { + GetCellInfoResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteTabletsResponse; + return GetCellInfoResponse; })(); - vtctldata.GetBackupsRequest = (function() { + vtctldata.GetCellsAliasesRequest = (function() { /** - * Properties of a GetBackupsRequest. + * Properties of a GetCellsAliasesRequest. * @memberof vtctldata - * @interface IGetBackupsRequest - * @property {string|null} [keyspace] GetBackupsRequest keyspace - * @property {string|null} [shard] GetBackupsRequest shard + * @interface IGetCellsAliasesRequest */ /** - * Constructs a new GetBackupsRequest. + * Constructs a new GetCellsAliasesRequest. * @memberof vtctldata - * @classdesc Represents a GetBackupsRequest. - * @implements IGetBackupsRequest + * @classdesc Represents a GetCellsAliasesRequest. + * @implements IGetCellsAliasesRequest * @constructor - * @param {vtctldata.IGetBackupsRequest=} [properties] Properties to set + * @param {vtctldata.IGetCellsAliasesRequest=} [properties] Properties to set */ - function GetBackupsRequest(properties) { + function GetCellsAliasesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -50507,89 +53375,63 @@ $root.vtctldata = (function() { } /** - * GetBackupsRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.GetBackupsRequest - * @instance - */ - GetBackupsRequest.prototype.keyspace = ""; - - /** - * GetBackupsRequest shard. - * @member {string} shard - * @memberof vtctldata.GetBackupsRequest - * @instance - */ - GetBackupsRequest.prototype.shard = ""; - - /** - * Creates a new GetBackupsRequest instance using the specified properties. + * Creates a new GetCellsAliasesRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetBackupsRequest + * @memberof vtctldata.GetCellsAliasesRequest * @static - * @param {vtctldata.IGetBackupsRequest=} [properties] Properties to set - * @returns {vtctldata.GetBackupsRequest} GetBackupsRequest instance + * @param {vtctldata.IGetCellsAliasesRequest=} [properties] Properties to set + * @returns {vtctldata.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 vtctldata.GetBackupsRequest.verify|verify} messages. + * Encodes the specified GetCellsAliasesRequest message. Does not implicitly {@link vtctldata.GetCellsAliasesRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetBackupsRequest + * @memberof vtctldata.GetCellsAliasesRequest * @static - * @param {vtctldata.IGetBackupsRequest} message GetBackupsRequest message or plain object to encode + * @param {vtctldata.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.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); return writer; }; /** - * Encodes the specified GetBackupsRequest message, length delimited. Does not implicitly {@link vtctldata.GetBackupsRequest.verify|verify} messages. + * Encodes the specified GetCellsAliasesRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellsAliasesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetBackupsRequest + * @memberof vtctldata.GetCellsAliasesRequest * @static - * @param {vtctldata.IGetBackupsRequest} message GetBackupsRequest message or plain object to encode + * @param {vtctldata.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 vtctldata.GetBackupsRequest + * @memberof vtctldata.GetCellsAliasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetBackupsRequest} GetBackupsRequest + * @returns {vtctldata.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.vtctldata.GetBackupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellsAliasesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.keyspace = reader.string(); - break; - case 2: - message.shard = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -50599,117 +53441,95 @@ $root.vtctldata = (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 vtctldata.GetBackupsRequest + * @memberof vtctldata.GetCellsAliasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetBackupsRequest} GetBackupsRequest + * @returns {vtctldata.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 vtctldata.GetBackupsRequest + * @memberof vtctldata.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.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"; 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 vtctldata.GetBackupsRequest + * @memberof vtctldata.GetCellsAliasesRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetBackupsRequest} GetBackupsRequest + * @returns {vtctldata.GetCellsAliasesRequest} GetCellsAliasesRequest */ - GetBackupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetBackupsRequest) + GetCellsAliasesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetCellsAliasesRequest) return object; - var message = new $root.vtctldata.GetBackupsRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - return message; + return new $root.vtctldata.GetCellsAliasesRequest(); }; /** - * 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 vtctldata.GetBackupsRequest + * @memberof vtctldata.GetCellsAliasesRequest * @static - * @param {vtctldata.GetBackupsRequest} message GetBackupsRequest + * @param {vtctldata.GetCellsAliasesRequest} message GetCellsAliasesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetBackupsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.keyspace = ""; - object.shard = ""; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - return object; + GetCellsAliasesRequest.toObject = function toObject() { + return {}; }; /** - * Converts this GetBackupsRequest to JSON. + * Converts this GetCellsAliasesRequest to JSON. * @function toJSON - * @memberof vtctldata.GetBackupsRequest + * @memberof vtctldata.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; })(); - vtctldata.GetBackupsResponse = (function() { + vtctldata.GetCellsAliasesResponse = (function() { /** - * Properties of a GetBackupsResponse. + * Properties of a GetCellsAliasesResponse. * @memberof vtctldata - * @interface IGetBackupsResponse - * @property {Array.|null} [backups] GetBackupsResponse backups + * @interface IGetCellsAliasesResponse + * @property {Object.|null} [aliases] GetCellsAliasesResponse aliases */ /** - * Constructs a new GetBackupsResponse. + * Constructs a new GetCellsAliasesResponse. * @memberof vtctldata - * @classdesc Represents a GetBackupsResponse. - * @implements IGetBackupsResponse + * @classdesc Represents a GetCellsAliasesResponse. + * @implements IGetCellsAliasesResponse * @constructor - * @param {vtctldata.IGetBackupsResponse=} [properties] Properties to set + * @param {vtctldata.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) @@ -50717,78 +53537,97 @@ $root.vtctldata = (function() { } /** - * GetBackupsResponse backups. - * @member {Array.} backups - * @memberof vtctldata.GetBackupsResponse + * GetCellsAliasesResponse aliases. + * @member {Object.} aliases + * @memberof vtctldata.GetCellsAliasesResponse * @instance */ - GetBackupsResponse.prototype.backups = $util.emptyArray; + GetCellsAliasesResponse.prototype.aliases = $util.emptyObject; /** - * Creates a new GetBackupsResponse instance using the specified properties. + * Creates a new GetCellsAliasesResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetBackupsResponse + * @memberof vtctldata.GetCellsAliasesResponse * @static - * @param {vtctldata.IGetBackupsResponse=} [properties] Properties to set - * @returns {vtctldata.GetBackupsResponse} GetBackupsResponse instance + * @param {vtctldata.IGetCellsAliasesResponse=} [properties] Properties to set + * @returns {vtctldata.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 vtctldata.GetBackupsResponse.verify|verify} messages. + * Encodes the specified GetCellsAliasesResponse message. Does not implicitly {@link vtctldata.GetCellsAliasesResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetBackupsResponse + * @memberof vtctldata.GetCellsAliasesResponse * @static - * @param {vtctldata.IGetBackupsResponse} message GetBackupsResponse message or plain object to encode + * @param {vtctldata.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.mysqlctl.BackupInfo.encode(message.backups[i], writer.uint32(/* id 1, wireType 2 =*/10).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 1, wireType 2 =*/10).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 GetBackupsResponse message, length delimited. Does not implicitly {@link vtctldata.GetBackupsResponse.verify|verify} messages. + * Encodes the specified GetCellsAliasesResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellsAliasesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetBackupsResponse + * @memberof vtctldata.GetCellsAliasesResponse * @static - * @param {vtctldata.IGetBackupsResponse} message GetBackupsResponse message or plain object to encode + * @param {vtctldata.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 vtctldata.GetBackupsResponse + * @memberof vtctldata.GetCellsAliasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetBackupsResponse} GetBackupsResponse + * @returns {vtctldata.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.vtctldata.GetBackupsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetCellsAliasesResponse(), key, value; 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.mysqlctl.BackupInfo.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); @@ -50799,123 +53638,125 @@ $root.vtctldata = (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 vtctldata.GetBackupsResponse + * @memberof vtctldata.GetCellsAliasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetBackupsResponse} GetBackupsResponse + * @returns {vtctldata.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 vtctldata.GetBackupsResponse + * @memberof vtctldata.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.mysqlctl.BackupInfo.verify(message.backups[i]); + 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 "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 vtctldata.GetBackupsResponse + * @memberof vtctldata.GetCellsAliasesResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetBackupsResponse} GetBackupsResponse + * @returns {vtctldata.GetCellsAliasesResponse} GetCellsAliasesResponse */ - GetBackupsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetBackupsResponse) + GetCellsAliasesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetCellsAliasesResponse) return object; - var message = new $root.vtctldata.GetBackupsResponse(); - if (object.backups) { - if (!Array.isArray(object.backups)) - throw TypeError(".vtctldata.GetBackupsResponse.backups: array expected"); - message.backups = []; - for (var i = 0; i < object.backups.length; ++i) { - if (typeof object.backups[i] !== "object") - throw TypeError(".vtctldata.GetBackupsResponse.backups: object expected"); - message.backups[i] = $root.mysqlctl.BackupInfo.fromObject(object.backups[i]); + var message = new $root.vtctldata.GetCellsAliasesResponse(); + if (object.aliases) { + if (typeof object.aliases !== "object") + throw TypeError(".vtctldata.GetCellsAliasesResponse.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(".vtctldata.GetCellsAliasesResponse.aliases: object expected"); + message.aliases[keys[i]] = $root.topodata.CellsAlias.fromObject(object.aliases[keys[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 vtctldata.GetBackupsResponse + * @memberof vtctldata.GetCellsAliasesResponse * @static - * @param {vtctldata.GetBackupsResponse} message GetBackupsResponse + * @param {vtctldata.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.mysqlctl.BackupInfo.toObject(message.backups[j], options); + if (options.objects || options.defaults) + object.aliases = {}; + 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 GetBackupsResponse to JSON. + * Converts this GetCellsAliasesResponse to JSON. * @function toJSON - * @memberof vtctldata.GetBackupsResponse + * @memberof vtctldata.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; })(); - vtctldata.GetCellInfoNamesRequest = (function() { + vtctldata.GetKeyspacesRequest = (function() { /** - * Properties of a GetCellInfoNamesRequest. + * Properties of a GetKeyspacesRequest. * @memberof vtctldata - * @interface IGetCellInfoNamesRequest + * @interface IGetKeyspacesRequest */ /** - * Constructs a new GetCellInfoNamesRequest. + * Constructs a new GetKeyspacesRequest. * @memberof vtctldata - * @classdesc Represents a GetCellInfoNamesRequest. - * @implements IGetCellInfoNamesRequest + * @classdesc Represents a GetKeyspacesRequest. + * @implements IGetKeyspacesRequest * @constructor - * @param {vtctldata.IGetCellInfoNamesRequest=} [properties] Properties to set + * @param {vtctldata.IGetKeyspacesRequest=} [properties] Properties to set */ - function GetCellInfoNamesRequest(properties) { + function GetKeyspacesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -50923,60 +53764,60 @@ $root.vtctldata = (function() { } /** - * Creates a new GetCellInfoNamesRequest instance using the specified properties. + * Creates a new GetKeyspacesRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetCellInfoNamesRequest + * @memberof vtctldata.GetKeyspacesRequest * @static - * @param {vtctldata.IGetCellInfoNamesRequest=} [properties] Properties to set - * @returns {vtctldata.GetCellInfoNamesRequest} GetCellInfoNamesRequest instance + * @param {vtctldata.IGetKeyspacesRequest=} [properties] Properties to set + * @returns {vtctldata.GetKeyspacesRequest} GetKeyspacesRequest instance */ - GetCellInfoNamesRequest.create = function create(properties) { - return new GetCellInfoNamesRequest(properties); + GetKeyspacesRequest.create = function create(properties) { + return new GetKeyspacesRequest(properties); }; /** - * Encodes the specified GetCellInfoNamesRequest message. Does not implicitly {@link vtctldata.GetCellInfoNamesRequest.verify|verify} messages. + * Encodes the specified GetKeyspacesRequest message. Does not implicitly {@link vtctldata.GetKeyspacesRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetCellInfoNamesRequest + * @memberof vtctldata.GetKeyspacesRequest * @static - * @param {vtctldata.IGetCellInfoNamesRequest} message GetCellInfoNamesRequest message or plain object to encode + * @param {vtctldata.IGetKeyspacesRequest} message GetKeyspacesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCellInfoNamesRequest.encode = function encode(message, writer) { + GetKeyspacesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified GetCellInfoNamesRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoNamesRequest.verify|verify} messages. + * Encodes the specified GetKeyspacesRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspacesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetCellInfoNamesRequest + * @memberof vtctldata.GetKeyspacesRequest * @static - * @param {vtctldata.IGetCellInfoNamesRequest} message GetCellInfoNamesRequest message or plain object to encode + * @param {vtctldata.IGetKeyspacesRequest} message GetKeyspacesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCellInfoNamesRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetKeyspacesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCellInfoNamesRequest message from the specified reader or buffer. + * Decodes a GetKeyspacesRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetCellInfoNamesRequest + * @memberof vtctldata.GetKeyspacesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetCellInfoNamesRequest} GetCellInfoNamesRequest + * @returns {vtctldata.GetKeyspacesRequest} GetKeyspacesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCellInfoNamesRequest.decode = function decode(reader, length) { + GetKeyspacesRequest.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.vtctldata.GetCellInfoNamesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspacesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -50989,95 +53830,95 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetCellInfoNamesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetKeyspacesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetCellInfoNamesRequest + * @memberof vtctldata.GetKeyspacesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetCellInfoNamesRequest} GetCellInfoNamesRequest + * @returns {vtctldata.GetKeyspacesRequest} GetKeyspacesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCellInfoNamesRequest.decodeDelimited = function decodeDelimited(reader) { + GetKeyspacesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetCellInfoNamesRequest message. + * Verifies a GetKeyspacesRequest message. * @function verify - * @memberof vtctldata.GetCellInfoNamesRequest + * @memberof vtctldata.GetKeyspacesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetCellInfoNamesRequest.verify = function verify(message) { + GetKeyspacesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a GetCellInfoNamesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetKeyspacesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetCellInfoNamesRequest + * @memberof vtctldata.GetKeyspacesRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetCellInfoNamesRequest} GetCellInfoNamesRequest + * @returns {vtctldata.GetKeyspacesRequest} GetKeyspacesRequest */ - GetCellInfoNamesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetCellInfoNamesRequest) + GetKeyspacesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetKeyspacesRequest) return object; - return new $root.vtctldata.GetCellInfoNamesRequest(); + return new $root.vtctldata.GetKeyspacesRequest(); }; /** - * Creates a plain object from a GetCellInfoNamesRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetKeyspacesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetCellInfoNamesRequest + * @memberof vtctldata.GetKeyspacesRequest * @static - * @param {vtctldata.GetCellInfoNamesRequest} message GetCellInfoNamesRequest + * @param {vtctldata.GetKeyspacesRequest} message GetKeyspacesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCellInfoNamesRequest.toObject = function toObject() { + GetKeyspacesRequest.toObject = function toObject() { return {}; }; /** - * Converts this GetCellInfoNamesRequest to JSON. + * Converts this GetKeyspacesRequest to JSON. * @function toJSON - * @memberof vtctldata.GetCellInfoNamesRequest + * @memberof vtctldata.GetKeyspacesRequest * @instance * @returns {Object.} JSON object */ - GetCellInfoNamesRequest.prototype.toJSON = function toJSON() { + GetKeyspacesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetCellInfoNamesRequest; + return GetKeyspacesRequest; })(); - vtctldata.GetCellInfoNamesResponse = (function() { + vtctldata.GetKeyspacesResponse = (function() { /** - * Properties of a GetCellInfoNamesResponse. + * Properties of a GetKeyspacesResponse. * @memberof vtctldata - * @interface IGetCellInfoNamesResponse - * @property {Array.|null} [names] GetCellInfoNamesResponse names + * @interface IGetKeyspacesResponse + * @property {Array.|null} [keyspaces] GetKeyspacesResponse keyspaces */ /** - * Constructs a new GetCellInfoNamesResponse. + * Constructs a new GetKeyspacesResponse. * @memberof vtctldata - * @classdesc Represents a GetCellInfoNamesResponse. - * @implements IGetCellInfoNamesResponse + * @classdesc Represents a GetKeyspacesResponse. + * @implements IGetKeyspacesResponse * @constructor - * @param {vtctldata.IGetCellInfoNamesResponse=} [properties] Properties to set + * @param {vtctldata.IGetKeyspacesResponse=} [properties] Properties to set */ - function GetCellInfoNamesResponse(properties) { - this.names = []; + function GetKeyspacesResponse(properties) { + this.keyspaces = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -51085,78 +53926,78 @@ $root.vtctldata = (function() { } /** - * GetCellInfoNamesResponse names. - * @member {Array.} names - * @memberof vtctldata.GetCellInfoNamesResponse + * GetKeyspacesResponse keyspaces. + * @member {Array.} keyspaces + * @memberof vtctldata.GetKeyspacesResponse * @instance */ - GetCellInfoNamesResponse.prototype.names = $util.emptyArray; + GetKeyspacesResponse.prototype.keyspaces = $util.emptyArray; /** - * Creates a new GetCellInfoNamesResponse instance using the specified properties. + * Creates a new GetKeyspacesResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetCellInfoNamesResponse + * @memberof vtctldata.GetKeyspacesResponse * @static - * @param {vtctldata.IGetCellInfoNamesResponse=} [properties] Properties to set - * @returns {vtctldata.GetCellInfoNamesResponse} GetCellInfoNamesResponse instance + * @param {vtctldata.IGetKeyspacesResponse=} [properties] Properties to set + * @returns {vtctldata.GetKeyspacesResponse} GetKeyspacesResponse instance */ - GetCellInfoNamesResponse.create = function create(properties) { - return new GetCellInfoNamesResponse(properties); + GetKeyspacesResponse.create = function create(properties) { + return new GetKeyspacesResponse(properties); }; /** - * Encodes the specified GetCellInfoNamesResponse message. Does not implicitly {@link vtctldata.GetCellInfoNamesResponse.verify|verify} messages. + * Encodes the specified GetKeyspacesResponse message. Does not implicitly {@link vtctldata.GetKeyspacesResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetCellInfoNamesResponse + * @memberof vtctldata.GetKeyspacesResponse * @static - * @param {vtctldata.IGetCellInfoNamesResponse} message GetCellInfoNamesResponse message or plain object to encode + * @param {vtctldata.IGetKeyspacesResponse} message GetKeyspacesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCellInfoNamesResponse.encode = function encode(message, writer) { + GetKeyspacesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.names != null && message.names.length) - for (var i = 0; i < message.names.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.names[i]); + if (message.keyspaces != null && message.keyspaces.length) + for (var i = 0; i < message.keyspaces.length; ++i) + $root.vtctldata.Keyspace.encode(message.keyspaces[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetCellInfoNamesResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoNamesResponse.verify|verify} messages. + * Encodes the specified GetKeyspacesResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspacesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetCellInfoNamesResponse + * @memberof vtctldata.GetKeyspacesResponse * @static - * @param {vtctldata.IGetCellInfoNamesResponse} message GetCellInfoNamesResponse message or plain object to encode + * @param {vtctldata.IGetKeyspacesResponse} message GetKeyspacesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCellInfoNamesResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetKeyspacesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCellInfoNamesResponse message from the specified reader or buffer. + * Decodes a GetKeyspacesResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetCellInfoNamesResponse + * @memberof vtctldata.GetKeyspacesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetCellInfoNamesResponse} GetCellInfoNamesResponse + * @returns {vtctldata.GetKeyspacesResponse} GetKeyspacesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCellInfoNamesResponse.decode = function decode(reader, length) { + GetKeyspacesResponse.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.vtctldata.GetCellInfoNamesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspacesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.names && message.names.length)) - message.names = []; - message.names.push(reader.string()); + if (!(message.keyspaces && message.keyspaces.length)) + message.keyspaces = []; + message.keyspaces.push($root.vtctldata.Keyspace.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -51167,119 +54008,124 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetCellInfoNamesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetKeyspacesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetCellInfoNamesResponse + * @memberof vtctldata.GetKeyspacesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetCellInfoNamesResponse} GetCellInfoNamesResponse + * @returns {vtctldata.GetKeyspacesResponse} GetKeyspacesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCellInfoNamesResponse.decodeDelimited = function decodeDelimited(reader) { + GetKeyspacesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetCellInfoNamesResponse message. + * Verifies a GetKeyspacesResponse message. * @function verify - * @memberof vtctldata.GetCellInfoNamesResponse + * @memberof vtctldata.GetKeyspacesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetCellInfoNamesResponse.verify = function verify(message) { + GetKeyspacesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.names != null && message.hasOwnProperty("names")) { - if (!Array.isArray(message.names)) - return "names: array expected"; - for (var i = 0; i < message.names.length; ++i) - if (!$util.isString(message.names[i])) - return "names: 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) { + var error = $root.vtctldata.Keyspace.verify(message.keyspaces[i]); + if (error) + return "keyspaces." + error; + } } return null; }; /** - * Creates a GetCellInfoNamesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetKeyspacesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetCellInfoNamesResponse + * @memberof vtctldata.GetKeyspacesResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetCellInfoNamesResponse} GetCellInfoNamesResponse + * @returns {vtctldata.GetKeyspacesResponse} GetKeyspacesResponse */ - GetCellInfoNamesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetCellInfoNamesResponse) + GetKeyspacesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetKeyspacesResponse) return object; - var message = new $root.vtctldata.GetCellInfoNamesResponse(); - if (object.names) { - if (!Array.isArray(object.names)) - throw TypeError(".vtctldata.GetCellInfoNamesResponse.names: array expected"); - message.names = []; - for (var i = 0; i < object.names.length; ++i) - message.names[i] = String(object.names[i]); + var message = new $root.vtctldata.GetKeyspacesResponse(); + if (object.keyspaces) { + if (!Array.isArray(object.keyspaces)) + throw TypeError(".vtctldata.GetKeyspacesResponse.keyspaces: array expected"); + message.keyspaces = []; + for (var i = 0; i < object.keyspaces.length; ++i) { + if (typeof object.keyspaces[i] !== "object") + throw TypeError(".vtctldata.GetKeyspacesResponse.keyspaces: object expected"); + message.keyspaces[i] = $root.vtctldata.Keyspace.fromObject(object.keyspaces[i]); + } } return message; }; /** - * Creates a plain object from a GetCellInfoNamesResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetKeyspacesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetCellInfoNamesResponse + * @memberof vtctldata.GetKeyspacesResponse * @static - * @param {vtctldata.GetCellInfoNamesResponse} message GetCellInfoNamesResponse + * @param {vtctldata.GetKeyspacesResponse} message GetKeyspacesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCellInfoNamesResponse.toObject = function toObject(message, options) { + GetKeyspacesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.names = []; - if (message.names && message.names.length) { - object.names = []; - for (var j = 0; j < message.names.length; ++j) - object.names[j] = message.names[j]; + object.keyspaces = []; + if (message.keyspaces && message.keyspaces.length) { + object.keyspaces = []; + for (var j = 0; j < message.keyspaces.length; ++j) + object.keyspaces[j] = $root.vtctldata.Keyspace.toObject(message.keyspaces[j], options); } return object; }; /** - * Converts this GetCellInfoNamesResponse to JSON. + * Converts this GetKeyspacesResponse to JSON. * @function toJSON - * @memberof vtctldata.GetCellInfoNamesResponse + * @memberof vtctldata.GetKeyspacesResponse * @instance * @returns {Object.} JSON object */ - GetCellInfoNamesResponse.prototype.toJSON = function toJSON() { + GetKeyspacesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetCellInfoNamesResponse; + return GetKeyspacesResponse; })(); - vtctldata.GetCellInfoRequest = (function() { + vtctldata.GetKeyspaceRequest = (function() { /** - * Properties of a GetCellInfoRequest. + * Properties of a GetKeyspaceRequest. * @memberof vtctldata - * @interface IGetCellInfoRequest - * @property {string|null} [cell] GetCellInfoRequest cell + * @interface IGetKeyspaceRequest + * @property {string|null} [keyspace] GetKeyspaceRequest keyspace */ /** - * Constructs a new GetCellInfoRequest. + * Constructs a new GetKeyspaceRequest. * @memberof vtctldata - * @classdesc Represents a GetCellInfoRequest. - * @implements IGetCellInfoRequest + * @classdesc Represents a GetKeyspaceRequest. + * @implements IGetKeyspaceRequest * @constructor - * @param {vtctldata.IGetCellInfoRequest=} [properties] Properties to set + * @param {vtctldata.IGetKeyspaceRequest=} [properties] Properties to set */ - function GetCellInfoRequest(properties) { + function GetKeyspaceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -51287,75 +54133,75 @@ $root.vtctldata = (function() { } /** - * GetCellInfoRequest cell. - * @member {string} cell - * @memberof vtctldata.GetCellInfoRequest + * GetKeyspaceRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.GetKeyspaceRequest * @instance */ - GetCellInfoRequest.prototype.cell = ""; + GetKeyspaceRequest.prototype.keyspace = ""; /** - * Creates a new GetCellInfoRequest instance using the specified properties. + * Creates a new GetKeyspaceRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetCellInfoRequest + * @memberof vtctldata.GetKeyspaceRequest * @static - * @param {vtctldata.IGetCellInfoRequest=} [properties] Properties to set - * @returns {vtctldata.GetCellInfoRequest} GetCellInfoRequest instance + * @param {vtctldata.IGetKeyspaceRequest=} [properties] Properties to set + * @returns {vtctldata.GetKeyspaceRequest} GetKeyspaceRequest instance */ - GetCellInfoRequest.create = function create(properties) { - return new GetCellInfoRequest(properties); + GetKeyspaceRequest.create = function create(properties) { + return new GetKeyspaceRequest(properties); }; /** - * Encodes the specified GetCellInfoRequest message. Does not implicitly {@link vtctldata.GetCellInfoRequest.verify|verify} messages. + * Encodes the specified GetKeyspaceRequest message. Does not implicitly {@link vtctldata.GetKeyspaceRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetCellInfoRequest + * @memberof vtctldata.GetKeyspaceRequest * @static - * @param {vtctldata.IGetCellInfoRequest} message GetCellInfoRequest message or plain object to encode + * @param {vtctldata.IGetKeyspaceRequest} message GetKeyspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCellInfoRequest.encode = function encode(message, writer) { + GetKeyspaceRequest.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.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); return writer; }; /** - * Encodes the specified GetCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoRequest.verify|verify} messages. + * Encodes the specified GetKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetCellInfoRequest + * @memberof vtctldata.GetKeyspaceRequest * @static - * @param {vtctldata.IGetCellInfoRequest} message GetCellInfoRequest message or plain object to encode + * @param {vtctldata.IGetKeyspaceRequest} message GetKeyspaceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCellInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCellInfoRequest message from the specified reader or buffer. + * Decodes a GetKeyspaceRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetCellInfoRequest + * @memberof vtctldata.GetKeyspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetCellInfoRequest} GetCellInfoRequest + * @returns {vtctldata.GetKeyspaceRequest} GetKeyspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCellInfoRequest.decode = function decode(reader, length) { + GetKeyspaceRequest.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.vtctldata.GetCellInfoRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspaceRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.cell = reader.string(); + message.keyspace = reader.string(); break; default: reader.skipType(tag & 7); @@ -51366,107 +54212,107 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetCellInfoRequest message from the specified reader or buffer, length delimited. + * Decodes a GetKeyspaceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetCellInfoRequest + * @memberof vtctldata.GetKeyspaceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetCellInfoRequest} GetCellInfoRequest + * @returns {vtctldata.GetKeyspaceRequest} GetKeyspaceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCellInfoRequest.decodeDelimited = function decodeDelimited(reader) { + GetKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetCellInfoRequest message. + * Verifies a GetKeyspaceRequest message. * @function verify - * @memberof vtctldata.GetCellInfoRequest + * @memberof vtctldata.GetKeyspaceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetCellInfoRequest.verify = function verify(message) { + GetKeyspaceRequest.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.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; return null; }; /** - * Creates a GetCellInfoRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetKeyspaceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetCellInfoRequest + * @memberof vtctldata.GetKeyspaceRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetCellInfoRequest} GetCellInfoRequest + * @returns {vtctldata.GetKeyspaceRequest} GetKeyspaceRequest */ - GetCellInfoRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetCellInfoRequest) + GetKeyspaceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetKeyspaceRequest) return object; - var message = new $root.vtctldata.GetCellInfoRequest(); - if (object.cell != null) - message.cell = String(object.cell); + var message = new $root.vtctldata.GetKeyspaceRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); return message; }; /** - * Creates a plain object from a GetCellInfoRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetKeyspaceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetCellInfoRequest + * @memberof vtctldata.GetKeyspaceRequest * @static - * @param {vtctldata.GetCellInfoRequest} message GetCellInfoRequest + * @param {vtctldata.GetKeyspaceRequest} message GetKeyspaceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCellInfoRequest.toObject = function toObject(message, options) { + GetKeyspaceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.cell = ""; - if (message.cell != null && message.hasOwnProperty("cell")) - object.cell = message.cell; + object.keyspace = ""; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; return object; }; /** - * Converts this GetCellInfoRequest to JSON. + * Converts this GetKeyspaceRequest to JSON. * @function toJSON - * @memberof vtctldata.GetCellInfoRequest + * @memberof vtctldata.GetKeyspaceRequest * @instance * @returns {Object.} JSON object */ - GetCellInfoRequest.prototype.toJSON = function toJSON() { + GetKeyspaceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetCellInfoRequest; + return GetKeyspaceRequest; })(); - vtctldata.GetCellInfoResponse = (function() { + vtctldata.GetKeyspaceResponse = (function() { /** - * Properties of a GetCellInfoResponse. + * Properties of a GetKeyspaceResponse. * @memberof vtctldata - * @interface IGetCellInfoResponse - * @property {topodata.ICellInfo|null} [cell_info] GetCellInfoResponse cell_info + * @interface IGetKeyspaceResponse + * @property {vtctldata.IKeyspace|null} [keyspace] GetKeyspaceResponse keyspace */ /** - * Constructs a new GetCellInfoResponse. + * Constructs a new GetKeyspaceResponse. * @memberof vtctldata - * @classdesc Represents a GetCellInfoResponse. - * @implements IGetCellInfoResponse + * @classdesc Represents a GetKeyspaceResponse. + * @implements IGetKeyspaceResponse * @constructor - * @param {vtctldata.IGetCellInfoResponse=} [properties] Properties to set + * @param {vtctldata.IGetKeyspaceResponse=} [properties] Properties to set */ - function GetCellInfoResponse(properties) { + function GetKeyspaceResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -51474,75 +54320,75 @@ $root.vtctldata = (function() { } /** - * GetCellInfoResponse cell_info. - * @member {topodata.ICellInfo|null|undefined} cell_info - * @memberof vtctldata.GetCellInfoResponse + * GetKeyspaceResponse keyspace. + * @member {vtctldata.IKeyspace|null|undefined} keyspace + * @memberof vtctldata.GetKeyspaceResponse * @instance */ - GetCellInfoResponse.prototype.cell_info = null; + GetKeyspaceResponse.prototype.keyspace = null; /** - * Creates a new GetCellInfoResponse instance using the specified properties. + * Creates a new GetKeyspaceResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetCellInfoResponse + * @memberof vtctldata.GetKeyspaceResponse * @static - * @param {vtctldata.IGetCellInfoResponse=} [properties] Properties to set - * @returns {vtctldata.GetCellInfoResponse} GetCellInfoResponse instance + * @param {vtctldata.IGetKeyspaceResponse=} [properties] Properties to set + * @returns {vtctldata.GetKeyspaceResponse} GetKeyspaceResponse instance */ - GetCellInfoResponse.create = function create(properties) { - return new GetCellInfoResponse(properties); + GetKeyspaceResponse.create = function create(properties) { + return new GetKeyspaceResponse(properties); }; /** - * Encodes the specified GetCellInfoResponse message. Does not implicitly {@link vtctldata.GetCellInfoResponse.verify|verify} messages. + * Encodes the specified GetKeyspaceResponse message. Does not implicitly {@link vtctldata.GetKeyspaceResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetCellInfoResponse + * @memberof vtctldata.GetKeyspaceResponse * @static - * @param {vtctldata.IGetCellInfoResponse} message GetCellInfoResponse message or plain object to encode + * @param {vtctldata.IGetKeyspaceResponse} message GetKeyspaceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCellInfoResponse.encode = function encode(message, writer) { + GetKeyspaceResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.cell_info != null && Object.hasOwnProperty.call(message, "cell_info")) - $root.topodata.CellInfo.encode(message.cell_info, 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 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoResponse.verify|verify} messages. + * Encodes the specified GetKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetCellInfoResponse + * @memberof vtctldata.GetKeyspaceResponse * @static - * @param {vtctldata.IGetCellInfoResponse} message GetCellInfoResponse message or plain object to encode + * @param {vtctldata.IGetKeyspaceResponse} message GetKeyspaceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCellInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCellInfoResponse message from the specified reader or buffer. + * Decodes a GetKeyspaceResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetCellInfoResponse + * @memberof vtctldata.GetKeyspaceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetCellInfoResponse} GetCellInfoResponse + * @returns {vtctldata.GetKeyspaceResponse} GetKeyspaceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCellInfoResponse.decode = function decode(reader, length) { + GetKeyspaceResponse.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.vtctldata.GetCellInfoResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetKeyspaceResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.cell_info = $root.topodata.CellInfo.decode(reader, reader.uint32()); + message.keyspace = $root.vtctldata.Keyspace.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -51553,111 +54399,119 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetCellInfoResponse message from the specified reader or buffer, length delimited. + * Decodes a GetKeyspaceResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetCellInfoResponse + * @memberof vtctldata.GetKeyspaceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetCellInfoResponse} GetCellInfoResponse + * @returns {vtctldata.GetKeyspaceResponse} GetKeyspaceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCellInfoResponse.decodeDelimited = function decodeDelimited(reader) { + GetKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetCellInfoResponse message. + * Verifies a GetKeyspaceResponse message. * @function verify - * @memberof vtctldata.GetCellInfoResponse + * @memberof vtctldata.GetKeyspaceResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetCellInfoResponse.verify = function verify(message) { + GetKeyspaceResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.cell_info != null && message.hasOwnProperty("cell_info")) { - var error = $root.topodata.CellInfo.verify(message.cell_info); + if (message.keyspace != null && message.hasOwnProperty("keyspace")) { + var error = $root.vtctldata.Keyspace.verify(message.keyspace); if (error) - return "cell_info." + error; + return "keyspace." + error; } return null; }; /** - * Creates a GetCellInfoResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetKeyspaceResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetCellInfoResponse + * @memberof vtctldata.GetKeyspaceResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetCellInfoResponse} GetCellInfoResponse + * @returns {vtctldata.GetKeyspaceResponse} GetKeyspaceResponse */ - GetCellInfoResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetCellInfoResponse) + GetKeyspaceResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetKeyspaceResponse) return object; - var message = new $root.vtctldata.GetCellInfoResponse(); - if (object.cell_info != null) { - if (typeof object.cell_info !== "object") - throw TypeError(".vtctldata.GetCellInfoResponse.cell_info: object expected"); - message.cell_info = $root.topodata.CellInfo.fromObject(object.cell_info); + var message = new $root.vtctldata.GetKeyspaceResponse(); + if (object.keyspace != null) { + if (typeof object.keyspace !== "object") + throw TypeError(".vtctldata.GetKeyspaceResponse.keyspace: object expected"); + message.keyspace = $root.vtctldata.Keyspace.fromObject(object.keyspace); } return message; }; /** - * Creates a plain object from a GetCellInfoResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetKeyspaceResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetCellInfoResponse + * @memberof vtctldata.GetKeyspaceResponse * @static - * @param {vtctldata.GetCellInfoResponse} message GetCellInfoResponse + * @param {vtctldata.GetKeyspaceResponse} message GetKeyspaceResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCellInfoResponse.toObject = function toObject(message, options) { + GetKeyspaceResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.cell_info = null; - if (message.cell_info != null && message.hasOwnProperty("cell_info")) - object.cell_info = $root.topodata.CellInfo.toObject(message.cell_info, options); + object.keyspace = null; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = $root.vtctldata.Keyspace.toObject(message.keyspace, options); return object; }; /** - * Converts this GetCellInfoResponse to JSON. + * Converts this GetKeyspaceResponse to JSON. * @function toJSON - * @memberof vtctldata.GetCellInfoResponse + * @memberof vtctldata.GetKeyspaceResponse * @instance * @returns {Object.} JSON object */ - GetCellInfoResponse.prototype.toJSON = function toJSON() { + GetKeyspaceResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetCellInfoResponse; + return GetKeyspaceResponse; })(); - vtctldata.GetCellsAliasesRequest = (function() { + vtctldata.GetSchemaRequest = (function() { /** - * Properties of a GetCellsAliasesRequest. + * Properties of a GetSchemaRequest. * @memberof vtctldata - * @interface IGetCellsAliasesRequest + * @interface IGetSchemaRequest + * @property {topodata.ITabletAlias|null} [tablet_alias] GetSchemaRequest tablet_alias + * @property {Array.|null} [tables] GetSchemaRequest tables + * @property {Array.|null} [exclude_tables] GetSchemaRequest exclude_tables + * @property {boolean|null} [include_views] GetSchemaRequest include_views + * @property {boolean|null} [table_names_only] GetSchemaRequest table_names_only + * @property {boolean|null} [table_sizes_only] GetSchemaRequest table_sizes_only */ /** - * Constructs a new GetCellsAliasesRequest. + * Constructs a new GetSchemaRequest. * @memberof vtctldata - * @classdesc Represents a GetCellsAliasesRequest. - * @implements IGetCellsAliasesRequest + * @classdesc Represents a GetSchemaRequest. + * @implements IGetSchemaRequest * @constructor - * @param {vtctldata.IGetCellsAliasesRequest=} [properties] Properties to set + * @param {vtctldata.IGetSchemaRequest=} [properties] Properties to set */ - function GetCellsAliasesRequest(properties) { + function GetSchemaRequest(properties) { + this.tables = []; + this.exclude_tables = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -51665,63 +54519,147 @@ $root.vtctldata = (function() { } /** - * Creates a new GetCellsAliasesRequest instance using the specified properties. + * GetSchemaRequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.GetSchemaRequest + * @instance + */ + GetSchemaRequest.prototype.tablet_alias = null; + + /** + * GetSchemaRequest tables. + * @member {Array.} tables + * @memberof vtctldata.GetSchemaRequest + * @instance + */ + GetSchemaRequest.prototype.tables = $util.emptyArray; + + /** + * GetSchemaRequest exclude_tables. + * @member {Array.} exclude_tables + * @memberof vtctldata.GetSchemaRequest + * @instance + */ + GetSchemaRequest.prototype.exclude_tables = $util.emptyArray; + + /** + * GetSchemaRequest include_views. + * @member {boolean} include_views + * @memberof vtctldata.GetSchemaRequest + * @instance + */ + GetSchemaRequest.prototype.include_views = false; + + /** + * GetSchemaRequest table_names_only. + * @member {boolean} table_names_only + * @memberof vtctldata.GetSchemaRequest + * @instance + */ + GetSchemaRequest.prototype.table_names_only = false; + + /** + * GetSchemaRequest table_sizes_only. + * @member {boolean} table_sizes_only + * @memberof vtctldata.GetSchemaRequest + * @instance + */ + GetSchemaRequest.prototype.table_sizes_only = false; + + /** + * Creates a new GetSchemaRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.GetSchemaRequest * @static - * @param {vtctldata.IGetCellsAliasesRequest=} [properties] Properties to set - * @returns {vtctldata.GetCellsAliasesRequest} GetCellsAliasesRequest instance + * @param {vtctldata.IGetSchemaRequest=} [properties] Properties to set + * @returns {vtctldata.GetSchemaRequest} GetSchemaRequest instance */ - GetCellsAliasesRequest.create = function create(properties) { - return new GetCellsAliasesRequest(properties); + GetSchemaRequest.create = function create(properties) { + return new GetSchemaRequest(properties); }; /** - * Encodes the specified GetCellsAliasesRequest message. Does not implicitly {@link vtctldata.GetCellsAliasesRequest.verify|verify} messages. + * Encodes the specified GetSchemaRequest message. Does not implicitly {@link vtctldata.GetSchemaRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.GetSchemaRequest * @static - * @param {vtctldata.IGetCellsAliasesRequest} message GetCellsAliasesRequest message or plain object to encode + * @param {vtctldata.IGetSchemaRequest} message GetSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCellsAliasesRequest.encode = function encode(message, writer) { + GetSchemaRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) + $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.tables != null && message.tables.length) + for (var i = 0; i < message.tables.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.tables[i]); + if (message.exclude_tables != null && message.exclude_tables.length) + for (var i = 0; i < message.exclude_tables.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.exclude_tables[i]); + if (message.include_views != null && Object.hasOwnProperty.call(message, "include_views")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.include_views); + if (message.table_names_only != null && Object.hasOwnProperty.call(message, "table_names_only")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.table_names_only); + if (message.table_sizes_only != null && Object.hasOwnProperty.call(message, "table_sizes_only")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.table_sizes_only); return writer; }; /** - * Encodes the specified GetCellsAliasesRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellsAliasesRequest.verify|verify} messages. + * Encodes the specified GetSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetSchemaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.GetSchemaRequest * @static - * @param {vtctldata.IGetCellsAliasesRequest} message GetCellsAliasesRequest message or plain object to encode + * @param {vtctldata.IGetSchemaRequest} message GetSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCellsAliasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCellsAliasesRequest message from the specified reader or buffer. + * Decodes a GetSchemaRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.GetSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetCellsAliasesRequest} GetCellsAliasesRequest + * @returns {vtctldata.GetSchemaRequest} GetSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCellsAliasesRequest.decode = function decode(reader, length) { + GetSchemaRequest.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.vtctldata.GetCellsAliasesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSchemaRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + case 2: + if (!(message.tables && message.tables.length)) + message.tables = []; + message.tables.push(reader.string()); + break; + case 3: + if (!(message.exclude_tables && message.exclude_tables.length)) + message.exclude_tables = []; + message.exclude_tables.push(reader.string()); + break; + case 4: + message.include_views = reader.bool(); + break; + case 5: + message.table_names_only = reader.bool(); + break; + case 6: + message.table_sizes_only = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -51731,95 +54669,179 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetCellsAliasesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSchemaRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.GetSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetCellsAliasesRequest} GetCellsAliasesRequest + * @returns {vtctldata.GetSchemaRequest} GetSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCellsAliasesRequest.decodeDelimited = function decodeDelimited(reader) { + GetSchemaRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetCellsAliasesRequest message. + * Verifies a GetSchemaRequest message. * @function verify - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.GetSchemaRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetCellsAliasesRequest.verify = function verify(message) { + GetSchemaRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + var error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; + } + if (message.tables != null && message.hasOwnProperty("tables")) { + if (!Array.isArray(message.tables)) + return "tables: array expected"; + for (var i = 0; i < message.tables.length; ++i) + if (!$util.isString(message.tables[i])) + return "tables: string[] expected"; + } + if (message.exclude_tables != null && message.hasOwnProperty("exclude_tables")) { + if (!Array.isArray(message.exclude_tables)) + return "exclude_tables: array expected"; + for (var i = 0; i < message.exclude_tables.length; ++i) + if (!$util.isString(message.exclude_tables[i])) + return "exclude_tables: string[] expected"; + } + if (message.include_views != null && message.hasOwnProperty("include_views")) + if (typeof message.include_views !== "boolean") + return "include_views: boolean expected"; + if (message.table_names_only != null && message.hasOwnProperty("table_names_only")) + if (typeof message.table_names_only !== "boolean") + return "table_names_only: boolean expected"; + if (message.table_sizes_only != null && message.hasOwnProperty("table_sizes_only")) + if (typeof message.table_sizes_only !== "boolean") + return "table_sizes_only: boolean expected"; return null; }; /** - * Creates a GetCellsAliasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetSchemaRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.GetSchemaRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetCellsAliasesRequest} GetCellsAliasesRequest + * @returns {vtctldata.GetSchemaRequest} GetSchemaRequest */ - GetCellsAliasesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetCellsAliasesRequest) + GetSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetSchemaRequest) return object; - return new $root.vtctldata.GetCellsAliasesRequest(); + var message = new $root.vtctldata.GetSchemaRequest(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".vtctldata.GetSchemaRequest.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + } + if (object.tables) { + if (!Array.isArray(object.tables)) + throw TypeError(".vtctldata.GetSchemaRequest.tables: array expected"); + message.tables = []; + for (var i = 0; i < object.tables.length; ++i) + message.tables[i] = String(object.tables[i]); + } + if (object.exclude_tables) { + if (!Array.isArray(object.exclude_tables)) + throw TypeError(".vtctldata.GetSchemaRequest.exclude_tables: array expected"); + message.exclude_tables = []; + for (var i = 0; i < object.exclude_tables.length; ++i) + message.exclude_tables[i] = String(object.exclude_tables[i]); + } + if (object.include_views != null) + message.include_views = Boolean(object.include_views); + if (object.table_names_only != null) + message.table_names_only = Boolean(object.table_names_only); + if (object.table_sizes_only != null) + message.table_sizes_only = Boolean(object.table_sizes_only); + return message; }; /** - * Creates a plain object from a GetCellsAliasesRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetSchemaRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.GetSchemaRequest * @static - * @param {vtctldata.GetCellsAliasesRequest} message GetCellsAliasesRequest + * @param {vtctldata.GetSchemaRequest} message GetSchemaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCellsAliasesRequest.toObject = function toObject() { - return {}; + GetSchemaRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.tables = []; + object.exclude_tables = []; + } + if (options.defaults) { + object.tablet_alias = null; + object.include_views = false; + object.table_names_only = false; + object.table_sizes_only = false; + } + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (message.tables && message.tables.length) { + object.tables = []; + for (var j = 0; j < message.tables.length; ++j) + object.tables[j] = message.tables[j]; + } + if (message.exclude_tables && message.exclude_tables.length) { + object.exclude_tables = []; + for (var j = 0; j < message.exclude_tables.length; ++j) + object.exclude_tables[j] = message.exclude_tables[j]; + } + if (message.include_views != null && message.hasOwnProperty("include_views")) + object.include_views = message.include_views; + if (message.table_names_only != null && message.hasOwnProperty("table_names_only")) + object.table_names_only = message.table_names_only; + if (message.table_sizes_only != null && message.hasOwnProperty("table_sizes_only")) + object.table_sizes_only = message.table_sizes_only; + return object; }; /** - * Converts this GetCellsAliasesRequest to JSON. + * Converts this GetSchemaRequest to JSON. * @function toJSON - * @memberof vtctldata.GetCellsAliasesRequest + * @memberof vtctldata.GetSchemaRequest * @instance * @returns {Object.} JSON object */ - GetCellsAliasesRequest.prototype.toJSON = function toJSON() { + GetSchemaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetCellsAliasesRequest; + return GetSchemaRequest; })(); - vtctldata.GetCellsAliasesResponse = (function() { + vtctldata.GetSchemaResponse = (function() { /** - * Properties of a GetCellsAliasesResponse. + * Properties of a GetSchemaResponse. * @memberof vtctldata - * @interface IGetCellsAliasesResponse - * @property {Object.|null} [aliases] GetCellsAliasesResponse aliases + * @interface IGetSchemaResponse + * @property {tabletmanagerdata.ISchemaDefinition|null} [schema] GetSchemaResponse schema */ /** - * Constructs a new GetCellsAliasesResponse. + * Constructs a new GetSchemaResponse. * @memberof vtctldata - * @classdesc Represents a GetCellsAliasesResponse. - * @implements IGetCellsAliasesResponse + * @classdesc Represents a GetSchemaResponse. + * @implements IGetSchemaResponse * @constructor - * @param {vtctldata.IGetCellsAliasesResponse=} [properties] Properties to set + * @param {vtctldata.IGetSchemaResponse=} [properties] Properties to set */ - function GetCellsAliasesResponse(properties) { - this.aliases = {}; + function GetSchemaResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -51827,97 +54849,75 @@ $root.vtctldata = (function() { } /** - * GetCellsAliasesResponse aliases. - * @member {Object.} aliases - * @memberof vtctldata.GetCellsAliasesResponse + * GetSchemaResponse schema. + * @member {tabletmanagerdata.ISchemaDefinition|null|undefined} schema + * @memberof vtctldata.GetSchemaResponse * @instance */ - GetCellsAliasesResponse.prototype.aliases = $util.emptyObject; + GetSchemaResponse.prototype.schema = null; /** - * Creates a new GetCellsAliasesResponse instance using the specified properties. + * Creates a new GetSchemaResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetCellsAliasesResponse + * @memberof vtctldata.GetSchemaResponse * @static - * @param {vtctldata.IGetCellsAliasesResponse=} [properties] Properties to set - * @returns {vtctldata.GetCellsAliasesResponse} GetCellsAliasesResponse instance + * @param {vtctldata.IGetSchemaResponse=} [properties] Properties to set + * @returns {vtctldata.GetSchemaResponse} GetSchemaResponse instance */ - GetCellsAliasesResponse.create = function create(properties) { - return new GetCellsAliasesResponse(properties); + GetSchemaResponse.create = function create(properties) { + return new GetSchemaResponse(properties); }; /** - * Encodes the specified GetCellsAliasesResponse message. Does not implicitly {@link vtctldata.GetCellsAliasesResponse.verify|verify} messages. + * Encodes the specified GetSchemaResponse message. Does not implicitly {@link vtctldata.GetSchemaResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetCellsAliasesResponse + * @memberof vtctldata.GetSchemaResponse * @static - * @param {vtctldata.IGetCellsAliasesResponse} message GetCellsAliasesResponse message or plain object to encode + * @param {vtctldata.IGetSchemaResponse} message GetSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCellsAliasesResponse.encode = function encode(message, writer) { + GetSchemaResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - 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 1, wireType 2 =*/10).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(); - } + if (message.schema != null && Object.hasOwnProperty.call(message, "schema")) + $root.tabletmanagerdata.SchemaDefinition.encode(message.schema, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetCellsAliasesResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellsAliasesResponse.verify|verify} messages. + * Encodes the specified GetSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetSchemaResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetCellsAliasesResponse + * @memberof vtctldata.GetSchemaResponse * @static - * @param {vtctldata.IGetCellsAliasesResponse} message GetCellsAliasesResponse message or plain object to encode + * @param {vtctldata.IGetSchemaResponse} message GetSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCellsAliasesResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCellsAliasesResponse message from the specified reader or buffer. + * Decodes a GetSchemaResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetCellsAliasesResponse + * @memberof vtctldata.GetSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetCellsAliasesResponse} GetCellsAliasesResponse + * @returns {vtctldata.GetSchemaResponse} GetSchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCellsAliasesResponse.decode = function decode(reader, length) { + GetSchemaResponse.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.vtctldata.GetCellsAliasesResponse(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSchemaResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - 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; + message.schema = $root.tabletmanagerdata.SchemaDefinition.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -51928,125 +54928,113 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetCellsAliasesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetSchemaResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetCellsAliasesResponse + * @memberof vtctldata.GetSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetCellsAliasesResponse} GetCellsAliasesResponse + * @returns {vtctldata.GetSchemaResponse} GetSchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCellsAliasesResponse.decodeDelimited = function decodeDelimited(reader) { + GetSchemaResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetCellsAliasesResponse message. + * Verifies a GetSchemaResponse message. * @function verify - * @memberof vtctldata.GetCellsAliasesResponse + * @memberof vtctldata.GetSchemaResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetCellsAliasesResponse.verify = function verify(message) { + GetSchemaResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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; - } + if (message.schema != null && message.hasOwnProperty("schema")) { + var error = $root.tabletmanagerdata.SchemaDefinition.verify(message.schema); + if (error) + return "schema." + error; } return null; }; /** - * Creates a GetCellsAliasesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetSchemaResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetCellsAliasesResponse + * @memberof vtctldata.GetSchemaResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetCellsAliasesResponse} GetCellsAliasesResponse + * @returns {vtctldata.GetSchemaResponse} GetSchemaResponse */ - GetCellsAliasesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetCellsAliasesResponse) + GetSchemaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetSchemaResponse) return object; - var message = new $root.vtctldata.GetCellsAliasesResponse(); - if (object.aliases) { - if (typeof object.aliases !== "object") - throw TypeError(".vtctldata.GetCellsAliasesResponse.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(".vtctldata.GetCellsAliasesResponse.aliases: object expected"); - message.aliases[keys[i]] = $root.topodata.CellsAlias.fromObject(object.aliases[keys[i]]); - } + var message = new $root.vtctldata.GetSchemaResponse(); + if (object.schema != null) { + if (typeof object.schema !== "object") + throw TypeError(".vtctldata.GetSchemaResponse.schema: object expected"); + message.schema = $root.tabletmanagerdata.SchemaDefinition.fromObject(object.schema); } return message; }; /** - * Creates a plain object from a GetCellsAliasesResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetSchemaResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetCellsAliasesResponse + * @memberof vtctldata.GetSchemaResponse * @static - * @param {vtctldata.GetCellsAliasesResponse} message GetCellsAliasesResponse + * @param {vtctldata.GetSchemaResponse} message GetSchemaResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCellsAliasesResponse.toObject = function toObject(message, options) { + GetSchemaResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.aliases = {}; - 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); - } + if (options.defaults) + object.schema = null; + if (message.schema != null && message.hasOwnProperty("schema")) + object.schema = $root.tabletmanagerdata.SchemaDefinition.toObject(message.schema, options); return object; }; /** - * Converts this GetCellsAliasesResponse to JSON. + * Converts this GetSchemaResponse to JSON. * @function toJSON - * @memberof vtctldata.GetCellsAliasesResponse + * @memberof vtctldata.GetSchemaResponse * @instance * @returns {Object.} JSON object */ - GetCellsAliasesResponse.prototype.toJSON = function toJSON() { + GetSchemaResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetCellsAliasesResponse; + return GetSchemaResponse; })(); - vtctldata.GetKeyspacesRequest = (function() { + vtctldata.GetShardRequest = (function() { /** - * Properties of a GetKeyspacesRequest. + * Properties of a GetShardRequest. * @memberof vtctldata - * @interface IGetKeyspacesRequest + * @interface IGetShardRequest + * @property {string|null} [keyspace] GetShardRequest keyspace + * @property {string|null} [shard_name] GetShardRequest shard_name */ /** - * Constructs a new GetKeyspacesRequest. + * Constructs a new GetShardRequest. * @memberof vtctldata - * @classdesc Represents a GetKeyspacesRequest. - * @implements IGetKeyspacesRequest + * @classdesc Represents a GetShardRequest. + * @implements IGetShardRequest * @constructor - * @param {vtctldata.IGetKeyspacesRequest=} [properties] Properties to set + * @param {vtctldata.IGetShardRequest=} [properties] Properties to set */ - function GetKeyspacesRequest(properties) { + function GetShardRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52054,63 +55042,89 @@ $root.vtctldata = (function() { } /** - * Creates a new GetKeyspacesRequest instance using the specified properties. + * GetShardRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.GetShardRequest + * @instance + */ + GetShardRequest.prototype.keyspace = ""; + + /** + * GetShardRequest shard_name. + * @member {string} shard_name + * @memberof vtctldata.GetShardRequest + * @instance + */ + GetShardRequest.prototype.shard_name = ""; + + /** + * Creates a new GetShardRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetKeyspacesRequest + * @memberof vtctldata.GetShardRequest * @static - * @param {vtctldata.IGetKeyspacesRequest=} [properties] Properties to set - * @returns {vtctldata.GetKeyspacesRequest} GetKeyspacesRequest instance + * @param {vtctldata.IGetShardRequest=} [properties] Properties to set + * @returns {vtctldata.GetShardRequest} GetShardRequest instance */ - GetKeyspacesRequest.create = function create(properties) { - return new GetKeyspacesRequest(properties); + GetShardRequest.create = function create(properties) { + return new GetShardRequest(properties); }; /** - * Encodes the specified GetKeyspacesRequest message. Does not implicitly {@link vtctldata.GetKeyspacesRequest.verify|verify} messages. + * Encodes the specified GetShardRequest message. Does not implicitly {@link vtctldata.GetShardRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetKeyspacesRequest + * @memberof vtctldata.GetShardRequest * @static - * @param {vtctldata.IGetKeyspacesRequest} message GetKeyspacesRequest message or plain object to encode + * @param {vtctldata.IGetShardRequest} message GetShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetKeyspacesRequest.encode = function encode(message, writer) { + GetShardRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.shard_name != null && Object.hasOwnProperty.call(message, "shard_name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard_name); return writer; }; /** - * Encodes the specified GetKeyspacesRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspacesRequest.verify|verify} messages. + * Encodes the specified GetShardRequest message, length delimited. Does not implicitly {@link vtctldata.GetShardRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetKeyspacesRequest + * @memberof vtctldata.GetShardRequest * @static - * @param {vtctldata.IGetKeyspacesRequest} message GetKeyspacesRequest message or plain object to encode + * @param {vtctldata.IGetShardRequest} message GetShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetKeyspacesRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetShardRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetKeyspacesRequest message from the specified reader or buffer. + * Decodes a GetShardRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetKeyspacesRequest + * @memberof vtctldata.GetShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetKeyspacesRequest} GetKeyspacesRequest + * @returns {vtctldata.GetShardRequest} GetShardRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetKeyspacesRequest.decode = function decode(reader, length) { + GetShardRequest.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.vtctldata.GetKeyspacesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetShardRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.keyspace = reader.string(); + break; + case 2: + message.shard_name = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -52120,95 +55134,116 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetKeyspacesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetShardRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetKeyspacesRequest + * @memberof vtctldata.GetShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetKeyspacesRequest} GetKeyspacesRequest + * @returns {vtctldata.GetShardRequest} GetShardRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetKeyspacesRequest.decodeDelimited = function decodeDelimited(reader) { + GetShardRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetKeyspacesRequest message. + * Verifies a GetShardRequest message. * @function verify - * @memberof vtctldata.GetKeyspacesRequest + * @memberof vtctldata.GetShardRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetKeyspacesRequest.verify = function verify(message) { + GetShardRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.shard_name != null && message.hasOwnProperty("shard_name")) + if (!$util.isString(message.shard_name)) + return "shard_name: string expected"; return null; }; /** - * Creates a GetKeyspacesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetShardRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetKeyspacesRequest + * @memberof vtctldata.GetShardRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetKeyspacesRequest} GetKeyspacesRequest + * @returns {vtctldata.GetShardRequest} GetShardRequest */ - GetKeyspacesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetKeyspacesRequest) + GetShardRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetShardRequest) return object; - return new $root.vtctldata.GetKeyspacesRequest(); + var message = new $root.vtctldata.GetShardRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard_name != null) + message.shard_name = String(object.shard_name); + return message; }; /** - * Creates a plain object from a GetKeyspacesRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetShardRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetKeyspacesRequest + * @memberof vtctldata.GetShardRequest * @static - * @param {vtctldata.GetKeyspacesRequest} message GetKeyspacesRequest + * @param {vtctldata.GetShardRequest} message GetShardRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetKeyspacesRequest.toObject = function toObject() { - return {}; + GetShardRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.keyspace = ""; + object.shard_name = ""; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard_name != null && message.hasOwnProperty("shard_name")) + object.shard_name = message.shard_name; + return object; }; /** - * Converts this GetKeyspacesRequest to JSON. + * Converts this GetShardRequest to JSON. * @function toJSON - * @memberof vtctldata.GetKeyspacesRequest + * @memberof vtctldata.GetShardRequest * @instance * @returns {Object.} JSON object */ - GetKeyspacesRequest.prototype.toJSON = function toJSON() { + GetShardRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetKeyspacesRequest; + return GetShardRequest; })(); - vtctldata.GetKeyspacesResponse = (function() { + vtctldata.GetShardResponse = (function() { /** - * Properties of a GetKeyspacesResponse. + * Properties of a GetShardResponse. * @memberof vtctldata - * @interface IGetKeyspacesResponse - * @property {Array.|null} [keyspaces] GetKeyspacesResponse keyspaces + * @interface IGetShardResponse + * @property {vtctldata.IShard|null} [shard] GetShardResponse shard */ /** - * Constructs a new GetKeyspacesResponse. + * Constructs a new GetShardResponse. * @memberof vtctldata - * @classdesc Represents a GetKeyspacesResponse. - * @implements IGetKeyspacesResponse + * @classdesc Represents a GetShardResponse. + * @implements IGetShardResponse * @constructor - * @param {vtctldata.IGetKeyspacesResponse=} [properties] Properties to set + * @param {vtctldata.IGetShardResponse=} [properties] Properties to set */ - function GetKeyspacesResponse(properties) { - this.keyspaces = []; + function GetShardResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52216,78 +55251,75 @@ $root.vtctldata = (function() { } /** - * GetKeyspacesResponse keyspaces. - * @member {Array.} keyspaces - * @memberof vtctldata.GetKeyspacesResponse + * GetShardResponse shard. + * @member {vtctldata.IShard|null|undefined} shard + * @memberof vtctldata.GetShardResponse * @instance */ - GetKeyspacesResponse.prototype.keyspaces = $util.emptyArray; + GetShardResponse.prototype.shard = null; /** - * Creates a new GetKeyspacesResponse instance using the specified properties. + * Creates a new GetShardResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetKeyspacesResponse + * @memberof vtctldata.GetShardResponse * @static - * @param {vtctldata.IGetKeyspacesResponse=} [properties] Properties to set - * @returns {vtctldata.GetKeyspacesResponse} GetKeyspacesResponse instance + * @param {vtctldata.IGetShardResponse=} [properties] Properties to set + * @returns {vtctldata.GetShardResponse} GetShardResponse instance */ - GetKeyspacesResponse.create = function create(properties) { - return new GetKeyspacesResponse(properties); + GetShardResponse.create = function create(properties) { + return new GetShardResponse(properties); }; /** - * Encodes the specified GetKeyspacesResponse message. Does not implicitly {@link vtctldata.GetKeyspacesResponse.verify|verify} messages. + * Encodes the specified GetShardResponse message. Does not implicitly {@link vtctldata.GetShardResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetKeyspacesResponse + * @memberof vtctldata.GetShardResponse * @static - * @param {vtctldata.IGetKeyspacesResponse} message GetKeyspacesResponse message or plain object to encode + * @param {vtctldata.IGetShardResponse} message GetShardResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetKeyspacesResponse.encode = function encode(message, writer) { + GetShardResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspaces != null && message.keyspaces.length) - for (var i = 0; i < message.keyspaces.length; ++i) - $root.vtctldata.Keyspace.encode(message.keyspaces[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + $root.vtctldata.Shard.encode(message.shard, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetKeyspacesResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspacesResponse.verify|verify} messages. + * Encodes the specified GetShardResponse message, length delimited. Does not implicitly {@link vtctldata.GetShardResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetKeyspacesResponse + * @memberof vtctldata.GetShardResponse * @static - * @param {vtctldata.IGetKeyspacesResponse} message GetKeyspacesResponse message or plain object to encode + * @param {vtctldata.IGetShardResponse} message GetShardResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetKeyspacesResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetShardResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetKeyspacesResponse message from the specified reader or buffer. + * Decodes a GetShardResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetKeyspacesResponse + * @memberof vtctldata.GetShardResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetKeyspacesResponse} GetKeyspacesResponse + * @returns {vtctldata.GetShardResponse} GetShardResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetKeyspacesResponse.decode = function decode(reader, length) { + GetShardResponse.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.vtctldata.GetKeyspacesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetShardResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.keyspaces && message.keyspaces.length)) - message.keyspaces = []; - message.keyspaces.push($root.vtctldata.Keyspace.decode(reader, reader.uint32())); + message.shard = $root.vtctldata.Shard.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -52298,124 +55330,112 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetKeyspacesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetShardResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetKeyspacesResponse + * @memberof vtctldata.GetShardResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetKeyspacesResponse} GetKeyspacesResponse + * @returns {vtctldata.GetShardResponse} GetShardResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetKeyspacesResponse.decodeDelimited = function decodeDelimited(reader) { + GetShardResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetKeyspacesResponse message. + * Verifies a GetShardResponse message. * @function verify - * @memberof vtctldata.GetKeyspacesResponse + * @memberof vtctldata.GetShardResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetKeyspacesResponse.verify = function verify(message) { + GetShardResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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) { - var error = $root.vtctldata.Keyspace.verify(message.keyspaces[i]); - if (error) - return "keyspaces." + error; - } + if (message.shard != null && message.hasOwnProperty("shard")) { + var error = $root.vtctldata.Shard.verify(message.shard); + if (error) + return "shard." + error; } return null; }; /** - * Creates a GetKeyspacesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetShardResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetKeyspacesResponse + * @memberof vtctldata.GetShardResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetKeyspacesResponse} GetKeyspacesResponse + * @returns {vtctldata.GetShardResponse} GetShardResponse */ - GetKeyspacesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetKeyspacesResponse) + GetShardResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetShardResponse) return object; - var message = new $root.vtctldata.GetKeyspacesResponse(); - if (object.keyspaces) { - if (!Array.isArray(object.keyspaces)) - throw TypeError(".vtctldata.GetKeyspacesResponse.keyspaces: array expected"); - message.keyspaces = []; - for (var i = 0; i < object.keyspaces.length; ++i) { - if (typeof object.keyspaces[i] !== "object") - throw TypeError(".vtctldata.GetKeyspacesResponse.keyspaces: object expected"); - message.keyspaces[i] = $root.vtctldata.Keyspace.fromObject(object.keyspaces[i]); - } + var message = new $root.vtctldata.GetShardResponse(); + if (object.shard != null) { + if (typeof object.shard !== "object") + throw TypeError(".vtctldata.GetShardResponse.shard: object expected"); + message.shard = $root.vtctldata.Shard.fromObject(object.shard); } return message; }; /** - * Creates a plain object from a GetKeyspacesResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetShardResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetKeyspacesResponse + * @memberof vtctldata.GetShardResponse * @static - * @param {vtctldata.GetKeyspacesResponse} message GetKeyspacesResponse + * @param {vtctldata.GetShardResponse} message GetShardResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetKeyspacesResponse.toObject = function toObject(message, options) { + GetShardResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.keyspaces = []; - if (message.keyspaces && message.keyspaces.length) { - object.keyspaces = []; - for (var j = 0; j < message.keyspaces.length; ++j) - object.keyspaces[j] = $root.vtctldata.Keyspace.toObject(message.keyspaces[j], options); - } + if (options.defaults) + object.shard = null; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = $root.vtctldata.Shard.toObject(message.shard, options); return object; }; /** - * Converts this GetKeyspacesResponse to JSON. + * Converts this GetShardResponse to JSON. * @function toJSON - * @memberof vtctldata.GetKeyspacesResponse + * @memberof vtctldata.GetShardResponse * @instance * @returns {Object.} JSON object */ - GetKeyspacesResponse.prototype.toJSON = function toJSON() { + GetShardResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetKeyspacesResponse; + return GetShardResponse; })(); - vtctldata.GetKeyspaceRequest = (function() { + vtctldata.GetSrvVSchemaRequest = (function() { /** - * Properties of a GetKeyspaceRequest. + * Properties of a GetSrvVSchemaRequest. * @memberof vtctldata - * @interface IGetKeyspaceRequest - * @property {string|null} [keyspace] GetKeyspaceRequest keyspace + * @interface IGetSrvVSchemaRequest + * @property {string|null} [cell] GetSrvVSchemaRequest cell */ /** - * Constructs a new GetKeyspaceRequest. + * Constructs a new GetSrvVSchemaRequest. * @memberof vtctldata - * @classdesc Represents a GetKeyspaceRequest. - * @implements IGetKeyspaceRequest + * @classdesc Represents a GetSrvVSchemaRequest. + * @implements IGetSrvVSchemaRequest * @constructor - * @param {vtctldata.IGetKeyspaceRequest=} [properties] Properties to set + * @param {vtctldata.IGetSrvVSchemaRequest=} [properties] Properties to set */ - function GetKeyspaceRequest(properties) { + function GetSrvVSchemaRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52423,75 +55443,75 @@ $root.vtctldata = (function() { } /** - * GetKeyspaceRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.GetKeyspaceRequest + * GetSrvVSchemaRequest cell. + * @member {string} cell + * @memberof vtctldata.GetSrvVSchemaRequest * @instance */ - GetKeyspaceRequest.prototype.keyspace = ""; + GetSrvVSchemaRequest.prototype.cell = ""; /** - * Creates a new GetKeyspaceRequest instance using the specified properties. + * Creates a new GetSrvVSchemaRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetKeyspaceRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @static - * @param {vtctldata.IGetKeyspaceRequest=} [properties] Properties to set - * @returns {vtctldata.GetKeyspaceRequest} GetKeyspaceRequest instance + * @param {vtctldata.IGetSrvVSchemaRequest=} [properties] Properties to set + * @returns {vtctldata.GetSrvVSchemaRequest} GetSrvVSchemaRequest instance */ - GetKeyspaceRequest.create = function create(properties) { - return new GetKeyspaceRequest(properties); + GetSrvVSchemaRequest.create = function create(properties) { + return new GetSrvVSchemaRequest(properties); }; /** - * Encodes the specified GetKeyspaceRequest message. Does not implicitly {@link vtctldata.GetKeyspaceRequest.verify|verify} messages. + * Encodes the specified GetSrvVSchemaRequest message. Does not implicitly {@link vtctldata.GetSrvVSchemaRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetKeyspaceRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @static - * @param {vtctldata.IGetKeyspaceRequest} message GetKeyspaceRequest message or plain object to encode + * @param {vtctldata.IGetSrvVSchemaRequest} message GetSrvVSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetKeyspaceRequest.encode = function encode(message, writer) { + GetSrvVSchemaRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cell); return writer; }; /** - * Encodes the specified GetKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceRequest.verify|verify} messages. + * Encodes the specified GetSrvVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetKeyspaceRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @static - * @param {vtctldata.IGetKeyspaceRequest} message GetKeyspaceRequest message or plain object to encode + * @param {vtctldata.IGetSrvVSchemaRequest} message GetSrvVSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetKeyspaceRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetSrvVSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetKeyspaceRequest message from the specified reader or buffer. + * Decodes a GetSrvVSchemaRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetKeyspaceRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetKeyspaceRequest} GetKeyspaceRequest + * @returns {vtctldata.GetSrvVSchemaRequest} GetSrvVSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetKeyspaceRequest.decode = function decode(reader, length) { + GetSrvVSchemaRequest.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.vtctldata.GetKeyspaceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSrvVSchemaRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = reader.string(); + message.cell = reader.string(); break; default: reader.skipType(tag & 7); @@ -52502,107 +55522,107 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetKeyspaceRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSrvVSchemaRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetKeyspaceRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetKeyspaceRequest} GetKeyspaceRequest + * @returns {vtctldata.GetSrvVSchemaRequest} GetSrvVSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetKeyspaceRequest.decodeDelimited = function decodeDelimited(reader) { + GetSrvVSchemaRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetKeyspaceRequest message. + * Verifies a GetSrvVSchemaRequest message. * @function verify - * @memberof vtctldata.GetKeyspaceRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetKeyspaceRequest.verify = function verify(message) { + GetSrvVSchemaRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; + if (message.cell != null && message.hasOwnProperty("cell")) + if (!$util.isString(message.cell)) + return "cell: string expected"; return null; }; /** - * Creates a GetKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetSrvVSchemaRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetKeyspaceRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetKeyspaceRequest} GetKeyspaceRequest + * @returns {vtctldata.GetSrvVSchemaRequest} GetSrvVSchemaRequest */ - GetKeyspaceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetKeyspaceRequest) + GetSrvVSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetSrvVSchemaRequest) return object; - var message = new $root.vtctldata.GetKeyspaceRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); + var message = new $root.vtctldata.GetSrvVSchemaRequest(); + if (object.cell != null) + message.cell = String(object.cell); return message; }; /** - * Creates a plain object from a GetKeyspaceRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetSrvVSchemaRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetKeyspaceRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @static - * @param {vtctldata.GetKeyspaceRequest} message GetKeyspaceRequest + * @param {vtctldata.GetSrvVSchemaRequest} message GetSrvVSchemaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetKeyspaceRequest.toObject = function toObject(message, options) { + GetSrvVSchemaRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.keyspace = ""; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; + object.cell = ""; + if (message.cell != null && message.hasOwnProperty("cell")) + object.cell = message.cell; return object; }; /** - * Converts this GetKeyspaceRequest to JSON. + * Converts this GetSrvVSchemaRequest to JSON. * @function toJSON - * @memberof vtctldata.GetKeyspaceRequest + * @memberof vtctldata.GetSrvVSchemaRequest * @instance * @returns {Object.} JSON object */ - GetKeyspaceRequest.prototype.toJSON = function toJSON() { + GetSrvVSchemaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetKeyspaceRequest; + return GetSrvVSchemaRequest; })(); - vtctldata.GetKeyspaceResponse = (function() { + vtctldata.GetSrvVSchemaResponse = (function() { /** - * Properties of a GetKeyspaceResponse. + * Properties of a GetSrvVSchemaResponse. * @memberof vtctldata - * @interface IGetKeyspaceResponse - * @property {vtctldata.IKeyspace|null} [keyspace] GetKeyspaceResponse keyspace + * @interface IGetSrvVSchemaResponse + * @property {vschema.ISrvVSchema|null} [srv_v_schema] GetSrvVSchemaResponse srv_v_schema */ /** - * Constructs a new GetKeyspaceResponse. + * Constructs a new GetSrvVSchemaResponse. * @memberof vtctldata - * @classdesc Represents a GetKeyspaceResponse. - * @implements IGetKeyspaceResponse + * @classdesc Represents a GetSrvVSchemaResponse. + * @implements IGetSrvVSchemaResponse * @constructor - * @param {vtctldata.IGetKeyspaceResponse=} [properties] Properties to set + * @param {vtctldata.IGetSrvVSchemaResponse=} [properties] Properties to set */ - function GetKeyspaceResponse(properties) { + function GetSrvVSchemaResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52610,75 +55630,75 @@ $root.vtctldata = (function() { } /** - * GetKeyspaceResponse keyspace. - * @member {vtctldata.IKeyspace|null|undefined} keyspace - * @memberof vtctldata.GetKeyspaceResponse + * GetSrvVSchemaResponse srv_v_schema. + * @member {vschema.ISrvVSchema|null|undefined} srv_v_schema + * @memberof vtctldata.GetSrvVSchemaResponse * @instance */ - GetKeyspaceResponse.prototype.keyspace = null; + GetSrvVSchemaResponse.prototype.srv_v_schema = null; /** - * Creates a new GetKeyspaceResponse instance using the specified properties. + * Creates a new GetSrvVSchemaResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetKeyspaceResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @static - * @param {vtctldata.IGetKeyspaceResponse=} [properties] Properties to set - * @returns {vtctldata.GetKeyspaceResponse} GetKeyspaceResponse instance + * @param {vtctldata.IGetSrvVSchemaResponse=} [properties] Properties to set + * @returns {vtctldata.GetSrvVSchemaResponse} GetSrvVSchemaResponse instance */ - GetKeyspaceResponse.create = function create(properties) { - return new GetKeyspaceResponse(properties); + GetSrvVSchemaResponse.create = function create(properties) { + return new GetSrvVSchemaResponse(properties); }; /** - * Encodes the specified GetKeyspaceResponse message. Does not implicitly {@link vtctldata.GetKeyspaceResponse.verify|verify} messages. + * Encodes the specified GetSrvVSchemaResponse message. Does not implicitly {@link vtctldata.GetSrvVSchemaResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetKeyspaceResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @static - * @param {vtctldata.IGetKeyspaceResponse} message GetKeyspaceResponse message or plain object to encode + * @param {vtctldata.IGetSrvVSchemaResponse} message GetSrvVSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetKeyspaceResponse.encode = function encode(message, writer) { + GetSrvVSchemaResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - $root.vtctldata.Keyspace.encode(message.keyspace, writer.uint32(/* id 1, wireType 2 =*/10).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 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceResponse.verify|verify} messages. + * Encodes the specified GetSrvVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemaResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetKeyspaceResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @static - * @param {vtctldata.IGetKeyspaceResponse} message GetKeyspaceResponse message or plain object to encode + * @param {vtctldata.IGetSrvVSchemaResponse} message GetSrvVSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetKeyspaceResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetSrvVSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetKeyspaceResponse message from the specified reader or buffer. + * Decodes a GetSrvVSchemaResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetKeyspaceResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetKeyspaceResponse} GetKeyspaceResponse + * @returns {vtctldata.GetSrvVSchemaResponse} GetSrvVSchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetKeyspaceResponse.decode = function decode(reader, length) { + GetSrvVSchemaResponse.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.vtctldata.GetKeyspaceResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetSrvVSchemaResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = $root.vtctldata.Keyspace.decode(reader, reader.uint32()); + message.srv_v_schema = $root.vschema.SrvVSchema.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -52689,119 +55709,112 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetKeyspaceResponse message from the specified reader or buffer, length delimited. + * Decodes a GetSrvVSchemaResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetKeyspaceResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetKeyspaceResponse} GetKeyspaceResponse + * @returns {vtctldata.GetSrvVSchemaResponse} GetSrvVSchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetKeyspaceResponse.decodeDelimited = function decodeDelimited(reader) { + GetSrvVSchemaResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetKeyspaceResponse message. + * Verifies a GetSrvVSchemaResponse message. * @function verify - * @memberof vtctldata.GetKeyspaceResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetKeyspaceResponse.verify = function verify(message) { + GetSrvVSchemaResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) { - var error = $root.vtctldata.Keyspace.verify(message.keyspace); + if (message.srv_v_schema != null && message.hasOwnProperty("srv_v_schema")) { + var error = $root.vschema.SrvVSchema.verify(message.srv_v_schema); if (error) - return "keyspace." + error; + return "srv_v_schema." + error; } return null; }; /** - * Creates a GetKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetSrvVSchemaResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetKeyspaceResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetKeyspaceResponse} GetKeyspaceResponse + * @returns {vtctldata.GetSrvVSchemaResponse} GetSrvVSchemaResponse */ - GetKeyspaceResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetKeyspaceResponse) + GetSrvVSchemaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetSrvVSchemaResponse) return object; - var message = new $root.vtctldata.GetKeyspaceResponse(); - if (object.keyspace != null) { - if (typeof object.keyspace !== "object") - throw TypeError(".vtctldata.GetKeyspaceResponse.keyspace: object expected"); - message.keyspace = $root.vtctldata.Keyspace.fromObject(object.keyspace); + var message = new $root.vtctldata.GetSrvVSchemaResponse(); + if (object.srv_v_schema != null) { + if (typeof object.srv_v_schema !== "object") + throw TypeError(".vtctldata.GetSrvVSchemaResponse.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 GetKeyspaceResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetSrvVSchemaResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetKeyspaceResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @static - * @param {vtctldata.GetKeyspaceResponse} message GetKeyspaceResponse + * @param {vtctldata.GetSrvVSchemaResponse} message GetSrvVSchemaResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetKeyspaceResponse.toObject = function toObject(message, options) { + GetSrvVSchemaResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.keyspace = null; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = $root.vtctldata.Keyspace.toObject(message.keyspace, options); + object.srv_v_schema = null; + 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 GetKeyspaceResponse to JSON. + * Converts this GetSrvVSchemaResponse to JSON. * @function toJSON - * @memberof vtctldata.GetKeyspaceResponse + * @memberof vtctldata.GetSrvVSchemaResponse * @instance * @returns {Object.} JSON object */ - GetKeyspaceResponse.prototype.toJSON = function toJSON() { + GetSrvVSchemaResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetKeyspaceResponse; + return GetSrvVSchemaResponse; })(); - vtctldata.GetSchemaRequest = (function() { + vtctldata.GetTabletRequest = (function() { /** - * Properties of a GetSchemaRequest. + * Properties of a GetTabletRequest. * @memberof vtctldata - * @interface IGetSchemaRequest - * @property {topodata.ITabletAlias|null} [tablet_alias] GetSchemaRequest tablet_alias - * @property {Array.|null} [tables] GetSchemaRequest tables - * @property {Array.|null} [exclude_tables] GetSchemaRequest exclude_tables - * @property {boolean|null} [include_views] GetSchemaRequest include_views - * @property {boolean|null} [table_names_only] GetSchemaRequest table_names_only - * @property {boolean|null} [table_sizes_only] GetSchemaRequest table_sizes_only + * @interface IGetTabletRequest + * @property {topodata.ITabletAlias|null} [tablet_alias] GetTabletRequest tablet_alias */ /** - * Constructs a new GetSchemaRequest. + * Constructs a new GetTabletRequest. * @memberof vtctldata - * @classdesc Represents a GetSchemaRequest. - * @implements IGetSchemaRequest + * @classdesc Represents a GetTabletRequest. + * @implements IGetTabletRequest * @constructor - * @param {vtctldata.IGetSchemaRequest=} [properties] Properties to set + * @param {vtctldata.IGetTabletRequest=} [properties] Properties to set */ - function GetSchemaRequest(properties) { - this.tables = []; - this.exclude_tables = []; + function GetTabletRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52809,147 +55822,76 @@ $root.vtctldata = (function() { } /** - * GetSchemaRequest tablet_alias. + * GetTabletRequest tablet_alias. * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.GetSchemaRequest - * @instance - */ - GetSchemaRequest.prototype.tablet_alias = null; - - /** - * GetSchemaRequest tables. - * @member {Array.} tables - * @memberof vtctldata.GetSchemaRequest - * @instance - */ - GetSchemaRequest.prototype.tables = $util.emptyArray; - - /** - * GetSchemaRequest exclude_tables. - * @member {Array.} exclude_tables - * @memberof vtctldata.GetSchemaRequest - * @instance - */ - GetSchemaRequest.prototype.exclude_tables = $util.emptyArray; - - /** - * GetSchemaRequest include_views. - * @member {boolean} include_views - * @memberof vtctldata.GetSchemaRequest - * @instance - */ - GetSchemaRequest.prototype.include_views = false; - - /** - * GetSchemaRequest table_names_only. - * @member {boolean} table_names_only - * @memberof vtctldata.GetSchemaRequest - * @instance - */ - GetSchemaRequest.prototype.table_names_only = false; - - /** - * GetSchemaRequest table_sizes_only. - * @member {boolean} table_sizes_only - * @memberof vtctldata.GetSchemaRequest + * @memberof vtctldata.GetTabletRequest * @instance */ - GetSchemaRequest.prototype.table_sizes_only = false; + GetTabletRequest.prototype.tablet_alias = null; /** - * Creates a new GetSchemaRequest instance using the specified properties. + * Creates a new GetTabletRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetSchemaRequest + * @memberof vtctldata.GetTabletRequest * @static - * @param {vtctldata.IGetSchemaRequest=} [properties] Properties to set - * @returns {vtctldata.GetSchemaRequest} GetSchemaRequest instance + * @param {vtctldata.IGetTabletRequest=} [properties] Properties to set + * @returns {vtctldata.GetTabletRequest} GetTabletRequest instance */ - GetSchemaRequest.create = function create(properties) { - return new GetSchemaRequest(properties); + GetTabletRequest.create = function create(properties) { + return new GetTabletRequest(properties); }; /** - * Encodes the specified GetSchemaRequest message. Does not implicitly {@link vtctldata.GetSchemaRequest.verify|verify} messages. + * Encodes the specified GetTabletRequest message. Does not implicitly {@link vtctldata.GetTabletRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetSchemaRequest + * @memberof vtctldata.GetTabletRequest * @static - * @param {vtctldata.IGetSchemaRequest} message GetSchemaRequest message or plain object to encode + * @param {vtctldata.IGetTabletRequest} message GetTabletRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSchemaRequest.encode = function encode(message, writer) { + GetTabletRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.tables != null && message.tables.length) - for (var i = 0; i < message.tables.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.tables[i]); - if (message.exclude_tables != null && message.exclude_tables.length) - for (var i = 0; i < message.exclude_tables.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.exclude_tables[i]); - if (message.include_views != null && Object.hasOwnProperty.call(message, "include_views")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.include_views); - if (message.table_names_only != null && Object.hasOwnProperty.call(message, "table_names_only")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.table_names_only); - if (message.table_sizes_only != null && Object.hasOwnProperty.call(message, "table_sizes_only")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.table_sizes_only); return writer; }; /** - * Encodes the specified GetSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetSchemaRequest.verify|verify} messages. + * Encodes the specified GetTabletRequest message, length delimited. Does not implicitly {@link vtctldata.GetTabletRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetSchemaRequest + * @memberof vtctldata.GetTabletRequest * @static - * @param {vtctldata.IGetSchemaRequest} message GetSchemaRequest message or plain object to encode + * @param {vtctldata.IGetTabletRequest} message GetTabletRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetTabletRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSchemaRequest message from the specified reader or buffer. + * Decodes a GetTabletRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetSchemaRequest + * @memberof vtctldata.GetTabletRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetSchemaRequest} GetSchemaRequest + * @returns {vtctldata.GetTabletRequest} GetTabletRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSchemaRequest.decode = function decode(reader, length) { + GetTabletRequest.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.vtctldata.GetSchemaRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTabletRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; - case 2: - if (!(message.tables && message.tables.length)) - message.tables = []; - message.tables.push(reader.string()); - break; - case 3: - if (!(message.exclude_tables && message.exclude_tables.length)) - message.exclude_tables = []; - message.exclude_tables.push(reader.string()); - break; - case 4: - message.include_views = reader.bool(); - break; - case 5: - message.table_names_only = reader.bool(); - break; - case 6: - message.table_sizes_only = reader.bool(); - break; default: reader.skipType(tag & 7); break; @@ -52959,30 +55901,30 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a GetTabletRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetSchemaRequest + * @memberof vtctldata.GetTabletRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetSchemaRequest} GetSchemaRequest + * @returns {vtctldata.GetTabletRequest} GetTabletRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSchemaRequest.decodeDelimited = function decodeDelimited(reader) { + GetTabletRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetSchemaRequest message. + * Verifies a GetTabletRequest message. * @function verify - * @memberof vtctldata.GetSchemaRequest + * @memberof vtctldata.GetTabletRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSchemaRequest.verify = function verify(message) { + GetTabletRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { @@ -52990,148 +55932,81 @@ $root.vtctldata = (function() { if (error) return "tablet_alias." + error; } - if (message.tables != null && message.hasOwnProperty("tables")) { - if (!Array.isArray(message.tables)) - return "tables: array expected"; - for (var i = 0; i < message.tables.length; ++i) - if (!$util.isString(message.tables[i])) - return "tables: string[] expected"; - } - if (message.exclude_tables != null && message.hasOwnProperty("exclude_tables")) { - if (!Array.isArray(message.exclude_tables)) - return "exclude_tables: array expected"; - for (var i = 0; i < message.exclude_tables.length; ++i) - if (!$util.isString(message.exclude_tables[i])) - return "exclude_tables: string[] expected"; - } - if (message.include_views != null && message.hasOwnProperty("include_views")) - if (typeof message.include_views !== "boolean") - return "include_views: boolean expected"; - if (message.table_names_only != null && message.hasOwnProperty("table_names_only")) - if (typeof message.table_names_only !== "boolean") - return "table_names_only: boolean expected"; - if (message.table_sizes_only != null && message.hasOwnProperty("table_sizes_only")) - if (typeof message.table_sizes_only !== "boolean") - return "table_sizes_only: boolean expected"; return null; }; /** - * Creates a GetSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetTabletRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetSchemaRequest + * @memberof vtctldata.GetTabletRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetSchemaRequest} GetSchemaRequest + * @returns {vtctldata.GetTabletRequest} GetTabletRequest */ - GetSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetSchemaRequest) + GetTabletRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetTabletRequest) return object; - var message = new $root.vtctldata.GetSchemaRequest(); + var message = new $root.vtctldata.GetTabletRequest(); if (object.tablet_alias != null) { if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.GetSchemaRequest.tablet_alias: object expected"); + throw TypeError(".vtctldata.GetTabletRequest.tablet_alias: object expected"); message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); } - if (object.tables) { - if (!Array.isArray(object.tables)) - throw TypeError(".vtctldata.GetSchemaRequest.tables: array expected"); - message.tables = []; - for (var i = 0; i < object.tables.length; ++i) - message.tables[i] = String(object.tables[i]); - } - if (object.exclude_tables) { - if (!Array.isArray(object.exclude_tables)) - throw TypeError(".vtctldata.GetSchemaRequest.exclude_tables: array expected"); - message.exclude_tables = []; - for (var i = 0; i < object.exclude_tables.length; ++i) - message.exclude_tables[i] = String(object.exclude_tables[i]); - } - if (object.include_views != null) - message.include_views = Boolean(object.include_views); - if (object.table_names_only != null) - message.table_names_only = Boolean(object.table_names_only); - if (object.table_sizes_only != null) - message.table_sizes_only = Boolean(object.table_sizes_only); return message; }; /** - * Creates a plain object from a GetSchemaRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetTabletRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetSchemaRequest + * @memberof vtctldata.GetTabletRequest * @static - * @param {vtctldata.GetSchemaRequest} message GetSchemaRequest + * @param {vtctldata.GetTabletRequest} message GetTabletRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSchemaRequest.toObject = function toObject(message, options) { + GetTabletRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.tables = []; - object.exclude_tables = []; - } - if (options.defaults) { + if (options.defaults) object.tablet_alias = null; - object.include_views = false; - object.table_names_only = false; - object.table_sizes_only = false; - } if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - if (message.tables && message.tables.length) { - object.tables = []; - for (var j = 0; j < message.tables.length; ++j) - object.tables[j] = message.tables[j]; - } - if (message.exclude_tables && message.exclude_tables.length) { - object.exclude_tables = []; - for (var j = 0; j < message.exclude_tables.length; ++j) - object.exclude_tables[j] = message.exclude_tables[j]; - } - if (message.include_views != null && message.hasOwnProperty("include_views")) - object.include_views = message.include_views; - if (message.table_names_only != null && message.hasOwnProperty("table_names_only")) - object.table_names_only = message.table_names_only; - if (message.table_sizes_only != null && message.hasOwnProperty("table_sizes_only")) - object.table_sizes_only = message.table_sizes_only; return object; }; /** - * Converts this GetSchemaRequest to JSON. + * Converts this GetTabletRequest to JSON. * @function toJSON - * @memberof vtctldata.GetSchemaRequest + * @memberof vtctldata.GetTabletRequest * @instance * @returns {Object.} JSON object */ - GetSchemaRequest.prototype.toJSON = function toJSON() { + GetTabletRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetSchemaRequest; + return GetTabletRequest; })(); - vtctldata.GetSchemaResponse = (function() { + vtctldata.GetTabletResponse = (function() { /** - * Properties of a GetSchemaResponse. + * Properties of a GetTabletResponse. * @memberof vtctldata - * @interface IGetSchemaResponse - * @property {tabletmanagerdata.ISchemaDefinition|null} [schema] GetSchemaResponse schema + * @interface IGetTabletResponse + * @property {topodata.ITablet|null} [tablet] GetTabletResponse tablet */ /** - * Constructs a new GetSchemaResponse. + * Constructs a new GetTabletResponse. * @memberof vtctldata - * @classdesc Represents a GetSchemaResponse. - * @implements IGetSchemaResponse + * @classdesc Represents a GetTabletResponse. + * @implements IGetTabletResponse * @constructor - * @param {vtctldata.IGetSchemaResponse=} [properties] Properties to set + * @param {vtctldata.IGetTabletResponse=} [properties] Properties to set */ - function GetSchemaResponse(properties) { + function GetTabletResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53139,75 +56014,75 @@ $root.vtctldata = (function() { } /** - * GetSchemaResponse schema. - * @member {tabletmanagerdata.ISchemaDefinition|null|undefined} schema - * @memberof vtctldata.GetSchemaResponse + * GetTabletResponse tablet. + * @member {topodata.ITablet|null|undefined} tablet + * @memberof vtctldata.GetTabletResponse * @instance */ - GetSchemaResponse.prototype.schema = null; + GetTabletResponse.prototype.tablet = null; /** - * Creates a new GetSchemaResponse instance using the specified properties. + * Creates a new GetTabletResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetSchemaResponse + * @memberof vtctldata.GetTabletResponse * @static - * @param {vtctldata.IGetSchemaResponse=} [properties] Properties to set - * @returns {vtctldata.GetSchemaResponse} GetSchemaResponse instance + * @param {vtctldata.IGetTabletResponse=} [properties] Properties to set + * @returns {vtctldata.GetTabletResponse} GetTabletResponse instance */ - GetSchemaResponse.create = function create(properties) { - return new GetSchemaResponse(properties); + GetTabletResponse.create = function create(properties) { + return new GetTabletResponse(properties); }; /** - * Encodes the specified GetSchemaResponse message. Does not implicitly {@link vtctldata.GetSchemaResponse.verify|verify} messages. + * Encodes the specified GetTabletResponse message. Does not implicitly {@link vtctldata.GetTabletResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetSchemaResponse + * @memberof vtctldata.GetTabletResponse * @static - * @param {vtctldata.IGetSchemaResponse} message GetSchemaResponse message or plain object to encode + * @param {vtctldata.IGetTabletResponse} message GetTabletResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSchemaResponse.encode = function encode(message, writer) { + GetTabletResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.schema != null && Object.hasOwnProperty.call(message, "schema")) - $root.tabletmanagerdata.SchemaDefinition.encode(message.schema, 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 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetSchemaResponse.verify|verify} messages. + * Encodes the specified GetTabletResponse message, length delimited. Does not implicitly {@link vtctldata.GetTabletResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetSchemaResponse + * @memberof vtctldata.GetTabletResponse * @static - * @param {vtctldata.IGetSchemaResponse} message GetSchemaResponse message or plain object to encode + * @param {vtctldata.IGetTabletResponse} message GetTabletResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetTabletResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSchemaResponse message from the specified reader or buffer. + * Decodes a GetTabletResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetSchemaResponse + * @memberof vtctldata.GetTabletResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetSchemaResponse} GetSchemaResponse + * @returns {vtctldata.GetTabletResponse} GetTabletResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSchemaResponse.decode = function decode(reader, length) { + GetTabletResponse.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.vtctldata.GetSchemaResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTabletResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.schema = $root.tabletmanagerdata.SchemaDefinition.decode(reader, reader.uint32()); + message.tablet = $root.topodata.Tablet.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -53218,113 +56093,115 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a GetTabletResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetSchemaResponse + * @memberof vtctldata.GetTabletResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetSchemaResponse} GetSchemaResponse + * @returns {vtctldata.GetTabletResponse} GetTabletResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSchemaResponse.decodeDelimited = function decodeDelimited(reader) { + GetTabletResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetSchemaResponse message. + * Verifies a GetTabletResponse message. * @function verify - * @memberof vtctldata.GetSchemaResponse + * @memberof vtctldata.GetTabletResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSchemaResponse.verify = function verify(message) { + GetTabletResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.schema != null && message.hasOwnProperty("schema")) { - var error = $root.tabletmanagerdata.SchemaDefinition.verify(message.schema); + if (message.tablet != null && message.hasOwnProperty("tablet")) { + var error = $root.topodata.Tablet.verify(message.tablet); if (error) - return "schema." + error; + return "tablet." + error; } return null; }; /** - * Creates a GetSchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetTabletResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetSchemaResponse + * @memberof vtctldata.GetTabletResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetSchemaResponse} GetSchemaResponse + * @returns {vtctldata.GetTabletResponse} GetTabletResponse */ - GetSchemaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetSchemaResponse) + GetTabletResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetTabletResponse) return object; - var message = new $root.vtctldata.GetSchemaResponse(); - if (object.schema != null) { - if (typeof object.schema !== "object") - throw TypeError(".vtctldata.GetSchemaResponse.schema: object expected"); - message.schema = $root.tabletmanagerdata.SchemaDefinition.fromObject(object.schema); + var message = new $root.vtctldata.GetTabletResponse(); + if (object.tablet != null) { + if (typeof object.tablet !== "object") + throw TypeError(".vtctldata.GetTabletResponse.tablet: object expected"); + message.tablet = $root.topodata.Tablet.fromObject(object.tablet); } return message; }; /** - * Creates a plain object from a GetSchemaResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetTabletResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetSchemaResponse + * @memberof vtctldata.GetTabletResponse * @static - * @param {vtctldata.GetSchemaResponse} message GetSchemaResponse + * @param {vtctldata.GetTabletResponse} message GetTabletResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSchemaResponse.toObject = function toObject(message, options) { + GetTabletResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.schema = null; - if (message.schema != null && message.hasOwnProperty("schema")) - object.schema = $root.tabletmanagerdata.SchemaDefinition.toObject(message.schema, options); + object.tablet = null; + if (message.tablet != null && message.hasOwnProperty("tablet")) + object.tablet = $root.topodata.Tablet.toObject(message.tablet, options); return object; }; /** - * Converts this GetSchemaResponse to JSON. + * Converts this GetTabletResponse to JSON. * @function toJSON - * @memberof vtctldata.GetSchemaResponse + * @memberof vtctldata.GetTabletResponse * @instance * @returns {Object.} JSON object */ - GetSchemaResponse.prototype.toJSON = function toJSON() { + GetTabletResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetSchemaResponse; + return GetTabletResponse; })(); - vtctldata.GetShardRequest = (function() { + vtctldata.GetTabletsRequest = (function() { /** - * Properties of a GetShardRequest. + * Properties of a GetTabletsRequest. * @memberof vtctldata - * @interface IGetShardRequest - * @property {string|null} [keyspace] GetShardRequest keyspace - * @property {string|null} [shard_name] GetShardRequest shard_name + * @interface IGetTabletsRequest + * @property {string|null} [keyspace] GetTabletsRequest keyspace + * @property {string|null} [shard] GetTabletsRequest shard + * @property {Array.|null} [cells] GetTabletsRequest cells */ /** - * Constructs a new GetShardRequest. + * Constructs a new GetTabletsRequest. * @memberof vtctldata - * @classdesc Represents a GetShardRequest. - * @implements IGetShardRequest + * @classdesc Represents a GetTabletsRequest. + * @implements IGetTabletsRequest * @constructor - * @param {vtctldata.IGetShardRequest=} [properties] Properties to set + * @param {vtctldata.IGetTabletsRequest=} [properties] Properties to set */ - function GetShardRequest(properties) { + function GetTabletsRequest(properties) { + this.cells = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53332,80 +56209,91 @@ $root.vtctldata = (function() { } /** - * GetShardRequest keyspace. + * GetTabletsRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.GetShardRequest + * @memberof vtctldata.GetTabletsRequest * @instance */ - GetShardRequest.prototype.keyspace = ""; + GetTabletsRequest.prototype.keyspace = ""; /** - * GetShardRequest shard_name. - * @member {string} shard_name - * @memberof vtctldata.GetShardRequest + * GetTabletsRequest shard. + * @member {string} shard + * @memberof vtctldata.GetTabletsRequest * @instance */ - GetShardRequest.prototype.shard_name = ""; + GetTabletsRequest.prototype.shard = ""; /** - * Creates a new GetShardRequest instance using the specified properties. + * GetTabletsRequest cells. + * @member {Array.} cells + * @memberof vtctldata.GetTabletsRequest + * @instance + */ + GetTabletsRequest.prototype.cells = $util.emptyArray; + + /** + * Creates a new GetTabletsRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetShardRequest + * @memberof vtctldata.GetTabletsRequest * @static - * @param {vtctldata.IGetShardRequest=} [properties] Properties to set - * @returns {vtctldata.GetShardRequest} GetShardRequest instance + * @param {vtctldata.IGetTabletsRequest=} [properties] Properties to set + * @returns {vtctldata.GetTabletsRequest} GetTabletsRequest instance */ - GetShardRequest.create = function create(properties) { - return new GetShardRequest(properties); + GetTabletsRequest.create = function create(properties) { + return new GetTabletsRequest(properties); }; /** - * Encodes the specified GetShardRequest message. Does not implicitly {@link vtctldata.GetShardRequest.verify|verify} messages. + * Encodes the specified GetTabletsRequest message. Does not implicitly {@link vtctldata.GetTabletsRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetShardRequest + * @memberof vtctldata.GetTabletsRequest * @static - * @param {vtctldata.IGetShardRequest} message GetShardRequest message or plain object to encode + * @param {vtctldata.IGetTabletsRequest} message GetTabletsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetShardRequest.encode = function encode(message, writer) { + GetTabletsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.shard_name != null && Object.hasOwnProperty.call(message, "shard_name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard_name); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); + if (message.cells != null && message.cells.length) + for (var i = 0; i < message.cells.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.cells[i]); return writer; }; /** - * Encodes the specified GetShardRequest message, length delimited. Does not implicitly {@link vtctldata.GetShardRequest.verify|verify} messages. + * Encodes the specified GetTabletsRequest message, length delimited. Does not implicitly {@link vtctldata.GetTabletsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetShardRequest + * @memberof vtctldata.GetTabletsRequest * @static - * @param {vtctldata.IGetShardRequest} message GetShardRequest message or plain object to encode + * @param {vtctldata.IGetTabletsRequest} message GetTabletsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetShardRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetTabletsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetShardRequest message from the specified reader or buffer. + * Decodes a GetTabletsRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetShardRequest + * @memberof vtctldata.GetTabletsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetShardRequest} GetShardRequest + * @returns {vtctldata.GetTabletsRequest} GetTabletsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetShardRequest.decode = function decode(reader, length) { + GetTabletsRequest.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.vtctldata.GetShardRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTabletsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -53413,7 +56301,12 @@ $root.vtctldata = (function() { message.keyspace = reader.string(); break; case 2: - message.shard_name = reader.string(); + message.shard = reader.string(); + break; + case 3: + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -53424,116 +56317,138 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetShardRequest message from the specified reader or buffer, length delimited. + * Decodes a GetTabletsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetShardRequest + * @memberof vtctldata.GetTabletsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetShardRequest} GetShardRequest + * @returns {vtctldata.GetTabletsRequest} GetTabletsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetShardRequest.decodeDelimited = function decodeDelimited(reader) { + GetTabletsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetShardRequest message. + * Verifies a GetTabletsRequest message. * @function verify - * @memberof vtctldata.GetShardRequest + * @memberof vtctldata.GetTabletsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetShardRequest.verify = function verify(message) { + GetTabletsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.keyspace != null && message.hasOwnProperty("keyspace")) if (!$util.isString(message.keyspace)) return "keyspace: string expected"; - if (message.shard_name != null && message.hasOwnProperty("shard_name")) - if (!$util.isString(message.shard_name)) - return "shard_name: string expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: 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"; + } return null; }; /** - * Creates a GetShardRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetTabletsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetShardRequest + * @memberof vtctldata.GetTabletsRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetShardRequest} GetShardRequest + * @returns {vtctldata.GetTabletsRequest} GetTabletsRequest */ - GetShardRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetShardRequest) + GetTabletsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetTabletsRequest) return object; - var message = new $root.vtctldata.GetShardRequest(); + var message = new $root.vtctldata.GetTabletsRequest(); if (object.keyspace != null) message.keyspace = String(object.keyspace); - if (object.shard_name != null) - message.shard_name = String(object.shard_name); + if (object.shard != null) + message.shard = String(object.shard); + if (object.cells) { + if (!Array.isArray(object.cells)) + throw TypeError(".vtctldata.GetTabletsRequest.cells: array expected"); + message.cells = []; + for (var i = 0; i < object.cells.length; ++i) + message.cells[i] = String(object.cells[i]); + } return message; }; /** - * Creates a plain object from a GetShardRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetTabletsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetShardRequest + * @memberof vtctldata.GetTabletsRequest * @static - * @param {vtctldata.GetShardRequest} message GetShardRequest + * @param {vtctldata.GetTabletsRequest} message GetTabletsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetShardRequest.toObject = function toObject(message, options) { + GetTabletsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.cells = []; if (options.defaults) { object.keyspace = ""; - object.shard_name = ""; + object.shard = ""; } if (message.keyspace != null && message.hasOwnProperty("keyspace")) object.keyspace = message.keyspace; - if (message.shard_name != null && message.hasOwnProperty("shard_name")) - object.shard_name = message.shard_name; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.cells && message.cells.length) { + object.cells = []; + for (var j = 0; j < message.cells.length; ++j) + object.cells[j] = message.cells[j]; + } return object; }; /** - * Converts this GetShardRequest to JSON. + * Converts this GetTabletsRequest to JSON. * @function toJSON - * @memberof vtctldata.GetShardRequest + * @memberof vtctldata.GetTabletsRequest * @instance * @returns {Object.} JSON object */ - GetShardRequest.prototype.toJSON = function toJSON() { + GetTabletsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetShardRequest; + return GetTabletsRequest; })(); - vtctldata.GetShardResponse = (function() { + vtctldata.GetTabletsResponse = (function() { /** - * Properties of a GetShardResponse. + * Properties of a GetTabletsResponse. * @memberof vtctldata - * @interface IGetShardResponse - * @property {vtctldata.IShard|null} [shard] GetShardResponse shard + * @interface IGetTabletsResponse + * @property {Array.|null} [tablets] GetTabletsResponse tablets */ /** - * Constructs a new GetShardResponse. + * Constructs a new GetTabletsResponse. * @memberof vtctldata - * @classdesc Represents a GetShardResponse. - * @implements IGetShardResponse + * @classdesc Represents a GetTabletsResponse. + * @implements IGetTabletsResponse * @constructor - * @param {vtctldata.IGetShardResponse=} [properties] Properties to set + * @param {vtctldata.IGetTabletsResponse=} [properties] Properties to set */ - function GetShardResponse(properties) { + function GetTabletsResponse(properties) { + this.tablets = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53541,75 +56456,78 @@ $root.vtctldata = (function() { } /** - * GetShardResponse shard. - * @member {vtctldata.IShard|null|undefined} shard - * @memberof vtctldata.GetShardResponse + * GetTabletsResponse tablets. + * @member {Array.} tablets + * @memberof vtctldata.GetTabletsResponse * @instance */ - GetShardResponse.prototype.shard = null; + GetTabletsResponse.prototype.tablets = $util.emptyArray; /** - * Creates a new GetShardResponse instance using the specified properties. + * Creates a new GetTabletsResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetShardResponse + * @memberof vtctldata.GetTabletsResponse * @static - * @param {vtctldata.IGetShardResponse=} [properties] Properties to set - * @returns {vtctldata.GetShardResponse} GetShardResponse instance + * @param {vtctldata.IGetTabletsResponse=} [properties] Properties to set + * @returns {vtctldata.GetTabletsResponse} GetTabletsResponse instance */ - GetShardResponse.create = function create(properties) { - return new GetShardResponse(properties); + GetTabletsResponse.create = function create(properties) { + return new GetTabletsResponse(properties); }; /** - * Encodes the specified GetShardResponse message. Does not implicitly {@link vtctldata.GetShardResponse.verify|verify} messages. + * Encodes the specified GetTabletsResponse message. Does not implicitly {@link vtctldata.GetTabletsResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetShardResponse + * @memberof vtctldata.GetTabletsResponse * @static - * @param {vtctldata.IGetShardResponse} message GetShardResponse message or plain object to encode + * @param {vtctldata.IGetTabletsResponse} message GetTabletsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetShardResponse.encode = function encode(message, writer) { + GetTabletsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - $root.vtctldata.Shard.encode(message.shard, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.tablets != null && message.tablets.length) + for (var i = 0; i < message.tablets.length; ++i) + $root.topodata.Tablet.encode(message.tablets[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetShardResponse message, length delimited. Does not implicitly {@link vtctldata.GetShardResponse.verify|verify} messages. + * Encodes the specified GetTabletsResponse message, length delimited. Does not implicitly {@link vtctldata.GetTabletsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetShardResponse + * @memberof vtctldata.GetTabletsResponse * @static - * @param {vtctldata.IGetShardResponse} message GetShardResponse message or plain object to encode + * @param {vtctldata.IGetTabletsResponse} message GetTabletsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetShardResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetTabletsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetShardResponse message from the specified reader or buffer. + * Decodes a GetTabletsResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetShardResponse + * @memberof vtctldata.GetTabletsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetShardResponse} GetShardResponse + * @returns {vtctldata.GetTabletsResponse} GetTabletsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetShardResponse.decode = function decode(reader, length) { + GetTabletsResponse.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.vtctldata.GetShardResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetTabletsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.shard = $root.vtctldata.Shard.decode(reader, reader.uint32()); + if (!(message.tablets && message.tablets.length)) + message.tablets = []; + message.tablets.push($root.topodata.Tablet.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -53620,112 +56538,124 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetShardResponse message from the specified reader or buffer, length delimited. + * Decodes a GetTabletsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetShardResponse + * @memberof vtctldata.GetTabletsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetShardResponse} GetShardResponse + * @returns {vtctldata.GetTabletsResponse} GetTabletsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetShardResponse.decodeDelimited = function decodeDelimited(reader) { + GetTabletsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetShardResponse message. + * Verifies a GetTabletsResponse message. * @function verify - * @memberof vtctldata.GetShardResponse + * @memberof vtctldata.GetTabletsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetShardResponse.verify = function verify(message) { + GetTabletsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.shard != null && message.hasOwnProperty("shard")) { - var error = $root.vtctldata.Shard.verify(message.shard); - if (error) - return "shard." + error; + if (message.tablets != null && message.hasOwnProperty("tablets")) { + if (!Array.isArray(message.tablets)) + return "tablets: array expected"; + for (var i = 0; i < message.tablets.length; ++i) { + var error = $root.topodata.Tablet.verify(message.tablets[i]); + if (error) + return "tablets." + error; + } } return null; }; /** - * Creates a GetShardResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetTabletsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetShardResponse + * @memberof vtctldata.GetTabletsResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetShardResponse} GetShardResponse + * @returns {vtctldata.GetTabletsResponse} GetTabletsResponse */ - GetShardResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetShardResponse) + GetTabletsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetTabletsResponse) return object; - var message = new $root.vtctldata.GetShardResponse(); - if (object.shard != null) { - if (typeof object.shard !== "object") - throw TypeError(".vtctldata.GetShardResponse.shard: object expected"); - message.shard = $root.vtctldata.Shard.fromObject(object.shard); + var message = new $root.vtctldata.GetTabletsResponse(); + if (object.tablets) { + if (!Array.isArray(object.tablets)) + throw TypeError(".vtctldata.GetTabletsResponse.tablets: array expected"); + message.tablets = []; + for (var i = 0; i < object.tablets.length; ++i) { + if (typeof object.tablets[i] !== "object") + throw TypeError(".vtctldata.GetTabletsResponse.tablets: object expected"); + message.tablets[i] = $root.topodata.Tablet.fromObject(object.tablets[i]); + } } return message; }; /** - * Creates a plain object from a GetShardResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetTabletsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetShardResponse + * @memberof vtctldata.GetTabletsResponse * @static - * @param {vtctldata.GetShardResponse} message GetShardResponse + * @param {vtctldata.GetTabletsResponse} message GetTabletsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetShardResponse.toObject = function toObject(message, options) { + GetTabletsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.shard = null; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = $root.vtctldata.Shard.toObject(message.shard, options); + if (options.arrays || options.defaults) + object.tablets = []; + if (message.tablets && message.tablets.length) { + object.tablets = []; + for (var j = 0; j < message.tablets.length; ++j) + object.tablets[j] = $root.topodata.Tablet.toObject(message.tablets[j], options); + } return object; }; /** - * Converts this GetShardResponse to JSON. + * Converts this GetTabletsResponse to JSON. * @function toJSON - * @memberof vtctldata.GetShardResponse + * @memberof vtctldata.GetTabletsResponse * @instance * @returns {Object.} JSON object */ - GetShardResponse.prototype.toJSON = function toJSON() { + GetTabletsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetShardResponse; + return GetTabletsResponse; })(); - vtctldata.GetSrvVSchemaRequest = (function() { + vtctldata.GetVSchemaRequest = (function() { /** - * Properties of a GetSrvVSchemaRequest. + * Properties of a GetVSchemaRequest. * @memberof vtctldata - * @interface IGetSrvVSchemaRequest - * @property {string|null} [cell] GetSrvVSchemaRequest cell + * @interface IGetVSchemaRequest + * @property {string|null} [keyspace] GetVSchemaRequest keyspace */ /** - * Constructs a new GetSrvVSchemaRequest. + * Constructs a new GetVSchemaRequest. * @memberof vtctldata - * @classdesc Represents a GetSrvVSchemaRequest. - * @implements IGetSrvVSchemaRequest + * @classdesc Represents a GetVSchemaRequest. + * @implements IGetVSchemaRequest * @constructor - * @param {vtctldata.IGetSrvVSchemaRequest=} [properties] Properties to set + * @param {vtctldata.IGetVSchemaRequest=} [properties] Properties to set */ - function GetSrvVSchemaRequest(properties) { + function GetVSchemaRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53733,75 +56663,75 @@ $root.vtctldata = (function() { } /** - * GetSrvVSchemaRequest cell. - * @member {string} cell - * @memberof vtctldata.GetSrvVSchemaRequest + * GetVSchemaRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.GetVSchemaRequest * @instance */ - GetSrvVSchemaRequest.prototype.cell = ""; + GetVSchemaRequest.prototype.keyspace = ""; /** - * Creates a new GetSrvVSchemaRequest instance using the specified properties. + * Creates a new GetVSchemaRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetSrvVSchemaRequest + * @memberof vtctldata.GetVSchemaRequest * @static - * @param {vtctldata.IGetSrvVSchemaRequest=} [properties] Properties to set - * @returns {vtctldata.GetSrvVSchemaRequest} GetSrvVSchemaRequest instance + * @param {vtctldata.IGetVSchemaRequest=} [properties] Properties to set + * @returns {vtctldata.GetVSchemaRequest} GetVSchemaRequest instance */ - GetSrvVSchemaRequest.create = function create(properties) { - return new GetSrvVSchemaRequest(properties); + GetVSchemaRequest.create = function create(properties) { + return new GetVSchemaRequest(properties); }; /** - * Encodes the specified GetSrvVSchemaRequest message. Does not implicitly {@link vtctldata.GetSrvVSchemaRequest.verify|verify} messages. + * Encodes the specified GetVSchemaRequest message. Does not implicitly {@link vtctldata.GetVSchemaRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetSrvVSchemaRequest + * @memberof vtctldata.GetVSchemaRequest * @static - * @param {vtctldata.IGetSrvVSchemaRequest} message GetSrvVSchemaRequest message or plain object to encode + * @param {vtctldata.IGetVSchemaRequest} message GetVSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSrvVSchemaRequest.encode = function encode(message, writer) { + GetVSchemaRequest.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.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); return writer; }; /** - * Encodes the specified GetSrvVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemaRequest.verify|verify} messages. + * Encodes the specified GetVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetVSchemaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetSrvVSchemaRequest + * @memberof vtctldata.GetVSchemaRequest * @static - * @param {vtctldata.IGetSrvVSchemaRequest} message GetSrvVSchemaRequest message or plain object to encode + * @param {vtctldata.IGetVSchemaRequest} message GetVSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSrvVSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetVSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSrvVSchemaRequest message from the specified reader or buffer. + * Decodes a GetVSchemaRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetSrvVSchemaRequest + * @memberof vtctldata.GetVSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetSrvVSchemaRequest} GetSrvVSchemaRequest + * @returns {vtctldata.GetVSchemaRequest} GetVSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSrvVSchemaRequest.decode = function decode(reader, length) { + GetVSchemaRequest.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.vtctldata.GetSrvVSchemaRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetVSchemaRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.cell = reader.string(); + message.keyspace = reader.string(); break; default: reader.skipType(tag & 7); @@ -53812,107 +56742,107 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetSrvVSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a GetVSchemaRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetSrvVSchemaRequest + * @memberof vtctldata.GetVSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetSrvVSchemaRequest} GetSrvVSchemaRequest + * @returns {vtctldata.GetVSchemaRequest} GetVSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSrvVSchemaRequest.decodeDelimited = function decodeDelimited(reader) { + GetVSchemaRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetSrvVSchemaRequest message. + * Verifies a GetVSchemaRequest message. * @function verify - * @memberof vtctldata.GetSrvVSchemaRequest + * @memberof vtctldata.GetVSchemaRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSrvVSchemaRequest.verify = function verify(message) { + GetVSchemaRequest.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.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; return null; }; /** - * Creates a GetSrvVSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetVSchemaRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetSrvVSchemaRequest + * @memberof vtctldata.GetVSchemaRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetSrvVSchemaRequest} GetSrvVSchemaRequest + * @returns {vtctldata.GetVSchemaRequest} GetVSchemaRequest */ - GetSrvVSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetSrvVSchemaRequest) + GetVSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetVSchemaRequest) return object; - var message = new $root.vtctldata.GetSrvVSchemaRequest(); - if (object.cell != null) - message.cell = String(object.cell); + var message = new $root.vtctldata.GetVSchemaRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); return message; }; /** - * Creates a plain object from a GetSrvVSchemaRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetVSchemaRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetSrvVSchemaRequest + * @memberof vtctldata.GetVSchemaRequest * @static - * @param {vtctldata.GetSrvVSchemaRequest} message GetSrvVSchemaRequest + * @param {vtctldata.GetVSchemaRequest} message GetVSchemaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSrvVSchemaRequest.toObject = function toObject(message, options) { + GetVSchemaRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.cell = ""; - if (message.cell != null && message.hasOwnProperty("cell")) - object.cell = message.cell; + object.keyspace = ""; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; return object; }; /** - * Converts this GetSrvVSchemaRequest to JSON. + * Converts this GetVSchemaRequest to JSON. * @function toJSON - * @memberof vtctldata.GetSrvVSchemaRequest + * @memberof vtctldata.GetVSchemaRequest * @instance * @returns {Object.} JSON object */ - GetSrvVSchemaRequest.prototype.toJSON = function toJSON() { + GetVSchemaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetSrvVSchemaRequest; + return GetVSchemaRequest; })(); - vtctldata.GetSrvVSchemaResponse = (function() { + vtctldata.GetVSchemaResponse = (function() { /** - * Properties of a GetSrvVSchemaResponse. + * Properties of a GetVSchemaResponse. * @memberof vtctldata - * @interface IGetSrvVSchemaResponse - * @property {vschema.ISrvVSchema|null} [srv_v_schema] GetSrvVSchemaResponse srv_v_schema + * @interface IGetVSchemaResponse + * @property {vschema.IKeyspace|null} [v_schema] GetVSchemaResponse v_schema */ /** - * Constructs a new GetSrvVSchemaResponse. + * Constructs a new GetVSchemaResponse. * @memberof vtctldata - * @classdesc Represents a GetSrvVSchemaResponse. - * @implements IGetSrvVSchemaResponse + * @classdesc Represents a GetVSchemaResponse. + * @implements IGetVSchemaResponse * @constructor - * @param {vtctldata.IGetSrvVSchemaResponse=} [properties] Properties to set + * @param {vtctldata.IGetVSchemaResponse=} [properties] Properties to set */ - function GetSrvVSchemaResponse(properties) { + function GetVSchemaResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53920,75 +56850,75 @@ $root.vtctldata = (function() { } /** - * GetSrvVSchemaResponse srv_v_schema. - * @member {vschema.ISrvVSchema|null|undefined} srv_v_schema - * @memberof vtctldata.GetSrvVSchemaResponse + * GetVSchemaResponse v_schema. + * @member {vschema.IKeyspace|null|undefined} v_schema + * @memberof vtctldata.GetVSchemaResponse * @instance */ - GetSrvVSchemaResponse.prototype.srv_v_schema = null; + GetVSchemaResponse.prototype.v_schema = null; /** - * Creates a new GetSrvVSchemaResponse instance using the specified properties. + * Creates a new GetVSchemaResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetSrvVSchemaResponse + * @memberof vtctldata.GetVSchemaResponse * @static - * @param {vtctldata.IGetSrvVSchemaResponse=} [properties] Properties to set - * @returns {vtctldata.GetSrvVSchemaResponse} GetSrvVSchemaResponse instance + * @param {vtctldata.IGetVSchemaResponse=} [properties] Properties to set + * @returns {vtctldata.GetVSchemaResponse} GetVSchemaResponse instance */ - GetSrvVSchemaResponse.create = function create(properties) { - return new GetSrvVSchemaResponse(properties); + GetVSchemaResponse.create = function create(properties) { + return new GetVSchemaResponse(properties); }; /** - * Encodes the specified GetSrvVSchemaResponse message. Does not implicitly {@link vtctldata.GetSrvVSchemaResponse.verify|verify} messages. + * Encodes the specified GetVSchemaResponse message. Does not implicitly {@link vtctldata.GetVSchemaResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetSrvVSchemaResponse + * @memberof vtctldata.GetVSchemaResponse * @static - * @param {vtctldata.IGetSrvVSchemaResponse} message GetSrvVSchemaResponse message or plain object to encode + * @param {vtctldata.IGetVSchemaResponse} message GetVSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSrvVSchemaResponse.encode = function encode(message, writer) { + GetVSchemaResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.srv_v_schema != null && Object.hasOwnProperty.call(message, "srv_v_schema")) - $root.vschema.SrvVSchema.encode(message.srv_v_schema, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.v_schema != null && Object.hasOwnProperty.call(message, "v_schema")) + $root.vschema.Keyspace.encode(message.v_schema, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetSrvVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemaResponse.verify|verify} messages. + * Encodes the specified GetVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetVSchemaResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetSrvVSchemaResponse + * @memberof vtctldata.GetVSchemaResponse * @static - * @param {vtctldata.IGetSrvVSchemaResponse} message GetSrvVSchemaResponse message or plain object to encode + * @param {vtctldata.IGetVSchemaResponse} message GetVSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSrvVSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetVSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSrvVSchemaResponse message from the specified reader or buffer. + * Decodes a GetVSchemaResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetSrvVSchemaResponse + * @memberof vtctldata.GetVSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetSrvVSchemaResponse} GetSrvVSchemaResponse + * @returns {vtctldata.GetVSchemaResponse} GetVSchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSrvVSchemaResponse.decode = function decode(reader, length) { + GetVSchemaResponse.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.vtctldata.GetSrvVSchemaResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.GetVSchemaResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.srv_v_schema = $root.vschema.SrvVSchema.decode(reader, reader.uint32()); + message.v_schema = $root.vschema.Keyspace.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -53999,112 +56929,116 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetSrvVSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a GetVSchemaResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetSrvVSchemaResponse + * @memberof vtctldata.GetVSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetSrvVSchemaResponse} GetSrvVSchemaResponse + * @returns {vtctldata.GetVSchemaResponse} GetVSchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSrvVSchemaResponse.decodeDelimited = function decodeDelimited(reader) { + GetVSchemaResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetSrvVSchemaResponse message. + * Verifies a GetVSchemaResponse message. * @function verify - * @memberof vtctldata.GetSrvVSchemaResponse + * @memberof vtctldata.GetVSchemaResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSrvVSchemaResponse.verify = function verify(message) { + GetVSchemaResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.srv_v_schema != null && message.hasOwnProperty("srv_v_schema")) { - var error = $root.vschema.SrvVSchema.verify(message.srv_v_schema); + if (message.v_schema != null && message.hasOwnProperty("v_schema")) { + var error = $root.vschema.Keyspace.verify(message.v_schema); if (error) - return "srv_v_schema." + error; + return "v_schema." + error; } return null; }; /** - * Creates a GetSrvVSchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetVSchemaResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetSrvVSchemaResponse + * @memberof vtctldata.GetVSchemaResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetSrvVSchemaResponse} GetSrvVSchemaResponse + * @returns {vtctldata.GetVSchemaResponse} GetVSchemaResponse */ - GetSrvVSchemaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetSrvVSchemaResponse) + GetVSchemaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.GetVSchemaResponse) return object; - var message = new $root.vtctldata.GetSrvVSchemaResponse(); - if (object.srv_v_schema != null) { - if (typeof object.srv_v_schema !== "object") - throw TypeError(".vtctldata.GetSrvVSchemaResponse.srv_v_schema: object expected"); - message.srv_v_schema = $root.vschema.SrvVSchema.fromObject(object.srv_v_schema); + var message = new $root.vtctldata.GetVSchemaResponse(); + if (object.v_schema != null) { + if (typeof object.v_schema !== "object") + throw TypeError(".vtctldata.GetVSchemaResponse.v_schema: object expected"); + message.v_schema = $root.vschema.Keyspace.fromObject(object.v_schema); } return message; }; /** - * Creates a plain object from a GetSrvVSchemaResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetVSchemaResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetSrvVSchemaResponse + * @memberof vtctldata.GetVSchemaResponse * @static - * @param {vtctldata.GetSrvVSchemaResponse} message GetSrvVSchemaResponse + * @param {vtctldata.GetVSchemaResponse} message GetVSchemaResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSrvVSchemaResponse.toObject = function toObject(message, options) { + GetVSchemaResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.srv_v_schema = null; - if (message.srv_v_schema != null && message.hasOwnProperty("srv_v_schema")) - object.srv_v_schema = $root.vschema.SrvVSchema.toObject(message.srv_v_schema, options); + object.v_schema = null; + if (message.v_schema != null && message.hasOwnProperty("v_schema")) + object.v_schema = $root.vschema.Keyspace.toObject(message.v_schema, options); return object; }; /** - * Converts this GetSrvVSchemaResponse to JSON. + * Converts this GetVSchemaResponse to JSON. * @function toJSON - * @memberof vtctldata.GetSrvVSchemaResponse + * @memberof vtctldata.GetVSchemaResponse * @instance * @returns {Object.} JSON object */ - GetSrvVSchemaResponse.prototype.toJSON = function toJSON() { + GetVSchemaResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetSrvVSchemaResponse; + return GetVSchemaResponse; })(); - vtctldata.GetTabletRequest = (function() { + vtctldata.InitShardPrimaryRequest = (function() { /** - * Properties of a GetTabletRequest. + * Properties of an InitShardPrimaryRequest. * @memberof vtctldata - * @interface IGetTabletRequest - * @property {topodata.ITabletAlias|null} [tablet_alias] GetTabletRequest tablet_alias + * @interface IInitShardPrimaryRequest + * @property {string|null} [keyspace] InitShardPrimaryRequest keyspace + * @property {string|null} [shard] InitShardPrimaryRequest shard + * @property {topodata.ITabletAlias|null} [primary_elect_tablet_alias] InitShardPrimaryRequest primary_elect_tablet_alias + * @property {boolean|null} [force] InitShardPrimaryRequest force + * @property {vttime.IDuration|null} [wait_replicas_timeout] InitShardPrimaryRequest wait_replicas_timeout */ /** - * Constructs a new GetTabletRequest. + * Constructs a new InitShardPrimaryRequest. * @memberof vtctldata - * @classdesc Represents a GetTabletRequest. - * @implements IGetTabletRequest + * @classdesc Represents an InitShardPrimaryRequest. + * @implements IInitShardPrimaryRequest * @constructor - * @param {vtctldata.IGetTabletRequest=} [properties] Properties to set + * @param {vtctldata.IInitShardPrimaryRequest=} [properties] Properties to set */ - function GetTabletRequest(properties) { + function InitShardPrimaryRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54112,75 +57046,127 @@ $root.vtctldata = (function() { } /** - * GetTabletRequest tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.GetTabletRequest + * InitShardPrimaryRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.InitShardPrimaryRequest * @instance */ - GetTabletRequest.prototype.tablet_alias = null; + InitShardPrimaryRequest.prototype.keyspace = ""; /** - * Creates a new GetTabletRequest instance using the specified properties. + * InitShardPrimaryRequest shard. + * @member {string} shard + * @memberof vtctldata.InitShardPrimaryRequest + * @instance + */ + InitShardPrimaryRequest.prototype.shard = ""; + + /** + * InitShardPrimaryRequest primary_elect_tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} primary_elect_tablet_alias + * @memberof vtctldata.InitShardPrimaryRequest + * @instance + */ + InitShardPrimaryRequest.prototype.primary_elect_tablet_alias = null; + + /** + * InitShardPrimaryRequest force. + * @member {boolean} force + * @memberof vtctldata.InitShardPrimaryRequest + * @instance + */ + InitShardPrimaryRequest.prototype.force = false; + + /** + * InitShardPrimaryRequest wait_replicas_timeout. + * @member {vttime.IDuration|null|undefined} wait_replicas_timeout + * @memberof vtctldata.InitShardPrimaryRequest + * @instance + */ + InitShardPrimaryRequest.prototype.wait_replicas_timeout = null; + + /** + * Creates a new InitShardPrimaryRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetTabletRequest + * @memberof vtctldata.InitShardPrimaryRequest * @static - * @param {vtctldata.IGetTabletRequest=} [properties] Properties to set - * @returns {vtctldata.GetTabletRequest} GetTabletRequest instance + * @param {vtctldata.IInitShardPrimaryRequest=} [properties] Properties to set + * @returns {vtctldata.InitShardPrimaryRequest} InitShardPrimaryRequest instance */ - GetTabletRequest.create = function create(properties) { - return new GetTabletRequest(properties); + InitShardPrimaryRequest.create = function create(properties) { + return new InitShardPrimaryRequest(properties); }; /** - * Encodes the specified GetTabletRequest message. Does not implicitly {@link vtctldata.GetTabletRequest.verify|verify} messages. + * Encodes the specified InitShardPrimaryRequest message. Does not implicitly {@link vtctldata.InitShardPrimaryRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetTabletRequest + * @memberof vtctldata.InitShardPrimaryRequest * @static - * @param {vtctldata.IGetTabletRequest} message GetTabletRequest message or plain object to encode + * @param {vtctldata.IInitShardPrimaryRequest} message InitShardPrimaryRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTabletRequest.encode = function encode(message, writer) { + InitShardPrimaryRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) - $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); + if (message.primary_elect_tablet_alias != null && Object.hasOwnProperty.call(message, "primary_elect_tablet_alias")) + $root.topodata.TabletAlias.encode(message.primary_elect_tablet_alias, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.force); + if (message.wait_replicas_timeout != null && Object.hasOwnProperty.call(message, "wait_replicas_timeout")) + $root.vttime.Duration.encode(message.wait_replicas_timeout, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetTabletRequest message, length delimited. Does not implicitly {@link vtctldata.GetTabletRequest.verify|verify} messages. + * Encodes the specified InitShardPrimaryRequest message, length delimited. Does not implicitly {@link vtctldata.InitShardPrimaryRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetTabletRequest + * @memberof vtctldata.InitShardPrimaryRequest * @static - * @param {vtctldata.IGetTabletRequest} message GetTabletRequest message or plain object to encode + * @param {vtctldata.IInitShardPrimaryRequest} message InitShardPrimaryRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTabletRequest.encodeDelimited = function encodeDelimited(message, writer) { + InitShardPrimaryRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTabletRequest message from the specified reader or buffer. + * Decodes an InitShardPrimaryRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetTabletRequest + * @memberof vtctldata.InitShardPrimaryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetTabletRequest} GetTabletRequest + * @returns {vtctldata.InitShardPrimaryRequest} InitShardPrimaryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTabletRequest.decode = function decode(reader, length) { + InitShardPrimaryRequest.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.vtctldata.GetTabletRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.InitShardPrimaryRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + message.keyspace = reader.string(); + break; + case 2: + message.shard = reader.string(); + break; + case 3: + message.primary_elect_tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + case 4: + message.force = reader.bool(); + break; + case 5: + message.wait_replicas_timeout = $root.vttime.Duration.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -54191,112 +57177,151 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetTabletRequest message from the specified reader or buffer, length delimited. + * Decodes an InitShardPrimaryRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetTabletRequest + * @memberof vtctldata.InitShardPrimaryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetTabletRequest} GetTabletRequest + * @returns {vtctldata.InitShardPrimaryRequest} InitShardPrimaryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTabletRequest.decodeDelimited = function decodeDelimited(reader) { + InitShardPrimaryRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetTabletRequest message. + * Verifies an InitShardPrimaryRequest message. * @function verify - * @memberof vtctldata.GetTabletRequest + * @memberof vtctldata.InitShardPrimaryRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetTabletRequest.verify = function verify(message) { + InitShardPrimaryRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - var error = $root.topodata.TabletAlias.verify(message.tablet_alias); + 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.primary_elect_tablet_alias != null && message.hasOwnProperty("primary_elect_tablet_alias")) { + var error = $root.topodata.TabletAlias.verify(message.primary_elect_tablet_alias); if (error) - return "tablet_alias." + error; + return "primary_elect_tablet_alias." + error; + } + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; + if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout")) { + var error = $root.vttime.Duration.verify(message.wait_replicas_timeout); + if (error) + return "wait_replicas_timeout." + error; } return null; }; /** - * Creates a GetTabletRequest message from a plain object. Also converts values to their respective internal types. + * Creates an InitShardPrimaryRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetTabletRequest + * @memberof vtctldata.InitShardPrimaryRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetTabletRequest} GetTabletRequest + * @returns {vtctldata.InitShardPrimaryRequest} InitShardPrimaryRequest */ - GetTabletRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetTabletRequest) + InitShardPrimaryRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.InitShardPrimaryRequest) return object; - var message = new $root.vtctldata.GetTabletRequest(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.GetTabletRequest.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + var message = new $root.vtctldata.InitShardPrimaryRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + if (object.primary_elect_tablet_alias != null) { + if (typeof object.primary_elect_tablet_alias !== "object") + throw TypeError(".vtctldata.InitShardPrimaryRequest.primary_elect_tablet_alias: object expected"); + message.primary_elect_tablet_alias = $root.topodata.TabletAlias.fromObject(object.primary_elect_tablet_alias); + } + if (object.force != null) + message.force = Boolean(object.force); + if (object.wait_replicas_timeout != null) { + if (typeof object.wait_replicas_timeout !== "object") + throw TypeError(".vtctldata.InitShardPrimaryRequest.wait_replicas_timeout: object expected"); + message.wait_replicas_timeout = $root.vttime.Duration.fromObject(object.wait_replicas_timeout); } return message; }; /** - * Creates a plain object from a GetTabletRequest message. Also converts values to other types if specified. + * Creates a plain object from an InitShardPrimaryRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetTabletRequest + * @memberof vtctldata.InitShardPrimaryRequest * @static - * @param {vtctldata.GetTabletRequest} message GetTabletRequest + * @param {vtctldata.InitShardPrimaryRequest} message InitShardPrimaryRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTabletRequest.toObject = function toObject(message, options) { + InitShardPrimaryRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.tablet_alias = null; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (options.defaults) { + object.keyspace = ""; + object.shard = ""; + object.primary_elect_tablet_alias = null; + object.force = false; + object.wait_replicas_timeout = null; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.primary_elect_tablet_alias != null && message.hasOwnProperty("primary_elect_tablet_alias")) + object.primary_elect_tablet_alias = $root.topodata.TabletAlias.toObject(message.primary_elect_tablet_alias, options); + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; + if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout")) + object.wait_replicas_timeout = $root.vttime.Duration.toObject(message.wait_replicas_timeout, options); return object; }; /** - * Converts this GetTabletRequest to JSON. + * Converts this InitShardPrimaryRequest to JSON. * @function toJSON - * @memberof vtctldata.GetTabletRequest + * @memberof vtctldata.InitShardPrimaryRequest * @instance * @returns {Object.} JSON object */ - GetTabletRequest.prototype.toJSON = function toJSON() { + InitShardPrimaryRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetTabletRequest; + return InitShardPrimaryRequest; })(); - vtctldata.GetTabletResponse = (function() { + vtctldata.InitShardPrimaryResponse = (function() { /** - * Properties of a GetTabletResponse. + * Properties of an InitShardPrimaryResponse. * @memberof vtctldata - * @interface IGetTabletResponse - * @property {topodata.ITablet|null} [tablet] GetTabletResponse tablet + * @interface IInitShardPrimaryResponse + * @property {Array.|null} [events] InitShardPrimaryResponse events */ /** - * Constructs a new GetTabletResponse. + * Constructs a new InitShardPrimaryResponse. * @memberof vtctldata - * @classdesc Represents a GetTabletResponse. - * @implements IGetTabletResponse + * @classdesc Represents an InitShardPrimaryResponse. + * @implements IInitShardPrimaryResponse * @constructor - * @param {vtctldata.IGetTabletResponse=} [properties] Properties to set + * @param {vtctldata.IInitShardPrimaryResponse=} [properties] Properties to set */ - function GetTabletResponse(properties) { + function InitShardPrimaryResponse(properties) { + this.events = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54304,75 +57329,78 @@ $root.vtctldata = (function() { } /** - * GetTabletResponse tablet. - * @member {topodata.ITablet|null|undefined} tablet - * @memberof vtctldata.GetTabletResponse + * InitShardPrimaryResponse events. + * @member {Array.} events + * @memberof vtctldata.InitShardPrimaryResponse * @instance */ - GetTabletResponse.prototype.tablet = null; + InitShardPrimaryResponse.prototype.events = $util.emptyArray; /** - * Creates a new GetTabletResponse instance using the specified properties. + * Creates a new InitShardPrimaryResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetTabletResponse + * @memberof vtctldata.InitShardPrimaryResponse * @static - * @param {vtctldata.IGetTabletResponse=} [properties] Properties to set - * @returns {vtctldata.GetTabletResponse} GetTabletResponse instance + * @param {vtctldata.IInitShardPrimaryResponse=} [properties] Properties to set + * @returns {vtctldata.InitShardPrimaryResponse} InitShardPrimaryResponse instance */ - GetTabletResponse.create = function create(properties) { - return new GetTabletResponse(properties); + InitShardPrimaryResponse.create = function create(properties) { + return new InitShardPrimaryResponse(properties); }; /** - * Encodes the specified GetTabletResponse message. Does not implicitly {@link vtctldata.GetTabletResponse.verify|verify} messages. + * Encodes the specified InitShardPrimaryResponse message. Does not implicitly {@link vtctldata.InitShardPrimaryResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetTabletResponse + * @memberof vtctldata.InitShardPrimaryResponse * @static - * @param {vtctldata.IGetTabletResponse} message GetTabletResponse message or plain object to encode + * @param {vtctldata.IInitShardPrimaryResponse} message InitShardPrimaryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTabletResponse.encode = function encode(message, writer) { + InitShardPrimaryResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tablet != null && Object.hasOwnProperty.call(message, "tablet")) - $root.topodata.Tablet.encode(message.tablet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.events != null && message.events.length) + for (var i = 0; i < message.events.length; ++i) + $root.logutil.Event.encode(message.events[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetTabletResponse message, length delimited. Does not implicitly {@link vtctldata.GetTabletResponse.verify|verify} messages. + * Encodes the specified InitShardPrimaryResponse message, length delimited. Does not implicitly {@link vtctldata.InitShardPrimaryResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetTabletResponse + * @memberof vtctldata.InitShardPrimaryResponse * @static - * @param {vtctldata.IGetTabletResponse} message GetTabletResponse message or plain object to encode + * @param {vtctldata.IInitShardPrimaryResponse} message InitShardPrimaryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTabletResponse.encodeDelimited = function encodeDelimited(message, writer) { + InitShardPrimaryResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTabletResponse message from the specified reader or buffer. + * Decodes an InitShardPrimaryResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetTabletResponse + * @memberof vtctldata.InitShardPrimaryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetTabletResponse} GetTabletResponse + * @returns {vtctldata.InitShardPrimaryResponse} InitShardPrimaryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTabletResponse.decode = function decode(reader, length) { + InitShardPrimaryResponse.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.vtctldata.GetTabletResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.InitShardPrimaryResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.tablet = $root.topodata.Tablet.decode(reader, reader.uint32()); + if (!(message.events && message.events.length)) + message.events = []; + message.events.push($root.logutil.Event.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -54383,115 +57411,128 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetTabletResponse message from the specified reader or buffer, length delimited. + * Decodes an InitShardPrimaryResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetTabletResponse + * @memberof vtctldata.InitShardPrimaryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetTabletResponse} GetTabletResponse + * @returns {vtctldata.InitShardPrimaryResponse} InitShardPrimaryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTabletResponse.decodeDelimited = function decodeDelimited(reader) { + InitShardPrimaryResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetTabletResponse message. + * Verifies an InitShardPrimaryResponse message. * @function verify - * @memberof vtctldata.GetTabletResponse + * @memberof vtctldata.InitShardPrimaryResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetTabletResponse.verify = function verify(message) { + InitShardPrimaryResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet != null && message.hasOwnProperty("tablet")) { - var error = $root.topodata.Tablet.verify(message.tablet); - if (error) - return "tablet." + error; + if (message.events != null && message.hasOwnProperty("events")) { + if (!Array.isArray(message.events)) + return "events: array expected"; + for (var i = 0; i < message.events.length; ++i) { + var error = $root.logutil.Event.verify(message.events[i]); + if (error) + return "events." + error; + } } return null; }; /** - * Creates a GetTabletResponse message from a plain object. Also converts values to their respective internal types. + * Creates an InitShardPrimaryResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetTabletResponse + * @memberof vtctldata.InitShardPrimaryResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetTabletResponse} GetTabletResponse + * @returns {vtctldata.InitShardPrimaryResponse} InitShardPrimaryResponse */ - GetTabletResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetTabletResponse) + InitShardPrimaryResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.InitShardPrimaryResponse) return object; - var message = new $root.vtctldata.GetTabletResponse(); - if (object.tablet != null) { - if (typeof object.tablet !== "object") - throw TypeError(".vtctldata.GetTabletResponse.tablet: object expected"); - message.tablet = $root.topodata.Tablet.fromObject(object.tablet); + var message = new $root.vtctldata.InitShardPrimaryResponse(); + if (object.events) { + if (!Array.isArray(object.events)) + throw TypeError(".vtctldata.InitShardPrimaryResponse.events: array expected"); + message.events = []; + for (var i = 0; i < object.events.length; ++i) { + if (typeof object.events[i] !== "object") + throw TypeError(".vtctldata.InitShardPrimaryResponse.events: object expected"); + message.events[i] = $root.logutil.Event.fromObject(object.events[i]); + } } return message; }; /** - * Creates a plain object from a GetTabletResponse message. Also converts values to other types if specified. + * Creates a plain object from an InitShardPrimaryResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetTabletResponse + * @memberof vtctldata.InitShardPrimaryResponse * @static - * @param {vtctldata.GetTabletResponse} message GetTabletResponse + * @param {vtctldata.InitShardPrimaryResponse} message InitShardPrimaryResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTabletResponse.toObject = function toObject(message, options) { + InitShardPrimaryResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.tablet = null; - if (message.tablet != null && message.hasOwnProperty("tablet")) - object.tablet = $root.topodata.Tablet.toObject(message.tablet, options); + if (options.arrays || options.defaults) + object.events = []; + if (message.events && message.events.length) { + object.events = []; + for (var j = 0; j < message.events.length; ++j) + object.events[j] = $root.logutil.Event.toObject(message.events[j], options); + } return object; }; /** - * Converts this GetTabletResponse to JSON. + * Converts this InitShardPrimaryResponse to JSON. * @function toJSON - * @memberof vtctldata.GetTabletResponse + * @memberof vtctldata.InitShardPrimaryResponse * @instance * @returns {Object.} JSON object */ - GetTabletResponse.prototype.toJSON = function toJSON() { + InitShardPrimaryResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetTabletResponse; + return InitShardPrimaryResponse; })(); - vtctldata.GetTabletsRequest = (function() { + vtctldata.PlannedReparentShardRequest = (function() { /** - * Properties of a GetTabletsRequest. + * Properties of a PlannedReparentShardRequest. * @memberof vtctldata - * @interface IGetTabletsRequest - * @property {string|null} [keyspace] GetTabletsRequest keyspace - * @property {string|null} [shard] GetTabletsRequest shard - * @property {Array.|null} [cells] GetTabletsRequest cells + * @interface IPlannedReparentShardRequest + * @property {string|null} [keyspace] PlannedReparentShardRequest keyspace + * @property {string|null} [shard] PlannedReparentShardRequest shard + * @property {topodata.ITabletAlias|null} [new_primary] PlannedReparentShardRequest new_primary + * @property {topodata.ITabletAlias|null} [avoid_primary] PlannedReparentShardRequest avoid_primary + * @property {vttime.IDuration|null} [wait_replicas_timeout] PlannedReparentShardRequest wait_replicas_timeout */ /** - * Constructs a new GetTabletsRequest. + * Constructs a new PlannedReparentShardRequest. * @memberof vtctldata - * @classdesc Represents a GetTabletsRequest. - * @implements IGetTabletsRequest + * @classdesc Represents a PlannedReparentShardRequest. + * @implements IPlannedReparentShardRequest * @constructor - * @param {vtctldata.IGetTabletsRequest=} [properties] Properties to set + * @param {vtctldata.IPlannedReparentShardRequest=} [properties] Properties to set */ - function GetTabletsRequest(properties) { - this.cells = []; + function PlannedReparentShardRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54499,91 +57540,110 @@ $root.vtctldata = (function() { } /** - * GetTabletsRequest keyspace. + * PlannedReparentShardRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.GetTabletsRequest + * @memberof vtctldata.PlannedReparentShardRequest * @instance */ - GetTabletsRequest.prototype.keyspace = ""; + PlannedReparentShardRequest.prototype.keyspace = ""; /** - * GetTabletsRequest shard. + * PlannedReparentShardRequest shard. * @member {string} shard - * @memberof vtctldata.GetTabletsRequest + * @memberof vtctldata.PlannedReparentShardRequest * @instance */ - GetTabletsRequest.prototype.shard = ""; + PlannedReparentShardRequest.prototype.shard = ""; /** - * GetTabletsRequest cells. - * @member {Array.} cells - * @memberof vtctldata.GetTabletsRequest + * PlannedReparentShardRequest new_primary. + * @member {topodata.ITabletAlias|null|undefined} new_primary + * @memberof vtctldata.PlannedReparentShardRequest * @instance */ - GetTabletsRequest.prototype.cells = $util.emptyArray; + PlannedReparentShardRequest.prototype.new_primary = null; /** - * Creates a new GetTabletsRequest instance using the specified properties. + * PlannedReparentShardRequest avoid_primary. + * @member {topodata.ITabletAlias|null|undefined} avoid_primary + * @memberof vtctldata.PlannedReparentShardRequest + * @instance + */ + PlannedReparentShardRequest.prototype.avoid_primary = null; + + /** + * PlannedReparentShardRequest wait_replicas_timeout. + * @member {vttime.IDuration|null|undefined} wait_replicas_timeout + * @memberof vtctldata.PlannedReparentShardRequest + * @instance + */ + PlannedReparentShardRequest.prototype.wait_replicas_timeout = null; + + /** + * Creates a new PlannedReparentShardRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetTabletsRequest + * @memberof vtctldata.PlannedReparentShardRequest * @static - * @param {vtctldata.IGetTabletsRequest=} [properties] Properties to set - * @returns {vtctldata.GetTabletsRequest} GetTabletsRequest instance + * @param {vtctldata.IPlannedReparentShardRequest=} [properties] Properties to set + * @returns {vtctldata.PlannedReparentShardRequest} PlannedReparentShardRequest instance */ - GetTabletsRequest.create = function create(properties) { - return new GetTabletsRequest(properties); + PlannedReparentShardRequest.create = function create(properties) { + return new PlannedReparentShardRequest(properties); }; /** - * Encodes the specified GetTabletsRequest message. Does not implicitly {@link vtctldata.GetTabletsRequest.verify|verify} messages. + * Encodes the specified PlannedReparentShardRequest message. Does not implicitly {@link vtctldata.PlannedReparentShardRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetTabletsRequest + * @memberof vtctldata.PlannedReparentShardRequest * @static - * @param {vtctldata.IGetTabletsRequest} message GetTabletsRequest message or plain object to encode + * @param {vtctldata.IPlannedReparentShardRequest} message PlannedReparentShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTabletsRequest.encode = function encode(message, writer) { + PlannedReparentShardRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); - if (message.cells != null && message.cells.length) - for (var i = 0; i < message.cells.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.cells[i]); + if (message.new_primary != null && Object.hasOwnProperty.call(message, "new_primary")) + $root.topodata.TabletAlias.encode(message.new_primary, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.avoid_primary != null && Object.hasOwnProperty.call(message, "avoid_primary")) + $root.topodata.TabletAlias.encode(message.avoid_primary, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.wait_replicas_timeout != null && Object.hasOwnProperty.call(message, "wait_replicas_timeout")) + $root.vttime.Duration.encode(message.wait_replicas_timeout, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetTabletsRequest message, length delimited. Does not implicitly {@link vtctldata.GetTabletsRequest.verify|verify} messages. + * Encodes the specified PlannedReparentShardRequest message, length delimited. Does not implicitly {@link vtctldata.PlannedReparentShardRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetTabletsRequest + * @memberof vtctldata.PlannedReparentShardRequest * @static - * @param {vtctldata.IGetTabletsRequest} message GetTabletsRequest message or plain object to encode + * @param {vtctldata.IPlannedReparentShardRequest} message PlannedReparentShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTabletsRequest.encodeDelimited = function encodeDelimited(message, writer) { + PlannedReparentShardRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTabletsRequest message from the specified reader or buffer. + * Decodes a PlannedReparentShardRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetTabletsRequest + * @memberof vtctldata.PlannedReparentShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetTabletsRequest} GetTabletsRequest + * @returns {vtctldata.PlannedReparentShardRequest} PlannedReparentShardRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTabletsRequest.decode = function decode(reader, length) { + PlannedReparentShardRequest.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.vtctldata.GetTabletsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.PlannedReparentShardRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -54594,9 +57654,13 @@ $root.vtctldata = (function() { message.shard = reader.string(); break; case 3: - if (!(message.cells && message.cells.length)) - message.cells = []; - message.cells.push(reader.string()); + message.new_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + case 4: + message.avoid_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + case 5: + message.wait_replicas_timeout = $root.vttime.Duration.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -54607,30 +57671,30 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetTabletsRequest message from the specified reader or buffer, length delimited. + * Decodes a PlannedReparentShardRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetTabletsRequest + * @memberof vtctldata.PlannedReparentShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetTabletsRequest} GetTabletsRequest + * @returns {vtctldata.PlannedReparentShardRequest} PlannedReparentShardRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTabletsRequest.decodeDelimited = function decodeDelimited(reader) { + PlannedReparentShardRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetTabletsRequest message. + * Verifies a PlannedReparentShardRequest message. * @function verify - * @memberof vtctldata.GetTabletsRequest + * @memberof vtctldata.PlannedReparentShardRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetTabletsRequest.verify = function verify(message) { + PlannedReparentShardRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.keyspace != null && message.hasOwnProperty("keyspace")) @@ -54639,106 +57703,127 @@ $root.vtctldata = (function() { if (message.shard != null && message.hasOwnProperty("shard")) if (!$util.isString(message.shard)) return "shard: 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.new_primary != null && message.hasOwnProperty("new_primary")) { + var error = $root.topodata.TabletAlias.verify(message.new_primary); + if (error) + return "new_primary." + error; + } + if (message.avoid_primary != null && message.hasOwnProperty("avoid_primary")) { + var error = $root.topodata.TabletAlias.verify(message.avoid_primary); + if (error) + return "avoid_primary." + error; + } + if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout")) { + var error = $root.vttime.Duration.verify(message.wait_replicas_timeout); + if (error) + return "wait_replicas_timeout." + error; } return null; }; /** - * Creates a GetTabletsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PlannedReparentShardRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetTabletsRequest + * @memberof vtctldata.PlannedReparentShardRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetTabletsRequest} GetTabletsRequest + * @returns {vtctldata.PlannedReparentShardRequest} PlannedReparentShardRequest */ - GetTabletsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetTabletsRequest) + PlannedReparentShardRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.PlannedReparentShardRequest) return object; - var message = new $root.vtctldata.GetTabletsRequest(); + var message = new $root.vtctldata.PlannedReparentShardRequest(); if (object.keyspace != null) message.keyspace = String(object.keyspace); if (object.shard != null) message.shard = String(object.shard); - if (object.cells) { - if (!Array.isArray(object.cells)) - throw TypeError(".vtctldata.GetTabletsRequest.cells: array expected"); - message.cells = []; - for (var i = 0; i < object.cells.length; ++i) - message.cells[i] = String(object.cells[i]); + if (object.new_primary != null) { + if (typeof object.new_primary !== "object") + throw TypeError(".vtctldata.PlannedReparentShardRequest.new_primary: object expected"); + message.new_primary = $root.topodata.TabletAlias.fromObject(object.new_primary); + } + if (object.avoid_primary != null) { + if (typeof object.avoid_primary !== "object") + throw TypeError(".vtctldata.PlannedReparentShardRequest.avoid_primary: object expected"); + message.avoid_primary = $root.topodata.TabletAlias.fromObject(object.avoid_primary); + } + if (object.wait_replicas_timeout != null) { + if (typeof object.wait_replicas_timeout !== "object") + throw TypeError(".vtctldata.PlannedReparentShardRequest.wait_replicas_timeout: object expected"); + message.wait_replicas_timeout = $root.vttime.Duration.fromObject(object.wait_replicas_timeout); } return message; }; /** - * Creates a plain object from a GetTabletsRequest message. Also converts values to other types if specified. + * Creates a plain object from a PlannedReparentShardRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetTabletsRequest + * @memberof vtctldata.PlannedReparentShardRequest * @static - * @param {vtctldata.GetTabletsRequest} message GetTabletsRequest + * @param {vtctldata.PlannedReparentShardRequest} message PlannedReparentShardRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTabletsRequest.toObject = function toObject(message, options) { + PlannedReparentShardRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.cells = []; if (options.defaults) { object.keyspace = ""; object.shard = ""; + object.new_primary = null; + object.avoid_primary = null; + object.wait_replicas_timeout = null; } if (message.keyspace != null && message.hasOwnProperty("keyspace")) object.keyspace = message.keyspace; if (message.shard != null && message.hasOwnProperty("shard")) object.shard = message.shard; - 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.new_primary != null && message.hasOwnProperty("new_primary")) + object.new_primary = $root.topodata.TabletAlias.toObject(message.new_primary, options); + if (message.avoid_primary != null && message.hasOwnProperty("avoid_primary")) + object.avoid_primary = $root.topodata.TabletAlias.toObject(message.avoid_primary, options); + if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout")) + object.wait_replicas_timeout = $root.vttime.Duration.toObject(message.wait_replicas_timeout, options); return object; }; /** - * Converts this GetTabletsRequest to JSON. + * Converts this PlannedReparentShardRequest to JSON. * @function toJSON - * @memberof vtctldata.GetTabletsRequest + * @memberof vtctldata.PlannedReparentShardRequest * @instance * @returns {Object.} JSON object */ - GetTabletsRequest.prototype.toJSON = function toJSON() { + PlannedReparentShardRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetTabletsRequest; + return PlannedReparentShardRequest; })(); - vtctldata.GetTabletsResponse = (function() { + vtctldata.PlannedReparentShardResponse = (function() { /** - * Properties of a GetTabletsResponse. + * Properties of a PlannedReparentShardResponse. * @memberof vtctldata - * @interface IGetTabletsResponse - * @property {Array.|null} [tablets] GetTabletsResponse tablets + * @interface IPlannedReparentShardResponse + * @property {string|null} [keyspace] PlannedReparentShardResponse keyspace + * @property {string|null} [shard] PlannedReparentShardResponse shard + * @property {topodata.ITabletAlias|null} [promoted_primary] PlannedReparentShardResponse promoted_primary + * @property {Array.|null} [events] PlannedReparentShardResponse events */ /** - * Constructs a new GetTabletsResponse. + * Constructs a new PlannedReparentShardResponse. * @memberof vtctldata - * @classdesc Represents a GetTabletsResponse. - * @implements IGetTabletsResponse + * @classdesc Represents a PlannedReparentShardResponse. + * @implements IPlannedReparentShardResponse * @constructor - * @param {vtctldata.IGetTabletsResponse=} [properties] Properties to set + * @param {vtctldata.IPlannedReparentShardResponse=} [properties] Properties to set */ - function GetTabletsResponse(properties) { - this.tablets = []; + function PlannedReparentShardResponse(properties) { + this.events = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54746,78 +57831,117 @@ $root.vtctldata = (function() { } /** - * GetTabletsResponse tablets. - * @member {Array.} tablets - * @memberof vtctldata.GetTabletsResponse + * PlannedReparentShardResponse keyspace. + * @member {string} keyspace + * @memberof vtctldata.PlannedReparentShardResponse * @instance */ - GetTabletsResponse.prototype.tablets = $util.emptyArray; + PlannedReparentShardResponse.prototype.keyspace = ""; /** - * Creates a new GetTabletsResponse instance using the specified properties. + * PlannedReparentShardResponse shard. + * @member {string} shard + * @memberof vtctldata.PlannedReparentShardResponse + * @instance + */ + PlannedReparentShardResponse.prototype.shard = ""; + + /** + * PlannedReparentShardResponse promoted_primary. + * @member {topodata.ITabletAlias|null|undefined} promoted_primary + * @memberof vtctldata.PlannedReparentShardResponse + * @instance + */ + PlannedReparentShardResponse.prototype.promoted_primary = null; + + /** + * PlannedReparentShardResponse events. + * @member {Array.} events + * @memberof vtctldata.PlannedReparentShardResponse + * @instance + */ + PlannedReparentShardResponse.prototype.events = $util.emptyArray; + + /** + * Creates a new PlannedReparentShardResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetTabletsResponse + * @memberof vtctldata.PlannedReparentShardResponse * @static - * @param {vtctldata.IGetTabletsResponse=} [properties] Properties to set - * @returns {vtctldata.GetTabletsResponse} GetTabletsResponse instance + * @param {vtctldata.IPlannedReparentShardResponse=} [properties] Properties to set + * @returns {vtctldata.PlannedReparentShardResponse} PlannedReparentShardResponse instance */ - GetTabletsResponse.create = function create(properties) { - return new GetTabletsResponse(properties); + PlannedReparentShardResponse.create = function create(properties) { + return new PlannedReparentShardResponse(properties); }; /** - * Encodes the specified GetTabletsResponse message. Does not implicitly {@link vtctldata.GetTabletsResponse.verify|verify} messages. + * Encodes the specified PlannedReparentShardResponse message. Does not implicitly {@link vtctldata.PlannedReparentShardResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetTabletsResponse + * @memberof vtctldata.PlannedReparentShardResponse * @static - * @param {vtctldata.IGetTabletsResponse} message GetTabletsResponse message or plain object to encode + * @param {vtctldata.IPlannedReparentShardResponse} message PlannedReparentShardResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTabletsResponse.encode = function encode(message, writer) { + PlannedReparentShardResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tablets != null && message.tablets.length) - for (var i = 0; i < message.tablets.length; ++i) - $root.topodata.Tablet.encode(message.tablets[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); + if (message.promoted_primary != null && Object.hasOwnProperty.call(message, "promoted_primary")) + $root.topodata.TabletAlias.encode(message.promoted_primary, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.events != null && message.events.length) + for (var i = 0; i < message.events.length; ++i) + $root.logutil.Event.encode(message.events[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetTabletsResponse message, length delimited. Does not implicitly {@link vtctldata.GetTabletsResponse.verify|verify} messages. + * Encodes the specified PlannedReparentShardResponse message, length delimited. Does not implicitly {@link vtctldata.PlannedReparentShardResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetTabletsResponse + * @memberof vtctldata.PlannedReparentShardResponse * @static - * @param {vtctldata.IGetTabletsResponse} message GetTabletsResponse message or plain object to encode + * @param {vtctldata.IPlannedReparentShardResponse} message PlannedReparentShardResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTabletsResponse.encodeDelimited = function encodeDelimited(message, writer) { + PlannedReparentShardResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTabletsResponse message from the specified reader or buffer. + * Decodes a PlannedReparentShardResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetTabletsResponse + * @memberof vtctldata.PlannedReparentShardResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetTabletsResponse} GetTabletsResponse + * @returns {vtctldata.PlannedReparentShardResponse} PlannedReparentShardResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTabletsResponse.decode = function decode(reader, length) { + PlannedReparentShardResponse.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.vtctldata.GetTabletsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.PlannedReparentShardResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.tablets && message.tablets.length)) - message.tablets = []; - message.tablets.push($root.topodata.Tablet.decode(reader, reader.uint32())); + message.keyspace = reader.string(); + break; + case 2: + message.shard = reader.string(); + break; + case 3: + message.promoted_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + case 4: + if (!(message.events && message.events.length)) + message.events = []; + message.events.push($root.logutil.Event.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -54828,124 +57952,158 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetTabletsResponse message from the specified reader or buffer, length delimited. + * Decodes a PlannedReparentShardResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetTabletsResponse + * @memberof vtctldata.PlannedReparentShardResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetTabletsResponse} GetTabletsResponse + * @returns {vtctldata.PlannedReparentShardResponse} PlannedReparentShardResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTabletsResponse.decodeDelimited = function decodeDelimited(reader) { + PlannedReparentShardResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetTabletsResponse message. + * Verifies a PlannedReparentShardResponse message. * @function verify - * @memberof vtctldata.GetTabletsResponse + * @memberof vtctldata.PlannedReparentShardResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetTabletsResponse.verify = function verify(message) { + PlannedReparentShardResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablets != null && message.hasOwnProperty("tablets")) { - if (!Array.isArray(message.tablets)) - return "tablets: array expected"; - for (var i = 0; i < message.tablets.length; ++i) { - var error = $root.topodata.Tablet.verify(message.tablets[i]); + 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.promoted_primary != null && message.hasOwnProperty("promoted_primary")) { + var error = $root.topodata.TabletAlias.verify(message.promoted_primary); + if (error) + return "promoted_primary." + error; + } + if (message.events != null && message.hasOwnProperty("events")) { + if (!Array.isArray(message.events)) + return "events: array expected"; + for (var i = 0; i < message.events.length; ++i) { + var error = $root.logutil.Event.verify(message.events[i]); if (error) - return "tablets." + error; + return "events." + error; } } return null; }; /** - * Creates a GetTabletsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PlannedReparentShardResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetTabletsResponse + * @memberof vtctldata.PlannedReparentShardResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetTabletsResponse} GetTabletsResponse + * @returns {vtctldata.PlannedReparentShardResponse} PlannedReparentShardResponse */ - GetTabletsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetTabletsResponse) + PlannedReparentShardResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.PlannedReparentShardResponse) return object; - var message = new $root.vtctldata.GetTabletsResponse(); - if (object.tablets) { - if (!Array.isArray(object.tablets)) - throw TypeError(".vtctldata.GetTabletsResponse.tablets: array expected"); - message.tablets = []; - for (var i = 0; i < object.tablets.length; ++i) { - if (typeof object.tablets[i] !== "object") - throw TypeError(".vtctldata.GetTabletsResponse.tablets: object expected"); - message.tablets[i] = $root.topodata.Tablet.fromObject(object.tablets[i]); + var message = new $root.vtctldata.PlannedReparentShardResponse(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + if (object.promoted_primary != null) { + if (typeof object.promoted_primary !== "object") + throw TypeError(".vtctldata.PlannedReparentShardResponse.promoted_primary: object expected"); + message.promoted_primary = $root.topodata.TabletAlias.fromObject(object.promoted_primary); + } + if (object.events) { + if (!Array.isArray(object.events)) + throw TypeError(".vtctldata.PlannedReparentShardResponse.events: array expected"); + message.events = []; + for (var i = 0; i < object.events.length; ++i) { + if (typeof object.events[i] !== "object") + throw TypeError(".vtctldata.PlannedReparentShardResponse.events: object expected"); + message.events[i] = $root.logutil.Event.fromObject(object.events[i]); } } return message; }; /** - * Creates a plain object from a GetTabletsResponse message. Also converts values to other types if specified. + * Creates a plain object from a PlannedReparentShardResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetTabletsResponse + * @memberof vtctldata.PlannedReparentShardResponse * @static - * @param {vtctldata.GetTabletsResponse} message GetTabletsResponse + * @param {vtctldata.PlannedReparentShardResponse} message PlannedReparentShardResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTabletsResponse.toObject = function toObject(message, options) { + PlannedReparentShardResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.tablets = []; - if (message.tablets && message.tablets.length) { - object.tablets = []; - for (var j = 0; j < message.tablets.length; ++j) - object.tablets[j] = $root.topodata.Tablet.toObject(message.tablets[j], options); + object.events = []; + if (options.defaults) { + object.keyspace = ""; + object.shard = ""; + object.promoted_primary = null; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.promoted_primary != null && message.hasOwnProperty("promoted_primary")) + object.promoted_primary = $root.topodata.TabletAlias.toObject(message.promoted_primary, options); + if (message.events && message.events.length) { + object.events = []; + for (var j = 0; j < message.events.length; ++j) + object.events[j] = $root.logutil.Event.toObject(message.events[j], options); } return object; }; /** - * Converts this GetTabletsResponse to JSON. + * Converts this PlannedReparentShardResponse to JSON. * @function toJSON - * @memberof vtctldata.GetTabletsResponse + * @memberof vtctldata.PlannedReparentShardResponse * @instance * @returns {Object.} JSON object */ - GetTabletsResponse.prototype.toJSON = function toJSON() { + PlannedReparentShardResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetTabletsResponse; + return PlannedReparentShardResponse; })(); - vtctldata.GetVSchemaRequest = (function() { + vtctldata.RemoveKeyspaceCellRequest = (function() { /** - * Properties of a GetVSchemaRequest. + * Properties of a RemoveKeyspaceCellRequest. * @memberof vtctldata - * @interface IGetVSchemaRequest - * @property {string|null} [keyspace] GetVSchemaRequest keyspace + * @interface IRemoveKeyspaceCellRequest + * @property {string|null} [keyspace] RemoveKeyspaceCellRequest keyspace + * @property {string|null} [cell] RemoveKeyspaceCellRequest cell + * @property {boolean|null} [force] RemoveKeyspaceCellRequest force + * @property {boolean|null} [recursive] RemoveKeyspaceCellRequest recursive */ /** - * Constructs a new GetVSchemaRequest. + * Constructs a new RemoveKeyspaceCellRequest. * @memberof vtctldata - * @classdesc Represents a GetVSchemaRequest. - * @implements IGetVSchemaRequest + * @classdesc Represents a RemoveKeyspaceCellRequest. + * @implements IRemoveKeyspaceCellRequest * @constructor - * @param {vtctldata.IGetVSchemaRequest=} [properties] Properties to set + * @param {vtctldata.IRemoveKeyspaceCellRequest=} [properties] Properties to set */ - function GetVSchemaRequest(properties) { + function RemoveKeyspaceCellRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54953,76 +58111,115 @@ $root.vtctldata = (function() { } /** - * GetVSchemaRequest keyspace. + * RemoveKeyspaceCellRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.GetVSchemaRequest + * @memberof vtctldata.RemoveKeyspaceCellRequest * @instance */ - GetVSchemaRequest.prototype.keyspace = ""; + RemoveKeyspaceCellRequest.prototype.keyspace = ""; /** - * Creates a new GetVSchemaRequest instance using the specified properties. + * RemoveKeyspaceCellRequest cell. + * @member {string} cell + * @memberof vtctldata.RemoveKeyspaceCellRequest + * @instance + */ + RemoveKeyspaceCellRequest.prototype.cell = ""; + + /** + * RemoveKeyspaceCellRequest force. + * @member {boolean} force + * @memberof vtctldata.RemoveKeyspaceCellRequest + * @instance + */ + RemoveKeyspaceCellRequest.prototype.force = false; + + /** + * RemoveKeyspaceCellRequest recursive. + * @member {boolean} recursive + * @memberof vtctldata.RemoveKeyspaceCellRequest + * @instance + */ + RemoveKeyspaceCellRequest.prototype.recursive = false; + + /** + * Creates a new RemoveKeyspaceCellRequest instance using the specified properties. * @function create - * @memberof vtctldata.GetVSchemaRequest + * @memberof vtctldata.RemoveKeyspaceCellRequest * @static - * @param {vtctldata.IGetVSchemaRequest=} [properties] Properties to set - * @returns {vtctldata.GetVSchemaRequest} GetVSchemaRequest instance + * @param {vtctldata.IRemoveKeyspaceCellRequest=} [properties] Properties to set + * @returns {vtctldata.RemoveKeyspaceCellRequest} RemoveKeyspaceCellRequest instance */ - GetVSchemaRequest.create = function create(properties) { - return new GetVSchemaRequest(properties); + RemoveKeyspaceCellRequest.create = function create(properties) { + return new RemoveKeyspaceCellRequest(properties); }; /** - * Encodes the specified GetVSchemaRequest message. Does not implicitly {@link vtctldata.GetVSchemaRequest.verify|verify} messages. + * Encodes the specified RemoveKeyspaceCellRequest message. Does not implicitly {@link vtctldata.RemoveKeyspaceCellRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.GetVSchemaRequest + * @memberof vtctldata.RemoveKeyspaceCellRequest * @static - * @param {vtctldata.IGetVSchemaRequest} message GetVSchemaRequest message or plain object to encode + * @param {vtctldata.IRemoveKeyspaceCellRequest} message RemoveKeyspaceCellRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetVSchemaRequest.encode = function encode(message, writer) { + RemoveKeyspaceCellRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.cell); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); + if (message.recursive != null && Object.hasOwnProperty.call(message, "recursive")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.recursive); return writer; }; /** - * Encodes the specified GetVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetVSchemaRequest.verify|verify} messages. + * Encodes the specified RemoveKeyspaceCellRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveKeyspaceCellRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetVSchemaRequest + * @memberof vtctldata.RemoveKeyspaceCellRequest * @static - * @param {vtctldata.IGetVSchemaRequest} message GetVSchemaRequest message or plain object to encode + * @param {vtctldata.IRemoveKeyspaceCellRequest} message RemoveKeyspaceCellRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetVSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + RemoveKeyspaceCellRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetVSchemaRequest message from the specified reader or buffer. + * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetVSchemaRequest + * @memberof vtctldata.RemoveKeyspaceCellRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetVSchemaRequest} GetVSchemaRequest + * @returns {vtctldata.RemoveKeyspaceCellRequest} RemoveKeyspaceCellRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetVSchemaRequest.decode = function decode(reader, length) { + RemoveKeyspaceCellRequest.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.vtctldata.GetVSchemaRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveKeyspaceCellRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.keyspace = reader.string(); break; + case 2: + message.cell = reader.string(); + break; + case 3: + message.force = reader.bool(); + break; + case 4: + message.recursive = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -55032,107 +58229,131 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetVSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetVSchemaRequest + * @memberof vtctldata.RemoveKeyspaceCellRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetVSchemaRequest} GetVSchemaRequest + * @returns {vtctldata.RemoveKeyspaceCellRequest} RemoveKeyspaceCellRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetVSchemaRequest.decodeDelimited = function decodeDelimited(reader) { + RemoveKeyspaceCellRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetVSchemaRequest message. + * Verifies a RemoveKeyspaceCellRequest message. * @function verify - * @memberof vtctldata.GetVSchemaRequest + * @memberof vtctldata.RemoveKeyspaceCellRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetVSchemaRequest.verify = function verify(message) { + RemoveKeyspaceCellRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.keyspace != null && message.hasOwnProperty("keyspace")) if (!$util.isString(message.keyspace)) return "keyspace: string expected"; + if (message.cell != null && message.hasOwnProperty("cell")) + if (!$util.isString(message.cell)) + return "cell: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; + if (message.recursive != null && message.hasOwnProperty("recursive")) + if (typeof message.recursive !== "boolean") + return "recursive: boolean expected"; return null; }; /** - * Creates a GetVSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveKeyspaceCellRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetVSchemaRequest + * @memberof vtctldata.RemoveKeyspaceCellRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetVSchemaRequest} GetVSchemaRequest + * @returns {vtctldata.RemoveKeyspaceCellRequest} RemoveKeyspaceCellRequest */ - GetVSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetVSchemaRequest) + RemoveKeyspaceCellRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RemoveKeyspaceCellRequest) return object; - var message = new $root.vtctldata.GetVSchemaRequest(); + var message = new $root.vtctldata.RemoveKeyspaceCellRequest(); if (object.keyspace != null) message.keyspace = String(object.keyspace); + if (object.cell != null) + message.cell = String(object.cell); + if (object.force != null) + message.force = Boolean(object.force); + if (object.recursive != null) + message.recursive = Boolean(object.recursive); return message; }; /** - * Creates a plain object from a GetVSchemaRequest message. Also converts values to other types if specified. + * Creates a plain object from a RemoveKeyspaceCellRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetVSchemaRequest + * @memberof vtctldata.RemoveKeyspaceCellRequest * @static - * @param {vtctldata.GetVSchemaRequest} message GetVSchemaRequest + * @param {vtctldata.RemoveKeyspaceCellRequest} message RemoveKeyspaceCellRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetVSchemaRequest.toObject = function toObject(message, options) { + RemoveKeyspaceCellRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.keyspace = ""; + object.cell = ""; + object.force = false; + object.recursive = false; + } if (message.keyspace != null && message.hasOwnProperty("keyspace")) object.keyspace = message.keyspace; + if (message.cell != null && message.hasOwnProperty("cell")) + object.cell = message.cell; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; + if (message.recursive != null && message.hasOwnProperty("recursive")) + object.recursive = message.recursive; return object; }; /** - * Converts this GetVSchemaRequest to JSON. + * Converts this RemoveKeyspaceCellRequest to JSON. * @function toJSON - * @memberof vtctldata.GetVSchemaRequest + * @memberof vtctldata.RemoveKeyspaceCellRequest * @instance * @returns {Object.} JSON object */ - GetVSchemaRequest.prototype.toJSON = function toJSON() { + RemoveKeyspaceCellRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetVSchemaRequest; + return RemoveKeyspaceCellRequest; })(); - vtctldata.GetVSchemaResponse = (function() { + vtctldata.RemoveKeyspaceCellResponse = (function() { /** - * Properties of a GetVSchemaResponse. + * Properties of a RemoveKeyspaceCellResponse. * @memberof vtctldata - * @interface IGetVSchemaResponse - * @property {vschema.IKeyspace|null} [v_schema] GetVSchemaResponse v_schema + * @interface IRemoveKeyspaceCellResponse */ /** - * Constructs a new GetVSchemaResponse. + * Constructs a new RemoveKeyspaceCellResponse. * @memberof vtctldata - * @classdesc Represents a GetVSchemaResponse. - * @implements IGetVSchemaResponse + * @classdesc Represents a RemoveKeyspaceCellResponse. + * @implements IRemoveKeyspaceCellResponse * @constructor - * @param {vtctldata.IGetVSchemaResponse=} [properties] Properties to set + * @param {vtctldata.IRemoveKeyspaceCellResponse=} [properties] Properties to set */ - function GetVSchemaResponse(properties) { + function RemoveKeyspaceCellResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55140,76 +58361,63 @@ $root.vtctldata = (function() { } /** - * GetVSchemaResponse v_schema. - * @member {vschema.IKeyspace|null|undefined} v_schema - * @memberof vtctldata.GetVSchemaResponse - * @instance - */ - GetVSchemaResponse.prototype.v_schema = null; - - /** - * Creates a new GetVSchemaResponse instance using the specified properties. + * Creates a new RemoveKeyspaceCellResponse instance using the specified properties. * @function create - * @memberof vtctldata.GetVSchemaResponse + * @memberof vtctldata.RemoveKeyspaceCellResponse * @static - * @param {vtctldata.IGetVSchemaResponse=} [properties] Properties to set - * @returns {vtctldata.GetVSchemaResponse} GetVSchemaResponse instance + * @param {vtctldata.IRemoveKeyspaceCellResponse=} [properties] Properties to set + * @returns {vtctldata.RemoveKeyspaceCellResponse} RemoveKeyspaceCellResponse instance */ - GetVSchemaResponse.create = function create(properties) { - return new GetVSchemaResponse(properties); + RemoveKeyspaceCellResponse.create = function create(properties) { + return new RemoveKeyspaceCellResponse(properties); }; /** - * Encodes the specified GetVSchemaResponse message. Does not implicitly {@link vtctldata.GetVSchemaResponse.verify|verify} messages. + * Encodes the specified RemoveKeyspaceCellResponse message. Does not implicitly {@link vtctldata.RemoveKeyspaceCellResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.GetVSchemaResponse + * @memberof vtctldata.RemoveKeyspaceCellResponse * @static - * @param {vtctldata.IGetVSchemaResponse} message GetVSchemaResponse message or plain object to encode + * @param {vtctldata.IRemoveKeyspaceCellResponse} message RemoveKeyspaceCellResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetVSchemaResponse.encode = function encode(message, writer) { + RemoveKeyspaceCellResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.v_schema != null && Object.hasOwnProperty.call(message, "v_schema")) - $root.vschema.Keyspace.encode(message.v_schema, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetVSchemaResponse.verify|verify} messages. + * Encodes the specified RemoveKeyspaceCellResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveKeyspaceCellResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.GetVSchemaResponse + * @memberof vtctldata.RemoveKeyspaceCellResponse * @static - * @param {vtctldata.IGetVSchemaResponse} message GetVSchemaResponse message or plain object to encode + * @param {vtctldata.IRemoveKeyspaceCellResponse} message RemoveKeyspaceCellResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetVSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + RemoveKeyspaceCellResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetVSchemaResponse message from the specified reader or buffer. + * Decodes a RemoveKeyspaceCellResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.GetVSchemaResponse + * @memberof vtctldata.RemoveKeyspaceCellResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.GetVSchemaResponse} GetVSchemaResponse + * @returns {vtctldata.RemoveKeyspaceCellResponse} RemoveKeyspaceCellResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetVSchemaResponse.decode = function decode(reader, length) { + RemoveKeyspaceCellResponse.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.vtctldata.GetVSchemaResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveKeyspaceCellResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.v_schema = $root.vschema.Keyspace.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -55219,116 +58427,98 @@ $root.vtctldata = (function() { }; /** - * Decodes a GetVSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a RemoveKeyspaceCellResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.GetVSchemaResponse + * @memberof vtctldata.RemoveKeyspaceCellResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.GetVSchemaResponse} GetVSchemaResponse + * @returns {vtctldata.RemoveKeyspaceCellResponse} RemoveKeyspaceCellResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetVSchemaResponse.decodeDelimited = function decodeDelimited(reader) { + RemoveKeyspaceCellResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetVSchemaResponse message. + * Verifies a RemoveKeyspaceCellResponse message. * @function verify - * @memberof vtctldata.GetVSchemaResponse + * @memberof vtctldata.RemoveKeyspaceCellResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetVSchemaResponse.verify = function verify(message) { + RemoveKeyspaceCellResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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 GetVSchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveKeyspaceCellResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.GetVSchemaResponse + * @memberof vtctldata.RemoveKeyspaceCellResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.GetVSchemaResponse} GetVSchemaResponse + * @returns {vtctldata.RemoveKeyspaceCellResponse} RemoveKeyspaceCellResponse */ - GetVSchemaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.GetVSchemaResponse) + RemoveKeyspaceCellResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RemoveKeyspaceCellResponse) return object; - var message = new $root.vtctldata.GetVSchemaResponse(); - if (object.v_schema != null) { - if (typeof object.v_schema !== "object") - throw TypeError(".vtctldata.GetVSchemaResponse.v_schema: object expected"); - message.v_schema = $root.vschema.Keyspace.fromObject(object.v_schema); - } - return message; + return new $root.vtctldata.RemoveKeyspaceCellResponse(); }; /** - * Creates a plain object from a GetVSchemaResponse message. Also converts values to other types if specified. + * Creates a plain object from a RemoveKeyspaceCellResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.GetVSchemaResponse + * @memberof vtctldata.RemoveKeyspaceCellResponse * @static - * @param {vtctldata.GetVSchemaResponse} message GetVSchemaResponse + * @param {vtctldata.RemoveKeyspaceCellResponse} message RemoveKeyspaceCellResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetVSchemaResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.v_schema = null; - if (message.v_schema != null && message.hasOwnProperty("v_schema")) - object.v_schema = $root.vschema.Keyspace.toObject(message.v_schema, options); - return object; + RemoveKeyspaceCellResponse.toObject = function toObject() { + return {}; }; /** - * Converts this GetVSchemaResponse to JSON. + * Converts this RemoveKeyspaceCellResponse to JSON. * @function toJSON - * @memberof vtctldata.GetVSchemaResponse + * @memberof vtctldata.RemoveKeyspaceCellResponse * @instance * @returns {Object.} JSON object */ - GetVSchemaResponse.prototype.toJSON = function toJSON() { + RemoveKeyspaceCellResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetVSchemaResponse; + return RemoveKeyspaceCellResponse; })(); - vtctldata.InitShardPrimaryRequest = (function() { + vtctldata.RemoveShardCellRequest = (function() { /** - * Properties of an InitShardPrimaryRequest. + * Properties of a RemoveShardCellRequest. * @memberof vtctldata - * @interface IInitShardPrimaryRequest - * @property {string|null} [keyspace] InitShardPrimaryRequest keyspace - * @property {string|null} [shard] InitShardPrimaryRequest shard - * @property {topodata.ITabletAlias|null} [primary_elect_tablet_alias] InitShardPrimaryRequest primary_elect_tablet_alias - * @property {boolean|null} [force] InitShardPrimaryRequest force - * @property {google.protobuf.IDuration|null} [wait_replicas_timeout] InitShardPrimaryRequest wait_replicas_timeout + * @interface IRemoveShardCellRequest + * @property {string|null} [keyspace] RemoveShardCellRequest keyspace + * @property {string|null} [shard_name] RemoveShardCellRequest shard_name + * @property {string|null} [cell] RemoveShardCellRequest cell + * @property {boolean|null} [force] RemoveShardCellRequest force + * @property {boolean|null} [recursive] RemoveShardCellRequest recursive */ /** - * Constructs a new InitShardPrimaryRequest. + * Constructs a new RemoveShardCellRequest. * @memberof vtctldata - * @classdesc Represents an InitShardPrimaryRequest. - * @implements IInitShardPrimaryRequest + * @classdesc Represents a RemoveShardCellRequest. + * @implements IRemoveShardCellRequest * @constructor - * @param {vtctldata.IInitShardPrimaryRequest=} [properties] Properties to set + * @param {vtctldata.IRemoveShardCellRequest=} [properties] Properties to set */ - function InitShardPrimaryRequest(properties) { + function RemoveShardCellRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55336,110 +58526,110 @@ $root.vtctldata = (function() { } /** - * InitShardPrimaryRequest keyspace. + * RemoveShardCellRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof vtctldata.RemoveShardCellRequest * @instance */ - InitShardPrimaryRequest.prototype.keyspace = ""; + RemoveShardCellRequest.prototype.keyspace = ""; /** - * InitShardPrimaryRequest shard. - * @member {string} shard - * @memberof vtctldata.InitShardPrimaryRequest + * RemoveShardCellRequest shard_name. + * @member {string} shard_name + * @memberof vtctldata.RemoveShardCellRequest * @instance */ - InitShardPrimaryRequest.prototype.shard = ""; + RemoveShardCellRequest.prototype.shard_name = ""; /** - * InitShardPrimaryRequest primary_elect_tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} primary_elect_tablet_alias - * @memberof vtctldata.InitShardPrimaryRequest + * RemoveShardCellRequest cell. + * @member {string} cell + * @memberof vtctldata.RemoveShardCellRequest * @instance */ - InitShardPrimaryRequest.prototype.primary_elect_tablet_alias = null; + RemoveShardCellRequest.prototype.cell = ""; /** - * InitShardPrimaryRequest force. + * RemoveShardCellRequest force. * @member {boolean} force - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof vtctldata.RemoveShardCellRequest * @instance */ - InitShardPrimaryRequest.prototype.force = false; + RemoveShardCellRequest.prototype.force = false; /** - * InitShardPrimaryRequest wait_replicas_timeout. - * @member {google.protobuf.IDuration|null|undefined} wait_replicas_timeout - * @memberof vtctldata.InitShardPrimaryRequest + * RemoveShardCellRequest recursive. + * @member {boolean} recursive + * @memberof vtctldata.RemoveShardCellRequest * @instance */ - InitShardPrimaryRequest.prototype.wait_replicas_timeout = null; + RemoveShardCellRequest.prototype.recursive = false; /** - * Creates a new InitShardPrimaryRequest instance using the specified properties. + * Creates a new RemoveShardCellRequest instance using the specified properties. * @function create - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof vtctldata.RemoveShardCellRequest * @static - * @param {vtctldata.IInitShardPrimaryRequest=} [properties] Properties to set - * @returns {vtctldata.InitShardPrimaryRequest} InitShardPrimaryRequest instance + * @param {vtctldata.IRemoveShardCellRequest=} [properties] Properties to set + * @returns {vtctldata.RemoveShardCellRequest} RemoveShardCellRequest instance */ - InitShardPrimaryRequest.create = function create(properties) { - return new InitShardPrimaryRequest(properties); + RemoveShardCellRequest.create = function create(properties) { + return new RemoveShardCellRequest(properties); }; /** - * Encodes the specified InitShardPrimaryRequest message. Does not implicitly {@link vtctldata.InitShardPrimaryRequest.verify|verify} messages. + * Encodes the specified RemoveShardCellRequest message. Does not implicitly {@link vtctldata.RemoveShardCellRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof vtctldata.RemoveShardCellRequest * @static - * @param {vtctldata.IInitShardPrimaryRequest} message InitShardPrimaryRequest message or plain object to encode + * @param {vtctldata.IRemoveShardCellRequest} message RemoveShardCellRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InitShardPrimaryRequest.encode = function encode(message, writer) { + RemoveShardCellRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); - if (message.primary_elect_tablet_alias != null && Object.hasOwnProperty.call(message, "primary_elect_tablet_alias")) - $root.topodata.TabletAlias.encode(message.primary_elect_tablet_alias, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.shard_name != null && Object.hasOwnProperty.call(message, "shard_name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard_name); + if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.cell); if (message.force != null && Object.hasOwnProperty.call(message, "force")) writer.uint32(/* id 4, wireType 0 =*/32).bool(message.force); - if (message.wait_replicas_timeout != null && Object.hasOwnProperty.call(message, "wait_replicas_timeout")) - $root.google.protobuf.Duration.encode(message.wait_replicas_timeout, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.recursive != null && Object.hasOwnProperty.call(message, "recursive")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.recursive); return writer; }; /** - * Encodes the specified InitShardPrimaryRequest message, length delimited. Does not implicitly {@link vtctldata.InitShardPrimaryRequest.verify|verify} messages. + * Encodes the specified RemoveShardCellRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveShardCellRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof vtctldata.RemoveShardCellRequest * @static - * @param {vtctldata.IInitShardPrimaryRequest} message InitShardPrimaryRequest message or plain object to encode + * @param {vtctldata.IRemoveShardCellRequest} message RemoveShardCellRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InitShardPrimaryRequest.encodeDelimited = function encodeDelimited(message, writer) { + RemoveShardCellRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InitShardPrimaryRequest message from the specified reader or buffer. + * Decodes a RemoveShardCellRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof vtctldata.RemoveShardCellRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.InitShardPrimaryRequest} InitShardPrimaryRequest + * @returns {vtctldata.RemoveShardCellRequest} RemoveShardCellRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InitShardPrimaryRequest.decode = function decode(reader, length) { + RemoveShardCellRequest.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.vtctldata.InitShardPrimaryRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveShardCellRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -55447,16 +58637,16 @@ $root.vtctldata = (function() { message.keyspace = reader.string(); break; case 2: - message.shard = reader.string(); + message.shard_name = reader.string(); break; case 3: - message.primary_elect_tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + message.cell = reader.string(); break; case 4: message.force = reader.bool(); break; case 5: - message.wait_replicas_timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.recursive = reader.bool(); break; default: reader.skipType(tag & 7); @@ -55467,151 +58657,139 @@ $root.vtctldata = (function() { }; /** - * Decodes an InitShardPrimaryRequest message from the specified reader or buffer, length delimited. + * Decodes a RemoveShardCellRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof vtctldata.RemoveShardCellRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.InitShardPrimaryRequest} InitShardPrimaryRequest + * @returns {vtctldata.RemoveShardCellRequest} RemoveShardCellRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InitShardPrimaryRequest.decodeDelimited = function decodeDelimited(reader) { + RemoveShardCellRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InitShardPrimaryRequest message. + * Verifies a RemoveShardCellRequest message. * @function verify - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof vtctldata.RemoveShardCellRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InitShardPrimaryRequest.verify = function verify(message) { + RemoveShardCellRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; 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.primary_elect_tablet_alias != null && message.hasOwnProperty("primary_elect_tablet_alias")) { - var error = $root.topodata.TabletAlias.verify(message.primary_elect_tablet_alias); - if (error) - return "primary_elect_tablet_alias." + error; - } + if (message.shard_name != null && message.hasOwnProperty("shard_name")) + if (!$util.isString(message.shard_name)) + return "shard_name: string expected"; + if (message.cell != null && message.hasOwnProperty("cell")) + if (!$util.isString(message.cell)) + return "cell: string expected"; if (message.force != null && message.hasOwnProperty("force")) if (typeof message.force !== "boolean") return "force: boolean expected"; - if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout")) { - var error = $root.google.protobuf.Duration.verify(message.wait_replicas_timeout); - if (error) - return "wait_replicas_timeout." + error; - } + if (message.recursive != null && message.hasOwnProperty("recursive")) + if (typeof message.recursive !== "boolean") + return "recursive: boolean expected"; return null; }; /** - * Creates an InitShardPrimaryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveShardCellRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof vtctldata.RemoveShardCellRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.InitShardPrimaryRequest} InitShardPrimaryRequest + * @returns {vtctldata.RemoveShardCellRequest} RemoveShardCellRequest */ - InitShardPrimaryRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.InitShardPrimaryRequest) + RemoveShardCellRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RemoveShardCellRequest) return object; - var message = new $root.vtctldata.InitShardPrimaryRequest(); + var message = new $root.vtctldata.RemoveShardCellRequest(); if (object.keyspace != null) message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.primary_elect_tablet_alias != null) { - if (typeof object.primary_elect_tablet_alias !== "object") - throw TypeError(".vtctldata.InitShardPrimaryRequest.primary_elect_tablet_alias: object expected"); - message.primary_elect_tablet_alias = $root.topodata.TabletAlias.fromObject(object.primary_elect_tablet_alias); - } + if (object.shard_name != null) + message.shard_name = String(object.shard_name); + if (object.cell != null) + message.cell = String(object.cell); if (object.force != null) message.force = Boolean(object.force); - if (object.wait_replicas_timeout != null) { - if (typeof object.wait_replicas_timeout !== "object") - throw TypeError(".vtctldata.InitShardPrimaryRequest.wait_replicas_timeout: object expected"); - message.wait_replicas_timeout = $root.google.protobuf.Duration.fromObject(object.wait_replicas_timeout); - } + if (object.recursive != null) + message.recursive = Boolean(object.recursive); return message; }; /** - * Creates a plain object from an InitShardPrimaryRequest message. Also converts values to other types if specified. + * Creates a plain object from a RemoveShardCellRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof vtctldata.RemoveShardCellRequest * @static - * @param {vtctldata.InitShardPrimaryRequest} message InitShardPrimaryRequest + * @param {vtctldata.RemoveShardCellRequest} message RemoveShardCellRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InitShardPrimaryRequest.toObject = function toObject(message, options) { + RemoveShardCellRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.keyspace = ""; - object.shard = ""; - object.primary_elect_tablet_alias = null; + object.shard_name = ""; + object.cell = ""; object.force = false; - object.wait_replicas_timeout = null; + object.recursive = false; } if (message.keyspace != null && message.hasOwnProperty("keyspace")) object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.primary_elect_tablet_alias != null && message.hasOwnProperty("primary_elect_tablet_alias")) - object.primary_elect_tablet_alias = $root.topodata.TabletAlias.toObject(message.primary_elect_tablet_alias, options); + if (message.shard_name != null && message.hasOwnProperty("shard_name")) + object.shard_name = message.shard_name; + if (message.cell != null && message.hasOwnProperty("cell")) + object.cell = message.cell; if (message.force != null && message.hasOwnProperty("force")) object.force = message.force; - if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout")) - object.wait_replicas_timeout = $root.google.protobuf.Duration.toObject(message.wait_replicas_timeout, options); + if (message.recursive != null && message.hasOwnProperty("recursive")) + object.recursive = message.recursive; return object; }; /** - * Converts this InitShardPrimaryRequest to JSON. + * Converts this RemoveShardCellRequest to JSON. * @function toJSON - * @memberof vtctldata.InitShardPrimaryRequest + * @memberof vtctldata.RemoveShardCellRequest * @instance * @returns {Object.} JSON object */ - InitShardPrimaryRequest.prototype.toJSON = function toJSON() { + RemoveShardCellRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return InitShardPrimaryRequest; + return RemoveShardCellRequest; })(); - vtctldata.InitShardPrimaryResponse = (function() { + vtctldata.RemoveShardCellResponse = (function() { /** - * Properties of an InitShardPrimaryResponse. + * Properties of a RemoveShardCellResponse. * @memberof vtctldata - * @interface IInitShardPrimaryResponse - * @property {Array.|null} [events] InitShardPrimaryResponse events + * @interface IRemoveShardCellResponse */ /** - * Constructs a new InitShardPrimaryResponse. + * Constructs a new RemoveShardCellResponse. * @memberof vtctldata - * @classdesc Represents an InitShardPrimaryResponse. - * @implements IInitShardPrimaryResponse + * @classdesc Represents a RemoveShardCellResponse. + * @implements IRemoveShardCellResponse * @constructor - * @param {vtctldata.IInitShardPrimaryResponse=} [properties] Properties to set + * @param {vtctldata.IRemoveShardCellResponse=} [properties] Properties to set */ - function InitShardPrimaryResponse(properties) { - this.events = []; + function RemoveShardCellResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55619,79 +58797,63 @@ $root.vtctldata = (function() { } /** - * InitShardPrimaryResponse events. - * @member {Array.} events - * @memberof vtctldata.InitShardPrimaryResponse - * @instance - */ - InitShardPrimaryResponse.prototype.events = $util.emptyArray; - - /** - * Creates a new InitShardPrimaryResponse instance using the specified properties. + * Creates a new RemoveShardCellResponse instance using the specified properties. * @function create - * @memberof vtctldata.InitShardPrimaryResponse + * @memberof vtctldata.RemoveShardCellResponse * @static - * @param {vtctldata.IInitShardPrimaryResponse=} [properties] Properties to set - * @returns {vtctldata.InitShardPrimaryResponse} InitShardPrimaryResponse instance + * @param {vtctldata.IRemoveShardCellResponse=} [properties] Properties to set + * @returns {vtctldata.RemoveShardCellResponse} RemoveShardCellResponse instance */ - InitShardPrimaryResponse.create = function create(properties) { - return new InitShardPrimaryResponse(properties); + RemoveShardCellResponse.create = function create(properties) { + return new RemoveShardCellResponse(properties); }; /** - * Encodes the specified InitShardPrimaryResponse message. Does not implicitly {@link vtctldata.InitShardPrimaryResponse.verify|verify} messages. + * Encodes the specified RemoveShardCellResponse message. Does not implicitly {@link vtctldata.RemoveShardCellResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.InitShardPrimaryResponse + * @memberof vtctldata.RemoveShardCellResponse * @static - * @param {vtctldata.IInitShardPrimaryResponse} message InitShardPrimaryResponse message or plain object to encode + * @param {vtctldata.IRemoveShardCellResponse} message RemoveShardCellResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InitShardPrimaryResponse.encode = function encode(message, writer) { + RemoveShardCellResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.events != null && message.events.length) - for (var i = 0; i < message.events.length; ++i) - $root.logutil.Event.encode(message.events[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified InitShardPrimaryResponse message, length delimited. Does not implicitly {@link vtctldata.InitShardPrimaryResponse.verify|verify} messages. + * Encodes the specified RemoveShardCellResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveShardCellResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.InitShardPrimaryResponse + * @memberof vtctldata.RemoveShardCellResponse * @static - * @param {vtctldata.IInitShardPrimaryResponse} message InitShardPrimaryResponse message or plain object to encode + * @param {vtctldata.IRemoveShardCellResponse} message RemoveShardCellResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InitShardPrimaryResponse.encodeDelimited = function encodeDelimited(message, writer) { + RemoveShardCellResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InitShardPrimaryResponse message from the specified reader or buffer. + * Decodes a RemoveShardCellResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.InitShardPrimaryResponse + * @memberof vtctldata.RemoveShardCellResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.InitShardPrimaryResponse} InitShardPrimaryResponse + * @returns {vtctldata.RemoveShardCellResponse} RemoveShardCellResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InitShardPrimaryResponse.decode = function decode(reader, length) { + RemoveShardCellResponse.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.vtctldata.InitShardPrimaryResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.RemoveShardCellResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.events && message.events.length)) - message.events = []; - message.events.push($root.logutil.Event.decode(reader, reader.uint32())); - break; default: reader.skipType(tag & 7); break; @@ -55701,127 +58863,94 @@ $root.vtctldata = (function() { }; /** - * Decodes an InitShardPrimaryResponse message from the specified reader or buffer, length delimited. + * Decodes a RemoveShardCellResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.InitShardPrimaryResponse + * @memberof vtctldata.RemoveShardCellResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.InitShardPrimaryResponse} InitShardPrimaryResponse + * @returns {vtctldata.RemoveShardCellResponse} RemoveShardCellResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InitShardPrimaryResponse.decodeDelimited = function decodeDelimited(reader) { + RemoveShardCellResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InitShardPrimaryResponse message. + * Verifies a RemoveShardCellResponse message. * @function verify - * @memberof vtctldata.InitShardPrimaryResponse + * @memberof vtctldata.RemoveShardCellResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InitShardPrimaryResponse.verify = function verify(message) { + RemoveShardCellResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.events != null && message.hasOwnProperty("events")) { - if (!Array.isArray(message.events)) - return "events: array expected"; - for (var i = 0; i < message.events.length; ++i) { - var error = $root.logutil.Event.verify(message.events[i]); - if (error) - return "events." + error; - } - } return null; }; /** - * Creates an InitShardPrimaryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveShardCellResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.InitShardPrimaryResponse + * @memberof vtctldata.RemoveShardCellResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.InitShardPrimaryResponse} InitShardPrimaryResponse + * @returns {vtctldata.RemoveShardCellResponse} RemoveShardCellResponse */ - InitShardPrimaryResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.InitShardPrimaryResponse) + RemoveShardCellResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.RemoveShardCellResponse) return object; - var message = new $root.vtctldata.InitShardPrimaryResponse(); - if (object.events) { - if (!Array.isArray(object.events)) - throw TypeError(".vtctldata.InitShardPrimaryResponse.events: array expected"); - message.events = []; - for (var i = 0; i < object.events.length; ++i) { - if (typeof object.events[i] !== "object") - throw TypeError(".vtctldata.InitShardPrimaryResponse.events: object expected"); - message.events[i] = $root.logutil.Event.fromObject(object.events[i]); - } - } - return message; + return new $root.vtctldata.RemoveShardCellResponse(); }; /** - * Creates a plain object from an InitShardPrimaryResponse message. Also converts values to other types if specified. + * Creates a plain object from a RemoveShardCellResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.InitShardPrimaryResponse + * @memberof vtctldata.RemoveShardCellResponse * @static - * @param {vtctldata.InitShardPrimaryResponse} message InitShardPrimaryResponse + * @param {vtctldata.RemoveShardCellResponse} message RemoveShardCellResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InitShardPrimaryResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.events = []; - if (message.events && message.events.length) { - object.events = []; - for (var j = 0; j < message.events.length; ++j) - object.events[j] = $root.logutil.Event.toObject(message.events[j], options); - } - return object; + RemoveShardCellResponse.toObject = function toObject() { + return {}; }; /** - * Converts this InitShardPrimaryResponse to JSON. + * Converts this RemoveShardCellResponse to JSON. * @function toJSON - * @memberof vtctldata.InitShardPrimaryResponse + * @memberof vtctldata.RemoveShardCellResponse * @instance * @returns {Object.} JSON object */ - InitShardPrimaryResponse.prototype.toJSON = function toJSON() { + RemoveShardCellResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return InitShardPrimaryResponse; + return RemoveShardCellResponse; })(); - vtctldata.RemoveKeyspaceCellRequest = (function() { + vtctldata.ReparentTabletRequest = (function() { /** - * Properties of a RemoveKeyspaceCellRequest. + * Properties of a ReparentTabletRequest. * @memberof vtctldata - * @interface IRemoveKeyspaceCellRequest - * @property {string|null} [keyspace] RemoveKeyspaceCellRequest keyspace - * @property {string|null} [cell] RemoveKeyspaceCellRequest cell - * @property {boolean|null} [force] RemoveKeyspaceCellRequest force - * @property {boolean|null} [recursive] RemoveKeyspaceCellRequest recursive + * @interface IReparentTabletRequest + * @property {topodata.ITabletAlias|null} [tablet] ReparentTabletRequest tablet */ /** - * Constructs a new RemoveKeyspaceCellRequest. + * Constructs a new ReparentTabletRequest. * @memberof vtctldata - * @classdesc Represents a RemoveKeyspaceCellRequest. - * @implements IRemoveKeyspaceCellRequest + * @classdesc Represents a ReparentTabletRequest. + * @implements IReparentTabletRequest * @constructor - * @param {vtctldata.IRemoveKeyspaceCellRequest=} [properties] Properties to set + * @param {vtctldata.IReparentTabletRequest=} [properties] Properties to set */ - function RemoveKeyspaceCellRequest(properties) { + function ReparentTabletRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55829,114 +58958,75 @@ $root.vtctldata = (function() { } /** - * RemoveKeyspaceCellRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.RemoveKeyspaceCellRequest - * @instance - */ - RemoveKeyspaceCellRequest.prototype.keyspace = ""; - - /** - * RemoveKeyspaceCellRequest cell. - * @member {string} cell - * @memberof vtctldata.RemoveKeyspaceCellRequest - * @instance - */ - RemoveKeyspaceCellRequest.prototype.cell = ""; - - /** - * RemoveKeyspaceCellRequest force. - * @member {boolean} force - * @memberof vtctldata.RemoveKeyspaceCellRequest - * @instance - */ - RemoveKeyspaceCellRequest.prototype.force = false; - - /** - * RemoveKeyspaceCellRequest recursive. - * @member {boolean} recursive - * @memberof vtctldata.RemoveKeyspaceCellRequest + * ReparentTabletRequest tablet. + * @member {topodata.ITabletAlias|null|undefined} tablet + * @memberof vtctldata.ReparentTabletRequest * @instance */ - RemoveKeyspaceCellRequest.prototype.recursive = false; + ReparentTabletRequest.prototype.tablet = null; /** - * Creates a new RemoveKeyspaceCellRequest instance using the specified properties. + * Creates a new ReparentTabletRequest instance using the specified properties. * @function create - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof vtctldata.ReparentTabletRequest * @static - * @param {vtctldata.IRemoveKeyspaceCellRequest=} [properties] Properties to set - * @returns {vtctldata.RemoveKeyspaceCellRequest} RemoveKeyspaceCellRequest instance + * @param {vtctldata.IReparentTabletRequest=} [properties] Properties to set + * @returns {vtctldata.ReparentTabletRequest} ReparentTabletRequest instance */ - RemoveKeyspaceCellRequest.create = function create(properties) { - return new RemoveKeyspaceCellRequest(properties); + ReparentTabletRequest.create = function create(properties) { + return new ReparentTabletRequest(properties); }; /** - * Encodes the specified RemoveKeyspaceCellRequest message. Does not implicitly {@link vtctldata.RemoveKeyspaceCellRequest.verify|verify} messages. + * Encodes the specified ReparentTabletRequest message. Does not implicitly {@link vtctldata.ReparentTabletRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof vtctldata.ReparentTabletRequest * @static - * @param {vtctldata.IRemoveKeyspaceCellRequest} message RemoveKeyspaceCellRequest message or plain object to encode + * @param {vtctldata.IReparentTabletRequest} message ReparentTabletRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveKeyspaceCellRequest.encode = function encode(message, writer) { + ReparentTabletRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.cell); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); - if (message.recursive != null && Object.hasOwnProperty.call(message, "recursive")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.recursive); + if (message.tablet != null && Object.hasOwnProperty.call(message, "tablet")) + $root.topodata.TabletAlias.encode(message.tablet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified RemoveKeyspaceCellRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveKeyspaceCellRequest.verify|verify} messages. + * Encodes the specified ReparentTabletRequest message, length delimited. Does not implicitly {@link vtctldata.ReparentTabletRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof vtctldata.ReparentTabletRequest * @static - * @param {vtctldata.IRemoveKeyspaceCellRequest} message RemoveKeyspaceCellRequest message or plain object to encode + * @param {vtctldata.IReparentTabletRequest} message ReparentTabletRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveKeyspaceCellRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReparentTabletRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer. + * Decodes a ReparentTabletRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof vtctldata.ReparentTabletRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.RemoveKeyspaceCellRequest} RemoveKeyspaceCellRequest + * @returns {vtctldata.ReparentTabletRequest} ReparentTabletRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveKeyspaceCellRequest.decode = function decode(reader, length) { + ReparentTabletRequest.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.vtctldata.RemoveKeyspaceCellRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ReparentTabletRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = reader.string(); - break; - case 2: - message.cell = reader.string(); - break; - case 3: - message.force = reader.bool(); - break; - case 4: - message.recursive = reader.bool(); + message.tablet = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -55947,195 +59037,217 @@ $root.vtctldata = (function() { }; /** - * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer, length delimited. + * Decodes a ReparentTabletRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof vtctldata.ReparentTabletRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RemoveKeyspaceCellRequest} RemoveKeyspaceCellRequest + * @returns {vtctldata.ReparentTabletRequest} ReparentTabletRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveKeyspaceCellRequest.decodeDelimited = function decodeDelimited(reader) { + ReparentTabletRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RemoveKeyspaceCellRequest message. + * Verifies a ReparentTabletRequest message. * @function verify - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof vtctldata.ReparentTabletRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RemoveKeyspaceCellRequest.verify = function verify(message) { + ReparentTabletRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.cell != null && message.hasOwnProperty("cell")) - if (!$util.isString(message.cell)) - return "cell: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; - if (message.recursive != null && message.hasOwnProperty("recursive")) - if (typeof message.recursive !== "boolean") - return "recursive: boolean expected"; + if (message.tablet != null && message.hasOwnProperty("tablet")) { + var error = $root.topodata.TabletAlias.verify(message.tablet); + if (error) + return "tablet." + error; + } return null; }; /** - * Creates a RemoveKeyspaceCellRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReparentTabletRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof vtctldata.ReparentTabletRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.RemoveKeyspaceCellRequest} RemoveKeyspaceCellRequest + * @returns {vtctldata.ReparentTabletRequest} ReparentTabletRequest */ - RemoveKeyspaceCellRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RemoveKeyspaceCellRequest) + ReparentTabletRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ReparentTabletRequest) return object; - var message = new $root.vtctldata.RemoveKeyspaceCellRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.cell != null) - message.cell = String(object.cell); - if (object.force != null) - message.force = Boolean(object.force); - if (object.recursive != null) - message.recursive = Boolean(object.recursive); + var message = new $root.vtctldata.ReparentTabletRequest(); + if (object.tablet != null) { + if (typeof object.tablet !== "object") + throw TypeError(".vtctldata.ReparentTabletRequest.tablet: object expected"); + message.tablet = $root.topodata.TabletAlias.fromObject(object.tablet); + } return message; }; /** - * Creates a plain object from a RemoveKeyspaceCellRequest message. Also converts values to other types if specified. + * Creates a plain object from a ReparentTabletRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof vtctldata.ReparentTabletRequest * @static - * @param {vtctldata.RemoveKeyspaceCellRequest} message RemoveKeyspaceCellRequest + * @param {vtctldata.ReparentTabletRequest} message ReparentTabletRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveKeyspaceCellRequest.toObject = function toObject(message, options) { + ReparentTabletRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.keyspace = ""; - object.cell = ""; - object.force = false; - object.recursive = false; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.cell != null && message.hasOwnProperty("cell")) - object.cell = message.cell; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; - if (message.recursive != null && message.hasOwnProperty("recursive")) - object.recursive = message.recursive; + if (options.defaults) + object.tablet = null; + if (message.tablet != null && message.hasOwnProperty("tablet")) + object.tablet = $root.topodata.TabletAlias.toObject(message.tablet, options); return object; }; /** - * Converts this RemoveKeyspaceCellRequest to JSON. + * Converts this ReparentTabletRequest to JSON. * @function toJSON - * @memberof vtctldata.RemoveKeyspaceCellRequest + * @memberof vtctldata.ReparentTabletRequest * @instance * @returns {Object.} JSON object */ - RemoveKeyspaceCellRequest.prototype.toJSON = function toJSON() { + ReparentTabletRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RemoveKeyspaceCellRequest; + return ReparentTabletRequest; })(); - vtctldata.RemoveKeyspaceCellResponse = (function() { + vtctldata.ReparentTabletResponse = (function() { /** - * Properties of a RemoveKeyspaceCellResponse. + * Properties of a ReparentTabletResponse. * @memberof vtctldata - * @interface IRemoveKeyspaceCellResponse + * @interface IReparentTabletResponse + * @property {string|null} [keyspace] ReparentTabletResponse keyspace + * @property {string|null} [shard] ReparentTabletResponse shard + * @property {topodata.ITabletAlias|null} [primary] ReparentTabletResponse primary */ /** - * Constructs a new RemoveKeyspaceCellResponse. + * Constructs a new ReparentTabletResponse. * @memberof vtctldata - * @classdesc Represents a RemoveKeyspaceCellResponse. - * @implements IRemoveKeyspaceCellResponse + * @classdesc Represents a ReparentTabletResponse. + * @implements IReparentTabletResponse * @constructor - * @param {vtctldata.IRemoveKeyspaceCellResponse=} [properties] Properties to set + * @param {vtctldata.IReparentTabletResponse=} [properties] Properties to set + */ + function ReparentTabletResponse(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]]; + } + + /** + * ReparentTabletResponse keyspace. + * @member {string} keyspace + * @memberof vtctldata.ReparentTabletResponse + * @instance + */ + ReparentTabletResponse.prototype.keyspace = ""; + + /** + * ReparentTabletResponse shard. + * @member {string} shard + * @memberof vtctldata.ReparentTabletResponse + * @instance + */ + ReparentTabletResponse.prototype.shard = ""; + + /** + * ReparentTabletResponse primary. + * @member {topodata.ITabletAlias|null|undefined} primary + * @memberof vtctldata.ReparentTabletResponse + * @instance */ - function RemoveKeyspaceCellResponse(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]]; - } + ReparentTabletResponse.prototype.primary = null; /** - * Creates a new RemoveKeyspaceCellResponse instance using the specified properties. + * Creates a new ReparentTabletResponse instance using the specified properties. * @function create - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @memberof vtctldata.ReparentTabletResponse * @static - * @param {vtctldata.IRemoveKeyspaceCellResponse=} [properties] Properties to set - * @returns {vtctldata.RemoveKeyspaceCellResponse} RemoveKeyspaceCellResponse instance + * @param {vtctldata.IReparentTabletResponse=} [properties] Properties to set + * @returns {vtctldata.ReparentTabletResponse} ReparentTabletResponse instance */ - RemoveKeyspaceCellResponse.create = function create(properties) { - return new RemoveKeyspaceCellResponse(properties); + ReparentTabletResponse.create = function create(properties) { + return new ReparentTabletResponse(properties); }; /** - * Encodes the specified RemoveKeyspaceCellResponse message. Does not implicitly {@link vtctldata.RemoveKeyspaceCellResponse.verify|verify} messages. + * Encodes the specified ReparentTabletResponse message. Does not implicitly {@link vtctldata.ReparentTabletResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @memberof vtctldata.ReparentTabletResponse * @static - * @param {vtctldata.IRemoveKeyspaceCellResponse} message RemoveKeyspaceCellResponse message or plain object to encode + * @param {vtctldata.IReparentTabletResponse} message ReparentTabletResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveKeyspaceCellResponse.encode = function encode(message, writer) { + ReparentTabletResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); + if (message.primary != null && Object.hasOwnProperty.call(message, "primary")) + $root.topodata.TabletAlias.encode(message.primary, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified RemoveKeyspaceCellResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveKeyspaceCellResponse.verify|verify} messages. + * Encodes the specified ReparentTabletResponse message, length delimited. Does not implicitly {@link vtctldata.ReparentTabletResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @memberof vtctldata.ReparentTabletResponse * @static - * @param {vtctldata.IRemoveKeyspaceCellResponse} message RemoveKeyspaceCellResponse message or plain object to encode + * @param {vtctldata.IReparentTabletResponse} message ReparentTabletResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveKeyspaceCellResponse.encodeDelimited = function encodeDelimited(message, writer) { + ReparentTabletResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RemoveKeyspaceCellResponse message from the specified reader or buffer. + * Decodes a ReparentTabletResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @memberof vtctldata.ReparentTabletResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.RemoveKeyspaceCellResponse} RemoveKeyspaceCellResponse + * @returns {vtctldata.ReparentTabletResponse} ReparentTabletResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveKeyspaceCellResponse.decode = function decode(reader, length) { + ReparentTabletResponse.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.vtctldata.RemoveKeyspaceCellResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ReparentTabletResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.keyspace = reader.string(); + break; + case 2: + message.shard = reader.string(); + break; + case 3: + message.primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -56145,98 +59257,129 @@ $root.vtctldata = (function() { }; /** - * Decodes a RemoveKeyspaceCellResponse message from the specified reader or buffer, length delimited. + * Decodes a ReparentTabletResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @memberof vtctldata.ReparentTabletResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RemoveKeyspaceCellResponse} RemoveKeyspaceCellResponse + * @returns {vtctldata.ReparentTabletResponse} ReparentTabletResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveKeyspaceCellResponse.decodeDelimited = function decodeDelimited(reader) { + ReparentTabletResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RemoveKeyspaceCellResponse message. + * Verifies a ReparentTabletResponse message. * @function verify - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @memberof vtctldata.ReparentTabletResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RemoveKeyspaceCellResponse.verify = function verify(message) { + ReparentTabletResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + 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.primary != null && message.hasOwnProperty("primary")) { + var error = $root.topodata.TabletAlias.verify(message.primary); + if (error) + return "primary." + error; + } return null; }; /** - * Creates a RemoveKeyspaceCellResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReparentTabletResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @memberof vtctldata.ReparentTabletResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.RemoveKeyspaceCellResponse} RemoveKeyspaceCellResponse + * @returns {vtctldata.ReparentTabletResponse} ReparentTabletResponse */ - RemoveKeyspaceCellResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RemoveKeyspaceCellResponse) + ReparentTabletResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ReparentTabletResponse) return object; - return new $root.vtctldata.RemoveKeyspaceCellResponse(); + var message = new $root.vtctldata.ReparentTabletResponse(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + if (object.primary != null) { + if (typeof object.primary !== "object") + throw TypeError(".vtctldata.ReparentTabletResponse.primary: object expected"); + message.primary = $root.topodata.TabletAlias.fromObject(object.primary); + } + return message; }; /** - * Creates a plain object from a RemoveKeyspaceCellResponse message. Also converts values to other types if specified. + * Creates a plain object from a ReparentTabletResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @memberof vtctldata.ReparentTabletResponse * @static - * @param {vtctldata.RemoveKeyspaceCellResponse} message RemoveKeyspaceCellResponse + * @param {vtctldata.ReparentTabletResponse} message ReparentTabletResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveKeyspaceCellResponse.toObject = function toObject() { - return {}; + ReparentTabletResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.keyspace = ""; + object.shard = ""; + object.primary = null; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.primary != null && message.hasOwnProperty("primary")) + object.primary = $root.topodata.TabletAlias.toObject(message.primary, options); + return object; }; /** - * Converts this RemoveKeyspaceCellResponse to JSON. + * Converts this ReparentTabletResponse to JSON. * @function toJSON - * @memberof vtctldata.RemoveKeyspaceCellResponse + * @memberof vtctldata.ReparentTabletResponse * @instance * @returns {Object.} JSON object */ - RemoveKeyspaceCellResponse.prototype.toJSON = function toJSON() { + ReparentTabletResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RemoveKeyspaceCellResponse; + return ReparentTabletResponse; })(); - vtctldata.RemoveShardCellRequest = (function() { + vtctldata.TabletExternallyReparentedRequest = (function() { /** - * Properties of a RemoveShardCellRequest. + * Properties of a TabletExternallyReparentedRequest. * @memberof vtctldata - * @interface IRemoveShardCellRequest - * @property {string|null} [keyspace] RemoveShardCellRequest keyspace - * @property {string|null} [shard_name] RemoveShardCellRequest shard_name - * @property {string|null} [cell] RemoveShardCellRequest cell - * @property {boolean|null} [force] RemoveShardCellRequest force - * @property {boolean|null} [recursive] RemoveShardCellRequest recursive + * @interface ITabletExternallyReparentedRequest + * @property {topodata.ITabletAlias|null} [tablet] TabletExternallyReparentedRequest tablet */ /** - * Constructs a new RemoveShardCellRequest. + * Constructs a new TabletExternallyReparentedRequest. * @memberof vtctldata - * @classdesc Represents a RemoveShardCellRequest. - * @implements IRemoveShardCellRequest + * @classdesc Represents a TabletExternallyReparentedRequest. + * @implements ITabletExternallyReparentedRequest * @constructor - * @param {vtctldata.IRemoveShardCellRequest=} [properties] Properties to set + * @param {vtctldata.ITabletExternallyReparentedRequest=} [properties] Properties to set */ - function RemoveShardCellRequest(properties) { + function TabletExternallyReparentedRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56244,127 +59387,75 @@ $root.vtctldata = (function() { } /** - * RemoveShardCellRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.RemoveShardCellRequest - * @instance - */ - RemoveShardCellRequest.prototype.keyspace = ""; - - /** - * RemoveShardCellRequest shard_name. - * @member {string} shard_name - * @memberof vtctldata.RemoveShardCellRequest - * @instance - */ - RemoveShardCellRequest.prototype.shard_name = ""; - - /** - * RemoveShardCellRequest cell. - * @member {string} cell - * @memberof vtctldata.RemoveShardCellRequest - * @instance - */ - RemoveShardCellRequest.prototype.cell = ""; - - /** - * RemoveShardCellRequest force. - * @member {boolean} force - * @memberof vtctldata.RemoveShardCellRequest - * @instance - */ - RemoveShardCellRequest.prototype.force = false; - - /** - * RemoveShardCellRequest recursive. - * @member {boolean} recursive - * @memberof vtctldata.RemoveShardCellRequest + * TabletExternallyReparentedRequest tablet. + * @member {topodata.ITabletAlias|null|undefined} tablet + * @memberof vtctldata.TabletExternallyReparentedRequest * @instance */ - RemoveShardCellRequest.prototype.recursive = false; + TabletExternallyReparentedRequest.prototype.tablet = null; /** - * Creates a new RemoveShardCellRequest instance using the specified properties. + * Creates a new TabletExternallyReparentedRequest instance using the specified properties. * @function create - * @memberof vtctldata.RemoveShardCellRequest + * @memberof vtctldata.TabletExternallyReparentedRequest * @static - * @param {vtctldata.IRemoveShardCellRequest=} [properties] Properties to set - * @returns {vtctldata.RemoveShardCellRequest} RemoveShardCellRequest instance + * @param {vtctldata.ITabletExternallyReparentedRequest=} [properties] Properties to set + * @returns {vtctldata.TabletExternallyReparentedRequest} TabletExternallyReparentedRequest instance */ - RemoveShardCellRequest.create = function create(properties) { - return new RemoveShardCellRequest(properties); + TabletExternallyReparentedRequest.create = function create(properties) { + return new TabletExternallyReparentedRequest(properties); }; /** - * Encodes the specified RemoveShardCellRequest message. Does not implicitly {@link vtctldata.RemoveShardCellRequest.verify|verify} messages. + * Encodes the specified TabletExternallyReparentedRequest message. Does not implicitly {@link vtctldata.TabletExternallyReparentedRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.RemoveShardCellRequest + * @memberof vtctldata.TabletExternallyReparentedRequest * @static - * @param {vtctldata.IRemoveShardCellRequest} message RemoveShardCellRequest message or plain object to encode + * @param {vtctldata.ITabletExternallyReparentedRequest} message TabletExternallyReparentedRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveShardCellRequest.encode = function encode(message, writer) { + TabletExternallyReparentedRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.shard_name != null && Object.hasOwnProperty.call(message, "shard_name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard_name); - if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.cell); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.force); - if (message.recursive != null && Object.hasOwnProperty.call(message, "recursive")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.recursive); + if (message.tablet != null && Object.hasOwnProperty.call(message, "tablet")) + $root.topodata.TabletAlias.encode(message.tablet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified RemoveShardCellRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveShardCellRequest.verify|verify} messages. + * Encodes the specified TabletExternallyReparentedRequest message, length delimited. Does not implicitly {@link vtctldata.TabletExternallyReparentedRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.RemoveShardCellRequest + * @memberof vtctldata.TabletExternallyReparentedRequest * @static - * @param {vtctldata.IRemoveShardCellRequest} message RemoveShardCellRequest message or plain object to encode + * @param {vtctldata.ITabletExternallyReparentedRequest} message TabletExternallyReparentedRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveShardCellRequest.encodeDelimited = function encodeDelimited(message, writer) { + TabletExternallyReparentedRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RemoveShardCellRequest message from the specified reader or buffer. + * Decodes a TabletExternallyReparentedRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.RemoveShardCellRequest + * @memberof vtctldata.TabletExternallyReparentedRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.RemoveShardCellRequest} RemoveShardCellRequest + * @returns {vtctldata.TabletExternallyReparentedRequest} TabletExternallyReparentedRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveShardCellRequest.decode = function decode(reader, length) { + TabletExternallyReparentedRequest.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.vtctldata.RemoveShardCellRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.TabletExternallyReparentedRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = reader.string(); - break; - case 2: - message.shard_name = reader.string(); - break; - case 3: - message.cell = reader.string(); - break; - case 4: - message.force = reader.bool(); - break; - case 5: - message.recursive = reader.bool(); + message.tablet = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -56375,139 +59466,115 @@ $root.vtctldata = (function() { }; /** - * Decodes a RemoveShardCellRequest message from the specified reader or buffer, length delimited. + * Decodes a TabletExternallyReparentedRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.RemoveShardCellRequest + * @memberof vtctldata.TabletExternallyReparentedRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RemoveShardCellRequest} RemoveShardCellRequest + * @returns {vtctldata.TabletExternallyReparentedRequest} TabletExternallyReparentedRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveShardCellRequest.decodeDelimited = function decodeDelimited(reader) { + TabletExternallyReparentedRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RemoveShardCellRequest message. + * Verifies a TabletExternallyReparentedRequest message. * @function verify - * @memberof vtctldata.RemoveShardCellRequest + * @memberof vtctldata.TabletExternallyReparentedRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RemoveShardCellRequest.verify = function verify(message) { + TabletExternallyReparentedRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.shard_name != null && message.hasOwnProperty("shard_name")) - if (!$util.isString(message.shard_name)) - return "shard_name: string expected"; - if (message.cell != null && message.hasOwnProperty("cell")) - if (!$util.isString(message.cell)) - return "cell: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; - if (message.recursive != null && message.hasOwnProperty("recursive")) - if (typeof message.recursive !== "boolean") - return "recursive: boolean expected"; + if (message.tablet != null && message.hasOwnProperty("tablet")) { + var error = $root.topodata.TabletAlias.verify(message.tablet); + if (error) + return "tablet." + error; + } return null; }; /** - * Creates a RemoveShardCellRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TabletExternallyReparentedRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.RemoveShardCellRequest + * @memberof vtctldata.TabletExternallyReparentedRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.RemoveShardCellRequest} RemoveShardCellRequest + * @returns {vtctldata.TabletExternallyReparentedRequest} TabletExternallyReparentedRequest */ - RemoveShardCellRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RemoveShardCellRequest) + TabletExternallyReparentedRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.TabletExternallyReparentedRequest) return object; - var message = new $root.vtctldata.RemoveShardCellRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard_name != null) - message.shard_name = String(object.shard_name); - if (object.cell != null) - message.cell = String(object.cell); - if (object.force != null) - message.force = Boolean(object.force); - if (object.recursive != null) - message.recursive = Boolean(object.recursive); + var message = new $root.vtctldata.TabletExternallyReparentedRequest(); + if (object.tablet != null) { + if (typeof object.tablet !== "object") + throw TypeError(".vtctldata.TabletExternallyReparentedRequest.tablet: object expected"); + message.tablet = $root.topodata.TabletAlias.fromObject(object.tablet); + } return message; }; /** - * Creates a plain object from a RemoveShardCellRequest message. Also converts values to other types if specified. + * Creates a plain object from a TabletExternallyReparentedRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.RemoveShardCellRequest + * @memberof vtctldata.TabletExternallyReparentedRequest * @static - * @param {vtctldata.RemoveShardCellRequest} message RemoveShardCellRequest + * @param {vtctldata.TabletExternallyReparentedRequest} message TabletExternallyReparentedRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveShardCellRequest.toObject = function toObject(message, options) { + TabletExternallyReparentedRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.keyspace = ""; - object.shard_name = ""; - object.cell = ""; - object.force = false; - object.recursive = false; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard_name != null && message.hasOwnProperty("shard_name")) - object.shard_name = message.shard_name; - if (message.cell != null && message.hasOwnProperty("cell")) - object.cell = message.cell; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; - if (message.recursive != null && message.hasOwnProperty("recursive")) - object.recursive = message.recursive; + if (options.defaults) + object.tablet = null; + if (message.tablet != null && message.hasOwnProperty("tablet")) + object.tablet = $root.topodata.TabletAlias.toObject(message.tablet, options); return object; }; /** - * Converts this RemoveShardCellRequest to JSON. + * Converts this TabletExternallyReparentedRequest to JSON. * @function toJSON - * @memberof vtctldata.RemoveShardCellRequest + * @memberof vtctldata.TabletExternallyReparentedRequest * @instance * @returns {Object.} JSON object */ - RemoveShardCellRequest.prototype.toJSON = function toJSON() { + TabletExternallyReparentedRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RemoveShardCellRequest; + return TabletExternallyReparentedRequest; })(); - vtctldata.RemoveShardCellResponse = (function() { + vtctldata.TabletExternallyReparentedResponse = (function() { /** - * Properties of a RemoveShardCellResponse. + * Properties of a TabletExternallyReparentedResponse. * @memberof vtctldata - * @interface IRemoveShardCellResponse + * @interface ITabletExternallyReparentedResponse + * @property {string|null} [keyspace] TabletExternallyReparentedResponse keyspace + * @property {string|null} [shard] TabletExternallyReparentedResponse shard + * @property {topodata.ITabletAlias|null} [new_primary] TabletExternallyReparentedResponse new_primary + * @property {topodata.ITabletAlias|null} [old_primary] TabletExternallyReparentedResponse old_primary */ /** - * Constructs a new RemoveShardCellResponse. + * Constructs a new TabletExternallyReparentedResponse. * @memberof vtctldata - * @classdesc Represents a RemoveShardCellResponse. - * @implements IRemoveShardCellResponse + * @classdesc Represents a TabletExternallyReparentedResponse. + * @implements ITabletExternallyReparentedResponse * @constructor - * @param {vtctldata.IRemoveShardCellResponse=} [properties] Properties to set + * @param {vtctldata.ITabletExternallyReparentedResponse=} [properties] Properties to set */ - function RemoveShardCellResponse(properties) { + function TabletExternallyReparentedResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56515,63 +59582,115 @@ $root.vtctldata = (function() { } /** - * Creates a new RemoveShardCellResponse instance using the specified properties. + * TabletExternallyReparentedResponse keyspace. + * @member {string} keyspace + * @memberof vtctldata.TabletExternallyReparentedResponse + * @instance + */ + TabletExternallyReparentedResponse.prototype.keyspace = ""; + + /** + * TabletExternallyReparentedResponse shard. + * @member {string} shard + * @memberof vtctldata.TabletExternallyReparentedResponse + * @instance + */ + TabletExternallyReparentedResponse.prototype.shard = ""; + + /** + * TabletExternallyReparentedResponse new_primary. + * @member {topodata.ITabletAlias|null|undefined} new_primary + * @memberof vtctldata.TabletExternallyReparentedResponse + * @instance + */ + TabletExternallyReparentedResponse.prototype.new_primary = null; + + /** + * TabletExternallyReparentedResponse old_primary. + * @member {topodata.ITabletAlias|null|undefined} old_primary + * @memberof vtctldata.TabletExternallyReparentedResponse + * @instance + */ + TabletExternallyReparentedResponse.prototype.old_primary = null; + + /** + * Creates a new TabletExternallyReparentedResponse instance using the specified properties. * @function create - * @memberof vtctldata.RemoveShardCellResponse + * @memberof vtctldata.TabletExternallyReparentedResponse * @static - * @param {vtctldata.IRemoveShardCellResponse=} [properties] Properties to set - * @returns {vtctldata.RemoveShardCellResponse} RemoveShardCellResponse instance + * @param {vtctldata.ITabletExternallyReparentedResponse=} [properties] Properties to set + * @returns {vtctldata.TabletExternallyReparentedResponse} TabletExternallyReparentedResponse instance */ - RemoveShardCellResponse.create = function create(properties) { - return new RemoveShardCellResponse(properties); + TabletExternallyReparentedResponse.create = function create(properties) { + return new TabletExternallyReparentedResponse(properties); }; /** - * Encodes the specified RemoveShardCellResponse message. Does not implicitly {@link vtctldata.RemoveShardCellResponse.verify|verify} messages. + * Encodes the specified TabletExternallyReparentedResponse message. Does not implicitly {@link vtctldata.TabletExternallyReparentedResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.RemoveShardCellResponse + * @memberof vtctldata.TabletExternallyReparentedResponse * @static - * @param {vtctldata.IRemoveShardCellResponse} message RemoveShardCellResponse message or plain object to encode + * @param {vtctldata.ITabletExternallyReparentedResponse} message TabletExternallyReparentedResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveShardCellResponse.encode = function encode(message, writer) { + TabletExternallyReparentedResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); + if (message.new_primary != null && Object.hasOwnProperty.call(message, "new_primary")) + $root.topodata.TabletAlias.encode(message.new_primary, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.old_primary != null && Object.hasOwnProperty.call(message, "old_primary")) + $root.topodata.TabletAlias.encode(message.old_primary, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified RemoveShardCellResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveShardCellResponse.verify|verify} messages. + * Encodes the specified TabletExternallyReparentedResponse message, length delimited. Does not implicitly {@link vtctldata.TabletExternallyReparentedResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.RemoveShardCellResponse + * @memberof vtctldata.TabletExternallyReparentedResponse * @static - * @param {vtctldata.IRemoveShardCellResponse} message RemoveShardCellResponse message or plain object to encode + * @param {vtctldata.ITabletExternallyReparentedResponse} message TabletExternallyReparentedResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveShardCellResponse.encodeDelimited = function encodeDelimited(message, writer) { + TabletExternallyReparentedResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RemoveShardCellResponse message from the specified reader or buffer. + * Decodes a TabletExternallyReparentedResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.RemoveShardCellResponse + * @memberof vtctldata.TabletExternallyReparentedResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.RemoveShardCellResponse} RemoveShardCellResponse + * @returns {vtctldata.TabletExternallyReparentedResponse} TabletExternallyReparentedResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveShardCellResponse.decode = function decode(reader, length) { + TabletExternallyReparentedResponse.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.vtctldata.RemoveShardCellResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.TabletExternallyReparentedResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.keyspace = reader.string(); + break; + case 2: + message.shard = reader.string(); + break; + case 3: + message.new_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + case 4: + message.old_primary = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -56581,74 +59700,122 @@ $root.vtctldata = (function() { }; /** - * Decodes a RemoveShardCellResponse message from the specified reader or buffer, length delimited. + * Decodes a TabletExternallyReparentedResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.RemoveShardCellResponse + * @memberof vtctldata.TabletExternallyReparentedResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.RemoveShardCellResponse} RemoveShardCellResponse + * @returns {vtctldata.TabletExternallyReparentedResponse} TabletExternallyReparentedResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveShardCellResponse.decodeDelimited = function decodeDelimited(reader) { + TabletExternallyReparentedResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RemoveShardCellResponse message. + * Verifies a TabletExternallyReparentedResponse message. * @function verify - * @memberof vtctldata.RemoveShardCellResponse + * @memberof vtctldata.TabletExternallyReparentedResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RemoveShardCellResponse.verify = function verify(message) { + TabletExternallyReparentedResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + 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.new_primary != null && message.hasOwnProperty("new_primary")) { + var error = $root.topodata.TabletAlias.verify(message.new_primary); + if (error) + return "new_primary." + error; + } + if (message.old_primary != null && message.hasOwnProperty("old_primary")) { + var error = $root.topodata.TabletAlias.verify(message.old_primary); + if (error) + return "old_primary." + error; + } return null; }; /** - * Creates a RemoveShardCellResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TabletExternallyReparentedResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.RemoveShardCellResponse + * @memberof vtctldata.TabletExternallyReparentedResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.RemoveShardCellResponse} RemoveShardCellResponse + * @returns {vtctldata.TabletExternallyReparentedResponse} TabletExternallyReparentedResponse */ - RemoveShardCellResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.RemoveShardCellResponse) + TabletExternallyReparentedResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.TabletExternallyReparentedResponse) return object; - return new $root.vtctldata.RemoveShardCellResponse(); + var message = new $root.vtctldata.TabletExternallyReparentedResponse(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + if (object.new_primary != null) { + if (typeof object.new_primary !== "object") + throw TypeError(".vtctldata.TabletExternallyReparentedResponse.new_primary: object expected"); + message.new_primary = $root.topodata.TabletAlias.fromObject(object.new_primary); + } + if (object.old_primary != null) { + if (typeof object.old_primary !== "object") + throw TypeError(".vtctldata.TabletExternallyReparentedResponse.old_primary: object expected"); + message.old_primary = $root.topodata.TabletAlias.fromObject(object.old_primary); + } + return message; }; /** - * Creates a plain object from a RemoveShardCellResponse message. Also converts values to other types if specified. + * Creates a plain object from a TabletExternallyReparentedResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.RemoveShardCellResponse + * @memberof vtctldata.TabletExternallyReparentedResponse * @static - * @param {vtctldata.RemoveShardCellResponse} message RemoveShardCellResponse + * @param {vtctldata.TabletExternallyReparentedResponse} message TabletExternallyReparentedResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveShardCellResponse.toObject = function toObject() { - return {}; + TabletExternallyReparentedResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.keyspace = ""; + object.shard = ""; + object.new_primary = null; + object.old_primary = null; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.new_primary != null && message.hasOwnProperty("new_primary")) + object.new_primary = $root.topodata.TabletAlias.toObject(message.new_primary, options); + if (message.old_primary != null && message.hasOwnProperty("old_primary")) + object.old_primary = $root.topodata.TabletAlias.toObject(message.old_primary, options); + return object; }; /** - * Converts this RemoveShardCellResponse to JSON. + * Converts this TabletExternallyReparentedResponse to JSON. * @function toJSON - * @memberof vtctldata.RemoveShardCellResponse + * @memberof vtctldata.TabletExternallyReparentedResponse * @instance * @returns {Object.} JSON object */ - RemoveShardCellResponse.prototype.toJSON = function toJSON() { + TabletExternallyReparentedResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RemoveShardCellResponse; + return TabletExternallyReparentedResponse; })(); vtctldata.Keyspace = (function() { @@ -57764,6 +60931,7 @@ $root.vtctldata = (function() { * @property {Array.|null} [table_settings] MaterializeSettings table_settings * @property {string|null} [cell] MaterializeSettings cell * @property {string|null} [tablet_types] MaterializeSettings tablet_types + * @property {string|null} [external_cluster] MaterializeSettings external_cluster */ /** @@ -57838,6 +61006,14 @@ $root.vtctldata = (function() { */ MaterializeSettings.prototype.tablet_types = ""; + /** + * MaterializeSettings external_cluster. + * @member {string} external_cluster + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.external_cluster = ""; + /** * Creates a new MaterializeSettings instance using the specified properties. * @function create @@ -57877,6 +61053,8 @@ $root.vtctldata = (function() { writer.uint32(/* id 6, wireType 2 =*/50).string(message.cell); if (message.tablet_types != null && Object.hasOwnProperty.call(message, "tablet_types")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.tablet_types); + if (message.external_cluster != null && Object.hasOwnProperty.call(message, "external_cluster")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.external_cluster); return writer; }; @@ -57934,6 +61112,9 @@ $root.vtctldata = (function() { case 7: message.tablet_types = reader.string(); break; + case 8: + message.external_cluster = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -57996,6 +61177,9 @@ $root.vtctldata = (function() { if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) if (!$util.isString(message.tablet_types)) return "tablet_types: string expected"; + if (message.external_cluster != null && message.hasOwnProperty("external_cluster")) + if (!$util.isString(message.external_cluster)) + return "external_cluster: string expected"; return null; }; @@ -58033,6 +61217,8 @@ $root.vtctldata = (function() { message.cell = String(object.cell); if (object.tablet_types != null) message.tablet_types = String(object.tablet_types); + if (object.external_cluster != null) + message.external_cluster = String(object.external_cluster); return message; }; @@ -58058,6 +61244,7 @@ $root.vtctldata = (function() { object.stop_after_copy = false; object.cell = ""; object.tablet_types = ""; + object.external_cluster = ""; } if (message.workflow != null && message.hasOwnProperty("workflow")) object.workflow = message.workflow; @@ -58076,6 +61263,8 @@ $root.vtctldata = (function() { object.cell = message.cell; if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) object.tablet_types = message.tablet_types; + if (message.external_cluster != null && message.hasOwnProperty("external_cluster")) + object.external_cluster = message.external_cluster; return object; }; @@ -58096,254 +61285,6 @@ $root.vtctldata = (function() { return vtctldata; })(); -$root.google = (function() { - - /** - * Namespace google. - * @exports google - * @namespace - */ - var google = {}; - - google.protobuf = (function() { - - /** - * Namespace protobuf. - * @memberof google - * @namespace - */ - var protobuf = {}; - - protobuf.Duration = (function() { - - /** - * Properties of a Duration. - * @memberof google.protobuf - * @interface IDuration - * @property {number|Long|null} [seconds] Duration seconds - * @property {number|null} [nanos] Duration nanos - */ - - /** - * Constructs a new Duration. - * @memberof google.protobuf - * @classdesc Represents a Duration. - * @implements IDuration - * @constructor - * @param {google.protobuf.IDuration=} [properties] Properties to set - */ - function Duration(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]]; - } - - /** - * Duration seconds. - * @member {number|Long} seconds - * @memberof google.protobuf.Duration - * @instance - */ - Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Duration nanos. - * @member {number} nanos - * @memberof google.protobuf.Duration - * @instance - */ - Duration.prototype.nanos = 0; - - /** - * Creates a new Duration instance using the specified properties. - * @function create - * @memberof google.protobuf.Duration - * @static - * @param {google.protobuf.IDuration=} [properties] Properties to set - * @returns {google.protobuf.Duration} Duration instance - */ - Duration.create = function create(properties) { - return new Duration(properties); - }; - - /** - * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. - * @function encode - * @memberof google.protobuf.Duration - * @static - * @param {google.protobuf.IDuration} message Duration message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Duration.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); - if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); - return writer; - }; - - /** - * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.Duration - * @static - * @param {google.protobuf.IDuration} message Duration message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Duration.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Duration message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.Duration - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Duration} Duration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Duration.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.google.protobuf.Duration(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.seconds = reader.int64(); - break; - case 2: - message.nanos = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Duration message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.Duration - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Duration} Duration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Duration.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Duration message. - * @function verify - * @memberof google.protobuf.Duration - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Duration.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) - return "seconds: integer|Long expected"; - if (message.nanos != null && message.hasOwnProperty("nanos")) - if (!$util.isInteger(message.nanos)) - return "nanos: integer expected"; - return null; - }; - - /** - * Creates a Duration message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.Duration - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.Duration} Duration - */ - Duration.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Duration) - return object; - var message = new $root.google.protobuf.Duration(); - if (object.seconds != null) - if ($util.Long) - (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; - else if (typeof object.seconds === "string") - message.seconds = parseInt(object.seconds, 10); - else if (typeof object.seconds === "number") - message.seconds = object.seconds; - else if (typeof object.seconds === "object") - message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); - if (object.nanos != null) - message.nanos = object.nanos | 0; - return message; - }; - - /** - * Creates a plain object from a Duration message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.Duration - * @static - * @param {google.protobuf.Duration} message Duration - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Duration.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.seconds = options.longs === String ? "0" : 0; - object.nanos = 0; - } - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (typeof message.seconds === "number") - object.seconds = options.longs === String ? String(message.seconds) : message.seconds; - else - object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; - if (message.nanos != null && message.hasOwnProperty("nanos")) - object.nanos = message.nanos; - return object; - }; - - /** - * Converts this Duration to JSON. - * @function toJSON - * @memberof google.protobuf.Duration - * @instance - * @returns {Object.} JSON object - */ - Duration.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Duration; - })(); - - return protobuf; - })(); - - return google; -})(); - $root.mysqlctl = (function() { /**