Class DeprecationStatus (1.64.0)

public final class DeprecationStatus extends GeneratedMessageV3 implements DeprecationStatusOrBuilder

Deprecation status for a public resource.

Protobuf type google.cloud.compute.v1.DeprecationStatus

Static Fields

DELETED_FIELD_NUMBER

public static final int DELETED_FIELD_NUMBER
Field Value
Type Description
int

DEPRECATED_FIELD_NUMBER

public static final int DEPRECATED_FIELD_NUMBER
Field Value
Type Description
int

OBSOLETE_FIELD_NUMBER

public static final int OBSOLETE_FIELD_NUMBER
Field Value
Type Description
int

REPLACEMENT_FIELD_NUMBER

public static final int REPLACEMENT_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DeprecationStatus getDefaultInstance()
Returns
Type Description
DeprecationStatus

getDescriptor()

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

newBuilder()

public static DeprecationStatus.Builder newBuilder()
Returns
Type Description
DeprecationStatus.Builder

newBuilder(DeprecationStatus prototype)

public static DeprecationStatus.Builder newBuilder(DeprecationStatus prototype)
Parameter
Name Description
prototype DeprecationStatus
Returns
Type Description
DeprecationStatus.Builder

parseDelimitedFrom(InputStream input)

public static DeprecationStatus parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DeprecationStatus
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DeprecationStatus parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeprecationStatus
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static DeprecationStatus parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
DeprecationStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DeprecationStatus parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeprecationStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DeprecationStatus parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DeprecationStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DeprecationStatus parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeprecationStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DeprecationStatus parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DeprecationStatus
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DeprecationStatus parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeprecationStatus
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static DeprecationStatus parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DeprecationStatus
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DeprecationStatus parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeprecationStatus
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static DeprecationStatus parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DeprecationStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DeprecationStatus parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeprecationStatus
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<DeprecationStatus> parser()
Returns
Type Description
Parser<DeprecationStatus>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public DeprecationStatus getDefaultInstanceForType()
Returns
Type Description
DeprecationStatus

getDeleted()

public String getDeleted()

An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it.

optional string deleted = 476721177;

Returns
Type Description
String

The deleted.

getDeletedBytes()

public ByteString getDeletedBytes()

An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it.

optional string deleted = 476721177;

Returns
Type Description
ByteString

The bytes for deleted.

getDeprecated()

public String getDeprecated()

An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it.

optional string deprecated = 515138995;

Returns
Type Description
String

The deprecated.

getDeprecatedBytes()

public ByteString getDeprecatedBytes()

An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it.

optional string deprecated = 515138995;

Returns
Type Description
ByteString

The bytes for deprecated.

getObsolete()

public String getObsolete()

An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it.

optional string obsolete = 357647769;

Returns
Type Description
String

The obsolete.

getObsoleteBytes()

public ByteString getObsoleteBytes()

An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it.

optional string obsolete = 357647769;

Returns
Type Description
ByteString

The bytes for obsolete.

getParserForType()

public Parser<DeprecationStatus> getParserForType()
Returns
Type Description
Parser<DeprecationStatus>
Overrides

getReplacement()

public String getReplacement()

The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource.

optional string replacement = 430919186;

Returns
Type Description
String

The replacement.

getReplacementBytes()

public ByteString getReplacementBytes()

The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource.

optional string replacement = 430919186;

Returns
Type Description
ByteString

The bytes for replacement.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getState()

public String getState()

The deprecation state of this resource. This can be ACTIVE, DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error. Check the State enum for the list of possible values.

optional string state = 109757585;

Returns
Type Description
String

The state.

getStateBytes()

public ByteString getStateBytes()

The deprecation state of this resource. This can be ACTIVE, DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error. Check the State enum for the list of possible values.

optional string state = 109757585;

Returns
Type Description
ByteString

The bytes for state.

hasDeleted()

public boolean hasDeleted()

An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it.

optional string deleted = 476721177;

Returns
Type Description
boolean

Whether the deleted field is set.

hasDeprecated()

public boolean hasDeprecated()

An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it.

optional string deprecated = 515138995;

Returns
Type Description
boolean

Whether the deprecated field is set.

hasObsolete()

public boolean hasObsolete()

An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it.

optional string obsolete = 357647769;

Returns
Type Description
boolean

Whether the obsolete field is set.

hasReplacement()

public boolean hasReplacement()

The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource.

optional string replacement = 430919186;

Returns
Type Description
boolean

Whether the replacement field is set.

hasState()

public boolean hasState()

The deprecation state of this resource. This can be ACTIVE, DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error. Check the State enum for the list of possible values.

optional string state = 109757585;

Returns
Type Description
boolean

Whether the state field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public DeprecationStatus.Builder newBuilderForType()
Returns
Type Description
DeprecationStatus.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DeprecationStatus.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DeprecationStatus.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public DeprecationStatus.Builder toBuilder()
Returns
Type Description
DeprecationStatus.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException