| // Code generated by protoc-gen-go. |
| // source: google.golang.org/cloud/bigtable/internal/table_service_proto/bigtable_table_service.proto |
| // DO NOT EDIT! |
| |
| package google_bigtable_admin_table_v1 |
| |
| import proto "github.com/golang/protobuf/proto" |
| import fmt "fmt" |
| import math "math" |
| import google_bigtable_admin_table_v11 "google.golang.org/cloud/bigtable/internal/table_data_proto" |
| import google_protobuf1 "github.com/golang/protobuf/ptypes/empty" |
| |
| import ( |
| context "golang.org/x/net/context" |
| grpc "google.golang.org/grpc" |
| ) |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ context.Context |
| var _ grpc.ClientConn |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the grpc package it is being compiled against. |
| const _ = grpc.SupportPackageIsVersion2 |
| |
| // Client API for BigtableTableService service |
| |
| type BigtableTableServiceClient interface { |
| // Creates a new table, to be served from a specified cluster. |
| // The table can be created with a full set of initial column families, |
| // specified in the request. |
| CreateTable(ctx context.Context, in *CreateTableRequest, opts ...grpc.CallOption) (*google_bigtable_admin_table_v11.Table, error) |
| // Lists the names of all tables served from a specified cluster. |
| ListTables(ctx context.Context, in *ListTablesRequest, opts ...grpc.CallOption) (*ListTablesResponse, error) |
| // Gets the schema of the specified table, including its column families. |
| GetTable(ctx context.Context, in *GetTableRequest, opts ...grpc.CallOption) (*google_bigtable_admin_table_v11.Table, error) |
| // Permanently deletes a specified table and all of its data. |
| DeleteTable(ctx context.Context, in *DeleteTableRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) |
| // Changes the name of a specified table. |
| // Cannot be used to move tables between clusters, zones, or projects. |
| RenameTable(ctx context.Context, in *RenameTableRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) |
| // Creates a new column family within a specified table. |
| CreateColumnFamily(ctx context.Context, in *CreateColumnFamilyRequest, opts ...grpc.CallOption) (*google_bigtable_admin_table_v11.ColumnFamily, error) |
| // Changes the configuration of a specified column family. |
| UpdateColumnFamily(ctx context.Context, in *google_bigtable_admin_table_v11.ColumnFamily, opts ...grpc.CallOption) (*google_bigtable_admin_table_v11.ColumnFamily, error) |
| // Permanently deletes a specified column family and all of its data. |
| DeleteColumnFamily(ctx context.Context, in *DeleteColumnFamilyRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) |
| // Delete all rows in a table corresponding to a particular prefix |
| BulkDeleteRows(ctx context.Context, in *BulkDeleteRowsRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) |
| } |
| |
| type bigtableTableServiceClient struct { |
| cc *grpc.ClientConn |
| } |
| |
| func NewBigtableTableServiceClient(cc *grpc.ClientConn) BigtableTableServiceClient { |
| return &bigtableTableServiceClient{cc} |
| } |
| |
| func (c *bigtableTableServiceClient) CreateTable(ctx context.Context, in *CreateTableRequest, opts ...grpc.CallOption) (*google_bigtable_admin_table_v11.Table, error) { |
| out := new(google_bigtable_admin_table_v11.Table) |
| err := grpc.Invoke(ctx, "/google.bigtable.admin.table.v1.BigtableTableService/CreateTable", in, out, c.cc, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *bigtableTableServiceClient) ListTables(ctx context.Context, in *ListTablesRequest, opts ...grpc.CallOption) (*ListTablesResponse, error) { |
| out := new(ListTablesResponse) |
| err := grpc.Invoke(ctx, "/google.bigtable.admin.table.v1.BigtableTableService/ListTables", in, out, c.cc, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *bigtableTableServiceClient) GetTable(ctx context.Context, in *GetTableRequest, opts ...grpc.CallOption) (*google_bigtable_admin_table_v11.Table, error) { |
| out := new(google_bigtable_admin_table_v11.Table) |
| err := grpc.Invoke(ctx, "/google.bigtable.admin.table.v1.BigtableTableService/GetTable", in, out, c.cc, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *bigtableTableServiceClient) DeleteTable(ctx context.Context, in *DeleteTableRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) { |
| out := new(google_protobuf1.Empty) |
| err := grpc.Invoke(ctx, "/google.bigtable.admin.table.v1.BigtableTableService/DeleteTable", in, out, c.cc, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *bigtableTableServiceClient) RenameTable(ctx context.Context, in *RenameTableRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) { |
| out := new(google_protobuf1.Empty) |
| err := grpc.Invoke(ctx, "/google.bigtable.admin.table.v1.BigtableTableService/RenameTable", in, out, c.cc, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *bigtableTableServiceClient) CreateColumnFamily(ctx context.Context, in *CreateColumnFamilyRequest, opts ...grpc.CallOption) (*google_bigtable_admin_table_v11.ColumnFamily, error) { |
| out := new(google_bigtable_admin_table_v11.ColumnFamily) |
| err := grpc.Invoke(ctx, "/google.bigtable.admin.table.v1.BigtableTableService/CreateColumnFamily", in, out, c.cc, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *bigtableTableServiceClient) UpdateColumnFamily(ctx context.Context, in *google_bigtable_admin_table_v11.ColumnFamily, opts ...grpc.CallOption) (*google_bigtable_admin_table_v11.ColumnFamily, error) { |
| out := new(google_bigtable_admin_table_v11.ColumnFamily) |
| err := grpc.Invoke(ctx, "/google.bigtable.admin.table.v1.BigtableTableService/UpdateColumnFamily", in, out, c.cc, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *bigtableTableServiceClient) DeleteColumnFamily(ctx context.Context, in *DeleteColumnFamilyRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) { |
| out := new(google_protobuf1.Empty) |
| err := grpc.Invoke(ctx, "/google.bigtable.admin.table.v1.BigtableTableService/DeleteColumnFamily", in, out, c.cc, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *bigtableTableServiceClient) BulkDeleteRows(ctx context.Context, in *BulkDeleteRowsRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) { |
| out := new(google_protobuf1.Empty) |
| err := grpc.Invoke(ctx, "/google.bigtable.admin.table.v1.BigtableTableService/BulkDeleteRows", in, out, c.cc, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| // Server API for BigtableTableService service |
| |
| type BigtableTableServiceServer interface { |
| // Creates a new table, to be served from a specified cluster. |
| // The table can be created with a full set of initial column families, |
| // specified in the request. |
| CreateTable(context.Context, *CreateTableRequest) (*google_bigtable_admin_table_v11.Table, error) |
| // Lists the names of all tables served from a specified cluster. |
| ListTables(context.Context, *ListTablesRequest) (*ListTablesResponse, error) |
| // Gets the schema of the specified table, including its column families. |
| GetTable(context.Context, *GetTableRequest) (*google_bigtable_admin_table_v11.Table, error) |
| // Permanently deletes a specified table and all of its data. |
| DeleteTable(context.Context, *DeleteTableRequest) (*google_protobuf1.Empty, error) |
| // Changes the name of a specified table. |
| // Cannot be used to move tables between clusters, zones, or projects. |
| RenameTable(context.Context, *RenameTableRequest) (*google_protobuf1.Empty, error) |
| // Creates a new column family within a specified table. |
| CreateColumnFamily(context.Context, *CreateColumnFamilyRequest) (*google_bigtable_admin_table_v11.ColumnFamily, error) |
| // Changes the configuration of a specified column family. |
| UpdateColumnFamily(context.Context, *google_bigtable_admin_table_v11.ColumnFamily) (*google_bigtable_admin_table_v11.ColumnFamily, error) |
| // Permanently deletes a specified column family and all of its data. |
| DeleteColumnFamily(context.Context, *DeleteColumnFamilyRequest) (*google_protobuf1.Empty, error) |
| // Delete all rows in a table corresponding to a particular prefix |
| BulkDeleteRows(context.Context, *BulkDeleteRowsRequest) (*google_protobuf1.Empty, error) |
| } |
| |
| func RegisterBigtableTableServiceServer(s *grpc.Server, srv BigtableTableServiceServer) { |
| s.RegisterService(&_BigtableTableService_serviceDesc, srv) |
| } |
| |
| func _BigtableTableService_CreateTable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(CreateTableRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(BigtableTableServiceServer).CreateTable(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.bigtable.admin.table.v1.BigtableTableService/CreateTable", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(BigtableTableServiceServer).CreateTable(ctx, req.(*CreateTableRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _BigtableTableService_ListTables_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(ListTablesRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(BigtableTableServiceServer).ListTables(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.bigtable.admin.table.v1.BigtableTableService/ListTables", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(BigtableTableServiceServer).ListTables(ctx, req.(*ListTablesRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _BigtableTableService_GetTable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(GetTableRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(BigtableTableServiceServer).GetTable(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.bigtable.admin.table.v1.BigtableTableService/GetTable", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(BigtableTableServiceServer).GetTable(ctx, req.(*GetTableRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _BigtableTableService_DeleteTable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(DeleteTableRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(BigtableTableServiceServer).DeleteTable(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.bigtable.admin.table.v1.BigtableTableService/DeleteTable", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(BigtableTableServiceServer).DeleteTable(ctx, req.(*DeleteTableRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _BigtableTableService_RenameTable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(RenameTableRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(BigtableTableServiceServer).RenameTable(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.bigtable.admin.table.v1.BigtableTableService/RenameTable", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(BigtableTableServiceServer).RenameTable(ctx, req.(*RenameTableRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _BigtableTableService_CreateColumnFamily_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(CreateColumnFamilyRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(BigtableTableServiceServer).CreateColumnFamily(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.bigtable.admin.table.v1.BigtableTableService/CreateColumnFamily", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(BigtableTableServiceServer).CreateColumnFamily(ctx, req.(*CreateColumnFamilyRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _BigtableTableService_UpdateColumnFamily_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(google_bigtable_admin_table_v11.ColumnFamily) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(BigtableTableServiceServer).UpdateColumnFamily(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.bigtable.admin.table.v1.BigtableTableService/UpdateColumnFamily", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(BigtableTableServiceServer).UpdateColumnFamily(ctx, req.(*google_bigtable_admin_table_v11.ColumnFamily)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _BigtableTableService_DeleteColumnFamily_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(DeleteColumnFamilyRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(BigtableTableServiceServer).DeleteColumnFamily(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.bigtable.admin.table.v1.BigtableTableService/DeleteColumnFamily", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(BigtableTableServiceServer).DeleteColumnFamily(ctx, req.(*DeleteColumnFamilyRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _BigtableTableService_BulkDeleteRows_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(BulkDeleteRowsRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(BigtableTableServiceServer).BulkDeleteRows(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.bigtable.admin.table.v1.BigtableTableService/BulkDeleteRows", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(BigtableTableServiceServer).BulkDeleteRows(ctx, req.(*BulkDeleteRowsRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| var _BigtableTableService_serviceDesc = grpc.ServiceDesc{ |
| ServiceName: "google.bigtable.admin.table.v1.BigtableTableService", |
| HandlerType: (*BigtableTableServiceServer)(nil), |
| Methods: []grpc.MethodDesc{ |
| { |
| MethodName: "CreateTable", |
| Handler: _BigtableTableService_CreateTable_Handler, |
| }, |
| { |
| MethodName: "ListTables", |
| Handler: _BigtableTableService_ListTables_Handler, |
| }, |
| { |
| MethodName: "GetTable", |
| Handler: _BigtableTableService_GetTable_Handler, |
| }, |
| { |
| MethodName: "DeleteTable", |
| Handler: _BigtableTableService_DeleteTable_Handler, |
| }, |
| { |
| MethodName: "RenameTable", |
| Handler: _BigtableTableService_RenameTable_Handler, |
| }, |
| { |
| MethodName: "CreateColumnFamily", |
| Handler: _BigtableTableService_CreateColumnFamily_Handler, |
| }, |
| { |
| MethodName: "UpdateColumnFamily", |
| Handler: _BigtableTableService_UpdateColumnFamily_Handler, |
| }, |
| { |
| MethodName: "DeleteColumnFamily", |
| Handler: _BigtableTableService_DeleteColumnFamily_Handler, |
| }, |
| { |
| MethodName: "BulkDeleteRows", |
| Handler: _BigtableTableService_BulkDeleteRows_Handler, |
| }, |
| }, |
| Streams: []grpc.StreamDesc{}, |
| } |
| |
| var fileDescriptor1 = []byte{ |
| // 378 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x94, 0x3f, 0x4f, 0xeb, 0x30, |
| 0x14, 0xc5, 0xfb, 0x96, 0xf7, 0x9e, 0x5c, 0xe9, 0x0d, 0x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