Class TerraformVersion.Builder (0.21.0)

public static final class TerraformVersion.Builder extends GeneratedMessageV3.Builder<TerraformVersion.Builder> implements TerraformVersionOrBuilder

A TerraformVersion represents the support state the corresponding Terraform version.

Protobuf type google.cloud.config.v1.TerraformVersion

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TerraformVersion build()
Returns
Type Description
TerraformVersion

buildPartial()

public TerraformVersion buildPartial()
Returns
Type Description
TerraformVersion

clear()

public TerraformVersion.Builder clear()
Returns
Type Description
TerraformVersion.Builder
Overrides

clearDeprecateTime()

public TerraformVersion.Builder clearDeprecateTime()

Output only. When the version is deprecated.

optional .google.protobuf.Timestamp deprecate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TerraformVersion.Builder

clearField(Descriptors.FieldDescriptor field)

public TerraformVersion.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TerraformVersion.Builder
Overrides

clearName()

public TerraformVersion.Builder clearName()

Identifier. The version name is in the format: 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}'.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
TerraformVersion.Builder

This builder for chaining.

clearObsoleteTime()

public TerraformVersion.Builder clearObsoleteTime()

Output only. When the version is obsolete.

optional .google.protobuf.Timestamp obsolete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TerraformVersion.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public TerraformVersion.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TerraformVersion.Builder
Overrides

clearState()

public TerraformVersion.Builder clearState()

Output only. The state of the version, ACTIVE, DEPRECATED or OBSOLETE.

.google.cloud.config.v1.TerraformVersion.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TerraformVersion.Builder

This builder for chaining.

clearSupportTime()

public TerraformVersion.Builder clearSupportTime()

Output only. When the version is supported.

.google.protobuf.Timestamp support_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TerraformVersion.Builder

clone()

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

getDefaultInstanceForType()

public TerraformVersion getDefaultInstanceForType()
Returns
Type Description
TerraformVersion

getDeprecateTime()

public Timestamp getDeprecateTime()

Output only. When the version is deprecated.

optional .google.protobuf.Timestamp deprecate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The deprecateTime.

getDeprecateTimeBuilder()

public Timestamp.Builder getDeprecateTimeBuilder()

Output only. When the version is deprecated.

optional .google.protobuf.Timestamp deprecate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getDeprecateTimeOrBuilder()

public TimestampOrBuilder getDeprecateTimeOrBuilder()

Output only. When the version is deprecated.

optional .google.protobuf.Timestamp deprecate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

Identifier. The version name is in the format: 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}'.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The version name is in the format: 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}'.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getObsoleteTime()

public Timestamp getObsoleteTime()

Output only. When the version is obsolete.

optional .google.protobuf.Timestamp obsolete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The obsoleteTime.

getObsoleteTimeBuilder()

public Timestamp.Builder getObsoleteTimeBuilder()

Output only. When the version is obsolete.

optional .google.protobuf.Timestamp obsolete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getObsoleteTimeOrBuilder()

public TimestampOrBuilder getObsoleteTimeOrBuilder()

Output only. When the version is obsolete.

optional .google.protobuf.Timestamp obsolete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getState()

public TerraformVersion.State getState()

Output only. The state of the version, ACTIVE, DEPRECATED or OBSOLETE.

.google.cloud.config.v1.TerraformVersion.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TerraformVersion.State

The state.

getStateValue()

public int getStateValue()

Output only. The state of the version, ACTIVE, DEPRECATED or OBSOLETE.

.google.cloud.config.v1.TerraformVersion.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getSupportTime()

public Timestamp getSupportTime()

Output only. When the version is supported.

.google.protobuf.Timestamp support_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The supportTime.

getSupportTimeBuilder()

public Timestamp.Builder getSupportTimeBuilder()

Output only. When the version is supported.

.google.protobuf.Timestamp support_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getSupportTimeOrBuilder()

public TimestampOrBuilder getSupportTimeOrBuilder()

Output only. When the version is supported.

.google.protobuf.Timestamp support_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasDeprecateTime()

public boolean hasDeprecateTime()

Output only. When the version is deprecated.

optional .google.protobuf.Timestamp deprecate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the deprecateTime field is set.

hasObsoleteTime()

public boolean hasObsoleteTime()

Output only. When the version is obsolete.

optional .google.protobuf.Timestamp obsolete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the obsoleteTime field is set.

hasSupportTime()

public boolean hasSupportTime()

Output only. When the version is supported.

.google.protobuf.Timestamp support_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the supportTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDeprecateTime(Timestamp value)

public TerraformVersion.Builder mergeDeprecateTime(Timestamp value)

Output only. When the version is deprecated.

optional .google.protobuf.Timestamp deprecate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
TerraformVersion.Builder

mergeFrom(TerraformVersion other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeObsoleteTime(Timestamp value)

public TerraformVersion.Builder mergeObsoleteTime(Timestamp value)

Output only. When the version is obsolete.

optional .google.protobuf.Timestamp obsolete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
TerraformVersion.Builder

mergeSupportTime(Timestamp value)

public TerraformVersion.Builder mergeSupportTime(Timestamp value)

Output only. When the version is supported.

.google.protobuf.Timestamp support_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
TerraformVersion.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TerraformVersion.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TerraformVersion.Builder
Overrides

setDeprecateTime(Timestamp value)

public TerraformVersion.Builder setDeprecateTime(Timestamp value)

Output only. When the version is deprecated.

optional .google.protobuf.Timestamp deprecate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
TerraformVersion.Builder

setDeprecateTime(Timestamp.Builder builderForValue)

public TerraformVersion.Builder setDeprecateTime(Timestamp.Builder builderForValue)

Output only. When the version is deprecated.

optional .google.protobuf.Timestamp deprecate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TerraformVersion.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public TerraformVersion.Builder setName(String value)

Identifier. The version name is in the format: 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}'.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
TerraformVersion.Builder

This builder for chaining.

setNameBytes(ByteString value)

public TerraformVersion.Builder setNameBytes(ByteString value)

Identifier. The version name is in the format: 'projects/{project_id}/locations/{location}/terraformVersions/{terraform_version}'.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
TerraformVersion.Builder

This builder for chaining.

setObsoleteTime(Timestamp value)

public TerraformVersion.Builder setObsoleteTime(Timestamp value)

Output only. When the version is obsolete.

optional .google.protobuf.Timestamp obsolete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
TerraformVersion.Builder

setObsoleteTime(Timestamp.Builder builderForValue)

public TerraformVersion.Builder setObsoleteTime(Timestamp.Builder builderForValue)

Output only. When the version is obsolete.

optional .google.protobuf.Timestamp obsolete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TerraformVersion.Builder

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

public TerraformVersion.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TerraformVersion.Builder
Overrides

setState(TerraformVersion.State value)

public TerraformVersion.Builder setState(TerraformVersion.State value)

Output only. The state of the version, ACTIVE, DEPRECATED or OBSOLETE.

.google.cloud.config.v1.TerraformVersion.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value TerraformVersion.State

The state to set.

Returns
Type Description
TerraformVersion.Builder

This builder for chaining.

setStateValue(int value)

public TerraformVersion.Builder setStateValue(int value)

Output only. The state of the version, ACTIVE, DEPRECATED or OBSOLETE.

.google.cloud.config.v1.TerraformVersion.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
TerraformVersion.Builder

This builder for chaining.

setSupportTime(Timestamp value)

public TerraformVersion.Builder setSupportTime(Timestamp value)

Output only. When the version is supported.

.google.protobuf.Timestamp support_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
TerraformVersion.Builder

setSupportTime(Timestamp.Builder builderForValue)

public TerraformVersion.Builder setSupportTime(Timestamp.Builder builderForValue)

Output only. When the version is supported.

.google.protobuf.Timestamp support_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TerraformVersion.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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