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
DEPRECATED_FIELD_NUMBER
public static final int DEPRECATED_FIELD_NUMBER
Field Value
OBSOLETE_FIELD_NUMBER
public static final int OBSOLETE_FIELD_NUMBER
Field Value
REPLACEMENT_FIELD_NUMBER
public static final int REPLACEMENT_FIELD_NUMBER
Field Value
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static DeprecationStatus getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static DeprecationStatus.Builder newBuilder()
Returns
newBuilder(DeprecationStatus prototype)
public static DeprecationStatus.Builder newBuilder(DeprecationStatus prototype)
Parameter
Returns
public static DeprecationStatus parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static DeprecationStatus parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static DeprecationStatus parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DeprecationStatus parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static DeprecationStatus parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DeprecationStatus parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static DeprecationStatus parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static DeprecationStatus parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static DeprecationStatus parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static DeprecationStatus parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static DeprecationStatus parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static DeprecationStatus parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<DeprecationStatus> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public DeprecationStatus getDefaultInstanceForType()
Returns
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
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
getParserForType()
public Parser<DeprecationStatus> getParserForType()
Returns
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
Overrides
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
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public DeprecationStatus.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected DeprecationStatus.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public DeprecationStatus.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions