123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286 |
- syntax = "proto3";
- package google.cloud.bigquery.storage.v1;
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/cloud/bigquery/storage/v1/arrow.proto";
- import "google/cloud/bigquery/storage/v1/avro.proto";
- import "google/cloud/bigquery/storage/v1/table.proto";
- import "google/protobuf/timestamp.proto";
- option csharp_namespace = "Google.Cloud.BigQuery.Storage.V1";
- option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/storage/v1;storage";
- option java_multiple_files = true;
- option java_outer_classname = "StreamProto";
- option java_package = "com.google.cloud.bigquery.storage.v1";
- option php_namespace = "Google\\Cloud\\BigQuery\\Storage\\V1";
- enum DataFormat {
-
- DATA_FORMAT_UNSPECIFIED = 0;
-
-
- AVRO = 1;
-
-
- ARROW = 2;
- }
- message ReadSession {
- option (google.api.resource) = {
- type: "bigquerystorage.googleapis.com/ReadSession"
- pattern: "projects/{project}/locations/{location}/sessions/{session}"
- };
-
- message TableModifiers {
-
- google.protobuf.Timestamp snapshot_time = 1;
- }
-
- message TableReadOptions {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- repeated string selected_fields = 1;
-
-
-
-
-
-
-
-
-
-
- string row_restriction = 2;
- oneof output_format_serialization_options {
-
- ArrowSerializationOptions arrow_serialization_options = 3 [(google.api.field_behavior) = OPTIONAL];
-
- AvroSerializationOptions avro_serialization_options = 4 [(google.api.field_behavior) = OPTIONAL];
- }
- }
-
-
- string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
- google.protobuf.Timestamp expire_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- DataFormat data_format = 3 [(google.api.field_behavior) = IMMUTABLE];
-
-
-
- oneof schema {
-
- AvroSchema avro_schema = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- ArrowSchema arrow_schema = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
-
-
- string table = 6 [
- (google.api.field_behavior) = IMMUTABLE,
- (google.api.resource_reference) = {
- type: "bigquery.googleapis.com/Table"
- }
- ];
-
- TableModifiers table_modifiers = 7 [(google.api.field_behavior) = OPTIONAL];
-
- TableReadOptions read_options = 8 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
-
- repeated ReadStream streams = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
- int64 estimated_total_bytes_scanned = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
-
-
-
- string trace_id = 13 [(google.api.field_behavior) = OPTIONAL];
- }
- message ReadStream {
- option (google.api.resource) = {
- type: "bigquerystorage.googleapis.com/ReadStream"
- pattern: "projects/{project}/locations/{location}/sessions/{session}/streams/{stream}"
- };
-
-
- string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- enum WriteStreamView {
-
- WRITE_STREAM_VIEW_UNSPECIFIED = 0;
-
-
-
- BASIC = 1;
-
-
-
- FULL = 2;
- }
- message WriteStream {
- option (google.api.resource) = {
- type: "bigquerystorage.googleapis.com/WriteStream"
- pattern: "projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}"
- };
-
- enum Type {
-
- TYPE_UNSPECIFIED = 0;
-
-
- COMMITTED = 1;
-
- PENDING = 2;
-
- BUFFERED = 3;
- }
-
- enum WriteMode {
-
- WRITE_MODE_UNSPECIFIED = 0;
-
-
- INSERT = 1;
- }
-
-
- string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- Type type = 2 [(google.api.field_behavior) = IMMUTABLE];
-
-
- google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
-
- google.protobuf.Timestamp commit_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
-
- TableSchema table_schema = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- WriteMode write_mode = 7 [(google.api.field_behavior) = IMMUTABLE];
-
-
-
- string location = 8 [(google.api.field_behavior) = IMMUTABLE];
- }
|