Class StretchedClusterConfig.Builder (0.29.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StretchedClusterConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StretchedClusterConfig.Builder
Overrides

build()

public StretchedClusterConfig build()
Returns
TypeDescription
StretchedClusterConfig

buildPartial()

public StretchedClusterConfig buildPartial()
Returns
TypeDescription
StretchedClusterConfig

clear()

public StretchedClusterConfig.Builder clear()
Returns
TypeDescription
StretchedClusterConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public StretchedClusterConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
StretchedClusterConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public StretchedClusterConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
StretchedClusterConfig.Builder

This builder for chaining.

clone()

public StretchedClusterConfig.Builder clone()
Returns
TypeDescription
StretchedClusterConfig.Builder
Overrides

getDefaultInstanceForType()

public StretchedClusterConfig getDefaultInstanceForType()
Returns
TypeDescription
StretchedClusterConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for secondaryLocation.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(StretchedClusterConfig other)

public StretchedClusterConfig.Builder mergeFrom(StretchedClusterConfig other)
Parameter
NameDescription
otherStretchedClusterConfig
Returns
TypeDescription
StretchedClusterConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StretchedClusterConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StretchedClusterConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public StretchedClusterConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
StretchedClusterConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StretchedClusterConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StretchedClusterConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public StretchedClusterConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The preferredLocation to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for preferredLocation to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The secondaryLocation to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for secondaryLocation to set.

Returns
TypeDescription
StretchedClusterConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final StretchedClusterConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StretchedClusterConfig.Builder
Overrides