Class DeprecationStatus.Builder (1.61.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DeprecationStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DeprecationStatus.Builder
Overrides

build()

public DeprecationStatus build()
Returns
Type Description
DeprecationStatus

buildPartial()

public DeprecationStatus buildPartial()
Returns
Type Description
DeprecationStatus

clear()

public DeprecationStatus.Builder clear()
Returns
Type Description
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
Type Description
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
Type Description
DeprecationStatus.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DeprecationStatus.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
DeprecationStatus.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DeprecationStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
DeprecationStatus.Builder

This builder for chaining.

clone()

public DeprecationStatus.Builder clone()
Returns
Type Description
DeprecationStatus.Builder
Overrides

getDefaultInstanceForType()

public DeprecationStatus getDefaultInstanceForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for deprecated.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the state field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DeprecationStatus other)

public DeprecationStatus.Builder mergeFrom(DeprecationStatus other)
Parameter
Name Description
other DeprecationStatus
Returns
Type Description
DeprecationStatus.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DeprecationStatus.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeprecationStatus.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DeprecationStatus.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DeprecationStatus.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DeprecationStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value String

The deleted to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for deleted to set.

Returns
Type Description
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
Name Description
value String

The deprecated to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for deprecated to set.

Returns
Type Description
DeprecationStatus.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DeprecationStatus.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The obsolete to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for obsolete to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value String

The replacement to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for replacement to set.

Returns
Type Description
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
Name Description
value String

The state to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for state to set.

Returns
Type Description
DeprecationStatus.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DeprecationStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DeprecationStatus.Builder
Overrides