123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569 |
- syntax = "proto3";
- package google.bigtable.v2;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/api/routing.proto";
- import "google/bigtable/v2/data.proto";
- import "google/bigtable/v2/request_stats.proto";
- import "google/protobuf/wrappers.proto";
- import "google/rpc/status.proto";
- option csharp_namespace = "Google.Cloud.Bigtable.V2";
- option go_package = "google.golang.org/genproto/googleapis/bigtable/v2;bigtable";
- option java_multiple_files = true;
- option java_outer_classname = "BigtableProto";
- option java_package = "com.google.bigtable.v2";
- option php_namespace = "Google\\Cloud\\Bigtable\\V2";
- option ruby_package = "Google::Cloud::Bigtable::V2";
- option (google.api.resource_definition) = {
- type: "bigtableadmin.googleapis.com/Instance"
- pattern: "projects/{project}/instances/{instance}"
- };
- option (google.api.resource_definition) = {
- type: "bigtableadmin.googleapis.com/Table"
- pattern: "projects/{project}/instances/{instance}/tables/{table}"
- };
- service Bigtable {
- option (google.api.default_host) = "bigtable.googleapis.com";
- option (google.api.oauth_scopes) =
- "https://www.googleapis.com/auth/bigtable.data,"
- "https://www.googleapis.com/auth/bigtable.data.readonly,"
- "https://www.googleapis.com/auth/cloud-bigtable.data,"
- "https://www.googleapis.com/auth/cloud-bigtable.data.readonly,"
- "https://www.googleapis.com/auth/cloud-platform,"
- "https://www.googleapis.com/auth/cloud-platform.read-only";
-
-
-
-
-
- rpc ReadRows(ReadRowsRequest) returns (stream ReadRowsResponse) {
- option (google.api.http) = {
- post: "/v2/{table_name=projects/*/instances/*/tables/*}:readRows"
- body: "*"
- };
- option (google.api.routing) = {
- routing_parameters {
- field: "table_name"
- path_template: "{table_name=projects/*/instances/*/tables/*}"
- }
- routing_parameters {
- field: "app_profile_id"
- }
- };
- option (google.api.method_signature) = "table_name";
- option (google.api.method_signature) = "table_name,app_profile_id";
- }
-
-
-
-
- rpc SampleRowKeys(SampleRowKeysRequest) returns (stream SampleRowKeysResponse) {
- option (google.api.http) = {
- get: "/v2/{table_name=projects/*/instances/*/tables/*}:sampleRowKeys"
- };
- option (google.api.routing) = {
- routing_parameters {
- field: "table_name"
- path_template: "{table_name=projects/*/instances/*/tables/*}"
- }
- routing_parameters {
- field: "app_profile_id"
- }
- };
- option (google.api.method_signature) = "table_name";
- option (google.api.method_signature) = "table_name,app_profile_id";
- }
-
-
- rpc MutateRow(MutateRowRequest) returns (MutateRowResponse) {
- option (google.api.http) = {
- post: "/v2/{table_name=projects/*/instances/*/tables/*}:mutateRow"
- body: "*"
- };
- option (google.api.routing) = {
- routing_parameters {
- field: "table_name"
- path_template: "{table_name=projects/*/instances/*/tables/*}"
- }
- routing_parameters {
- field: "app_profile_id"
- }
- };
- option (google.api.method_signature) = "table_name,row_key,mutations";
- option (google.api.method_signature) = "table_name,row_key,mutations,app_profile_id";
- }
-
-
-
- rpc MutateRows(MutateRowsRequest) returns (stream MutateRowsResponse) {
- option (google.api.http) = {
- post: "/v2/{table_name=projects/*/instances/*/tables/*}:mutateRows"
- body: "*"
- };
- option (google.api.routing) = {
- routing_parameters {
- field: "table_name"
- path_template: "{table_name=projects/*/instances/*/tables/*}"
- }
- routing_parameters {
- field: "app_profile_id"
- }
- };
- option (google.api.method_signature) = "table_name,entries";
- option (google.api.method_signature) = "table_name,entries,app_profile_id";
- }
-
- rpc CheckAndMutateRow(CheckAndMutateRowRequest) returns (CheckAndMutateRowResponse) {
- option (google.api.http) = {
- post: "/v2/{table_name=projects/*/instances/*/tables/*}:checkAndMutateRow"
- body: "*"
- };
- option (google.api.routing) = {
- routing_parameters {
- field: "table_name"
- path_template: "{table_name=projects/*/instances/*/tables/*}"
- }
- routing_parameters {
- field: "app_profile_id"
- }
- };
- option (google.api.method_signature) = "table_name,row_key,predicate_filter,true_mutations,false_mutations";
- option (google.api.method_signature) = "table_name,row_key,predicate_filter,true_mutations,false_mutations,app_profile_id";
- }
-
-
- rpc PingAndWarm(PingAndWarmRequest) returns (PingAndWarmResponse) {
- option (google.api.http) = {
- post: "/v2/{name=projects/*/instances/*}:ping"
- body: "*"
- };
- option (google.api.routing) = {
- routing_parameters {
- field: "name"
- path_template: "{name=projects/*/instances/*}"
- }
- routing_parameters {
- field: "app_profile_id"
- }
- };
- option (google.api.method_signature) = "name";
- option (google.api.method_signature) = "name,app_profile_id";
- }
-
-
-
-
-
- rpc ReadModifyWriteRow(ReadModifyWriteRowRequest) returns (ReadModifyWriteRowResponse) {
- option (google.api.http) = {
- post: "/v2/{table_name=projects/*/instances/*/tables/*}:readModifyWriteRow"
- body: "*"
- };
- option (google.api.routing) = {
- routing_parameters {
- field: "table_name"
- path_template: "{table_name=projects/*/instances/*/tables/*}"
- }
- routing_parameters {
- field: "app_profile_id"
- }
- };
- option (google.api.method_signature) = "table_name,row_key,rules";
- option (google.api.method_signature) = "table_name,row_key,rules,app_profile_id";
- }
- }
- message ReadRowsRequest {
-
-
-
-
- enum RequestStatsView {
-
- REQUEST_STATS_VIEW_UNSPECIFIED = 0;
-
-
- REQUEST_STATS_NONE = 1;
-
-
- REQUEST_STATS_FULL = 2;
- }
-
-
-
- string table_name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "bigtableadmin.googleapis.com/Table"
- }
- ];
-
-
- string app_profile_id = 5;
-
-
- RowSet rows = 2;
-
-
- RowFilter filter = 3;
-
-
- int64 rows_limit = 4;
-
- RequestStatsView request_stats_view = 6;
- }
- message ReadRowsResponse {
-
-
- message CellChunk {
-
-
-
-
- bytes row_key = 1;
-
-
-
-
-
-
- google.protobuf.StringValue family_name = 2;
-
-
-
-
-
- google.protobuf.BytesValue qualifier = 3;
-
-
-
-
-
-
-
-
- int64 timestamp_micros = 4;
-
-
-
- repeated string labels = 5;
-
-
-
-
-
- bytes value = 6;
-
-
-
-
- int32 value_size = 7;
-
- oneof row_status {
-
-
- bool reset_row = 8;
-
-
- bool commit_row = 9;
- }
- }
-
- repeated CellChunk chunks = 1;
-
-
-
-
-
-
-
- bytes last_scanned_row_key = 2;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- RequestStats request_stats = 3;
- }
- message SampleRowKeysRequest {
-
-
-
- string table_name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "bigtableadmin.googleapis.com/Table"
- }
- ];
-
-
- string app_profile_id = 2;
- }
- message SampleRowKeysResponse {
-
-
-
-
-
-
-
- bytes row_key = 1;
-
-
-
-
- int64 offset_bytes = 2;
- }
- message MutateRowRequest {
-
-
-
- string table_name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "bigtableadmin.googleapis.com/Table"
- }
- ];
-
-
- string app_profile_id = 4;
-
- bytes row_key = 2 [(google.api.field_behavior) = REQUIRED];
-
-
-
- repeated Mutation mutations = 3 [(google.api.field_behavior) = REQUIRED];
- }
- message MutateRowResponse {
- }
- message MutateRowsRequest {
-
- message Entry {
-
- bytes row_key = 1;
-
-
-
-
- repeated Mutation mutations = 2 [(google.api.field_behavior) = REQUIRED];
- }
-
- string table_name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "bigtableadmin.googleapis.com/Table"
- }
- ];
-
-
- string app_profile_id = 3;
-
-
-
-
-
- repeated Entry entries = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message MutateRowsResponse {
-
- message Entry {
-
-
- int64 index = 1;
-
-
-
-
- google.rpc.Status status = 2;
- }
-
- repeated Entry entries = 1;
- }
- message CheckAndMutateRowRequest {
-
-
-
-
- string table_name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "bigtableadmin.googleapis.com/Table"
- }
- ];
-
-
- string app_profile_id = 7;
-
- bytes row_key = 2 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
- RowFilter predicate_filter = 6;
-
-
-
-
-
- repeated Mutation true_mutations = 4;
-
-
-
-
-
- repeated Mutation false_mutations = 5;
- }
- message CheckAndMutateRowResponse {
-
-
- bool predicate_matched = 1;
- }
- message PingAndWarmRequest {
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "bigtableadmin.googleapis.com/Instance"
- }
- ];
-
-
- string app_profile_id = 2;
- }
- message PingAndWarmResponse {}
- message ReadModifyWriteRowRequest {
-
-
-
-
- string table_name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "bigtableadmin.googleapis.com/Table"
- }
- ];
-
-
- string app_profile_id = 4;
-
- bytes row_key = 2 [(google.api.field_behavior) = REQUIRED];
-
-
-
- repeated ReadModifyWriteRule rules = 3 [(google.api.field_behavior) = REQUIRED];
- }
- message ReadModifyWriteRowResponse {
-
- Row row = 1;
- }
|