Class Listing.BigQueryDatasetSource.Replica

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

public static final class Listing.BigQueryDatasetSource.Replica extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • LOCATION_FIELD_NUMBER

      public static final int LOCATION_FIELD_NUMBER
      See Also:
    • REPLICA_STATE_FIELD_NUMBER

      public static final int REPLICA_STATE_FIELD_NUMBER
      See Also:
    • PRIMARY_STATE_FIELD_NUMBER

      public static final int PRIMARY_STATE_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Listing.BigQueryDatasetSource.Replica parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Listing.BigQueryDatasetSource.Replica parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Listing.BigQueryDatasetSource.Replica parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Listing.BigQueryDatasetSource.Replica parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Listing.BigQueryDatasetSource.Replica parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Listing.BigQueryDatasetSource.Replica parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Listing.BigQueryDatasetSource.Replica parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Listing.BigQueryDatasetSource.Replica parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Listing.BigQueryDatasetSource.Replica parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Listing.BigQueryDatasetSource.Replica parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Listing.BigQueryDatasetSource.Replica parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Listing.BigQueryDatasetSource.Replica parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Listing.BigQueryDatasetSource.Replica.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Listing.BigQueryDatasetSource.Replica getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Listing.BigQueryDatasetSource.Replica> parser()
    • getParserForType

      public com.google.protobuf.Parser<Listing.BigQueryDatasetSource.Replica> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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