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 Type
    Method
    Description
     
     
     
    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.ByteString
    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.
    com.google.protobuf.ByteString
    An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED.
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE.
    com.google.protobuf.ByteString
    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.
    com.google.protobuf.ByteString
    The URL of the suggested replacement for a deprecated resource.
    The deprecation state of this resource.
    com.google.protobuf.ByteString
    The deprecation state of this resource.
    boolean
    An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED.
    boolean
    An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED.
    boolean
    An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE.
    boolean
    The URL of the suggested replacement for a deprecated resource.
    boolean
    The deprecation state of this resource.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    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.
    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.
    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.
    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, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public DeprecationStatus.Builder mergeFrom(DeprecationStatus other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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 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:
      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 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:
      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 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:
      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 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

      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 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

      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 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.