Class BigQueryTableSpec.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BigQueryTableSpec.Builder>
com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.Builder
All Implemented Interfaces:
BigQueryTableSpecOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BigQueryTableSpec

public static final class BigQueryTableSpec.Builder extends com.google.protobuf.GeneratedMessage.Builder<BigQueryTableSpec.Builder> implements BigQueryTableSpecOrBuilder
 Describes a BigQuery table.
 
Protobuf type google.cloud.datacatalog.v1beta1.BigQueryTableSpec
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<BigQueryTableSpec.Builder>
    • clear

      public BigQueryTableSpec.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<BigQueryTableSpec.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<BigQueryTableSpec.Builder>
    • getDefaultInstanceForType

      public BigQueryTableSpec getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public BigQueryTableSpec build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public BigQueryTableSpec buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public BigQueryTableSpec.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BigQueryTableSpec.Builder>
    • mergeFrom

      public BigQueryTableSpec.Builder mergeFrom(BigQueryTableSpec other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<BigQueryTableSpec.Builder>
    • mergeFrom

      public BigQueryTableSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BigQueryTableSpec.Builder>
      Throws:
      IOException
    • getTypeSpecCase

      public BigQueryTableSpec.TypeSpecCase getTypeSpecCase()
      Specified by:
      getTypeSpecCase in interface BigQueryTableSpecOrBuilder
    • clearTypeSpec

      public BigQueryTableSpec.Builder clearTypeSpec()
    • getTableSourceTypeValue

      public int getTableSourceTypeValue()
       Output only. The table source type.
       
      .google.cloud.datacatalog.v1beta1.TableSourceType table_source_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTableSourceTypeValue in interface BigQueryTableSpecOrBuilder
      Returns:
      The enum numeric value on the wire for tableSourceType.
    • setTableSourceTypeValue

      public BigQueryTableSpec.Builder setTableSourceTypeValue(int value)
       Output only. The table source type.
       
      .google.cloud.datacatalog.v1beta1.TableSourceType table_source_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for tableSourceType to set.
      Returns:
      This builder for chaining.
    • getTableSourceType

      public TableSourceType getTableSourceType()
       Output only. The table source type.
       
      .google.cloud.datacatalog.v1beta1.TableSourceType table_source_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTableSourceType in interface BigQueryTableSpecOrBuilder
      Returns:
      The tableSourceType.
    • setTableSourceType

      public BigQueryTableSpec.Builder setTableSourceType(TableSourceType value)
       Output only. The table source type.
       
      .google.cloud.datacatalog.v1beta1.TableSourceType table_source_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The tableSourceType to set.
      Returns:
      This builder for chaining.
    • clearTableSourceType

      public BigQueryTableSpec.Builder clearTableSourceType()
       Output only. The table source type.
       
      .google.cloud.datacatalog.v1beta1.TableSourceType table_source_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasViewSpec

      public boolean hasViewSpec()
       Table view specification. This field should only be populated if
       `table_source_type` is `BIGQUERY_VIEW`.
       
      .google.cloud.datacatalog.v1beta1.ViewSpec view_spec = 2;
      Specified by:
      hasViewSpec in interface BigQueryTableSpecOrBuilder
      Returns:
      Whether the viewSpec field is set.
    • getViewSpec

      public ViewSpec getViewSpec()
       Table view specification. This field should only be populated if
       `table_source_type` is `BIGQUERY_VIEW`.
       
      .google.cloud.datacatalog.v1beta1.ViewSpec view_spec = 2;
      Specified by:
      getViewSpec in interface BigQueryTableSpecOrBuilder
      Returns:
      The viewSpec.
    • setViewSpec

      public BigQueryTableSpec.Builder setViewSpec(ViewSpec value)
       Table view specification. This field should only be populated if
       `table_source_type` is `BIGQUERY_VIEW`.
       
      .google.cloud.datacatalog.v1beta1.ViewSpec view_spec = 2;
    • setViewSpec

      public BigQueryTableSpec.Builder setViewSpec(ViewSpec.Builder builderForValue)
       Table view specification. This field should only be populated if
       `table_source_type` is `BIGQUERY_VIEW`.
       
      .google.cloud.datacatalog.v1beta1.ViewSpec view_spec = 2;
    • mergeViewSpec

      public BigQueryTableSpec.Builder mergeViewSpec(ViewSpec value)
       Table view specification. This field should only be populated if
       `table_source_type` is `BIGQUERY_VIEW`.
       
      .google.cloud.datacatalog.v1beta1.ViewSpec view_spec = 2;
    • clearViewSpec

      public BigQueryTableSpec.Builder clearViewSpec()
       Table view specification. This field should only be populated if
       `table_source_type` is `BIGQUERY_VIEW`.
       
      .google.cloud.datacatalog.v1beta1.ViewSpec view_spec = 2;
    • getViewSpecBuilder

      public ViewSpec.Builder getViewSpecBuilder()
       Table view specification. This field should only be populated if
       `table_source_type` is `BIGQUERY_VIEW`.
       
      .google.cloud.datacatalog.v1beta1.ViewSpec view_spec = 2;
    • getViewSpecOrBuilder

      public ViewSpecOrBuilder getViewSpecOrBuilder()
       Table view specification. This field should only be populated if
       `table_source_type` is `BIGQUERY_VIEW`.
       
      .google.cloud.datacatalog.v1beta1.ViewSpec view_spec = 2;
      Specified by:
      getViewSpecOrBuilder in interface BigQueryTableSpecOrBuilder
    • hasTableSpec

      public boolean hasTableSpec()
       Spec of a BigQuery table. This field should only be populated if
       `table_source_type` is `BIGQUERY_TABLE`.
       
      .google.cloud.datacatalog.v1beta1.TableSpec table_spec = 3;
      Specified by:
      hasTableSpec in interface BigQueryTableSpecOrBuilder
      Returns:
      Whether the tableSpec field is set.
    • getTableSpec

      public TableSpec getTableSpec()
       Spec of a BigQuery table. This field should only be populated if
       `table_source_type` is `BIGQUERY_TABLE`.
       
      .google.cloud.datacatalog.v1beta1.TableSpec table_spec = 3;
      Specified by:
      getTableSpec in interface BigQueryTableSpecOrBuilder
      Returns:
      The tableSpec.
    • setTableSpec

      public BigQueryTableSpec.Builder setTableSpec(TableSpec value)
       Spec of a BigQuery table. This field should only be populated if
       `table_source_type` is `BIGQUERY_TABLE`.
       
      .google.cloud.datacatalog.v1beta1.TableSpec table_spec = 3;
    • setTableSpec

      public BigQueryTableSpec.Builder setTableSpec(TableSpec.Builder builderForValue)
       Spec of a BigQuery table. This field should only be populated if
       `table_source_type` is `BIGQUERY_TABLE`.
       
      .google.cloud.datacatalog.v1beta1.TableSpec table_spec = 3;
    • mergeTableSpec

      public BigQueryTableSpec.Builder mergeTableSpec(TableSpec value)
       Spec of a BigQuery table. This field should only be populated if
       `table_source_type` is `BIGQUERY_TABLE`.
       
      .google.cloud.datacatalog.v1beta1.TableSpec table_spec = 3;
    • clearTableSpec

      public BigQueryTableSpec.Builder clearTableSpec()
       Spec of a BigQuery table. This field should only be populated if
       `table_source_type` is `BIGQUERY_TABLE`.
       
      .google.cloud.datacatalog.v1beta1.TableSpec table_spec = 3;
    • getTableSpecBuilder

      public TableSpec.Builder getTableSpecBuilder()
       Spec of a BigQuery table. This field should only be populated if
       `table_source_type` is `BIGQUERY_TABLE`.
       
      .google.cloud.datacatalog.v1beta1.TableSpec table_spec = 3;
    • getTableSpecOrBuilder

      public TableSpecOrBuilder getTableSpecOrBuilder()
       Spec of a BigQuery table. This field should only be populated if
       `table_source_type` is `BIGQUERY_TABLE`.
       
      .google.cloud.datacatalog.v1beta1.TableSpec table_spec = 3;
      Specified by:
      getTableSpecOrBuilder in interface BigQueryTableSpecOrBuilder