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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.Output only.intOutput only.Output only.intOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setLocation(String value) Output only.setLocationBytes(com.google.protobuf.ByteString value) Output only.Output only.setPrimaryStateValue(int value) Output only.Output only.setReplicaStateValue(int value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Listing.BigQueryDatasetSource.Replica.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Listing.BigQueryDatasetSource.Replica.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Listing.BigQueryDatasetSource.Replica.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Listing.BigQueryDatasetSource.Replica.Builder>
-
mergeFrom
public Listing.BigQueryDatasetSource.Replica.Builder mergeFrom(Listing.BigQueryDatasetSource.Replica other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Listing.BigQueryDatasetSource.Replica.Builder>- Throws:
IOException
-
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:
getLocationin interfaceListing.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:
getLocationBytesin interfaceListing.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:
getReplicaStateValuein interfaceListing.BigQueryDatasetSource.ReplicaOrBuilder- Returns:
- The enum numeric value on the wire for replicaState.
-
setReplicaStateValue
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:
getReplicaStatein interfaceListing.BigQueryDatasetSource.ReplicaOrBuilder- Returns:
- The replicaState.
-
setReplicaState
public Listing.BigQueryDatasetSource.Replica.Builder setReplicaState(Listing.BigQueryDatasetSource.Replica.ReplicaState 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 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:
hasPrimaryStatein interfaceListing.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:
getPrimaryStateValuein interfaceListing.BigQueryDatasetSource.ReplicaOrBuilder- Returns:
- The enum numeric value on the wire for primaryState.
-
setPrimaryStateValue
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:
getPrimaryStatein interfaceListing.BigQueryDatasetSource.ReplicaOrBuilder- Returns:
- The primaryState.
-
setPrimaryState
public Listing.BigQueryDatasetSource.Replica.Builder setPrimaryState(Listing.BigQueryDatasetSource.Replica.PrimaryState 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 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.
-