Initial commit
This commit is contained in:
126
node_modules/google-proto-files/google/bigtable/admin/table/v1/bigtable_table_data.proto
generated
vendored
Normal file
126
node_modules/google-proto-files/google/bigtable/admin/table/v1/bigtable_table_data.proto
generated
vendored
Normal file
@@ -0,0 +1,126 @@
|
||||
// Copyright 2017 Google Inc.
|
||||
//
|
||||
// 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.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.bigtable.admin.table.v1;
|
||||
|
||||
import "google/longrunning/operations.proto";
|
||||
import "google/protobuf/duration.proto";
|
||||
|
||||
option go_package = "google.golang.org/genproto/googleapis/bigtable/admin/table/v1;table";
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "BigtableTableDataProto";
|
||||
option java_package = "com.google.bigtable.admin.table.v1";
|
||||
|
||||
|
||||
// A collection of user data indexed by row, column, and timestamp.
|
||||
// Each table is served using the resources of its parent cluster.
|
||||
message Table {
|
||||
enum TimestampGranularity {
|
||||
MILLIS = 0;
|
||||
}
|
||||
|
||||
// A unique identifier of the form
|
||||
// <cluster_name>/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*
|
||||
string name = 1;
|
||||
|
||||
// If this Table is in the process of being created, the Operation used to
|
||||
// track its progress. As long as this operation is present, the Table will
|
||||
// not accept any Table Admin or Read/Write requests.
|
||||
google.longrunning.Operation current_operation = 2;
|
||||
|
||||
// The column families configured for this table, mapped by column family id.
|
||||
map<string, ColumnFamily> column_families = 3;
|
||||
|
||||
// The granularity (e.g. MILLIS, MICROS) at which timestamps are stored in
|
||||
// this table. Timestamps not matching the granularity will be rejected.
|
||||
// Cannot be changed once the table is created.
|
||||
TimestampGranularity granularity = 4;
|
||||
}
|
||||
|
||||
// A set of columns within a table which share a common configuration.
|
||||
message ColumnFamily {
|
||||
// A unique identifier of the form <table_name>/columnFamilies/[-_.a-zA-Z0-9]+
|
||||
// The last segment is the same as the "name" field in
|
||||
// google.bigtable.v1.Family.
|
||||
string name = 1;
|
||||
|
||||
// Garbage collection expression specified by the following grammar:
|
||||
// GC = EXPR
|
||||
// | "" ;
|
||||
// EXPR = EXPR, "||", EXPR (* lowest precedence *)
|
||||
// | EXPR, "&&", EXPR
|
||||
// | "(", EXPR, ")" (* highest precedence *)
|
||||
// | PROP ;
|
||||
// PROP = "version() >", NUM32
|
||||
// | "age() >", NUM64, [ UNIT ] ;
|
||||
// NUM32 = non-zero-digit { digit } ; (* # NUM32 <= 2^32 - 1 *)
|
||||
// NUM64 = non-zero-digit { digit } ; (* # NUM64 <= 2^63 - 1 *)
|
||||
// UNIT = "d" | "h" | "m" (* d=days, h=hours, m=minutes, else micros *)
|
||||
// GC expressions can be up to 500 characters in length
|
||||
//
|
||||
// The different types of PROP are defined as follows:
|
||||
// version() - cell index, counting from most recent and starting at 1
|
||||
// age() - age of the cell (current time minus cell timestamp)
|
||||
//
|
||||
// Example: "version() > 3 || (age() > 3d && version() > 1)"
|
||||
// drop cells beyond the most recent three, and drop cells older than three
|
||||
// days unless they're the most recent cell in the row/column
|
||||
//
|
||||
// Garbage collection executes opportunistically in the background, and so
|
||||
// it's possible for reads to return a cell even if it matches the active GC
|
||||
// expression for its family.
|
||||
string gc_expression = 2;
|
||||
|
||||
// Garbage collection rule specified as a protobuf.
|
||||
// Supersedes `gc_expression`.
|
||||
// Must serialize to at most 500 bytes.
|
||||
//
|
||||
// NOTE: Garbage collection executes opportunistically in the background, and
|
||||
// so it's possible for reads to return a cell even if it matches the active
|
||||
// GC expression for its family.
|
||||
GcRule gc_rule = 3;
|
||||
}
|
||||
|
||||
// Rule for determining which cells to delete during garbage collection.
|
||||
message GcRule {
|
||||
// A GcRule which deletes cells matching all of the given rules.
|
||||
message Intersection {
|
||||
// Only delete cells which would be deleted by every element of `rules`.
|
||||
repeated GcRule rules = 1;
|
||||
}
|
||||
|
||||
// A GcRule which deletes cells matching any of the given rules.
|
||||
message Union {
|
||||
// Delete cells which would be deleted by any element of `rules`.
|
||||
repeated GcRule rules = 1;
|
||||
}
|
||||
|
||||
oneof rule {
|
||||
// Delete all cells in a column except the most recent N.
|
||||
int32 max_num_versions = 1;
|
||||
|
||||
// Delete cells in a column older than the given age.
|
||||
// Values must be at least one millisecond, and will be truncated to
|
||||
// microsecond granularity.
|
||||
google.protobuf.Duration max_age = 2;
|
||||
|
||||
// Delete cells that would be deleted by every nested rule.
|
||||
Intersection intersection = 3;
|
||||
|
||||
// Delete cells that would be deleted by any nested rule.
|
||||
Union union = 4;
|
||||
}
|
||||
}
|
||||
80
node_modules/google-proto-files/google/bigtable/admin/table/v1/bigtable_table_service.proto
generated
vendored
Normal file
80
node_modules/google-proto-files/google/bigtable/admin/table/v1/bigtable_table_service.proto
generated
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
// Copyright 2017 Google Inc.
|
||||
//
|
||||
// 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.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.bigtable.admin.table.v1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/bigtable/admin/table/v1/bigtable_table_data.proto";
|
||||
import "google/bigtable/admin/table/v1/bigtable_table_service_messages.proto";
|
||||
import "google/protobuf/empty.proto";
|
||||
|
||||
option go_package = "google.golang.org/genproto/googleapis/bigtable/admin/table/v1;table";
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "BigtableTableServicesProto";
|
||||
option java_package = "com.google.bigtable.admin.table.v1";
|
||||
|
||||
|
||||
// Service for creating, configuring, and deleting Cloud Bigtable tables.
|
||||
// Provides access to the table schemas only, not the data stored within the tables.
|
||||
service BigtableTableService {
|
||||
// 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.
|
||||
rpc CreateTable(CreateTableRequest) returns (Table) {
|
||||
option (google.api.http) = { post: "/v1/{name=projects/*/zones/*/clusters/*}/tables" body: "*" };
|
||||
}
|
||||
|
||||
// Lists the names of all tables served from a specified cluster.
|
||||
rpc ListTables(ListTablesRequest) returns (ListTablesResponse) {
|
||||
option (google.api.http) = { get: "/v1/{name=projects/*/zones/*/clusters/*}/tables" };
|
||||
}
|
||||
|
||||
// Gets the schema of the specified table, including its column families.
|
||||
rpc GetTable(GetTableRequest) returns (Table) {
|
||||
option (google.api.http) = { get: "/v1/{name=projects/*/zones/*/clusters/*/tables/*}" };
|
||||
}
|
||||
|
||||
// Permanently deletes a specified table and all of its data.
|
||||
rpc DeleteTable(DeleteTableRequest) returns (google.protobuf.Empty) {
|
||||
option (google.api.http) = { delete: "/v1/{name=projects/*/zones/*/clusters/*/tables/*}" };
|
||||
}
|
||||
|
||||
// Changes the name of a specified table.
|
||||
// Cannot be used to move tables between clusters, zones, or projects.
|
||||
rpc RenameTable(RenameTableRequest) returns (google.protobuf.Empty) {
|
||||
option (google.api.http) = { post: "/v1/{name=projects/*/zones/*/clusters/*/tables/*}:rename" body: "*" };
|
||||
}
|
||||
|
||||
// Creates a new column family within a specified table.
|
||||
rpc CreateColumnFamily(CreateColumnFamilyRequest) returns (ColumnFamily) {
|
||||
option (google.api.http) = { post: "/v1/{name=projects/*/zones/*/clusters/*/tables/*}/columnFamilies" body: "*" };
|
||||
}
|
||||
|
||||
// Changes the configuration of a specified column family.
|
||||
rpc UpdateColumnFamily(ColumnFamily) returns (ColumnFamily) {
|
||||
option (google.api.http) = { put: "/v1/{name=projects/*/zones/*/clusters/*/tables/*/columnFamilies/*}" body: "*" };
|
||||
}
|
||||
|
||||
// Permanently deletes a specified column family and all of its data.
|
||||
rpc DeleteColumnFamily(DeleteColumnFamilyRequest) returns (google.protobuf.Empty) {
|
||||
option (google.api.http) = { delete: "/v1/{name=projects/*/zones/*/clusters/*/tables/*/columnFamilies/*}" };
|
||||
}
|
||||
|
||||
// Delete all rows in a table corresponding to a particular prefix
|
||||
rpc BulkDeleteRows(BulkDeleteRowsRequest) returns (google.protobuf.Empty) {
|
||||
option (google.api.http) = { post: "/v1/{table_name=projects/*/zones/*/clusters/*/tables/*}:bulkDeleteRows" body: "*" };
|
||||
}
|
||||
}
|
||||
116
node_modules/google-proto-files/google/bigtable/admin/table/v1/bigtable_table_service_messages.proto
generated
vendored
Normal file
116
node_modules/google-proto-files/google/bigtable/admin/table/v1/bigtable_table_service_messages.proto
generated
vendored
Normal file
@@ -0,0 +1,116 @@
|
||||
// Copyright 2017 Google Inc.
|
||||
//
|
||||
// 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.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package google.bigtable.admin.table.v1;
|
||||
|
||||
import "google/bigtable/admin/table/v1/bigtable_table_data.proto";
|
||||
|
||||
option go_package = "google.golang.org/genproto/googleapis/bigtable/admin/table/v1;table";
|
||||
option java_multiple_files = true;
|
||||
option java_outer_classname = "BigtableTableServiceMessagesProto";
|
||||
option java_package = "com.google.bigtable.admin.table.v1";
|
||||
|
||||
|
||||
message CreateTableRequest {
|
||||
// The unique name of the cluster in which to create the new table.
|
||||
string name = 1;
|
||||
|
||||
// The name by which the new table should be referred to within the cluster,
|
||||
// e.g. "foobar" rather than "<cluster_name>/tables/foobar".
|
||||
string table_id = 2;
|
||||
|
||||
// The Table to create. The `name` field of the Table and all of its
|
||||
// ColumnFamilies must be left blank, and will be populated in the response.
|
||||
Table table = 3;
|
||||
|
||||
// The optional list of row keys that will be used to initially split the
|
||||
// table into several tablets (Tablets are similar to HBase regions).
|
||||
// Given two split keys, "s1" and "s2", three tablets will be created,
|
||||
// spanning the key ranges: [, s1), [s1, s2), [s2, ).
|
||||
//
|
||||
// Example:
|
||||
// * Row keys := ["a", "apple", "custom", "customer_1", "customer_2",
|
||||
// "other", "zz"]
|
||||
// * initial_split_keys := ["apple", "customer_1", "customer_2", "other"]
|
||||
// * Key assignment:
|
||||
// - Tablet 1 [, apple) => {"a"}.
|
||||
// - Tablet 2 [apple, customer_1) => {"apple", "custom"}.
|
||||
// - Tablet 3 [customer_1, customer_2) => {"customer_1"}.
|
||||
// - Tablet 4 [customer_2, other) => {"customer_2"}.
|
||||
// - Tablet 5 [other, ) => {"other", "zz"}.
|
||||
repeated string initial_split_keys = 4;
|
||||
}
|
||||
|
||||
message ListTablesRequest {
|
||||
// The unique name of the cluster for which tables should be listed.
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
message ListTablesResponse {
|
||||
// The tables present in the requested cluster.
|
||||
// At present, only the names of the tables are populated.
|
||||
repeated Table tables = 1;
|
||||
}
|
||||
|
||||
message GetTableRequest {
|
||||
// The unique name of the requested table.
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
message DeleteTableRequest {
|
||||
// The unique name of the table to be deleted.
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
message RenameTableRequest {
|
||||
// The current unique name of the table.
|
||||
string name = 1;
|
||||
|
||||
// The new name by which the table should be referred to within its containing
|
||||
// cluster, e.g. "foobar" rather than "<cluster_name>/tables/foobar".
|
||||
string new_id = 2;
|
||||
}
|
||||
|
||||
message CreateColumnFamilyRequest {
|
||||
// The unique name of the table in which to create the new column family.
|
||||
string name = 1;
|
||||
|
||||
// The name by which the new column family should be referred to within the
|
||||
// table, e.g. "foobar" rather than "<table_name>/columnFamilies/foobar".
|
||||
string column_family_id = 2;
|
||||
|
||||
// The column family to create. The `name` field must be left blank.
|
||||
ColumnFamily column_family = 3;
|
||||
}
|
||||
|
||||
message DeleteColumnFamilyRequest {
|
||||
// The unique name of the column family to be deleted.
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
message BulkDeleteRowsRequest {
|
||||
// The unique name of the table on which to perform the bulk delete
|
||||
string table_name = 1;
|
||||
|
||||
oneof target {
|
||||
// Delete all rows that start with this row key prefix. Prefix cannot be
|
||||
// zero length.
|
||||
bytes row_key_prefix = 2;
|
||||
|
||||
// Delete all rows in the table. Setting this to false is a no-op.
|
||||
bool delete_all_data_from_table = 3;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user