public static final class Listing.BigQueryDatasetSource.Replica.Builder extends GeneratedMessage.Builder<Listing.BigQueryDatasetSource.Replica.Builder> implements Listing.BigQueryDatasetSource.ReplicaOrBuilderRepresents 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Listing.BigQueryDatasetSource.Replica.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Listing.BigQueryDatasetSource.Replica build()| Returns | |
|---|---|
| Type | Description |
Listing.BigQueryDatasetSource.Replica |
|
buildPartial()
public Listing.BigQueryDatasetSource.Replica buildPartial()| Returns | |
|---|---|
| Type | Description |
Listing.BigQueryDatasetSource.Replica |
|
clear()
public Listing.BigQueryDatasetSource.Replica.Builder clear()| Returns | |
|---|---|
| Type | Description |
Listing.BigQueryDatasetSource.Replica.Builder |
|
clearLocation()
public Listing.BigQueryDatasetSource.Replica.Builder clearLocation()Output only. The geographic location where the replica resides. See BigQuery locations for supported locations. Eg. "us-central1".
string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Listing.BigQueryDatasetSource.Replica.Builder |
This builder for chaining. |
clearPrimaryState()
public Listing.BigQueryDatasetSource.Replica.Builder 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 | |
|---|---|
| Type | Description |
Listing.BigQueryDatasetSource.Replica.Builder |
This builder for chaining. |
clearReplicaState()
public Listing.BigQueryDatasetSource.Replica.Builder 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 | |
|---|---|
| Type | Description |
Listing.BigQueryDatasetSource.Replica.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Listing.BigQueryDatasetSource.Replica getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Listing.BigQueryDatasetSource.Replica |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLocation()
public String getLocation()Output only. The geographic location where the replica resides. See BigQuery locations for supported locations. Eg. "us-central1".
string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The location. |
getLocationBytes()
public ByteString getLocationBytes()Output only. The geographic location where the replica resides. See BigQuery locations for supported locations. Eg. "us-central1".
string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for location. |
getPrimaryState()
public Listing.BigQueryDatasetSource.Replica.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];
| Returns | |
|---|---|
| Type | Description |
Listing.BigQueryDatasetSource.Replica.PrimaryState |
The primaryState. |
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];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for primaryState. |
getReplicaState()
public Listing.BigQueryDatasetSource.Replica.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];
| Returns | |
|---|---|
| Type | Description |
Listing.BigQueryDatasetSource.Replica.ReplicaState |
The replicaState. |
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];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for 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];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the primaryState field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Listing.BigQueryDatasetSource.Replica other)
public Listing.BigQueryDatasetSource.Replica.Builder mergeFrom(Listing.BigQueryDatasetSource.Replica other)| Parameter | |
|---|---|
| Name | Description |
other |
Listing.BigQueryDatasetSource.Replica |
| Returns | |
|---|---|
| Type | Description |
Listing.BigQueryDatasetSource.Replica.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Listing.BigQueryDatasetSource.Replica.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Listing.BigQueryDatasetSource.Replica.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Listing.BigQueryDatasetSource.Replica.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Listing.BigQueryDatasetSource.Replica.Builder |
|
setLocation(String value)
public Listing.BigQueryDatasetSource.Replica.Builder setLocation(String value)Output only. The geographic location where the replica resides. See BigQuery locations for supported locations. Eg. "us-central1".
string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe location to set. |
| Returns | |
|---|---|
| Type | Description |
Listing.BigQueryDatasetSource.Replica.Builder |
This builder for chaining. |
setLocationBytes(ByteString value)
public Listing.BigQueryDatasetSource.Replica.Builder setLocationBytes(ByteString value)Output only. The geographic location where the replica resides. See BigQuery locations for supported locations. Eg. "us-central1".
string location = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for location to set. |
| Returns | |
|---|---|
| Type | Description |
Listing.BigQueryDatasetSource.Replica.Builder |
This builder for chaining. |
setPrimaryState(Listing.BigQueryDatasetSource.Replica.PrimaryState value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
Listing.BigQueryDatasetSource.Replica.PrimaryStateThe primaryState to set. |
| Returns | |
|---|---|
| Type | Description |
Listing.BigQueryDatasetSource.Replica.Builder |
This builder for chaining. |
setPrimaryStateValue(int value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for primaryState to set. |
| Returns | |
|---|---|
| Type | Description |
Listing.BigQueryDatasetSource.Replica.Builder |
This builder for chaining. |
setReplicaState(Listing.BigQueryDatasetSource.Replica.ReplicaState value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
Listing.BigQueryDatasetSource.Replica.ReplicaStateThe replicaState to set. |
| Returns | |
|---|---|
| Type | Description |
Listing.BigQueryDatasetSource.Replica.Builder |
This builder for chaining. |
setReplicaStateValue(int value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for replicaState to set. |
| Returns | |
|---|---|
| Type | Description |
Listing.BigQueryDatasetSource.Replica.Builder |
This builder for chaining. |