protobuf.proto 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // Copyright 2022 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. syntax = "proto3";
  15. package google.cloud.bigquery.storage.v1;
  16. import "google/protobuf/descriptor.proto";
  17. option csharp_namespace = "Google.Cloud.BigQuery.Storage.V1";
  18. option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/storage/v1;storage";
  19. option java_multiple_files = true;
  20. option java_outer_classname = "ProtoBufProto";
  21. option java_package = "com.google.cloud.bigquery.storage.v1";
  22. option php_namespace = "Google\\Cloud\\BigQuery\\Storage\\V1";
  23. // ProtoSchema describes the schema of the serialized protocol buffer data rows.
  24. message ProtoSchema {
  25. // Descriptor for input message. The provided descriptor must be self
  26. // contained, such that data rows sent can be fully decoded using only the
  27. // single descriptor. For data rows that are compositions of multiple
  28. // independent messages, this means the descriptor may need to be transformed
  29. // to only use nested types:
  30. // https://developers.google.com/protocol-buffers/docs/proto#nested
  31. //
  32. // For additional information for how proto types and values map onto BigQuery
  33. // see: https://cloud.google.com/bigquery/docs/write-api#data_type_conversions
  34. google.protobuf.DescriptorProto proto_descriptor = 1;
  35. }
  36. message ProtoRows {
  37. // A sequence of rows serialized as a Protocol Buffer.
  38. //
  39. // See https://developers.google.com/protocol-buffers/docs/overview for more
  40. // information on deserializing this field.
  41. repeated bytes serialized_rows = 1;
  42. }