Class SwitchActiveReplicaZoneRequest.Builder (0.34.0)

public static final class SwitchActiveReplicaZoneRequest.Builder extends GeneratedMessageV3.Builder<SwitchActiveReplicaZoneRequest.Builder> implements SwitchActiveReplicaZoneRequestOrBuilder

SwitchActiveReplicaZoneRequest switch the active/replica zone for a regional storagePool.

Protobuf type google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SwitchActiveReplicaZoneRequest build()
Returns
Type Description
SwitchActiveReplicaZoneRequest

buildPartial()

public SwitchActiveReplicaZoneRequest buildPartial()
Returns
Type Description
SwitchActiveReplicaZoneRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public SwitchActiveReplicaZoneRequest.Builder clearName()

Required. Name of the storage pool

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

Returns
Type Description
SwitchActiveReplicaZoneRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public SwitchActiveReplicaZoneRequest getDefaultInstanceForType()
Returns
Type Description
SwitchActiveReplicaZoneRequest

getDescriptorForType()

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

getName()

public String getName()

Required. Name of the storage pool

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the storage pool

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

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SwitchActiveReplicaZoneRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public SwitchActiveReplicaZoneRequest.Builder setName(String value)

Required. Name of the storage pool

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SwitchActiveReplicaZoneRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SwitchActiveReplicaZoneRequest.Builder setNameBytes(ByteString value)

Required. Name of the storage pool

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SwitchActiveReplicaZoneRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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