Class Zone (1.16.0)

public final class Zone extends GeneratedMessageV3 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 Fields

AVAILABLE_CPU_PLATFORMS_FIELD_NUMBER

public static final int AVAILABLE_CPU_PLATFORMS_FIELD_NUMBER
Field Value
TypeDescription
int

CREATION_TIMESTAMP_FIELD_NUMBER

public static final int CREATION_TIMESTAMP_FIELD_NUMBER
Field Value
TypeDescription
int

DEPRECATED_FIELD_NUMBER

public static final int DEPRECATED_FIELD_NUMBER
Field Value
TypeDescription
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
TypeDescription
int

KIND_FIELD_NUMBER

public static final int KIND_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

REGION_FIELD_NUMBER

public static final int REGION_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int SELF_LINK_FIELD_NUMBER
Field Value
TypeDescription
int

STATUS_FIELD_NUMBER

public static final int STATUS_FIELD_NUMBER
Field Value
TypeDescription
int

SUPPORTS_PZS_FIELD_NUMBER

public static final int SUPPORTS_PZS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Zone getDefaultInstance()
Returns
TypeDescription
Zone

getDescriptor()

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

newBuilder()

public static Zone.Builder newBuilder()
Returns
TypeDescription
Zone.Builder

newBuilder(Zone prototype)

public static Zone.Builder newBuilder(Zone prototype)
Parameter
NameDescription
prototypeZone
Returns
TypeDescription
Zone.Builder

parseDelimitedFrom(InputStream input)

public static Zone parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Zone
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Zone parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Zone
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Zone parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Zone
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Zone parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Zone
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Zone parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Zone
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Zone parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Zone
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Zone parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Zone
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Zone parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Zone
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Zone parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Zone
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Zone parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Zone
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Zone parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Zone
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Zone parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Zone
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Zone> parser()
Returns
TypeDescription
Parser<Zone>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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.

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.

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.

getParserForType()

public Parser<Zone> getParserForType()
Returns
TypeDescription
Parser<Zone>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Zone.Builder newBuilderForType()
Returns
TypeDescription
Zone.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Zone.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Zone.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Zone.Builder toBuilder()
Returns
TypeDescription
Zone.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException