public final class DeprecationStatus extends GeneratedMessageV3 implements DeprecationStatusOrBuilder
Deprecation status for a public resource.
Protobuf type google.cloud.compute.v1.DeprecationStatus
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
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static DeprecationStatus.Builder newBuilder()
newBuilder(DeprecationStatus prototype)
public static DeprecationStatus.Builder newBuilder(DeprecationStatus prototype)
public static DeprecationStatus parseDelimitedFrom(InputStream input)
public static DeprecationStatus parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static DeprecationStatus parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DeprecationStatus parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static DeprecationStatus parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DeprecationStatus parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DeprecationStatus parseFrom(CodedInputStream input)
public static DeprecationStatus parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static DeprecationStatus parseFrom(InputStream input)
public static DeprecationStatus parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static DeprecationStatus parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static DeprecationStatus parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<DeprecationStatus> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public DeprecationStatus getDefaultInstanceForType()
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()
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()
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()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public DeprecationStatus.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected DeprecationStatus.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public DeprecationStatus.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides