Class DeprecationStatus

  • All Implemented Interfaces:
    DeprecationStatusOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class DeprecationStatus
    extends com.google.protobuf.GeneratedMessageV3
    implements DeprecationStatusOrBuilder
     Deprecation status for a public resource.
     
    Protobuf type google.cloud.compute.v1.DeprecationStatus
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  DeprecationStatus.Builder
      Deprecation status for a public resource.
      static class  DeprecationStatus.State
      The deprecation state of this resource.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object obj)  
      static DeprecationStatus getDefaultInstance()  
      DeprecationStatus getDefaultInstanceForType()  
      String getDeleted()
      An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED.
      com.google.protobuf.ByteString getDeletedBytes()
      An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED.
      String getDeprecated()
      An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED.
      com.google.protobuf.ByteString getDeprecatedBytes()
      An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED.
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      String getObsolete()
      An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE.
      com.google.protobuf.ByteString getObsoleteBytes()
      An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE.
      com.google.protobuf.Parser<DeprecationStatus> getParserForType()  
      String getReplacement()
      The URL of the suggested replacement for a deprecated resource.
      com.google.protobuf.ByteString getReplacementBytes()
      The URL of the suggested replacement for a deprecated resource.
      int getSerializedSize()  
      String getState()
      The deprecation state of this resource.
      com.google.protobuf.ByteString getStateBytes()
      The deprecation state of this resource.
      boolean hasDeleted()
      An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED.
      boolean hasDeprecated()
      An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED.
      int hashCode()  
      boolean hasObsolete()
      An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE.
      boolean hasReplacement()
      The URL of the suggested replacement for a deprecated resource.
      boolean hasState()
      The deprecation state of this resource.
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      static DeprecationStatus.Builder newBuilder()  
      static DeprecationStatus.Builder newBuilder​(DeprecationStatus prototype)  
      DeprecationStatus.Builder newBuilderForType()  
      protected DeprecationStatus.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)  
      protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)  
      static DeprecationStatus parseDelimitedFrom​(InputStream input)  
      static DeprecationStatus parseDelimitedFrom​(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static DeprecationStatus parseFrom​(byte[] data)  
      static DeprecationStatus parseFrom​(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static DeprecationStatus parseFrom​(com.google.protobuf.ByteString data)  
      static DeprecationStatus parseFrom​(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static DeprecationStatus parseFrom​(com.google.protobuf.CodedInputStream input)  
      static DeprecationStatus parseFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static DeprecationStatus parseFrom​(InputStream input)  
      static DeprecationStatus parseFrom​(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static DeprecationStatus parseFrom​(ByteBuffer data)  
      static DeprecationStatus parseFrom​(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static com.google.protobuf.Parser<DeprecationStatus> parser()  
      DeprecationStatus.Builder toBuilder()  
      void writeTo​(com.google.protobuf.CodedOutputStream output)  
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3

        canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
      • Methods inherited from class com.google.protobuf.AbstractMessage

        findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite

        addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from interface com.google.protobuf.MessageLite

        toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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:
        hasDeleted in interface DeprecationStatusOrBuilder
        Returns:
        Whether the deleted field is set.
      • 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;
        Specified by:
        getDeleted in interface DeprecationStatusOrBuilder
        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:
        getDeletedBytes in interface DeprecationStatusOrBuilder
        Returns:
        The bytes for deleted.
      • 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:
        hasDeprecated in interface DeprecationStatusOrBuilder
        Returns:
        Whether the deprecated field is set.
      • 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;
        Specified by:
        getDeprecated in interface DeprecationStatusOrBuilder
        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:
        getDeprecatedBytes in interface DeprecationStatusOrBuilder
        Returns:
        The bytes for deprecated.
      • 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:
        hasObsolete in interface DeprecationStatusOrBuilder
        Returns:
        Whether the obsolete field is set.
      • 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;
        Specified by:
        getObsolete in interface DeprecationStatusOrBuilder
        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:
        getObsoleteBytes in interface DeprecationStatusOrBuilder
        Returns:
        The bytes for obsolete.
      • 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:
        hasReplacement in interface DeprecationStatusOrBuilder
        Returns:
        Whether the replacement field is set.
      • 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;
        Specified by:
        getReplacement in interface DeprecationStatusOrBuilder
        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:
        getReplacementBytes in interface DeprecationStatusOrBuilder
        Returns:
        The bytes for replacement.
      • 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;
        Specified by:
        hasState in interface DeprecationStatusOrBuilder
        Returns:
        Whether the state field is set.
      • 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;
        Specified by:
        getState in interface DeprecationStatusOrBuilder
        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 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;
        Specified by:
        getStateBytes in interface DeprecationStatusOrBuilder
        Returns:
        The bytes for state.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static DeprecationStatus parseFrom​(ByteBuffer data)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DeprecationStatus parseFrom​(ByteBuffer data,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DeprecationStatus parseFrom​(com.google.protobuf.ByteString data)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DeprecationStatus parseFrom​(com.google.protobuf.ByteString data,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DeprecationStatus parseFrom​(byte[] data)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DeprecationStatus parseFrom​(byte[] data,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DeprecationStatus parseFrom​(com.google.protobuf.CodedInputStream input,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws IOException
        Throws:
        IOException
      • newBuilderForType

        public DeprecationStatus.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public DeprecationStatus.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected DeprecationStatus.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<DeprecationStatus> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public DeprecationStatus getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder