Class TerraformBlueprint.Builder (0.17.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TerraformBlueprint build()
Returns
TypeDescription
TerraformBlueprint

buildPartial()

public TerraformBlueprint buildPartial()
Returns
TypeDescription
TerraformBlueprint

clear()

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

clearField(Descriptors.FieldDescriptor field)

public TerraformBlueprint.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
TerraformBlueprint.Builder

clearInputValues()

public TerraformBlueprint.Builder clearInputValues()
Returns
TypeDescription
TerraformBlueprint.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSource()

public TerraformBlueprint.Builder clearSource()
Returns
TypeDescription
TerraformBlueprint.Builder

clone()

public TerraformBlueprint.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public TerraformBlueprint getDefaultInstanceForType()
Returns
TypeDescription
TerraformBlueprint

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
GitSourceOrBuilder

getInputValues() (deprecated)

public Map<String,TerraformVariable> getInputValues()

Use #getInputValuesMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueTerraformVariable
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
TerraformVariable

getMutableInputValues() (deprecated)

public Map<String,TerraformVariable> getMutableInputValues()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,TerraformVariable>

getSourceCase()

public TerraformBlueprint.SourceCase getSourceCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the gitSource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TerraformBlueprint other)

public TerraformBlueprint.Builder mergeFrom(TerraformBlueprint other)
Parameter
NameDescription
otherTerraformBlueprint
Returns
TypeDescription
TerraformBlueprint.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public TerraformBlueprint.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueGitSource
Returns
TypeDescription
TerraformBlueprint.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TerraformBlueprint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<String,TerraformVariable>
Returns
TypeDescription
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
NameDescription
keyString
valueTerraformVariable
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
TerraformBlueprint.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public TerraformBlueprint.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The gcsSource to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for gcsSource to set.

Returns
TypeDescription
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
NameDescription
valueGitSource
Returns
TypeDescription
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
NameDescription
builderForValueGitSource.Builder
Returns
TypeDescription
TerraformBlueprint.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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