Class DistributionPolicyZoneConfiguration.Builder (1.39.0)

public static final class DistributionPolicyZoneConfiguration.Builder extends GeneratedMessageV3.Builder<DistributionPolicyZoneConfiguration.Builder> implements DistributionPolicyZoneConfigurationOrBuilder

Protobuf type google.cloud.compute.v1.DistributionPolicyZoneConfiguration

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DistributionPolicyZoneConfiguration build()
Returns
TypeDescription
DistributionPolicyZoneConfiguration

buildPartial()

public DistributionPolicyZoneConfiguration buildPartial()
Returns
TypeDescription
DistributionPolicyZoneConfiguration

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public DistributionPolicyZoneConfiguration.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DistributionPolicyZoneConfiguration.Builder
Overrides

clearZone()

public DistributionPolicyZoneConfiguration.Builder clearZone()

The URL of the zone. The zone must exist in the region where the managed instance group is located.

optional string zone = 3744684;

Returns
TypeDescription
DistributionPolicyZoneConfiguration.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public DistributionPolicyZoneConfiguration getDefaultInstanceForType()
Returns
TypeDescription
DistributionPolicyZoneConfiguration

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getZone()

public String getZone()

The URL of the zone. The zone must exist in the region where the managed instance group is located.

optional string zone = 3744684;

Returns
TypeDescription
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

The URL of the zone. The zone must exist in the region where the managed instance group is located.

optional string zone = 3744684;

Returns
TypeDescription
ByteString

The bytes for zone.

hasZone()

public boolean hasZone()

The URL of the zone. The zone must exist in the region where the managed instance group is located.

optional string zone = 3744684;

Returns
TypeDescription
boolean

Whether the zone field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DistributionPolicyZoneConfiguration other)

public DistributionPolicyZoneConfiguration.Builder mergeFrom(DistributionPolicyZoneConfiguration other)
Parameter
NameDescription
otherDistributionPolicyZoneConfiguration
Returns
TypeDescription
DistributionPolicyZoneConfiguration.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public DistributionPolicyZoneConfiguration.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DistributionPolicyZoneConfiguration.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setZone(String value)

public DistributionPolicyZoneConfiguration.Builder setZone(String value)

The URL of the zone. The zone must exist in the region where the managed instance group is located.

optional string zone = 3744684;

Parameter
NameDescription
valueString

The zone to set.

Returns
TypeDescription
DistributionPolicyZoneConfiguration.Builder

This builder for chaining.

setZoneBytes(ByteString value)

public DistributionPolicyZoneConfiguration.Builder setZoneBytes(ByteString value)

The URL of the zone. The zone must exist in the region where the managed instance group is located.

optional string zone = 3744684;

Parameter
NameDescription
valueByteString

The bytes for zone to set.

Returns
TypeDescription
DistributionPolicyZoneConfiguration.Builder

This builder for chaining.