1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/bigtable/admin/v2/bigtable_table_admin.proto
6 import proto "github.com/golang/protobuf/proto"
9 import _ "google.golang.org/genproto/googleapis/api/annotations"
10 import _ "google.golang.org/genproto/googleapis/longrunning"
11 import _ "github.com/golang/protobuf/ptypes/duration"
12 import google_protobuf3 "github.com/golang/protobuf/ptypes/empty"
13 import _ "github.com/golang/protobuf/ptypes/timestamp"
16 context "golang.org/x/net/context"
17 grpc "google.golang.org/grpc"
20 // Reference imports to suppress errors if they are not otherwise used.
25 // Request message for
26 // [google.bigtable.admin.v2.BigtableTableAdmin.CreateTable][google.bigtable.admin.v2.BigtableTableAdmin.CreateTable]
27 type CreateTableRequest struct {
28 // The unique name of the instance in which to create the table.
29 // Values are of the form `projects/<project>/instances/<instance>`.
30 Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
31 // The name by which the new table should be referred to within the parent
32 // instance, e.g., `foobar` rather than `<parent>/tables/foobar`.
33 TableId string `protobuf:"bytes,2,opt,name=table_id,json=tableId" json:"table_id,omitempty"`
34 // The Table to create.
35 Table *Table `protobuf:"bytes,3,opt,name=table" json:"table,omitempty"`
36 // The optional list of row keys that will be used to initially split the
37 // table into several tablets (tablets are similar to HBase regions).
38 // Given two split keys, `s1` and `s2`, three tablets will be created,
39 // spanning the key ranges: `[, s1), [s1, s2), [s2, )`.
43 // * Row keys := `["a", "apple", "custom", "customer_1", "customer_2",`
45 // * initial_split_keys := `["apple", "customer_1", "customer_2", "other"]`
47 // - Tablet 1 `[, apple) => {"a"}.`
48 // - Tablet 2 `[apple, customer_1) => {"apple", "custom"}.`
49 // - Tablet 3 `[customer_1, customer_2) => {"customer_1"}.`
50 // - Tablet 4 `[customer_2, other) => {"customer_2"}.`
51 // - Tablet 5 `[other, ) => {"other", "zz"}.`
52 InitialSplits []*CreateTableRequest_Split `protobuf:"bytes,4,rep,name=initial_splits,json=initialSplits" json:"initial_splits,omitempty"`
55 func (m *CreateTableRequest) Reset() { *m = CreateTableRequest{} }
56 func (m *CreateTableRequest) String() string { return proto.CompactTextString(m) }
57 func (*CreateTableRequest) ProtoMessage() {}
58 func (*CreateTableRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
60 func (m *CreateTableRequest) GetParent() string {
67 func (m *CreateTableRequest) GetTableId() string {
74 func (m *CreateTableRequest) GetTable() *Table {
81 func (m *CreateTableRequest) GetInitialSplits() []*CreateTableRequest_Split {
83 return m.InitialSplits
88 // An initial split point for a newly created table.
89 type CreateTableRequest_Split struct {
90 // Row key to use as an initial tablet boundary.
91 Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
94 func (m *CreateTableRequest_Split) Reset() { *m = CreateTableRequest_Split{} }
95 func (m *CreateTableRequest_Split) String() string { return proto.CompactTextString(m) }
96 func (*CreateTableRequest_Split) ProtoMessage() {}
97 func (*CreateTableRequest_Split) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0, 0} }
99 func (m *CreateTableRequest_Split) GetKey() []byte {
106 // Request message for
107 // [google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange][google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange]
108 type DropRowRangeRequest struct {
109 // The unique name of the table on which to drop a range of rows.
110 // Values are of the form
111 // `projects/<project>/instances/<instance>/tables/<table>`.
112 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
113 // Delete all rows or by prefix.
115 // Types that are valid to be assigned to Target:
116 // *DropRowRangeRequest_RowKeyPrefix
117 // *DropRowRangeRequest_DeleteAllDataFromTable
118 Target isDropRowRangeRequest_Target `protobuf_oneof:"target"`
121 func (m *DropRowRangeRequest) Reset() { *m = DropRowRangeRequest{} }
122 func (m *DropRowRangeRequest) String() string { return proto.CompactTextString(m) }
123 func (*DropRowRangeRequest) ProtoMessage() {}
124 func (*DropRowRangeRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
126 type isDropRowRangeRequest_Target interface {
127 isDropRowRangeRequest_Target()
130 type DropRowRangeRequest_RowKeyPrefix struct {
131 RowKeyPrefix []byte `protobuf:"bytes,2,opt,name=row_key_prefix,json=rowKeyPrefix,proto3,oneof"`
133 type DropRowRangeRequest_DeleteAllDataFromTable struct {
134 DeleteAllDataFromTable bool `protobuf:"varint,3,opt,name=delete_all_data_from_table,json=deleteAllDataFromTable,oneof"`
137 func (*DropRowRangeRequest_RowKeyPrefix) isDropRowRangeRequest_Target() {}
138 func (*DropRowRangeRequest_DeleteAllDataFromTable) isDropRowRangeRequest_Target() {}
140 func (m *DropRowRangeRequest) GetTarget() isDropRowRangeRequest_Target {
147 func (m *DropRowRangeRequest) GetName() string {
154 func (m *DropRowRangeRequest) GetRowKeyPrefix() []byte {
155 if x, ok := m.GetTarget().(*DropRowRangeRequest_RowKeyPrefix); ok {
156 return x.RowKeyPrefix
161 func (m *DropRowRangeRequest) GetDeleteAllDataFromTable() bool {
162 if x, ok := m.GetTarget().(*DropRowRangeRequest_DeleteAllDataFromTable); ok {
163 return x.DeleteAllDataFromTable
168 // XXX_OneofFuncs is for the internal use of the proto package.
169 func (*DropRowRangeRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
170 return _DropRowRangeRequest_OneofMarshaler, _DropRowRangeRequest_OneofUnmarshaler, _DropRowRangeRequest_OneofSizer, []interface{}{
171 (*DropRowRangeRequest_RowKeyPrefix)(nil),
172 (*DropRowRangeRequest_DeleteAllDataFromTable)(nil),
176 func _DropRowRangeRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
177 m := msg.(*DropRowRangeRequest)
179 switch x := m.Target.(type) {
180 case *DropRowRangeRequest_RowKeyPrefix:
181 b.EncodeVarint(2<<3 | proto.WireBytes)
182 b.EncodeRawBytes(x.RowKeyPrefix)
183 case *DropRowRangeRequest_DeleteAllDataFromTable:
185 if x.DeleteAllDataFromTable {
188 b.EncodeVarint(3<<3 | proto.WireVarint)
192 return fmt.Errorf("DropRowRangeRequest.Target has unexpected type %T", x)
197 func _DropRowRangeRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
198 m := msg.(*DropRowRangeRequest)
200 case 2: // target.row_key_prefix
201 if wire != proto.WireBytes {
202 return true, proto.ErrInternalBadWireType
204 x, err := b.DecodeRawBytes(true)
205 m.Target = &DropRowRangeRequest_RowKeyPrefix{x}
207 case 3: // target.delete_all_data_from_table
208 if wire != proto.WireVarint {
209 return true, proto.ErrInternalBadWireType
211 x, err := b.DecodeVarint()
212 m.Target = &DropRowRangeRequest_DeleteAllDataFromTable{x != 0}
219 func _DropRowRangeRequest_OneofSizer(msg proto.Message) (n int) {
220 m := msg.(*DropRowRangeRequest)
222 switch x := m.Target.(type) {
223 case *DropRowRangeRequest_RowKeyPrefix:
224 n += proto.SizeVarint(2<<3 | proto.WireBytes)
225 n += proto.SizeVarint(uint64(len(x.RowKeyPrefix)))
226 n += len(x.RowKeyPrefix)
227 case *DropRowRangeRequest_DeleteAllDataFromTable:
228 n += proto.SizeVarint(3<<3 | proto.WireVarint)
232 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
237 // Request message for
238 // [google.bigtable.admin.v2.BigtableTableAdmin.ListTables][google.bigtable.admin.v2.BigtableTableAdmin.ListTables]
239 type ListTablesRequest struct {
240 // The unique name of the instance for which tables should be listed.
241 // Values are of the form `projects/<project>/instances/<instance>`.
242 Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
243 // The view to be applied to the returned tables' fields.
244 // Defaults to `NAME_ONLY` if unspecified; no others are currently supported.
245 View Table_View `protobuf:"varint,2,opt,name=view,enum=google.bigtable.admin.v2.Table_View" json:"view,omitempty"`
246 // The value of `next_page_token` returned by a previous call.
247 PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
250 func (m *ListTablesRequest) Reset() { *m = ListTablesRequest{} }
251 func (m *ListTablesRequest) String() string { return proto.CompactTextString(m) }
252 func (*ListTablesRequest) ProtoMessage() {}
253 func (*ListTablesRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
255 func (m *ListTablesRequest) GetParent() string {
262 func (m *ListTablesRequest) GetView() Table_View {
266 return Table_VIEW_UNSPECIFIED
269 func (m *ListTablesRequest) GetPageToken() string {
276 // Response message for
277 // [google.bigtable.admin.v2.BigtableTableAdmin.ListTables][google.bigtable.admin.v2.BigtableTableAdmin.ListTables]
278 type ListTablesResponse struct {
279 // The tables present in the requested instance.
280 Tables []*Table `protobuf:"bytes,1,rep,name=tables" json:"tables,omitempty"`
281 // Set if not all tables could be returned in a single response.
282 // Pass this value to `page_token` in another request to get the next
284 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
287 func (m *ListTablesResponse) Reset() { *m = ListTablesResponse{} }
288 func (m *ListTablesResponse) String() string { return proto.CompactTextString(m) }
289 func (*ListTablesResponse) ProtoMessage() {}
290 func (*ListTablesResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
292 func (m *ListTablesResponse) GetTables() []*Table {
299 func (m *ListTablesResponse) GetNextPageToken() string {
301 return m.NextPageToken
306 // Request message for
307 // [google.bigtable.admin.v2.BigtableTableAdmin.GetTable][google.bigtable.admin.v2.BigtableTableAdmin.GetTable]
308 type GetTableRequest struct {
309 // The unique name of the requested table.
310 // Values are of the form
311 // `projects/<project>/instances/<instance>/tables/<table>`.
312 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
313 // The view to be applied to the returned table's fields.
314 // Defaults to `SCHEMA_VIEW` if unspecified.
315 View Table_View `protobuf:"varint,2,opt,name=view,enum=google.bigtable.admin.v2.Table_View" json:"view,omitempty"`
318 func (m *GetTableRequest) Reset() { *m = GetTableRequest{} }
319 func (m *GetTableRequest) String() string { return proto.CompactTextString(m) }
320 func (*GetTableRequest) ProtoMessage() {}
321 func (*GetTableRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} }
323 func (m *GetTableRequest) GetName() string {
330 func (m *GetTableRequest) GetView() Table_View {
334 return Table_VIEW_UNSPECIFIED
337 // Request message for
338 // [google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable][google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable]
339 type DeleteTableRequest struct {
340 // The unique name of the table to be deleted.
341 // Values are of the form
342 // `projects/<project>/instances/<instance>/tables/<table>`.
343 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
346 func (m *DeleteTableRequest) Reset() { *m = DeleteTableRequest{} }
347 func (m *DeleteTableRequest) String() string { return proto.CompactTextString(m) }
348 func (*DeleteTableRequest) ProtoMessage() {}
349 func (*DeleteTableRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{5} }
351 func (m *DeleteTableRequest) GetName() string {
358 // Request message for
359 // [google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies][google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies]
360 type ModifyColumnFamiliesRequest struct {
361 // The unique name of the table whose families should be modified.
362 // Values are of the form
363 // `projects/<project>/instances/<instance>/tables/<table>`.
364 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
365 // Modifications to be atomically applied to the specified table's families.
366 // Entries are applied in order, meaning that earlier modifications can be
367 // masked by later ones (in the case of repeated updates to the same family,
369 Modifications []*ModifyColumnFamiliesRequest_Modification `protobuf:"bytes,2,rep,name=modifications" json:"modifications,omitempty"`
372 func (m *ModifyColumnFamiliesRequest) Reset() { *m = ModifyColumnFamiliesRequest{} }
373 func (m *ModifyColumnFamiliesRequest) String() string { return proto.CompactTextString(m) }
374 func (*ModifyColumnFamiliesRequest) ProtoMessage() {}
375 func (*ModifyColumnFamiliesRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{6} }
377 func (m *ModifyColumnFamiliesRequest) GetName() string {
384 func (m *ModifyColumnFamiliesRequest) GetModifications() []*ModifyColumnFamiliesRequest_Modification {
386 return m.Modifications
391 // A create, update, or delete of a particular column family.
392 type ModifyColumnFamiliesRequest_Modification struct {
393 // The ID of the column family to be modified.
394 Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
395 // Column familiy modifications.
397 // Types that are valid to be assigned to Mod:
398 // *ModifyColumnFamiliesRequest_Modification_Create
399 // *ModifyColumnFamiliesRequest_Modification_Update
400 // *ModifyColumnFamiliesRequest_Modification_Drop
401 Mod isModifyColumnFamiliesRequest_Modification_Mod `protobuf_oneof:"mod"`
404 func (m *ModifyColumnFamiliesRequest_Modification) Reset() {
405 *m = ModifyColumnFamiliesRequest_Modification{}
407 func (m *ModifyColumnFamiliesRequest_Modification) String() string { return proto.CompactTextString(m) }
408 func (*ModifyColumnFamiliesRequest_Modification) ProtoMessage() {}
409 func (*ModifyColumnFamiliesRequest_Modification) Descriptor() ([]byte, []int) {
410 return fileDescriptor1, []int{6, 0}
413 type isModifyColumnFamiliesRequest_Modification_Mod interface {
414 isModifyColumnFamiliesRequest_Modification_Mod()
417 type ModifyColumnFamiliesRequest_Modification_Create struct {
418 Create *ColumnFamily `protobuf:"bytes,2,opt,name=create,oneof"`
420 type ModifyColumnFamiliesRequest_Modification_Update struct {
421 Update *ColumnFamily `protobuf:"bytes,3,opt,name=update,oneof"`
423 type ModifyColumnFamiliesRequest_Modification_Drop struct {
424 Drop bool `protobuf:"varint,4,opt,name=drop,oneof"`
427 func (*ModifyColumnFamiliesRequest_Modification_Create) isModifyColumnFamiliesRequest_Modification_Mod() {
429 func (*ModifyColumnFamiliesRequest_Modification_Update) isModifyColumnFamiliesRequest_Modification_Mod() {
431 func (*ModifyColumnFamiliesRequest_Modification_Drop) isModifyColumnFamiliesRequest_Modification_Mod() {
434 func (m *ModifyColumnFamiliesRequest_Modification) GetMod() isModifyColumnFamiliesRequest_Modification_Mod {
441 func (m *ModifyColumnFamiliesRequest_Modification) GetId() string {
448 func (m *ModifyColumnFamiliesRequest_Modification) GetCreate() *ColumnFamily {
449 if x, ok := m.GetMod().(*ModifyColumnFamiliesRequest_Modification_Create); ok {
455 func (m *ModifyColumnFamiliesRequest_Modification) GetUpdate() *ColumnFamily {
456 if x, ok := m.GetMod().(*ModifyColumnFamiliesRequest_Modification_Update); ok {
462 func (m *ModifyColumnFamiliesRequest_Modification) GetDrop() bool {
463 if x, ok := m.GetMod().(*ModifyColumnFamiliesRequest_Modification_Drop); ok {
469 // XXX_OneofFuncs is for the internal use of the proto package.
470 func (*ModifyColumnFamiliesRequest_Modification) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
471 return _ModifyColumnFamiliesRequest_Modification_OneofMarshaler, _ModifyColumnFamiliesRequest_Modification_OneofUnmarshaler, _ModifyColumnFamiliesRequest_Modification_OneofSizer, []interface{}{
472 (*ModifyColumnFamiliesRequest_Modification_Create)(nil),
473 (*ModifyColumnFamiliesRequest_Modification_Update)(nil),
474 (*ModifyColumnFamiliesRequest_Modification_Drop)(nil),
478 func _ModifyColumnFamiliesRequest_Modification_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
479 m := msg.(*ModifyColumnFamiliesRequest_Modification)
481 switch x := m.Mod.(type) {
482 case *ModifyColumnFamiliesRequest_Modification_Create:
483 b.EncodeVarint(2<<3 | proto.WireBytes)
484 if err := b.EncodeMessage(x.Create); err != nil {
487 case *ModifyColumnFamiliesRequest_Modification_Update:
488 b.EncodeVarint(3<<3 | proto.WireBytes)
489 if err := b.EncodeMessage(x.Update); err != nil {
492 case *ModifyColumnFamiliesRequest_Modification_Drop:
497 b.EncodeVarint(4<<3 | proto.WireVarint)
501 return fmt.Errorf("ModifyColumnFamiliesRequest_Modification.Mod has unexpected type %T", x)
506 func _ModifyColumnFamiliesRequest_Modification_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
507 m := msg.(*ModifyColumnFamiliesRequest_Modification)
509 case 2: // mod.create
510 if wire != proto.WireBytes {
511 return true, proto.ErrInternalBadWireType
513 msg := new(ColumnFamily)
514 err := b.DecodeMessage(msg)
515 m.Mod = &ModifyColumnFamiliesRequest_Modification_Create{msg}
517 case 3: // mod.update
518 if wire != proto.WireBytes {
519 return true, proto.ErrInternalBadWireType
521 msg := new(ColumnFamily)
522 err := b.DecodeMessage(msg)
523 m.Mod = &ModifyColumnFamiliesRequest_Modification_Update{msg}
526 if wire != proto.WireVarint {
527 return true, proto.ErrInternalBadWireType
529 x, err := b.DecodeVarint()
530 m.Mod = &ModifyColumnFamiliesRequest_Modification_Drop{x != 0}
537 func _ModifyColumnFamiliesRequest_Modification_OneofSizer(msg proto.Message) (n int) {
538 m := msg.(*ModifyColumnFamiliesRequest_Modification)
540 switch x := m.Mod.(type) {
541 case *ModifyColumnFamiliesRequest_Modification_Create:
542 s := proto.Size(x.Create)
543 n += proto.SizeVarint(2<<3 | proto.WireBytes)
544 n += proto.SizeVarint(uint64(s))
546 case *ModifyColumnFamiliesRequest_Modification_Update:
547 s := proto.Size(x.Update)
548 n += proto.SizeVarint(3<<3 | proto.WireBytes)
549 n += proto.SizeVarint(uint64(s))
551 case *ModifyColumnFamiliesRequest_Modification_Drop:
552 n += proto.SizeVarint(4<<3 | proto.WireVarint)
556 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
562 proto.RegisterType((*CreateTableRequest)(nil), "google.bigtable.admin.v2.CreateTableRequest")
563 proto.RegisterType((*CreateTableRequest_Split)(nil), "google.bigtable.admin.v2.CreateTableRequest.Split")
564 proto.RegisterType((*DropRowRangeRequest)(nil), "google.bigtable.admin.v2.DropRowRangeRequest")
565 proto.RegisterType((*ListTablesRequest)(nil), "google.bigtable.admin.v2.ListTablesRequest")
566 proto.RegisterType((*ListTablesResponse)(nil), "google.bigtable.admin.v2.ListTablesResponse")
567 proto.RegisterType((*GetTableRequest)(nil), "google.bigtable.admin.v2.GetTableRequest")
568 proto.RegisterType((*DeleteTableRequest)(nil), "google.bigtable.admin.v2.DeleteTableRequest")
569 proto.RegisterType((*ModifyColumnFamiliesRequest)(nil), "google.bigtable.admin.v2.ModifyColumnFamiliesRequest")
570 proto.RegisterType((*ModifyColumnFamiliesRequest_Modification)(nil), "google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification")
573 // Reference imports to suppress errors if they are not otherwise used.
574 var _ context.Context
575 var _ grpc.ClientConn
577 // This is a compile-time assertion to ensure that this generated file
578 // is compatible with the grpc package it is being compiled against.
579 const _ = grpc.SupportPackageIsVersion4
581 // Client API for BigtableTableAdmin service
583 type BigtableTableAdminClient interface {
584 // Creates a new table in the specified instance.
585 // The table can be created with a full set of initial column families,
586 // specified in the request.
587 CreateTable(ctx context.Context, in *CreateTableRequest, opts ...grpc.CallOption) (*Table, error)
588 // Lists all tables served from a specified instance.
589 ListTables(ctx context.Context, in *ListTablesRequest, opts ...grpc.CallOption) (*ListTablesResponse, error)
590 // Gets metadata information about the specified table.
591 GetTable(ctx context.Context, in *GetTableRequest, opts ...grpc.CallOption) (*Table, error)
592 // Permanently deletes a specified table and all of its data.
593 DeleteTable(ctx context.Context, in *DeleteTableRequest, opts ...grpc.CallOption) (*google_protobuf3.Empty, error)
594 // Atomically performs a series of column family modifications
595 // on the specified table.
596 ModifyColumnFamilies(ctx context.Context, in *ModifyColumnFamiliesRequest, opts ...grpc.CallOption) (*Table, error)
597 // Permanently drop/delete a row range from a specified table. The request can
598 // specify whether to delete all rows in a table, or only those that match a
599 // particular prefix.
600 DropRowRange(ctx context.Context, in *DropRowRangeRequest, opts ...grpc.CallOption) (*google_protobuf3.Empty, error)
603 type bigtableTableAdminClient struct {
607 func NewBigtableTableAdminClient(cc *grpc.ClientConn) BigtableTableAdminClient {
608 return &bigtableTableAdminClient{cc}
611 func (c *bigtableTableAdminClient) CreateTable(ctx context.Context, in *CreateTableRequest, opts ...grpc.CallOption) (*Table, error) {
613 err := grpc.Invoke(ctx, "/google.bigtable.admin.v2.BigtableTableAdmin/CreateTable", in, out, c.cc, opts...)
620 func (c *bigtableTableAdminClient) ListTables(ctx context.Context, in *ListTablesRequest, opts ...grpc.CallOption) (*ListTablesResponse, error) {
621 out := new(ListTablesResponse)
622 err := grpc.Invoke(ctx, "/google.bigtable.admin.v2.BigtableTableAdmin/ListTables", in, out, c.cc, opts...)
629 func (c *bigtableTableAdminClient) GetTable(ctx context.Context, in *GetTableRequest, opts ...grpc.CallOption) (*Table, error) {
631 err := grpc.Invoke(ctx, "/google.bigtable.admin.v2.BigtableTableAdmin/GetTable", in, out, c.cc, opts...)
638 func (c *bigtableTableAdminClient) DeleteTable(ctx context.Context, in *DeleteTableRequest, opts ...grpc.CallOption) (*google_protobuf3.Empty, error) {
639 out := new(google_protobuf3.Empty)
640 err := grpc.Invoke(ctx, "/google.bigtable.admin.v2.BigtableTableAdmin/DeleteTable", in, out, c.cc, opts...)
647 func (c *bigtableTableAdminClient) ModifyColumnFamilies(ctx context.Context, in *ModifyColumnFamiliesRequest, opts ...grpc.CallOption) (*Table, error) {
649 err := grpc.Invoke(ctx, "/google.bigtable.admin.v2.BigtableTableAdmin/ModifyColumnFamilies", in, out, c.cc, opts...)
656 func (c *bigtableTableAdminClient) DropRowRange(ctx context.Context, in *DropRowRangeRequest, opts ...grpc.CallOption) (*google_protobuf3.Empty, error) {
657 out := new(google_protobuf3.Empty)
658 err := grpc.Invoke(ctx, "/google.bigtable.admin.v2.BigtableTableAdmin/DropRowRange", in, out, c.cc, opts...)
665 // Server API for BigtableTableAdmin service
667 type BigtableTableAdminServer interface {
668 // Creates a new table in the specified instance.
669 // The table can be created with a full set of initial column families,
670 // specified in the request.
671 CreateTable(context.Context, *CreateTableRequest) (*Table, error)
672 // Lists all tables served from a specified instance.
673 ListTables(context.Context, *ListTablesRequest) (*ListTablesResponse, error)
674 // Gets metadata information about the specified table.
675 GetTable(context.Context, *GetTableRequest) (*Table, error)
676 // Permanently deletes a specified table and all of its data.
677 DeleteTable(context.Context, *DeleteTableRequest) (*google_protobuf3.Empty, error)
678 // Atomically performs a series of column family modifications
679 // on the specified table.
680 ModifyColumnFamilies(context.Context, *ModifyColumnFamiliesRequest) (*Table, error)
681 // Permanently drop/delete a row range from a specified table. The request can
682 // specify whether to delete all rows in a table, or only those that match a
683 // particular prefix.
684 DropRowRange(context.Context, *DropRowRangeRequest) (*google_protobuf3.Empty, error)
687 func RegisterBigtableTableAdminServer(s *grpc.Server, srv BigtableTableAdminServer) {
688 s.RegisterService(&_BigtableTableAdmin_serviceDesc, srv)
691 func _BigtableTableAdmin_CreateTable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
692 in := new(CreateTableRequest)
693 if err := dec(in); err != nil {
696 if interceptor == nil {
697 return srv.(BigtableTableAdminServer).CreateTable(ctx, in)
699 info := &grpc.UnaryServerInfo{
701 FullMethod: "/google.bigtable.admin.v2.BigtableTableAdmin/CreateTable",
703 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
704 return srv.(BigtableTableAdminServer).CreateTable(ctx, req.(*CreateTableRequest))
706 return interceptor(ctx, in, info, handler)
709 func _BigtableTableAdmin_ListTables_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
710 in := new(ListTablesRequest)
711 if err := dec(in); err != nil {
714 if interceptor == nil {
715 return srv.(BigtableTableAdminServer).ListTables(ctx, in)
717 info := &grpc.UnaryServerInfo{
719 FullMethod: "/google.bigtable.admin.v2.BigtableTableAdmin/ListTables",
721 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
722 return srv.(BigtableTableAdminServer).ListTables(ctx, req.(*ListTablesRequest))
724 return interceptor(ctx, in, info, handler)
727 func _BigtableTableAdmin_GetTable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
728 in := new(GetTableRequest)
729 if err := dec(in); err != nil {
732 if interceptor == nil {
733 return srv.(BigtableTableAdminServer).GetTable(ctx, in)
735 info := &grpc.UnaryServerInfo{
737 FullMethod: "/google.bigtable.admin.v2.BigtableTableAdmin/GetTable",
739 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
740 return srv.(BigtableTableAdminServer).GetTable(ctx, req.(*GetTableRequest))
742 return interceptor(ctx, in, info, handler)
745 func _BigtableTableAdmin_DeleteTable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
746 in := new(DeleteTableRequest)
747 if err := dec(in); err != nil {
750 if interceptor == nil {
751 return srv.(BigtableTableAdminServer).DeleteTable(ctx, in)
753 info := &grpc.UnaryServerInfo{
755 FullMethod: "/google.bigtable.admin.v2.BigtableTableAdmin/DeleteTable",
757 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
758 return srv.(BigtableTableAdminServer).DeleteTable(ctx, req.(*DeleteTableRequest))
760 return interceptor(ctx, in, info, handler)
763 func _BigtableTableAdmin_ModifyColumnFamilies_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
764 in := new(ModifyColumnFamiliesRequest)
765 if err := dec(in); err != nil {
768 if interceptor == nil {
769 return srv.(BigtableTableAdminServer).ModifyColumnFamilies(ctx, in)
771 info := &grpc.UnaryServerInfo{
773 FullMethod: "/google.bigtable.admin.v2.BigtableTableAdmin/ModifyColumnFamilies",
775 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
776 return srv.(BigtableTableAdminServer).ModifyColumnFamilies(ctx, req.(*ModifyColumnFamiliesRequest))
778 return interceptor(ctx, in, info, handler)
781 func _BigtableTableAdmin_DropRowRange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
782 in := new(DropRowRangeRequest)
783 if err := dec(in); err != nil {
786 if interceptor == nil {
787 return srv.(BigtableTableAdminServer).DropRowRange(ctx, in)
789 info := &grpc.UnaryServerInfo{
791 FullMethod: "/google.bigtable.admin.v2.BigtableTableAdmin/DropRowRange",
793 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
794 return srv.(BigtableTableAdminServer).DropRowRange(ctx, req.(*DropRowRangeRequest))
796 return interceptor(ctx, in, info, handler)
799 var _BigtableTableAdmin_serviceDesc = grpc.ServiceDesc{
800 ServiceName: "google.bigtable.admin.v2.BigtableTableAdmin",
801 HandlerType: (*BigtableTableAdminServer)(nil),
802 Methods: []grpc.MethodDesc{
804 MethodName: "CreateTable",
805 Handler: _BigtableTableAdmin_CreateTable_Handler,
808 MethodName: "ListTables",
809 Handler: _BigtableTableAdmin_ListTables_Handler,
812 MethodName: "GetTable",
813 Handler: _BigtableTableAdmin_GetTable_Handler,
816 MethodName: "DeleteTable",
817 Handler: _BigtableTableAdmin_DeleteTable_Handler,
820 MethodName: "ModifyColumnFamilies",
821 Handler: _BigtableTableAdmin_ModifyColumnFamilies_Handler,
824 MethodName: "DropRowRange",
825 Handler: _BigtableTableAdmin_DropRowRange_Handler,
828 Streams: []grpc.StreamDesc{},
829 Metadata: "google/bigtable/admin/v2/bigtable_table_admin.proto",
833 proto.RegisterFile("google/bigtable/admin/v2/bigtable_table_admin.proto", fileDescriptor1)
836 var fileDescriptor1 = []byte{
837 // 902 bytes of a gzipped FileDescriptorProto
838 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xdd, 0x6e, 0x1b, 0x45,
839 0x14, 0xce, 0xd8, 0x4e, 0x9a, 0x1c, 0x3b, 0x29, 0x0c, 0x55, 0x70, 0xb7, 0x85, 0x46, 0x4b, 0x15,
840 0x05, 0x13, 0x76, 0xa5, 0xad, 0xa2, 0xa2, 0xd0, 0x0a, 0xea, 0x86, 0x12, 0xfe, 0xa4, 0x68, 0xa9,
841 0x90, 0xe0, 0x66, 0x35, 0xf1, 0x4e, 0x96, 0x21, 0xbb, 0x33, 0xcb, 0xee, 0x38, 0x8e, 0x85, 0x7a,
842 0x83, 0x90, 0x90, 0xb8, 0xed, 0x55, 0xc5, 0x8b, 0x20, 0x6e, 0x78, 0x08, 0xae, 0xb9, 0xe3, 0x11,
843 0x78, 0x00, 0x34, 0x3f, 0x4e, 0x9c, 0x38, 0x6b, 0xd7, 0xbd, 0xb1, 0x66, 0xce, 0xcf, 0x77, 0xbe,
844 0x39, 0x67, 0xbe, 0x1d, 0xc3, 0xbd, 0x44, 0x88, 0x24, 0xa5, 0xfe, 0x21, 0x4b, 0x24, 0x39, 0x4c,
845 0xa9, 0x4f, 0xe2, 0x8c, 0x71, 0xff, 0x24, 0x38, 0xb3, 0x44, 0xe6, 0x57, 0xdb, 0xbd, 0xbc, 0x10,
846 0x52, 0xe0, 0xb6, 0x49, 0xf2, 0x46, 0x21, 0x9e, 0x71, 0x9e, 0x04, 0xce, 0x6d, 0x0b, 0x47, 0x72,
847 0xe6, 0x13, 0xce, 0x85, 0x24, 0x92, 0x09, 0x5e, 0x9a, 0x3c, 0xe7, 0x6e, 0x65, 0x31, 0x03, 0x63,
848 0xa2, 0xde, 0xb1, 0x51, 0xa9, 0xe0, 0x49, 0xd1, 0xe7, 0x9c, 0xf1, 0xc4, 0x17, 0x39, 0x2d, 0x2e,
849 0x40, 0xbd, 0x6d, 0x83, 0xf4, 0xee, 0xb0, 0x7f, 0xe4, 0xc7, 0x7d, 0x13, 0x60, 0xfd, 0xb7, 0x2e,
850 0xfb, 0x69, 0x96, 0xcb, 0xa1, 0x75, 0xde, 0xb9, 0xec, 0x94, 0x2c, 0xa3, 0xa5, 0x24, 0x59, 0x6e,
851 0x02, 0xdc, 0xff, 0x10, 0xe0, 0xc7, 0x05, 0x25, 0x92, 0x3e, 0x55, 0xc4, 0x42, 0xfa, 0x63, 0x9f,
852 0x96, 0x12, 0xaf, 0xc3, 0x52, 0x4e, 0x0a, 0xca, 0x65, 0x1b, 0x6d, 0xa0, 0xad, 0x95, 0xd0, 0xee,
853 0xf0, 0x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xf0, 0xfa, 0x97, 0xac, 0x94, 0xda, 0x5e, 0xce, 0x9a, 0xc8, 0x07,
865 0xd0, 0x38, 0x61, 0x74, 0xa0, 0x39, 0xad, 0x05, 0x77, 0x67, 0x74, 0xdd, 0xfb, 0x86, 0xd1, 0x41,
866 0xa8, 0x33, 0xf0, 0x5b, 0x00, 0x39, 0x49, 0x68, 0x24, 0xc5, 0x31, 0xe5, 0x9a, 0xdf, 0x4a, 0xb8,
867 0xa2, 0x2c, 0x4f, 0x95, 0xc1, 0xed, 0x03, 0x1e, 0x67, 0x51, 0xe6, 0x82, 0x97, 0x14, 0xdf, 0x57,
868 0x34, 0x95, 0xa5, 0x8d, 0xf4, 0x98, 0x66, 0x8e, 0xd9, 0x86, 0xe3, 0x4d, 0xb8, 0xce, 0xe9, 0xa9,
869 0x8c, 0xc6, 0x4a, 0x9a, 0x0b, 0xb4, 0xaa, 0xcc, 0x07, 0x67, 0x65, 0x23, 0xb8, 0xfe, 0x29, 0x95,
870 0x17, 0x2e, 0xe3, 0x55, 0x43, 0x79, 0xe5, 0x63, 0xbb, 0x5b, 0x80, 0xf7, 0xf4, 0x08, 0x66, 0xd5,
871 0x70, 0xff, 0xa9, 0xc1, 0xad, 0xaf, 0x44, 0xcc, 0x8e, 0x86, 0x8f, 0x45, 0xda, 0xcf, 0xf8, 0x13,
872 0x92, 0xb1, 0x94, 0x9d, 0x8f, 0xe4, 0x2a, 0x5e, 0xdf, 0xc3, 0x6a, 0xa6, 0x52, 0x58, 0xcf, 0x88,
873 0xb8, 0x5d, 0xd3, 0x6d, 0xea, 0x56, 0x13, 0x9c, 0x52, 0xc1, 0xf8, 0x2c, 0x54, 0x78, 0x11, 0xd8,
874 0xf9, 0x0b, 0x41, 0x6b, 0xdc, 0x8f, 0xd7, 0xa0, 0xc6, 0x62, 0x4b, 0xa6, 0xc6, 0x62, 0xfc, 0x31,
875 0x2c, 0xf5, 0xb4, 0x52, 0x74, 0x93, 0x9a, 0xc1, 0xe6, 0x14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0f, 0x93, 0x3f,
887 0x11, 0xdc, 0xb8, 0x4a, 0x5f, 0x78, 0xe7, 0x95, 0xf4, 0x38, 0xbb, 0x5d, 0x9f, 0x6b, 0x92, 0x7b,
888 0xee, 0x47, 0x2f, 0x4f, 0x72, 0x37, 0xbb, 0xa2, 0xa0, 0xba, 0x71, 0x2f, 0x10, 0xb4, 0xc6, 0xdf,
889 0x28, 0xfc, 0xfe, 0x94, 0x3e, 0x4e, 0xbe, 0x65, 0x95, 0x8d, 0xec, 0x6a, 0x8e, 0x0f, 0xdc, 0xfb,
890 0x73, 0x70, 0x8c, 0xc7, 0xf0, 0x77, 0x51, 0xa7, 0x7b, 0x0a, 0xb7, 0x7b, 0x22, 0xab, 0xe4, 0xd3,
891 0x7d, 0x73, 0x52, 0xd7, 0x07, 0x8a, 0xc5, 0x01, 0xfa, 0xee, 0xa1, 0x4d, 0x4a, 0x44, 0x4a, 0x78,
892 0xe2, 0x89, 0x22, 0xf1, 0x13, 0xca, 0x35, 0x47, 0xdf, 0xb8, 0x48, 0xce, 0xca, 0xc9, 0x7f, 0x4e,
893 0x1f, 0xea, 0xc5, 0xe1, 0x92, 0x8e, 0xbc, 0xf7, 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1c, 0x72,
894 0x5c, 0x82, 0xcf, 0x09, 0x00, 0x00,