Class LocationPolicyZoneConfiguration.Builder (1.101.0)

public static final class LocationPolicyZoneConfiguration.Builder extends GeneratedMessage.Builder<LocationPolicyZoneConfiguration.Builder> implements LocationPolicyZoneConfigurationOrBuilder

Protobuf type google.cloud.compute.v1.LocationPolicyZoneConfiguration

Static Methods

getDescriptor()

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

Methods

build()

public LocationPolicyZoneConfiguration build()
Returns
Type Description
LocationPolicyZoneConfiguration

buildPartial()

public LocationPolicyZoneConfiguration buildPartial()
Returns
Type Description
LocationPolicyZoneConfiguration

clear()

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

clearZone()

public LocationPolicyZoneConfiguration.Builder clearZone()

The URL of the zone. The zone must exist in the region where the request is called. Zones must be represented as valid partial URLs, such as zones/us-central1-a.

optional string zone = 3744684;

Returns
Type Description
LocationPolicyZoneConfiguration.Builder

This builder for chaining.

getDefaultInstanceForType()

public LocationPolicyZoneConfiguration getDefaultInstanceForType()
Returns
Type Description
LocationPolicyZoneConfiguration

getDescriptorForType()

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

getZone()

public String getZone()

The URL of the zone. The zone must exist in the region where the request is called. Zones must be represented as valid partial URLs, such as zones/us-central1-a.

optional string zone = 3744684;

Returns
Type Description
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

The URL of the zone. The zone must exist in the region where the request is called. Zones must be represented as valid partial URLs, such as zones/us-central1-a.

optional string zone = 3744684;

Returns
Type Description
ByteString

The bytes for zone.

hasZone()

public boolean hasZone()

The URL of the zone. The zone must exist in the region where the request is called. Zones must be represented as valid partial URLs, such as zones/us-central1-a.

optional string zone = 3744684;

Returns
Type Description
boolean

Whether the zone field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LocationPolicyZoneConfiguration other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setZone(String value)

public LocationPolicyZoneConfiguration.Builder setZone(String value)

The URL of the zone. The zone must exist in the region where the request is called. Zones must be represented as valid partial URLs, such as zones/us-central1-a.

optional string zone = 3744684;

Parameter
Name Description
value String

The zone to set.

Returns
Type Description
LocationPolicyZoneConfiguration.Builder

This builder for chaining.

setZoneBytes(ByteString value)

public LocationPolicyZoneConfiguration.Builder setZoneBytes(ByteString value)

The URL of the zone. The zone must exist in the region where the request is called. Zones must be represented as valid partial URLs, such as zones/us-central1-a.

optional string zone = 3744684;

Parameter
Name Description
value ByteString

The bytes for zone to set.

Returns
Type Description
LocationPolicyZoneConfiguration.Builder

This builder for chaining.