Class StretchedClusterConfig.Builder (0.47.0)

public static final class StretchedClusterConfig.Builder extends GeneratedMessageV3.Builder<StretchedClusterConfig.Builder> implements StretchedClusterConfigOrBuilder

Configuration of a stretched cluster.

Protobuf type google.cloud.vmwareengine.v1.StretchedClusterConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StretchedClusterConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StretchedClusterConfig.Builder
Overrides

build()

public StretchedClusterConfig build()
Returns
Type Description
StretchedClusterConfig

buildPartial()

public StretchedClusterConfig buildPartial()
Returns
Type Description
StretchedClusterConfig

clear()

public StretchedClusterConfig.Builder clear()
Returns
Type Description
StretchedClusterConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public StretchedClusterConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
StretchedClusterConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public StretchedClusterConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
StretchedClusterConfig.Builder
Overrides

clearPreferredLocation()

public StretchedClusterConfig.Builder clearPreferredLocation()

Required. Zone that will remain operational when connection between the two zones is lost. Specify the resource name of a zone that belongs to the region of the private cloud. For example: projects/{project}/locations/europe-west3-a where {project} can either be a project number or a project ID.

string preferred_location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
StretchedClusterConfig.Builder

This builder for chaining.

clearSecondaryLocation()

public StretchedClusterConfig.Builder clearSecondaryLocation()

Required. Additional zone for a higher level of availability and load balancing. Specify the resource name of a zone that belongs to the region of the private cloud. For example: projects/{project}/locations/europe-west3-b where {project} can either be a project number or a project ID.

string secondary_location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
StretchedClusterConfig.Builder

This builder for chaining.

clone()

public StretchedClusterConfig.Builder clone()
Returns
Type Description
StretchedClusterConfig.Builder
Overrides

getDefaultInstanceForType()

public StretchedClusterConfig getDefaultInstanceForType()
Returns
Type Description
StretchedClusterConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPreferredLocation()

public String getPreferredLocation()

Required. Zone that will remain operational when connection between the two zones is lost. Specify the resource name of a zone that belongs to the region of the private cloud. For example: projects/{project}/locations/europe-west3-a where {project} can either be a project number or a project ID.

string preferred_location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The preferredLocation.

getPreferredLocationBytes()

public ByteString getPreferredLocationBytes()

Required. Zone that will remain operational when connection between the two zones is lost. Specify the resource name of a zone that belongs to the region of the private cloud. For example: projects/{project}/locations/europe-west3-a where {project} can either be a project number or a project ID.

string preferred_location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for preferredLocation.

getSecondaryLocation()

public String getSecondaryLocation()

Required. Additional zone for a higher level of availability and load balancing. Specify the resource name of a zone that belongs to the region of the private cloud. For example: projects/{project}/locations/europe-west3-b where {project} can either be a project number or a project ID.

string secondary_location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The secondaryLocation.

getSecondaryLocationBytes()

public ByteString getSecondaryLocationBytes()

Required. Additional zone for a higher level of availability and load balancing. Specify the resource name of a zone that belongs to the region of the private cloud. For example: projects/{project}/locations/europe-west3-b where {project} can either be a project number or a project ID.

string secondary_location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for secondaryLocation.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StretchedClusterConfig other)

public StretchedClusterConfig.Builder mergeFrom(StretchedClusterConfig other)
Parameter
Name Description
other StretchedClusterConfig
Returns
Type Description
StretchedClusterConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StretchedClusterConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StretchedClusterConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public StretchedClusterConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
StretchedClusterConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StretchedClusterConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StretchedClusterConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public StretchedClusterConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StretchedClusterConfig.Builder
Overrides

setPreferredLocation(String value)

public StretchedClusterConfig.Builder setPreferredLocation(String value)

Required. Zone that will remain operational when connection between the two zones is lost. Specify the resource name of a zone that belongs to the region of the private cloud. For example: projects/{project}/locations/europe-west3-a where {project} can either be a project number or a project ID.

string preferred_location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The preferredLocation to set.

Returns
Type Description
StretchedClusterConfig.Builder

This builder for chaining.

setPreferredLocationBytes(ByteString value)

public StretchedClusterConfig.Builder setPreferredLocationBytes(ByteString value)

Required. Zone that will remain operational when connection between the two zones is lost. Specify the resource name of a zone that belongs to the region of the private cloud. For example: projects/{project}/locations/europe-west3-a where {project} can either be a project number or a project ID.

string preferred_location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for preferredLocation to set.

Returns
Type Description
StretchedClusterConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public StretchedClusterConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
StretchedClusterConfig.Builder
Overrides

setSecondaryLocation(String value)

public StretchedClusterConfig.Builder setSecondaryLocation(String value)

Required. Additional zone for a higher level of availability and load balancing. Specify the resource name of a zone that belongs to the region of the private cloud. For example: projects/{project}/locations/europe-west3-b where {project} can either be a project number or a project ID.

string secondary_location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The secondaryLocation to set.

Returns
Type Description
StretchedClusterConfig.Builder

This builder for chaining.

setSecondaryLocationBytes(ByteString value)

public StretchedClusterConfig.Builder setSecondaryLocationBytes(ByteString value)

Required. Additional zone for a higher level of availability and load balancing. Specify the resource name of a zone that belongs to the region of the private cloud. For example: projects/{project}/locations/europe-west3-b where {project} can either be a project number or a project ID.

string secondary_location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for secondaryLocation to set.

Returns
Type Description
StretchedClusterConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final StretchedClusterConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StretchedClusterConfig.Builder
Overrides