read_options.proto 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Copyright 2020 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.v1beta1;
  16. option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/storage/v1beta1;storage";
  17. option java_package = "com.google.cloud.bigquery.storage.v1beta1";
  18. // Options dictating how we read a table.
  19. message TableReadOptions {
  20. // Optional. Names of the fields in the table that should be read. If empty,
  21. // all fields will be read. If the specified field is a nested field, all the
  22. // sub-fields in the field will be selected. The output field order is
  23. // unrelated to the order of fields in selected_fields.
  24. repeated string selected_fields = 1;
  25. // Optional. SQL text filtering statement, similar to a WHERE clause in
  26. // a query. Aggregates are not supported.
  27. //
  28. // Examples: "int_field > 5"
  29. // "date_field = CAST('2014-9-27' as DATE)"
  30. // "nullable_field is not NULL"
  31. // "st_equals(geo_field, st_geofromtext("POINT(2, 2)"))"
  32. // "numeric_field BETWEEN 1.0 AND 5.0"
  33. string row_restriction = 2;
  34. }