public static final class Cluster.SecondaryConfig.Builder extends GeneratedMessageV3.Builder<Cluster.SecondaryConfig.Builder> implements Cluster.SecondaryConfigOrBuilder
Configuration information for the secondary cluster. This should be set if and only if the cluster is of type SECONDARY.
Protobuf type google.cloud.alloydb.v1alpha.Cluster.SecondaryConfig
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Cluster.SecondaryConfig.BuilderImplements
Cluster.SecondaryConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Cluster.SecondaryConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Cluster.SecondaryConfig.Builder |
build()
public Cluster.SecondaryConfig build()
Returns | |
---|---|
Type | Description |
Cluster.SecondaryConfig |
buildPartial()
public Cluster.SecondaryConfig buildPartial()
Returns | |
---|---|
Type | Description |
Cluster.SecondaryConfig |
clear()
public Cluster.SecondaryConfig.Builder clear()
Returns | |
---|---|
Type | Description |
Cluster.SecondaryConfig.Builder |
clearField(Descriptors.FieldDescriptor field)
public Cluster.SecondaryConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
Cluster.SecondaryConfig.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Cluster.SecondaryConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
Cluster.SecondaryConfig.Builder |
clearPrimaryClusterName()
public Cluster.SecondaryConfig.Builder clearPrimaryClusterName()
The name of the primary cluster name with the format:
- projects/{project}/locations/{region}/clusters/{cluster_id}
string primary_cluster_name = 1;
Returns | |
---|---|
Type | Description |
Cluster.SecondaryConfig.Builder |
This builder for chaining. |
clone()
public Cluster.SecondaryConfig.Builder clone()
Returns | |
---|---|
Type | Description |
Cluster.SecondaryConfig.Builder |
getDefaultInstanceForType()
public Cluster.SecondaryConfig getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Cluster.SecondaryConfig |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getPrimaryClusterName()
public String getPrimaryClusterName()
The name of the primary cluster name with the format:
- projects/{project}/locations/{region}/clusters/{cluster_id}
string primary_cluster_name = 1;
Returns | |
---|---|
Type | Description |
String |
The primaryClusterName. |
getPrimaryClusterNameBytes()
public ByteString getPrimaryClusterNameBytes()
The name of the primary cluster name with the format:
- projects/{project}/locations/{region}/clusters/{cluster_id}
string primary_cluster_name = 1;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for primaryClusterName. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(Cluster.SecondaryConfig other)
public Cluster.SecondaryConfig.Builder mergeFrom(Cluster.SecondaryConfig other)
Parameter | |
---|---|
Name | Description |
other |
Cluster.SecondaryConfig |
Returns | |
---|---|
Type | Description |
Cluster.SecondaryConfig.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Cluster.SecondaryConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Cluster.SecondaryConfig.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Cluster.SecondaryConfig.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
Cluster.SecondaryConfig.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Cluster.SecondaryConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Cluster.SecondaryConfig.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Cluster.SecondaryConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Cluster.SecondaryConfig.Builder |
setPrimaryClusterName(String value)
public Cluster.SecondaryConfig.Builder setPrimaryClusterName(String value)
The name of the primary cluster name with the format:
- projects/{project}/locations/{region}/clusters/{cluster_id}
string primary_cluster_name = 1;
Parameter | |
---|---|
Name | Description |
value |
String The primaryClusterName to set. |
Returns | |
---|---|
Type | Description |
Cluster.SecondaryConfig.Builder |
This builder for chaining. |
setPrimaryClusterNameBytes(ByteString value)
public Cluster.SecondaryConfig.Builder setPrimaryClusterNameBytes(ByteString value)
The name of the primary cluster name with the format:
- projects/{project}/locations/{region}/clusters/{cluster_id}
string primary_cluster_name = 1;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for primaryClusterName to set. |
Returns | |
---|---|
Type | Description |
Cluster.SecondaryConfig.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Cluster.SecondaryConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
Cluster.SecondaryConfig.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Cluster.SecondaryConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Cluster.SecondaryConfig.Builder |