xref: /aosp_15_r20/external/googleapis/google/cloud/bigquery/storage/v1/protobuf.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1// Copyright 2023 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15syntax = "proto3";
16
17package google.cloud.bigquery.storage.v1;
18
19import "google/protobuf/descriptor.proto";
20
21option csharp_namespace = "Google.Cloud.BigQuery.Storage.V1";
22option go_package = "cloud.google.com/go/bigquery/storage/apiv1/storagepb;storagepb";
23option java_multiple_files = true;
24option java_outer_classname = "ProtoBufProto";
25option java_package = "com.google.cloud.bigquery.storage.v1";
26option php_namespace = "Google\\Cloud\\BigQuery\\Storage\\V1";
27
28// ProtoSchema describes the schema of the serialized protocol buffer data rows.
29message ProtoSchema {
30  // Descriptor for input message.  The provided descriptor must be self
31  // contained, such that data rows sent can be fully decoded using only the
32  // single descriptor.  For data rows that are compositions of multiple
33  // independent messages, this means the descriptor may need to be transformed
34  // to only use nested types:
35  // https://developers.google.com/protocol-buffers/docs/proto#nested
36  //
37  // For additional information for how proto types and values map onto BigQuery
38  // see: https://cloud.google.com/bigquery/docs/write-api#data_type_conversions
39  google.protobuf.DescriptorProto proto_descriptor = 1;
40}
41
42message ProtoRows {
43  // A sequence of rows serialized as a Protocol Buffer.
44  //
45  // See https://developers.google.com/protocol-buffers/docs/overview for more
46  // information on deserializing this field.
47  repeated bytes serialized_rows = 1;
48}
49