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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int AVAILABLE_CPU_PLATFORMS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
CREATION_TIMESTAMP_FIELD_NUMBER
public static final int CREATION_TIMESTAMP_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
DEPRECATED_FIELD_NUMBER
public static final int DEPRECATED_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
REGION_FIELD_NUMBER
public static final int REGION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
SELF_LINK_FIELD_NUMBER
public static final int SELF_LINK_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
SUPPORTS_PZS_FIELD_NUMBER
public static final int SUPPORTS_PZS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static Zone getDefaultInstance()
Returns |
---|
Type | Description |
Zone | |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Zone.Builder newBuilder()
newBuilder(Zone prototype)
public static Zone.Builder newBuilder(Zone prototype)
Parameter |
---|
Name | Description |
prototype | Zone
|
public static Zone parseDelimitedFrom(InputStream input)
Returns |
---|
Type | Description |
Zone | |
public static Zone parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
---|
Type | Description |
Zone | |
parseFrom(byte[] data)
public static Zone parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
Returns |
---|
Type | Description |
Zone | |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Zone parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Returns |
---|
Type | Description |
Zone | |
parseFrom(ByteString data)
public static Zone parseFrom(ByteString data)
Returns |
---|
Type | Description |
Zone | |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Zone parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Returns |
---|
Type | Description |
Zone | |
public static Zone parseFrom(CodedInputStream input)
Returns |
---|
Type | Description |
Zone | |
public static Zone parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
---|
Type | Description |
Zone | |
public static Zone parseFrom(InputStream input)
Returns |
---|
Type | Description |
Zone | |
public static Zone parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
---|
Type | Description |
Zone | |
parseFrom(ByteBuffer data)
public static Zone parseFrom(ByteBuffer data)
Returns |
---|
Type | Description |
Zone | |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Zone parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Returns |
---|
Type | Description |
Zone | |
parser()
public static Parser<Zone> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
public String getAvailableCpuPlatforms(int index)
[Output Only] Available cpu/platform selections for the zone.
repeated string available_cpu_platforms = 175536531;
Parameter |
---|
Name | Description |
index | int
The index of the element to return.
|
Returns |
---|
Type | Description |
String | The availableCpuPlatforms at the given index.
|
public ByteString getAvailableCpuPlatformsBytes(int index)
[Output Only] Available cpu/platform selections for the zone.
repeated string available_cpu_platforms = 175536531;
Parameter |
---|
Name | Description |
index | int
The index of the value to return.
|
Returns |
---|
Type | Description |
ByteString | The bytes of the availableCpuPlatforms at the given index.
|
public int getAvailableCpuPlatformsCount()
[Output Only] Available cpu/platform selections for the zone.
repeated string available_cpu_platforms = 175536531;
Returns |
---|
Type | Description |
int | The count of availableCpuPlatforms.
|
public ProtocolStringList getAvailableCpuPlatformsList()
[Output Only] Available cpu/platform selections for the zone.
repeated string available_cpu_platforms = 175536531;
getCreationTimestamp()
public String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Returns |
---|
Type | Description |
String | The creationTimestamp.
|
getCreationTimestampBytes()
public ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Returns |
---|
Type | Description |
ByteString | The bytes for creationTimestamp.
|
getDefaultInstanceForType()
public Zone getDefaultInstanceForType()
Returns |
---|
Type | Description |
Zone | |
getDeprecated()
public DeprecationStatus getDeprecated()
[Output Only] The deprecation status associated with this zone.
optional .google.cloud.compute.v1.DeprecationStatus deprecated = 515138995;
getDeprecatedOrBuilder()
public DeprecationStatusOrBuilder getDeprecatedOrBuilder()
[Output Only] The deprecation status associated with this zone.
optional .google.cloud.compute.v1.DeprecationStatus deprecated = 515138995;
getDescription()
public String getDescription()
[Output Only] Textual description of the resource.
optional string description = 422937596;
Returns |
---|
Type | Description |
String | The description.
|
getDescriptionBytes()
public ByteString getDescriptionBytes()
[Output Only] Textual description of the resource.
optional string description = 422937596;
Returns |
---|
Type | Description |
ByteString | The bytes for description.
|
getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
Returns |
---|
Type | Description |
long | The id.
|
getKind()
[Output Only] Type of the resource. Always compute#zone for zones.
optional string kind = 3292052;
Returns |
---|
Type | Description |
String | The kind.
|
getKindBytes()
public ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#zone for zones.
optional string kind = 3292052;
Returns |
---|
Type | Description |
ByteString | The bytes for kind.
|
getName()
[Output Only] Name of the resource.
optional string name = 3373707;
Returns |
---|
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
[Output Only] Name of the resource.
optional string name = 3373707;
Returns |
---|
Type | Description |
ByteString | The bytes for name.
|
getParserForType()
public Parser<Zone> getParserForType()
Overrides
getRegion()
public String getRegion()
[Output Only] Full URL reference to the region which hosts the zone.
optional string region = 138946292;
Returns |
---|
Type | Description |
String | The region.
|
getRegionBytes()
public ByteString getRegionBytes()
[Output Only] Full URL reference to the region which hosts the zone.
optional string region = 138946292;
Returns |
---|
Type | Description |
ByteString | The bytes for region.
|
getSelfLink()
public String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Returns |
---|
Type | Description |
String | The selfLink.
|
getSelfLinkBytes()
public ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Returns |
---|
Type | Description |
ByteString | The bytes for selfLink.
|
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
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 |
---|
Type | Description |
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 |
---|
Type | Description |
ByteString | The bytes for status.
|
getSupportsPzs()
public boolean getSupportsPzs()
[Output Only] Reserved for future use.
optional bool supports_pzs = 83983214;
Returns |
---|
Type | Description |
boolean | The supportsPzs.
|
hasCreationTimestamp()
public boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Returns |
---|
Type | Description |
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 |
---|
Type | Description |
boolean | Whether the deprecated field is set.
|
hasDescription()
public boolean hasDescription()
[Output Only] Textual description of the resource.
optional string description = 422937596;
Returns |
---|
Type | Description |
boolean | Whether the description field is set.
|
hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
Returns |
---|
Type | Description |
boolean | Whether the id field is set.
|
hasKind()
[Output Only] Type of the resource. Always compute#zone for zones.
optional string kind = 3292052;
Returns |
---|
Type | Description |
boolean | Whether the kind field is set.
|
hasName()
[Output Only] Name of the resource.
optional string name = 3373707;
Returns |
---|
Type | Description |
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 |
---|
Type | Description |
boolean | Whether the region field is set.
|
hasSelfLink()
public boolean hasSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Returns |
---|
Type | Description |
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 |
---|
Type | Description |
boolean | Whether the status field is set.
|
hasSupportsPzs()
public boolean hasSupportsPzs()
[Output Only] Reserved for future use.
optional bool supports_pzs = 83983214;
Returns |
---|
Type | Description |
boolean | Whether the supportsPzs field is set.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Zone.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Zone.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public Zone.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides