Class StretchedClusterConfig.Builder (0.77.0)

public static final class StretchedClusterConfig.Builder extends GeneratedMessage.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

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

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.

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 GeneratedMessage.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

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.

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.