Class Listing.BigQueryDatasetSource.Replica.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Listing.BigQueryDatasetSource.Replica.Builder>
com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.Builder
All Implemented Interfaces:
Listing.BigQueryDatasetSource.ReplicaOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Listing.BigQueryDatasetSource.Replica

public static final class Listing.BigQueryDatasetSource.Replica.Builder extends com.google.protobuf.GeneratedMessage.Builder<Listing.BigQueryDatasetSource.Replica.Builder> implements Listing.BigQueryDatasetSource.ReplicaOrBuilder
 Represents the state of a replica of a shared dataset.
 It includes the geographic location of the replica and
 system-computed, output-only fields indicating its replication state and
 whether it is the primary replica.
 
Protobuf type google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica
  • 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<Listing.BigQueryDatasetSource.Replica.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<Listing.BigQueryDatasetSource.Replica.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<Listing.BigQueryDatasetSource.Replica.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Listing.BigQueryDatasetSource.Replica.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<Listing.BigQueryDatasetSource.Replica.Builder>
    • mergeFrom

    • isInitialized

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

      public Listing.BigQueryDatasetSource.Replica.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<Listing.BigQueryDatasetSource.Replica.Builder>
      Throws:
      IOException
    • getLocation

      public String getLocation()
       Output only. The geographic location where the replica resides. See
       [BigQuery locations](https://cloud.google.com/bigquery/docs/locations)
       for supported locations. Eg. "us-central1".
       
      string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLocation in interface Listing.BigQueryDatasetSource.ReplicaOrBuilder
      Returns:
      The location.
    • getLocationBytes

      public com.google.protobuf.ByteString getLocationBytes()
       Output only. The geographic location where the replica resides. See
       [BigQuery locations](https://cloud.google.com/bigquery/docs/locations)
       for supported locations. Eg. "us-central1".
       
      string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLocationBytes in interface Listing.BigQueryDatasetSource.ReplicaOrBuilder
      Returns:
      The bytes for location.
    • setLocation

       Output only. The geographic location where the replica resides. See
       [BigQuery locations](https://cloud.google.com/bigquery/docs/locations)
       for supported locations. Eg. "us-central1".
       
      string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The location to set.
      Returns:
      This builder for chaining.
    • clearLocation

       Output only. The geographic location where the replica resides. See
       [BigQuery locations](https://cloud.google.com/bigquery/docs/locations)
       for supported locations. Eg. "us-central1".
       
      string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setLocationBytes

      public Listing.BigQueryDatasetSource.Replica.Builder setLocationBytes(com.google.protobuf.ByteString value)
       Output only. The geographic location where the replica resides. See
       [BigQuery locations](https://cloud.google.com/bigquery/docs/locations)
       for supported locations. Eg. "us-central1".
       
      string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for location to set.
      Returns:
      This builder for chaining.
    • getReplicaStateValue

      public int getReplicaStateValue()
       Output only. Assigned by Analytics Hub based on real BigQuery
       replication state.
       
      .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.ReplicaState replica_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getReplicaStateValue in interface Listing.BigQueryDatasetSource.ReplicaOrBuilder
      Returns:
      The enum numeric value on the wire for replicaState.
    • setReplicaStateValue

      public Listing.BigQueryDatasetSource.Replica.Builder setReplicaStateValue(int value)
       Output only. Assigned by Analytics Hub based on real BigQuery
       replication state.
       
      .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.ReplicaState replica_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for replicaState to set.
      Returns:
      This builder for chaining.
    • getReplicaState

       Output only. Assigned by Analytics Hub based on real BigQuery
       replication state.
       
      .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.ReplicaState replica_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getReplicaState in interface Listing.BigQueryDatasetSource.ReplicaOrBuilder
      Returns:
      The replicaState.
    • setReplicaState

       Output only. Assigned by Analytics Hub based on real BigQuery
       replication state.
       
      .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.ReplicaState replica_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The replicaState to set.
      Returns:
      This builder for chaining.
    • clearReplicaState

       Output only. Assigned by Analytics Hub based on real BigQuery
       replication state.
       
      .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.ReplicaState replica_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasPrimaryState

      public boolean hasPrimaryState()
       Output only. Indicates that this replica is the primary replica.
       
      optional .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.PrimaryState primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasPrimaryState in interface Listing.BigQueryDatasetSource.ReplicaOrBuilder
      Returns:
      Whether the primaryState field is set.
    • getPrimaryStateValue

      public int getPrimaryStateValue()
       Output only. Indicates that this replica is the primary replica.
       
      optional .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.PrimaryState primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPrimaryStateValue in interface Listing.BigQueryDatasetSource.ReplicaOrBuilder
      Returns:
      The enum numeric value on the wire for primaryState.
    • setPrimaryStateValue

      public Listing.BigQueryDatasetSource.Replica.Builder setPrimaryStateValue(int value)
       Output only. Indicates that this replica is the primary replica.
       
      optional .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.PrimaryState primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for primaryState to set.
      Returns:
      This builder for chaining.
    • getPrimaryState

       Output only. Indicates that this replica is the primary replica.
       
      optional .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.PrimaryState primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPrimaryState in interface Listing.BigQueryDatasetSource.ReplicaOrBuilder
      Returns:
      The primaryState.
    • setPrimaryState

       Output only. Indicates that this replica is the primary replica.
       
      optional .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.PrimaryState primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The primaryState to set.
      Returns:
      This builder for chaining.
    • clearPrimaryState

       Output only. Indicates that this replica is the primary replica.
       
      optional .google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.Replica.PrimaryState primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.