Class DeprecationStatus.Builder (1.26.0)

public static final class DeprecationStatus.Builder extends GeneratedMessageV3.Builder<DeprecationStatus.Builder> implements DeprecationStatusOrBuilder

Deprecation status for a public resource.

Protobuf type google.cloud.compute.v1.DeprecationStatus

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DeprecationStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DeprecationStatus.Builder
Overrides

build()

public DeprecationStatus build()
Returns
TypeDescription
DeprecationStatus

buildPartial()

public DeprecationStatus buildPartial()
Returns
TypeDescription
DeprecationStatus

clear()

public DeprecationStatus.Builder clear()
Returns
TypeDescription
DeprecationStatus.Builder
Overrides

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

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DeprecationStatus.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DeprecationStatus.Builder
Overrides

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DeprecationStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DeprecationStatus.Builder
Overrides

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

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

This builder for chaining.

clone()

public DeprecationStatus.Builder clone()
Returns
TypeDescription
DeprecationStatus.Builder
Overrides

getDefaultInstanceForType()

public DeprecationStatus getDefaultInstanceForType()
Returns
TypeDescription
DeprecationStatus

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

The bytes for deprecated.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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

The bytes for obsolete.

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

The bytes for replacement.

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;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the state field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DeprecationStatus other)

public DeprecationStatus.Builder mergeFrom(DeprecationStatus other)
Parameter
NameDescription
otherDeprecationStatus
Returns
TypeDescription
DeprecationStatus.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DeprecationStatus.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DeprecationStatus.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DeprecationStatus.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DeprecationStatus.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DeprecationStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DeprecationStatus.Builder
Overrides

setDeleted(String value)

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;

Parameter
NameDescription
valueString

The deleted to set.

Returns
TypeDescription
DeprecationStatus.Builder

This builder for chaining.

setDeletedBytes(ByteString value)

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

Parameter
NameDescription
valueByteString

The bytes for deleted to set.

Returns
TypeDescription
DeprecationStatus.Builder

This builder for chaining.

setDeprecated(String value)

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;

Parameter
NameDescription
valueString

The deprecated to set.

Returns
TypeDescription
DeprecationStatus.Builder

This builder for chaining.

setDeprecatedBytes(ByteString value)

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

Parameter
NameDescription
valueByteString

The bytes for deprecated to set.

Returns
TypeDescription
DeprecationStatus.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DeprecationStatus.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DeprecationStatus.Builder
Overrides

setObsolete(String value)

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;

Parameter
NameDescription
valueString

The obsolete to set.

Returns
TypeDescription
DeprecationStatus.Builder

This builder for chaining.

setObsoleteBytes(ByteString value)

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

Parameter
NameDescription
valueByteString

The bytes for obsolete to set.

Returns
TypeDescription
DeprecationStatus.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DeprecationStatus.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DeprecationStatus.Builder
Overrides

setReplacement(String value)

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;

Parameter
NameDescription
valueString

The replacement to set.

Returns
TypeDescription
DeprecationStatus.Builder

This builder for chaining.

setReplacementBytes(ByteString value)

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

Parameter
NameDescription
valueByteString

The bytes for replacement to set.

Returns
TypeDescription
DeprecationStatus.Builder

This builder for chaining.

setState(String value)

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;

Parameter
NameDescription
valueString

The state to set.

Returns
TypeDescription
DeprecationStatus.Builder

This builder for chaining.

setStateBytes(ByteString value)

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

Parameter
NameDescription
valueByteString

The bytes for state to set.

Returns
TypeDescription
DeprecationStatus.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DeprecationStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DeprecationStatus.Builder
Overrides