Class TerraformBlueprint.Builder (0.23.0)

public static final class TerraformBlueprint.Builder extends GeneratedMessageV3.Builder<TerraformBlueprint.Builder> implements TerraformBlueprintOrBuilder

TerraformBlueprint describes the source of a Terraform root module which describes the resources and configs to be deployed.

Protobuf type google.cloud.config.v1.TerraformBlueprint

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TerraformBlueprint build()
Returns
Type Description
TerraformBlueprint

buildPartial()

public TerraformBlueprint buildPartial()
Returns
Type Description
TerraformBlueprint

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearGcsSource()

public TerraformBlueprint.Builder clearGcsSource()

Required. URI of an object in Google Cloud Storage. Format: gs://{bucket}/{object}

URI may also specify an object version for zipped objects. Format: gs://{bucket}/{object}#{version}

string gcs_source = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TerraformBlueprint.Builder

This builder for chaining.

clearGitSource()

public TerraformBlueprint.Builder clearGitSource()

Required. URI of a public Git repo.

.google.cloud.config.v1.GitSource git_source = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TerraformBlueprint.Builder

clearInputValues()

public TerraformBlueprint.Builder clearInputValues()
Returns
Type Description
TerraformBlueprint.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSource()

public TerraformBlueprint.Builder clearSource()
Returns
Type Description
TerraformBlueprint.Builder

clone()

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

containsInputValues(String key)

public boolean containsInputValues(String key)

Input variable values for the Terraform blueprint.

map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public TerraformBlueprint getDefaultInstanceForType()
Returns
Type Description
TerraformBlueprint

getDescriptorForType()

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

getGcsSource()

public String getGcsSource()

Required. URI of an object in Google Cloud Storage. Format: gs://{bucket}/{object}

URI may also specify an object version for zipped objects. Format: gs://{bucket}/{object}#{version}

string gcs_source = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The gcsSource.

getGcsSourceBytes()

public ByteString getGcsSourceBytes()

Required. URI of an object in Google Cloud Storage. Format: gs://{bucket}/{object}

URI may also specify an object version for zipped objects. Format: gs://{bucket}/{object}#{version}

string gcs_source = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for gcsSource.

getGitSource()

public GitSource getGitSource()

Required. URI of a public Git repo.

.google.cloud.config.v1.GitSource git_source = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GitSource

The gitSource.

getGitSourceBuilder()

public GitSource.Builder getGitSourceBuilder()

Required. URI of a public Git repo.

.google.cloud.config.v1.GitSource git_source = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GitSource.Builder

getGitSourceOrBuilder()

public GitSourceOrBuilder getGitSourceOrBuilder()

Required. URI of a public Git repo.

.google.cloud.config.v1.GitSource git_source = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GitSourceOrBuilder

getInputValues() (deprecated)

public Map<String,TerraformVariable> getInputValues()

Use #getInputValuesMap() instead.

Returns
Type Description
Map<String,TerraformVariable>

getInputValuesCount()

public int getInputValuesCount()

Input variable values for the Terraform blueprint.

map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4;

Returns
Type Description
int

getInputValuesMap()

public Map<String,TerraformVariable> getInputValuesMap()

Input variable values for the Terraform blueprint.

map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4;

Returns
Type Description
Map<String,TerraformVariable>

getInputValuesOrDefault(String key, TerraformVariable defaultValue)

public TerraformVariable getInputValuesOrDefault(String key, TerraformVariable defaultValue)

Input variable values for the Terraform blueprint.

map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4;

Parameters
Name Description
key String
defaultValue TerraformVariable
Returns
Type Description
TerraformVariable

getInputValuesOrThrow(String key)

public TerraformVariable getInputValuesOrThrow(String key)

Input variable values for the Terraform blueprint.

map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4;

Parameter
Name Description
key String
Returns
Type Description
TerraformVariable

getMutableInputValues() (deprecated)

public Map<String,TerraformVariable> getMutableInputValues()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,TerraformVariable>

getSourceCase()

public TerraformBlueprint.SourceCase getSourceCase()
Returns
Type Description
TerraformBlueprint.SourceCase

hasGcsSource()

public boolean hasGcsSource()

Required. URI of an object in Google Cloud Storage. Format: gs://{bucket}/{object}

URI may also specify an object version for zipped objects. Format: gs://{bucket}/{object}#{version}

string gcs_source = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the gcsSource field is set.

hasGitSource()

public boolean hasGitSource()

Required. URI of a public Git repo.

.google.cloud.config.v1.GitSource git_source = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the gitSource field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TerraformBlueprint other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGitSource(GitSource value)

public TerraformBlueprint.Builder mergeGitSource(GitSource value)

Required. URI of a public Git repo.

.google.cloud.config.v1.GitSource git_source = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value GitSource
Returns
Type Description
TerraformBlueprint.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllInputValues(Map<String,TerraformVariable> values)

public TerraformBlueprint.Builder putAllInputValues(Map<String,TerraformVariable> values)

Input variable values for the Terraform blueprint.

map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4;

Parameter
Name Description
values Map<String,TerraformVariable>
Returns
Type Description
TerraformBlueprint.Builder

putInputValues(String key, TerraformVariable value)

public TerraformBlueprint.Builder putInputValues(String key, TerraformVariable value)

Input variable values for the Terraform blueprint.

map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4;

Parameters
Name Description
key String
value TerraformVariable
Returns
Type Description
TerraformBlueprint.Builder

putInputValuesBuilderIfAbsent(String key)

public TerraformVariable.Builder putInputValuesBuilderIfAbsent(String key)

Input variable values for the Terraform blueprint.

map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4;

Parameter
Name Description
key String
Returns
Type Description
TerraformVariable.Builder

removeInputValues(String key)

public TerraformBlueprint.Builder removeInputValues(String key)

Input variable values for the Terraform blueprint.

map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4;

Parameter
Name Description
key String
Returns
Type Description
TerraformBlueprint.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGcsSource(String value)

public TerraformBlueprint.Builder setGcsSource(String value)

Required. URI of an object in Google Cloud Storage. Format: gs://{bucket}/{object}

URI may also specify an object version for zipped objects. Format: gs://{bucket}/{object}#{version}

string gcs_source = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The gcsSource to set.

Returns
Type Description
TerraformBlueprint.Builder

This builder for chaining.

setGcsSourceBytes(ByteString value)

public TerraformBlueprint.Builder setGcsSourceBytes(ByteString value)

Required. URI of an object in Google Cloud Storage. Format: gs://{bucket}/{object}

URI may also specify an object version for zipped objects. Format: gs://{bucket}/{object}#{version}

string gcs_source = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for gcsSource to set.

Returns
Type Description
TerraformBlueprint.Builder

This builder for chaining.

setGitSource(GitSource value)

public TerraformBlueprint.Builder setGitSource(GitSource value)

Required. URI of a public Git repo.

.google.cloud.config.v1.GitSource git_source = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value GitSource
Returns
Type Description
TerraformBlueprint.Builder

setGitSource(GitSource.Builder builderForValue)

public TerraformBlueprint.Builder setGitSource(GitSource.Builder builderForValue)

Required. URI of a public Git repo.

.google.cloud.config.v1.GitSource git_source = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue GitSource.Builder
Returns
Type Description
TerraformBlueprint.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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