Class Zone.Builder (1.42.0)

public static final class Zone.Builder extends GeneratedMessageV3.Builder<Zone.Builder> implements ZoneOrBuilder

Represents a Zone resource. A zone is a deployment area. These deployment areas are subsets of a region. For example the zone us-east1-a is located in the us-east1 region. For more information, read Regions and Zones.

Protobuf type google.cloud.compute.v1.Zone

Implements

ZoneOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllAvailableCpuPlatforms(Iterable<String> values)

public Zone.Builder addAllAvailableCpuPlatforms(Iterable<String> values)

[Output Only] Available cpu/platform selections for the zone.

repeated string available_cpu_platforms = 175536531;

Parameter
NameDescription
valuesIterable<String>

The availableCpuPlatforms to add.

Returns
TypeDescription
Zone.Builder

This builder for chaining.

addAvailableCpuPlatforms(String value)

public Zone.Builder addAvailableCpuPlatforms(String value)

[Output Only] Available cpu/platform selections for the zone.

repeated string available_cpu_platforms = 175536531;

Parameter
NameDescription
valueString

The availableCpuPlatforms to add.

Returns
TypeDescription
Zone.Builder

This builder for chaining.

addAvailableCpuPlatformsBytes(ByteString value)

public Zone.Builder addAvailableCpuPlatformsBytes(ByteString value)

[Output Only] Available cpu/platform selections for the zone.

repeated string available_cpu_platforms = 175536531;

Parameter
NameDescription
valueByteString

The bytes of the availableCpuPlatforms to add.

Returns
TypeDescription
Zone.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Zone build()
Returns
TypeDescription
Zone

buildPartial()

public Zone buildPartial()
Returns
TypeDescription
Zone

clear()

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

clearAvailableCpuPlatforms()

public Zone.Builder clearAvailableCpuPlatforms()

[Output Only] Available cpu/platform selections for the zone.

repeated string available_cpu_platforms = 175536531;

Returns
TypeDescription
Zone.Builder

This builder for chaining.

clearCreationTimestamp()

public Zone.Builder clearCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
Zone.Builder

This builder for chaining.

clearDeprecated()

public Zone.Builder clearDeprecated()

[Output Only] The deprecation status associated with this zone.

optional .google.cloud.compute.v1.DeprecationStatus deprecated = 515138995;

Returns
TypeDescription
Zone.Builder

clearDescription()

public Zone.Builder clearDescription()

[Output Only] Textual description of the resource.

optional string description = 422937596;

Returns
TypeDescription
Zone.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public Zone.Builder clearId()

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
TypeDescription
Zone.Builder

This builder for chaining.

clearKind()

public Zone.Builder clearKind()

[Output Only] Type of the resource. Always compute#zone for zones.

optional string kind = 3292052;

Returns
TypeDescription
Zone.Builder

This builder for chaining.

clearName()

public Zone.Builder clearName()

[Output Only] Name of the resource.

optional string name = 3373707;

Returns
TypeDescription
Zone.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRegion()

public Zone.Builder clearRegion()

[Output Only] Full URL reference to the region which hosts the zone.

optional string region = 138946292;

Returns
TypeDescription
Zone.Builder

This builder for chaining.

public Zone.Builder clearSelfLink()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
TypeDescription
Zone.Builder

This builder for chaining.

clearStatus()

public Zone.Builder clearStatus()

[Output Only] Status of the zone, either UP or DOWN. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
TypeDescription
Zone.Builder

This builder for chaining.

clearSupportsPzs()

public Zone.Builder clearSupportsPzs()

[Output Only] Reserved for future use.

optional bool supports_pzs = 83983214;

Returns
TypeDescription
Zone.Builder

This builder for chaining.

clone()

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

getAvailableCpuPlatforms(int index)

public String getAvailableCpuPlatforms(int index)

[Output Only] Available cpu/platform selections for the zone.

repeated string available_cpu_platforms = 175536531;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The availableCpuPlatforms at the given index.

getAvailableCpuPlatformsBytes(int index)

public ByteString getAvailableCpuPlatformsBytes(int index)

[Output Only] Available cpu/platform selections for the zone.

repeated string available_cpu_platforms = 175536531;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the availableCpuPlatforms at the given index.

getAvailableCpuPlatformsCount()

public int getAvailableCpuPlatformsCount()

[Output Only] Available cpu/platform selections for the zone.

repeated string available_cpu_platforms = 175536531;

Returns
TypeDescription
int

The count of availableCpuPlatforms.

getAvailableCpuPlatformsList()

public ProtocolStringList getAvailableCpuPlatformsList()

[Output Only] Available cpu/platform selections for the zone.

repeated string available_cpu_platforms = 175536531;

Returns
TypeDescription
ProtocolStringList

A list containing the availableCpuPlatforms.

getCreationTimestamp()

public String getCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
String

The creationTimestamp.

getCreationTimestampBytes()

public ByteString getCreationTimestampBytes()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
ByteString

The bytes for creationTimestamp.

getDefaultInstanceForType()

public Zone getDefaultInstanceForType()
Returns
TypeDescription
Zone

getDeprecated()

public DeprecationStatus getDeprecated()

[Output Only] The deprecation status associated with this zone.

optional .google.cloud.compute.v1.DeprecationStatus deprecated = 515138995;

Returns
TypeDescription
DeprecationStatus

The deprecated.

getDeprecatedBuilder()

public DeprecationStatus.Builder getDeprecatedBuilder()

[Output Only] The deprecation status associated with this zone.

optional .google.cloud.compute.v1.DeprecationStatus deprecated = 515138995;

Returns
TypeDescription
DeprecationStatus.Builder

getDeprecatedOrBuilder()

public DeprecationStatusOrBuilder getDeprecatedOrBuilder()

[Output Only] The deprecation status associated with this zone.

optional .google.cloud.compute.v1.DeprecationStatus deprecated = 515138995;

Returns
TypeDescription
DeprecationStatusOrBuilder

getDescription()

public String getDescription()

[Output Only] Textual description of the resource.

optional string description = 422937596;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

[Output Only] Textual description of the resource.

optional string description = 422937596;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getId()

public long getId()

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
TypeDescription
long

The id.

getKind()

public String getKind()

[Output Only] Type of the resource. Always compute#zone for zones.

optional string kind = 3292052;

Returns
TypeDescription
String

The kind.

getKindBytes()

public ByteString getKindBytes()

[Output Only] Type of the resource. Always compute#zone for zones.

optional string kind = 3292052;

Returns
TypeDescription
ByteString

The bytes for kind.

getName()

public String getName()

[Output Only] Name of the resource.

optional string name = 3373707;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

[Output Only] Name of the resource.

optional string name = 3373707;

Returns
TypeDescription
ByteString

The bytes for name.

getRegion()

public String getRegion()

[Output Only] Full URL reference to the region which hosts the zone.

optional string region = 138946292;

Returns
TypeDescription
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

[Output Only] Full URL reference to the region which hosts the zone.

optional string region = 138946292;

Returns
TypeDescription
ByteString

The bytes for region.

public String getSelfLink()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
TypeDescription
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
TypeDescription
ByteString

The bytes for selfLink.

getStatus()

public String getStatus()

[Output Only] Status of the zone, either UP or DOWN. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
TypeDescription
String

The status.

getStatusBytes()

public ByteString getStatusBytes()

[Output Only] Status of the zone, either UP or DOWN. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
TypeDescription
ByteString

The bytes for status.

getSupportsPzs()

public boolean getSupportsPzs()

[Output Only] Reserved for future use.

optional bool supports_pzs = 83983214;

Returns
TypeDescription
boolean

The supportsPzs.

hasCreationTimestamp()

public boolean hasCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
boolean

Whether the creationTimestamp field is set.

hasDeprecated()

public boolean hasDeprecated()

[Output Only] The deprecation status associated with this zone.

optional .google.cloud.compute.v1.DeprecationStatus deprecated = 515138995;

Returns
TypeDescription
boolean

Whether the deprecated field is set.

hasDescription()

public boolean hasDescription()

[Output Only] Textual description of the resource.

optional string description = 422937596;

Returns
TypeDescription
boolean

Whether the description field is set.

hasId()

public boolean hasId()

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
TypeDescription
boolean

Whether the id field is set.

hasKind()

public boolean hasKind()

[Output Only] Type of the resource. Always compute#zone for zones.

optional string kind = 3292052;

Returns
TypeDescription
boolean

Whether the kind field is set.

hasName()

public boolean hasName()

[Output Only] Name of the resource.

optional string name = 3373707;

Returns
TypeDescription
boolean

Whether the name field is set.

hasRegion()

public boolean hasRegion()

[Output Only] Full URL reference to the region which hosts the zone.

optional string region = 138946292;

Returns
TypeDescription
boolean

Whether the region field is set.

public boolean hasSelfLink()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
TypeDescription
boolean

Whether the selfLink field is set.

hasStatus()

public boolean hasStatus()

[Output Only] Status of the zone, either UP or DOWN. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
TypeDescription
boolean

Whether the status field is set.

hasSupportsPzs()

public boolean hasSupportsPzs()

[Output Only] Reserved for future use.

optional bool supports_pzs = 83983214;

Returns
TypeDescription
boolean

Whether the supportsPzs field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDeprecated(DeprecationStatus value)

public Zone.Builder mergeDeprecated(DeprecationStatus value)

[Output Only] The deprecation status associated with this zone.

optional .google.cloud.compute.v1.DeprecationStatus deprecated = 515138995;

Parameter
NameDescription
valueDeprecationStatus
Returns
TypeDescription
Zone.Builder

mergeFrom(Zone other)

public Zone.Builder mergeFrom(Zone other)
Parameter
NameDescription
otherZone
Returns
TypeDescription
Zone.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAvailableCpuPlatforms(int index, String value)

public Zone.Builder setAvailableCpuPlatforms(int index, String value)

[Output Only] Available cpu/platform selections for the zone.

repeated string available_cpu_platforms = 175536531;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The availableCpuPlatforms to set.

Returns
TypeDescription
Zone.Builder

This builder for chaining.

setCreationTimestamp(String value)

public Zone.Builder setCreationTimestamp(String value)

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Parameter
NameDescription
valueString

The creationTimestamp to set.

Returns
TypeDescription
Zone.Builder

This builder for chaining.

setCreationTimestampBytes(ByteString value)

public Zone.Builder setCreationTimestampBytes(ByteString value)

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Parameter
NameDescription
valueByteString

The bytes for creationTimestamp to set.

Returns
TypeDescription
Zone.Builder

This builder for chaining.

setDeprecated(DeprecationStatus value)

public Zone.Builder setDeprecated(DeprecationStatus value)

[Output Only] The deprecation status associated with this zone.

optional .google.cloud.compute.v1.DeprecationStatus deprecated = 515138995;

Parameter
NameDescription
valueDeprecationStatus
Returns
TypeDescription
Zone.Builder

setDeprecated(DeprecationStatus.Builder builderForValue)

public Zone.Builder setDeprecated(DeprecationStatus.Builder builderForValue)

[Output Only] The deprecation status associated with this zone.

optional .google.cloud.compute.v1.DeprecationStatus deprecated = 515138995;

Parameter
NameDescription
builderForValueDeprecationStatus.Builder
Returns
TypeDescription
Zone.Builder

setDescription(String value)

public Zone.Builder setDescription(String value)

[Output Only] Textual description of the resource.

optional string description = 422937596;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Zone.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Zone.Builder setDescriptionBytes(ByteString value)

[Output Only] Textual description of the resource.

optional string description = 422937596;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Zone.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(long value)

public Zone.Builder setId(long value)

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Parameter
NameDescription
valuelong

The id to set.

Returns
TypeDescription
Zone.Builder

This builder for chaining.

setKind(String value)

public Zone.Builder setKind(String value)

[Output Only] Type of the resource. Always compute#zone for zones.

optional string kind = 3292052;

Parameter
NameDescription
valueString

The kind to set.

Returns
TypeDescription
Zone.Builder

This builder for chaining.

setKindBytes(ByteString value)

public Zone.Builder setKindBytes(ByteString value)

[Output Only] Type of the resource. Always compute#zone for zones.

optional string kind = 3292052;

Parameter
NameDescription
valueByteString

The bytes for kind to set.

Returns
TypeDescription
Zone.Builder

This builder for chaining.

setName(String value)

public Zone.Builder setName(String value)

[Output Only] Name of the resource.

optional string name = 3373707;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Zone.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Zone.Builder setNameBytes(ByteString value)

[Output Only] Name of the resource.

optional string name = 3373707;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Zone.Builder

This builder for chaining.

setRegion(String value)

public Zone.Builder setRegion(String value)

[Output Only] Full URL reference to the region which hosts the zone.

optional string region = 138946292;

Parameter
NameDescription
valueString

The region to set.

Returns
TypeDescription
Zone.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public Zone.Builder setRegionBytes(ByteString value)

[Output Only] Full URL reference to the region which hosts the zone.

optional string region = 138946292;

Parameter
NameDescription
valueByteString

The bytes for region to set.

Returns
TypeDescription
Zone.Builder

This builder for chaining.

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

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

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Parameter
NameDescription
valueString

The selfLink to set.

Returns
TypeDescription
Zone.Builder

This builder for chaining.

setSelfLinkBytes(ByteString value)

public Zone.Builder setSelfLinkBytes(ByteString value)

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Parameter
NameDescription
valueByteString

The bytes for selfLink to set.

Returns
TypeDescription
Zone.Builder

This builder for chaining.

setStatus(String value)

public Zone.Builder setStatus(String value)

[Output Only] Status of the zone, either UP or DOWN. Check the Status enum for the list of possible values.

optional string status = 181260274;

Parameter
NameDescription
valueString

The status to set.

Returns
TypeDescription
Zone.Builder

This builder for chaining.

setStatusBytes(ByteString value)

public Zone.Builder setStatusBytes(ByteString value)

[Output Only] Status of the zone, either UP or DOWN. Check the Status enum for the list of possible values.

optional string status = 181260274;

Parameter
NameDescription
valueByteString

The bytes for status to set.

Returns
TypeDescription
Zone.Builder

This builder for chaining.

setSupportsPzs(boolean value)

public Zone.Builder setSupportsPzs(boolean value)

[Output Only] Reserved for future use.

optional bool supports_pzs = 83983214;

Parameter
NameDescription
valueboolean

The supportsPzs to set.

Returns
TypeDescription
Zone.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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