Class BigQuery.DatasetOption

java.lang.Object
com.google.cloud.bigquery.BigQuery.DatasetOption
All Implemented Interfaces:
Serializable
Enclosing interface:
BigQuery

public static class BigQuery.DatasetOption extends Object
Class for specifying dataset get, create and update options.
See Also:
  • Method Details

    • fields

      public static BigQuery.DatasetOption fields(BigQuery.DatasetField... fields)
      Returns an option to specify the dataset's fields to be returned by the RPC call. If this option is not provided all dataset's fields are returned. DatasetOption.fields can be used to specify only the fields of interest. DatasetInfo.getDatasetId() is always returned, even if not specified.
    • accessPolicyVersion

      public static BigQuery.DatasetOption accessPolicyVersion(Integer accessPolicyVersion)
      Returns an option to specify the dataset's access policy version for conditional access. If this option is not provided the field remains unset and conditional access cannot be used. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for conditional access policy binding in datasets must specify version 3. Datasets with no conditional role bindings in access policy may specify any valid value or leave the field unset. This field will be mapped to IAM Policy version and will be used to fetch the policy from IAM. If unset or if 0 or 1 the value is used for a dataset with conditional bindings, access entry with condition will have role string appended by 'withcond' string followed by a hash value. Please refer to Troubleshooting withcond for more details.
    • datasetView

      public static BigQuery.DatasetOption datasetView(BigQuery.DatasetView datasetView)
      Returns an option to specify the view that determines which dataset information is returned. By default, metadata and ACL information are returned.
    • updateMode

      public static BigQuery.DatasetOption updateMode(BigQuery.DatasetUpdateMode updateMode)
      Returns an option to specify the fields of dataset that update/patch operation is targeting. By default, both metadata and ACL fields are updated.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object