Package com.google.cloud.compute.v1
Class DeprecationStatus.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DeprecationStatus.Builder>
com.google.cloud.compute.v1.DeprecationStatus.Builder
- All Implemented Interfaces:
DeprecationStatusOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DeprecationStatus
public static final class DeprecationStatus.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DeprecationStatus.Builder>
implements DeprecationStatusOrBuilder
Deprecation status for a public resource.Protobuf type
google.cloud.compute.v1.DeprecationStatus-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED.An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED.An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE.The URL of the suggested replacement for a deprecated resource.The deprecation state of this resource.An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED.com.google.protobuf.ByteStringAn optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED.An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED.com.google.protobuf.ByteStringAn optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorAn optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE.com.google.protobuf.ByteStringAn optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE.The URL of the suggested replacement for a deprecated resource.com.google.protobuf.ByteStringThe URL of the suggested replacement for a deprecated resource.getState()The deprecation state of this resource.com.google.protobuf.ByteStringThe deprecation state of this resource.booleanAn optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED.booleanAn optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED.booleanAn optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE.booleanThe URL of the suggested replacement for a deprecated resource.booleanhasState()The deprecation state of this resource.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(DeprecationStatus other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDeleted(String value) An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED.setDeletedBytes(com.google.protobuf.ByteString value) An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED.setDeprecated(String value) An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED.setDeprecatedBytes(com.google.protobuf.ByteString value) An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED.setObsolete(String value) An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE.setObsoleteBytes(com.google.protobuf.ByteString value) An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE.setReplacement(String value) The URL of the suggested replacement for a deprecated resource.setReplacementBytes(com.google.protobuf.ByteString value) The URL of the suggested replacement for a deprecated resource.The deprecation state of this resource.setStateBytes(com.google.protobuf.ByteString value) The deprecation state of this resource.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DeprecationStatus.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DeprecationStatus.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DeprecationStatus.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DeprecationStatus.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DeprecationStatus.Builder>
-
mergeFrom
public DeprecationStatus.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DeprecationStatus.Builder>- Throws:
IOException
-
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;- Specified by:
hasDeletedin interfaceDeprecationStatusOrBuilder- Returns:
- Whether the deleted field is set.
-
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;- Specified by:
getDeletedin interfaceDeprecationStatusOrBuilder- Returns:
- The deleted.
-
getDeletedBytes
public com.google.protobuf.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;- Specified by:
getDeletedBytesin interfaceDeprecationStatusOrBuilder- Returns:
- The bytes for deleted.
-
setDeleted
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;- Parameters:
value- The deleted to set.- Returns:
- This builder for chaining.
-
clearDeleted
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:
- This builder for chaining.
-
setDeletedBytes
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;- Parameters:
value- The bytes for deleted to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasDeprecatedin interfaceDeprecationStatusOrBuilder- Returns:
- Whether the deprecated field is set.
-
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;- Specified by:
getDeprecatedin interfaceDeprecationStatusOrBuilder- Returns:
- The deprecated.
-
getDeprecatedBytes
public com.google.protobuf.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;- Specified by:
getDeprecatedBytesin interfaceDeprecationStatusOrBuilder- Returns:
- The bytes for deprecated.
-
setDeprecated
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;- Parameters:
value- The deprecated to set.- Returns:
- This builder for chaining.
-
clearDeprecated
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:
- This builder for chaining.
-
setDeprecatedBytes
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;- Parameters:
value- The bytes for deprecated to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasObsoletein interfaceDeprecationStatusOrBuilder- Returns:
- Whether the obsolete field is set.
-
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;- Specified by:
getObsoletein interfaceDeprecationStatusOrBuilder- Returns:
- The obsolete.
-
getObsoleteBytes
public com.google.protobuf.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;- Specified by:
getObsoleteBytesin interfaceDeprecationStatusOrBuilder- Returns:
- The bytes for obsolete.
-
setObsolete
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;- Parameters:
value- The obsolete to set.- Returns:
- This builder for chaining.
-
clearObsolete
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:
- This builder for chaining.
-
setObsoleteBytes
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;- Parameters:
value- The bytes for obsolete to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasReplacementin interfaceDeprecationStatusOrBuilder- Returns:
- Whether the replacement field is set.
-
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;- Specified by:
getReplacementin interfaceDeprecationStatusOrBuilder- Returns:
- The replacement.
-
getReplacementBytes
public com.google.protobuf.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;- Specified by:
getReplacementBytesin interfaceDeprecationStatusOrBuilder- Returns:
- The bytes for replacement.
-
setReplacement
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;- Parameters:
value- The replacement to set.- Returns:
- This builder for chaining.
-
clearReplacement
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:
- This builder for chaining.
-
setReplacementBytes
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;- Parameters:
value- The bytes for replacement to set.- Returns:
- This builder for chaining.
-
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 useACTIVE. Operations which create a new resource using aDEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE orDELETED resources will be rejected and result in an error. Check the State enum for the list of possible values.
optional string state = 109757585;- Specified by:
hasStatein interfaceDeprecationStatusOrBuilder- Returns:
- Whether the state field is set.
-
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 useACTIVE. Operations which create a new resource using aDEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE orDELETED resources will be rejected and result in an error. Check the State enum for the list of possible values.
optional string state = 109757585;- Specified by:
getStatein interfaceDeprecationStatusOrBuilder- Returns:
- The state.
-
getStateBytes
public com.google.protobuf.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 useACTIVE. Operations which create a new resource using aDEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE orDELETED resources will be rejected and result in an error. Check the State enum for the list of possible values.
optional string state = 109757585;- Specified by:
getStateBytesin interfaceDeprecationStatusOrBuilder- Returns:
- The bytes for state.
-
setState
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 useACTIVE. Operations which create a new resource using aDEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE orDELETED resources will be rejected and result in an error. Check the State enum for the list of possible values.
optional string state = 109757585;- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
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 useACTIVE. Operations which create a new resource using aDEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE orDELETED resources will be rejected and result in an error. Check the State enum for the list of possible values.
optional string state = 109757585;- Returns:
- This builder for chaining.
-
setStateBytes
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 useACTIVE. Operations which create a new resource using aDEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE orDELETED resources will be rejected and result in an error. Check the State enum for the list of possible values.
optional string state = 109757585;- Parameters:
value- The bytes for state to set.- Returns:
- This builder for chaining.
-