Class TerraformBlueprint.Builder (0.62.0)

public static final class TerraformBlueprint.Builder extends GeneratedMessage.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

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

clearGcsSource()

public TerraformBlueprint.Builder clearGcsSource()

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;

Returns
Type Description
TerraformBlueprint.Builder

This builder for chaining.

clearGitSource()

public TerraformBlueprint.Builder clearGitSource()

URI of a public Git repo.

.google.cloud.config.v1.GitSource git_source = 2;

Returns
Type Description
TerraformBlueprint.Builder

clearInputValues()

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

clearSource()

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

containsInputValues(String key)

public boolean containsInputValues(String key)

Optional. Input variable values for the Terraform blueprint.

map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4 [(.google.api.field_behavior) = OPTIONAL];

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

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;

Returns
Type Description
String

The gcsSource.

getGcsSourceBytes()

public ByteString getGcsSourceBytes()

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;

Returns
Type Description
ByteString

The bytes for gcsSource.

getGitSource()

public GitSource getGitSource()

URI of a public Git repo.

.google.cloud.config.v1.GitSource git_source = 2;

Returns
Type Description
GitSource

The gitSource.

getGitSourceBuilder()

public GitSource.Builder getGitSourceBuilder()

URI of a public Git repo.

.google.cloud.config.v1.GitSource git_source = 2;

Returns
Type Description
GitSource.Builder

getGitSourceOrBuilder()

public GitSourceOrBuilder getGitSourceOrBuilder()

URI of a public Git repo.

.google.cloud.config.v1.GitSource git_source = 2;

Returns
Type Description
GitSourceOrBuilder

getInputValues() (deprecated)

public Map<String,TerraformVariable> getInputValues()

Use #getInputValuesMap() instead.

Returns
Type Description
Map<String,TerraformVariable>

getInputValuesCount()

public int getInputValuesCount()

Optional. Input variable values for the Terraform blueprint.

map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getInputValuesMap()

public Map<String,TerraformVariable> getInputValuesMap()

Optional. Input variable values for the Terraform blueprint.

map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,TerraformVariable>

getInputValuesOrDefault(String key, TerraformVariable defaultValue)

public TerraformVariable getInputValuesOrDefault(String key, TerraformVariable defaultValue)

Optional. Input variable values for the Terraform blueprint.

map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue TerraformVariable
Returns
Type Description
TerraformVariable

getInputValuesOrThrow(String key)

public TerraformVariable getInputValuesOrThrow(String key)

Optional. Input variable values for the Terraform blueprint.

map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4 [(.google.api.field_behavior) = OPTIONAL];

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

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;

Returns
Type Description
boolean

Whether the gcsSource field is set.

hasGitSource()

public boolean hasGitSource()

URI of a public Git repo.

.google.cloud.config.v1.GitSource git_source = 2;

Returns
Type Description
boolean

Whether the gitSource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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)

URI of a public Git repo.

.google.cloud.config.v1.GitSource git_source = 2;

Parameter
Name Description
value GitSource
Returns
Type Description
TerraformBlueprint.Builder

putAllInputValues(Map<String,TerraformVariable> values)

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

Optional. Input variable values for the Terraform blueprint.

map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. Input variable values for the Terraform blueprint.

map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4 [(.google.api.field_behavior) = OPTIONAL];

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

putInputValuesBuilderIfAbsent(String key)

public TerraformVariable.Builder putInputValuesBuilderIfAbsent(String key)

Optional. Input variable values for the Terraform blueprint.

map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
TerraformVariable.Builder

removeInputValues(String key)

public TerraformBlueprint.Builder removeInputValues(String key)

Optional. Input variable values for the Terraform blueprint.

map<string, .google.cloud.config.v1.TerraformVariable> input_values = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
TerraformBlueprint.Builder

setGcsSource(String value)

public TerraformBlueprint.Builder setGcsSource(String value)

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;

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)

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;

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)

URI of a public Git repo.

.google.cloud.config.v1.GitSource git_source = 2;

Parameter
Name Description
value GitSource
Returns
Type Description
TerraformBlueprint.Builder

setGitSource(GitSource.Builder builderForValue)

public TerraformBlueprint.Builder setGitSource(GitSource.Builder builderForValue)

URI of a public Git repo.

.google.cloud.config.v1.GitSource git_source = 2;

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