Class 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.GeneratedMessageV3.Builder<DeprecationStatus.Builder>
    implements DeprecationStatusOrBuilder
     Deprecation status for a public resource.
     
    Protobuf type google.cloud.compute.v1.DeprecationStatus
    • Method Detail

      • 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.Builder<DeprecationStatus.Builder>
      • clear

        public DeprecationStatus.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<DeprecationStatus.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<DeprecationStatus.Builder>
      • getDefaultInstanceForType

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

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

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

        public DeprecationStatus.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<DeprecationStatus.Builder>
      • setField

        public DeprecationStatus.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<DeprecationStatus.Builder>
      • clearField

        public DeprecationStatus.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<DeprecationStatus.Builder>
      • clearOneof

        public DeprecationStatus.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DeprecationStatus.Builder>
      • setRepeatedField

        public DeprecationStatus.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          int index,
                                                          Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DeprecationStatus.Builder>
      • addRepeatedField

        public DeprecationStatus.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DeprecationStatus.Builder>
      • mergeFrom

        public DeprecationStatus.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DeprecationStatus.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<DeprecationStatus.Builder>
      • mergeFrom

        public DeprecationStatus.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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:
        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.
      • setDeleted

        public DeprecationStatus.Builder setDeleted​(String value)
         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

        public DeprecationStatus.Builder 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

        public DeprecationStatus.Builder 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. 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:
        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.
      • setDeprecated

        public DeprecationStatus.Builder setDeprecated​(String value)
         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

        public DeprecationStatus.Builder 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

        public DeprecationStatus.Builder 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. 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:
        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.
      • setObsolete

        public DeprecationStatus.Builder setObsolete​(String value)
         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

        public DeprecationStatus.Builder 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

        public DeprecationStatus.Builder 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. 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:
        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.
      • setReplacement

        public DeprecationStatus.Builder setReplacement​(String value)
         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

        public DeprecationStatus.Builder 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

        public DeprecationStatus.Builder setReplacementBytes​(com.google.protobuf.ByteString value)
         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 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.
      • setState

        public DeprecationStatus.Builder setState​(String value)
         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;
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public DeprecationStatus.Builder 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 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:
        This builder for chaining.
      • setStateBytes

        public DeprecationStatus.Builder setStateBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for state to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final DeprecationStatus.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DeprecationStatus.Builder>
      • mergeUnknownFields

        public final DeprecationStatus.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DeprecationStatus.Builder>