Class Revision.Builder (0.26.0)

public static final class Revision.Builder extends GeneratedMessageV3.Builder<Revision.Builder> implements RevisionOrBuilder

A child resource of a Deployment generated by a 'CreateDeployment' or 'UpdateDeployment' call. Each Revision contains metadata pertaining to a snapshot of a particular Deployment.

Protobuf type google.cloud.config.v1.Revision

Implements

RevisionOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllTfErrors(Iterable<? extends TerraformError> values)

public Revision.Builder addAllTfErrors(Iterable<? extends TerraformError> values)

Output only. Errors encountered when creating or updating this deployment. Errors are truncated to 10 entries, see delete_results and error_logs for full details.

repeated .google.cloud.config.v1.TerraformError tf_errors = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.config.v1.TerraformError>
Returns
Type Description
Revision.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTfErrors(TerraformError value)

public Revision.Builder addTfErrors(TerraformError value)

Output only. Errors encountered when creating or updating this deployment. Errors are truncated to 10 entries, see delete_results and error_logs for full details.

repeated .google.cloud.config.v1.TerraformError tf_errors = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value TerraformError
Returns
Type Description
Revision.Builder

addTfErrors(TerraformError.Builder builderForValue)

public Revision.Builder addTfErrors(TerraformError.Builder builderForValue)

Output only. Errors encountered when creating or updating this deployment. Errors are truncated to 10 entries, see delete_results and error_logs for full details.

repeated .google.cloud.config.v1.TerraformError tf_errors = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue TerraformError.Builder
Returns
Type Description
Revision.Builder

addTfErrors(int index, TerraformError value)

public Revision.Builder addTfErrors(int index, TerraformError value)

Output only. Errors encountered when creating or updating this deployment. Errors are truncated to 10 entries, see delete_results and error_logs for full details.

repeated .google.cloud.config.v1.TerraformError tf_errors = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value TerraformError
Returns
Type Description
Revision.Builder

addTfErrors(int index, TerraformError.Builder builderForValue)

public Revision.Builder addTfErrors(int index, TerraformError.Builder builderForValue)

Output only. Errors encountered when creating or updating this deployment. Errors are truncated to 10 entries, see delete_results and error_logs for full details.

repeated .google.cloud.config.v1.TerraformError tf_errors = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue TerraformError.Builder
Returns
Type Description
Revision.Builder

addTfErrorsBuilder()

public TerraformError.Builder addTfErrorsBuilder()

Output only. Errors encountered when creating or updating this deployment. Errors are truncated to 10 entries, see delete_results and error_logs for full details.

repeated .google.cloud.config.v1.TerraformError tf_errors = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TerraformError.Builder

addTfErrorsBuilder(int index)

public TerraformError.Builder addTfErrorsBuilder(int index)

Output only. Errors encountered when creating or updating this deployment. Errors are truncated to 10 entries, see delete_results and error_logs for full details.

repeated .google.cloud.config.v1.TerraformError tf_errors = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
TerraformError.Builder

build()

public Revision build()
Returns
Type Description
Revision

buildPartial()

public Revision buildPartial()
Returns
Type Description
Revision

clear()

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

clearAction()

public Revision.Builder clearAction()

Output only. The action which created this revision

.google.cloud.config.v1.Revision.Action action = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Revision.Builder

This builder for chaining.

clearApplyResults()

public Revision.Builder clearApplyResults()

Output only. Outputs and artifacts from applying a deployment.

.google.cloud.config.v1.ApplyResults apply_results = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Revision.Builder

clearBlueprint()

public Revision.Builder clearBlueprint()
Returns
Type Description
Revision.Builder

clearBuild()

public Revision.Builder clearBuild()

Output only. Cloud Build instance UUID associated with this revision.

string build = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Revision.Builder

This builder for chaining.

clearCreateTime()

public Revision.Builder clearCreateTime()

Output only. Time when the revision was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Revision.Builder

clearErrorCode()

public Revision.Builder clearErrorCode()

Output only. Code describing any errors that may have occurred.

.google.cloud.config.v1.Revision.ErrorCode error_code = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Revision.Builder

This builder for chaining.

clearErrorLogs()

public Revision.Builder clearErrorLogs()

Output only. Location of Terraform error logs in Google Cloud Storage. Format: gs://{bucket}/{object}.

string error_logs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Revision.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearImportExistingResources()

public Revision.Builder clearImportExistingResources()

Output only. By default, Infra Manager will return a failure when Terraform encounters a 409 code (resource conflict error) during actuation. If this flag is set to true, Infra Manager will instead attempt to automatically import the resource into the Terraform state (for supported resource types) and continue actuation.

Not all resource types are supported, refer to documentation.

bool import_existing_resources = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Revision.Builder

This builder for chaining.

clearLogs()

public Revision.Builder clearLogs()

Output only. Location of Revision operation logs in gs://{bucket}/{object} format.

string logs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Revision.Builder

This builder for chaining.

clearName()

public Revision.Builder clearName()

Revision name. Format: projects/{project}/locations/{location}/deployments/{deployment}/ revisions/{revision}

string name = 1;

Returns
Type Description
Revision.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearQuotaValidation()

public Revision.Builder clearQuotaValidation()

Optional. Input to control quota checks for resources in terraform configuration files. There are limited resources on which quota validation applies.

.google.cloud.config.v1.QuotaValidation quota_validation = 20 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Revision.Builder

This builder for chaining.

clearQuotaValidationResults()

public Revision.Builder clearQuotaValidationResults()

Output only. Cloud Storage path containing quota validation results. This field is set when a user sets Deployment.quota_validation field to ENABLED or ENFORCED. Format: gs://{bucket}/{object}.

string quota_validation_results = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Revision.Builder

This builder for chaining.

clearServiceAccount()

public Revision.Builder clearServiceAccount()

Output only. User-specified Service Account (SA) to be used as credential to manage resources. Format: projects/{projectID}/serviceAccounts/{serviceAccount}

string service_account = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
Revision.Builder

This builder for chaining.

clearState()

public Revision.Builder clearState()

Output only. Current state of the revision.

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

Returns
Type Description
Revision.Builder

This builder for chaining.

clearStateDetail()

public Revision.Builder clearStateDetail()

Output only. Additional info regarding the current state.

string state_detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Revision.Builder

This builder for chaining.

clearTerraformBlueprint()

public Revision.Builder clearTerraformBlueprint()

Output only. A blueprint described using Terraform's HashiCorp Configuration Language as a root module.

.google.cloud.config.v1.TerraformBlueprint terraform_blueprint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Revision.Builder

clearTfErrors()

public Revision.Builder clearTfErrors()

Output only. Errors encountered when creating or updating this deployment. Errors are truncated to 10 entries, see delete_results and error_logs for full details.

repeated .google.cloud.config.v1.TerraformError tf_errors = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Revision.Builder

clearTfVersion()

public Revision.Builder clearTfVersion()

Output only. The version of Terraform used to create the Revision. It is in the format of "Major.Minor.Patch", for example, "1.3.10".

string tf_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Revision.Builder

This builder for chaining.

clearTfVersionConstraint()

public Revision.Builder clearTfVersionConstraint()

Output only. The user-specified Terraform version constraint. Example: "=1.3.10".

string tf_version_constraint = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Revision.Builder

This builder for chaining.

clearUpdateTime()

public Revision.Builder clearUpdateTime()

Output only. Time when the revision was last modified.

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

Returns
Type Description
Revision.Builder

clearWorkerPool()

public Revision.Builder clearWorkerPool()

Output only. The user-specified Cloud Build worker pool resource in which the Cloud Build job will execute. Format: projects/{project}/locations/{location}/workerPools/{workerPoolId}. If this field is unspecified, the default Cloud Build worker pool will be used.

string worker_pool = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
Revision.Builder

This builder for chaining.

clone()

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

getAction()

public Revision.Action getAction()

Output only. The action which created this revision

.google.cloud.config.v1.Revision.Action action = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Revision.Action

The action.

getActionValue()

public int getActionValue()

Output only. The action which created this revision

.google.cloud.config.v1.Revision.Action action = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for action.

getApplyResults()

public ApplyResults getApplyResults()

Output only. Outputs and artifacts from applying a deployment.

.google.cloud.config.v1.ApplyResults apply_results = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ApplyResults

The applyResults.

getApplyResultsBuilder()

public ApplyResults.Builder getApplyResultsBuilder()

Output only. Outputs and artifacts from applying a deployment.

.google.cloud.config.v1.ApplyResults apply_results = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ApplyResults.Builder

getApplyResultsOrBuilder()

public ApplyResultsOrBuilder getApplyResultsOrBuilder()

Output only. Outputs and artifacts from applying a deployment.

.google.cloud.config.v1.ApplyResults apply_results = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ApplyResultsOrBuilder

getBlueprintCase()

public Revision.BlueprintCase getBlueprintCase()
Returns
Type Description
Revision.BlueprintCase

getBuild()

public String getBuild()

Output only. Cloud Build instance UUID associated with this revision.

string build = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The build.

getBuildBytes()

public ByteString getBuildBytes()

Output only. Cloud Build instance UUID associated with this revision.

string build = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for build.

getCreateTime()

public Timestamp getCreateTime()

Output only. Time when the revision was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Time when the revision was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time when the revision was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Revision getDefaultInstanceForType()
Returns
Type Description
Revision

getDescriptorForType()

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

getErrorCode()

public Revision.ErrorCode getErrorCode()

Output only. Code describing any errors that may have occurred.

.google.cloud.config.v1.Revision.ErrorCode error_code = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Revision.ErrorCode

The errorCode.

getErrorCodeValue()

public int getErrorCodeValue()

Output only. Code describing any errors that may have occurred.

.google.cloud.config.v1.Revision.ErrorCode error_code = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for errorCode.

getErrorLogs()

public String getErrorLogs()

Output only. Location of Terraform error logs in Google Cloud Storage. Format: gs://{bucket}/{object}.

string error_logs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The errorLogs.

getErrorLogsBytes()

public ByteString getErrorLogsBytes()

Output only. Location of Terraform error logs in Google Cloud Storage. Format: gs://{bucket}/{object}.

string error_logs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for errorLogs.

getImportExistingResources()

public boolean getImportExistingResources()

Output only. By default, Infra Manager will return a failure when Terraform encounters a 409 code (resource conflict error) during actuation. If this flag is set to true, Infra Manager will instead attempt to automatically import the resource into the Terraform state (for supported resource types) and continue actuation.

Not all resource types are supported, refer to documentation.

bool import_existing_resources = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The importExistingResources.

getLogs()

public String getLogs()

Output only. Location of Revision operation logs in gs://{bucket}/{object} format.

string logs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The logs.

getLogsBytes()

public ByteString getLogsBytes()

Output only. Location of Revision operation logs in gs://{bucket}/{object} format.

string logs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for logs.

getName()

public String getName()

Revision name. Format: projects/{project}/locations/{location}/deployments/{deployment}/ revisions/{revision}

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Revision name. Format: projects/{project}/locations/{location}/deployments/{deployment}/ revisions/{revision}

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getQuotaValidation()

public QuotaValidation getQuotaValidation()

Optional. Input to control quota checks for resources in terraform configuration files. There are limited resources on which quota validation applies.

.google.cloud.config.v1.QuotaValidation quota_validation = 20 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
QuotaValidation

The quotaValidation.

getQuotaValidationResults()

public String getQuotaValidationResults()

Output only. Cloud Storage path containing quota validation results. This field is set when a user sets Deployment.quota_validation field to ENABLED or ENFORCED. Format: gs://{bucket}/{object}.

string quota_validation_results = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The quotaValidationResults.

getQuotaValidationResultsBytes()

public ByteString getQuotaValidationResultsBytes()

Output only. Cloud Storage path containing quota validation results. This field is set when a user sets Deployment.quota_validation field to ENABLED or ENFORCED. Format: gs://{bucket}/{object}.

string quota_validation_results = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for quotaValidationResults.

getQuotaValidationValue()

public int getQuotaValidationValue()

Optional. Input to control quota checks for resources in terraform configuration files. There are limited resources on which quota validation applies.

.google.cloud.config.v1.QuotaValidation quota_validation = 20 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for quotaValidation.

getServiceAccount()

public String getServiceAccount()

Output only. User-specified Service Account (SA) to be used as credential to manage resources. Format: projects/{projectID}/serviceAccounts/{serviceAccount}

string service_account = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The serviceAccount.

getServiceAccountBytes()

public ByteString getServiceAccountBytes()

Output only. User-specified Service Account (SA) to be used as credential to manage resources. Format: projects/{projectID}/serviceAccounts/{serviceAccount}

string service_account = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for serviceAccount.

getState()

public Revision.State getState()

Output only. Current state of the revision.

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

Returns
Type Description
Revision.State

The state.

getStateDetail()

public String getStateDetail()

Output only. Additional info regarding the current state.

string state_detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The stateDetail.

getStateDetailBytes()

public ByteString getStateDetailBytes()

Output only. Additional info regarding the current state.

string state_detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for stateDetail.

getStateValue()

public int getStateValue()

Output only. Current state of the revision.

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

Returns
Type Description
int

The enum numeric value on the wire for state.

getTerraformBlueprint()

public TerraformBlueprint getTerraformBlueprint()

Output only. A blueprint described using Terraform's HashiCorp Configuration Language as a root module.

.google.cloud.config.v1.TerraformBlueprint terraform_blueprint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TerraformBlueprint

The terraformBlueprint.

getTerraformBlueprintBuilder()

public TerraformBlueprint.Builder getTerraformBlueprintBuilder()

Output only. A blueprint described using Terraform's HashiCorp Configuration Language as a root module.

.google.cloud.config.v1.TerraformBlueprint terraform_blueprint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TerraformBlueprint.Builder

getTerraformBlueprintOrBuilder()

public TerraformBlueprintOrBuilder getTerraformBlueprintOrBuilder()

Output only. A blueprint described using Terraform's HashiCorp Configuration Language as a root module.

.google.cloud.config.v1.TerraformBlueprint terraform_blueprint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TerraformBlueprintOrBuilder

getTfErrors(int index)

public TerraformError getTfErrors(int index)

Output only. Errors encountered when creating or updating this deployment. Errors are truncated to 10 entries, see delete_results and error_logs for full details.

repeated .google.cloud.config.v1.TerraformError tf_errors = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
TerraformError

getTfErrorsBuilder(int index)

public TerraformError.Builder getTfErrorsBuilder(int index)

Output only. Errors encountered when creating or updating this deployment. Errors are truncated to 10 entries, see delete_results and error_logs for full details.

repeated .google.cloud.config.v1.TerraformError tf_errors = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
TerraformError.Builder

getTfErrorsBuilderList()

public List<TerraformError.Builder> getTfErrorsBuilderList()

Output only. Errors encountered when creating or updating this deployment. Errors are truncated to 10 entries, see delete_results and error_logs for full details.

repeated .google.cloud.config.v1.TerraformError tf_errors = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getTfErrorsCount()

public int getTfErrorsCount()

Output only. Errors encountered when creating or updating this deployment. Errors are truncated to 10 entries, see delete_results and error_logs for full details.

repeated .google.cloud.config.v1.TerraformError tf_errors = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getTfErrorsList()

public List<TerraformError> getTfErrorsList()

Output only. Errors encountered when creating or updating this deployment. Errors are truncated to 10 entries, see delete_results and error_logs for full details.

repeated .google.cloud.config.v1.TerraformError tf_errors = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<TerraformError>

getTfErrorsOrBuilder(int index)

public TerraformErrorOrBuilder getTfErrorsOrBuilder(int index)

Output only. Errors encountered when creating or updating this deployment. Errors are truncated to 10 entries, see delete_results and error_logs for full details.

repeated .google.cloud.config.v1.TerraformError tf_errors = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
TerraformErrorOrBuilder

getTfErrorsOrBuilderList()

public List<? extends TerraformErrorOrBuilder> getTfErrorsOrBuilderList()

Output only. Errors encountered when creating or updating this deployment. Errors are truncated to 10 entries, see delete_results and error_logs for full details.

repeated .google.cloud.config.v1.TerraformError tf_errors = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.config.v1.TerraformErrorOrBuilder>

getTfVersion()

public String getTfVersion()

Output only. The version of Terraform used to create the Revision. It is in the format of "Major.Minor.Patch", for example, "1.3.10".

string tf_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The tfVersion.

getTfVersionBytes()

public ByteString getTfVersionBytes()

Output only. The version of Terraform used to create the Revision. It is in the format of "Major.Minor.Patch", for example, "1.3.10".

string tf_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for tfVersion.

getTfVersionConstraint()

public String getTfVersionConstraint()

Output only. The user-specified Terraform version constraint. Example: "=1.3.10".

string tf_version_constraint = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The tfVersionConstraint.

getTfVersionConstraintBytes()

public ByteString getTfVersionConstraintBytes()

Output only. The user-specified Terraform version constraint. Example: "=1.3.10".

string tf_version_constraint = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for tfVersionConstraint.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Time when the revision was last modified.

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

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Time when the revision was last modified.

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

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Time when the revision was last modified.

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

Returns
Type Description
TimestampOrBuilder

getWorkerPool()

public String getWorkerPool()

Output only. The user-specified Cloud Build worker pool resource in which the Cloud Build job will execute. Format: projects/{project}/locations/{location}/workerPools/{workerPoolId}. If this field is unspecified, the default Cloud Build worker pool will be used.

string worker_pool = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The workerPool.

getWorkerPoolBytes()

public ByteString getWorkerPoolBytes()

Output only. The user-specified Cloud Build worker pool resource in which the Cloud Build job will execute. Format: projects/{project}/locations/{location}/workerPools/{workerPoolId}. If this field is unspecified, the default Cloud Build worker pool will be used.

string worker_pool = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for workerPool.

hasApplyResults()

public boolean hasApplyResults()

Output only. Outputs and artifacts from applying a deployment.

.google.cloud.config.v1.ApplyResults apply_results = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the applyResults field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. Time when the revision was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasTerraformBlueprint()

public boolean hasTerraformBlueprint()

Output only. A blueprint described using Terraform's HashiCorp Configuration Language as a root module.

.google.cloud.config.v1.TerraformBlueprint terraform_blueprint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the terraformBlueprint field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Time when the revision was last modified.

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

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeApplyResults(ApplyResults value)

public Revision.Builder mergeApplyResults(ApplyResults value)

Output only. Outputs and artifacts from applying a deployment.

.google.cloud.config.v1.ApplyResults apply_results = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ApplyResults
Returns
Type Description
Revision.Builder

mergeCreateTime(Timestamp value)

public Revision.Builder mergeCreateTime(Timestamp value)

Output only. Time when the revision was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Revision.Builder

mergeFrom(Revision other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTerraformBlueprint(TerraformBlueprint value)

public Revision.Builder mergeTerraformBlueprint(TerraformBlueprint value)

Output only. A blueprint described using Terraform's HashiCorp Configuration Language as a root module.

.google.cloud.config.v1.TerraformBlueprint terraform_blueprint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value TerraformBlueprint
Returns
Type Description
Revision.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Revision.Builder mergeUpdateTime(Timestamp value)

Output only. Time when the revision was last modified.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Revision.Builder

removeTfErrors(int index)

public Revision.Builder removeTfErrors(int index)

Output only. Errors encountered when creating or updating this deployment. Errors are truncated to 10 entries, see delete_results and error_logs for full details.

repeated .google.cloud.config.v1.TerraformError tf_errors = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Revision.Builder

setAction(Revision.Action value)

public Revision.Builder setAction(Revision.Action value)

Output only. The action which created this revision

.google.cloud.config.v1.Revision.Action action = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Revision.Action

The action to set.

Returns
Type Description
Revision.Builder

This builder for chaining.

setActionValue(int value)

public Revision.Builder setActionValue(int value)

Output only. The action which created this revision

.google.cloud.config.v1.Revision.Action action = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
Revision.Builder

This builder for chaining.

setApplyResults(ApplyResults value)

public Revision.Builder setApplyResults(ApplyResults value)

Output only. Outputs and artifacts from applying a deployment.

.google.cloud.config.v1.ApplyResults apply_results = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ApplyResults
Returns
Type Description
Revision.Builder

setApplyResults(ApplyResults.Builder builderForValue)

public Revision.Builder setApplyResults(ApplyResults.Builder builderForValue)

Output only. Outputs and artifacts from applying a deployment.

.google.cloud.config.v1.ApplyResults apply_results = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue ApplyResults.Builder
Returns
Type Description
Revision.Builder

setBuild(String value)

public Revision.Builder setBuild(String value)

Output only. Cloud Build instance UUID associated with this revision.

string build = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The build to set.

Returns
Type Description
Revision.Builder

This builder for chaining.

setBuildBytes(ByteString value)

public Revision.Builder setBuildBytes(ByteString value)

Output only. Cloud Build instance UUID associated with this revision.

string build = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for build to set.

Returns
Type Description
Revision.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public Revision.Builder setCreateTime(Timestamp value)

Output only. Time when the revision was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Revision.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Revision.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Time when the revision was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Revision.Builder

setErrorCode(Revision.ErrorCode value)

public Revision.Builder setErrorCode(Revision.ErrorCode value)

Output only. Code describing any errors that may have occurred.

.google.cloud.config.v1.Revision.ErrorCode error_code = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Revision.ErrorCode

The errorCode to set.

Returns
Type Description
Revision.Builder

This builder for chaining.

setErrorCodeValue(int value)

public Revision.Builder setErrorCodeValue(int value)

Output only. Code describing any errors that may have occurred.

.google.cloud.config.v1.Revision.ErrorCode error_code = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
Revision.Builder

This builder for chaining.

setErrorLogs(String value)

public Revision.Builder setErrorLogs(String value)

Output only. Location of Terraform error logs in Google Cloud Storage. Format: gs://{bucket}/{object}.

string error_logs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The errorLogs to set.

Returns
Type Description
Revision.Builder

This builder for chaining.

setErrorLogsBytes(ByteString value)

public Revision.Builder setErrorLogsBytes(ByteString value)

Output only. Location of Terraform error logs in Google Cloud Storage. Format: gs://{bucket}/{object}.

string error_logs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for errorLogs to set.

Returns
Type Description
Revision.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setImportExistingResources(boolean value)

public Revision.Builder setImportExistingResources(boolean value)

Output only. By default, Infra Manager will return a failure when Terraform encounters a 409 code (resource conflict error) during actuation. If this flag is set to true, Infra Manager will instead attempt to automatically import the resource into the Terraform state (for supported resource types) and continue actuation.

Not all resource types are supported, refer to documentation.

bool import_existing_resources = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The importExistingResources to set.

Returns
Type Description
Revision.Builder

This builder for chaining.

setLogs(String value)

public Revision.Builder setLogs(String value)

Output only. Location of Revision operation logs in gs://{bucket}/{object} format.

string logs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The logs to set.

Returns
Type Description
Revision.Builder

This builder for chaining.

setLogsBytes(ByteString value)

public Revision.Builder setLogsBytes(ByteString value)

Output only. Location of Revision operation logs in gs://{bucket}/{object} format.

string logs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for logs to set.

Returns
Type Description
Revision.Builder

This builder for chaining.

setName(String value)

public Revision.Builder setName(String value)

Revision name. Format: projects/{project}/locations/{location}/deployments/{deployment}/ revisions/{revision}

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Revision.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Revision.Builder setNameBytes(ByteString value)

Revision name. Format: projects/{project}/locations/{location}/deployments/{deployment}/ revisions/{revision}

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Revision.Builder

This builder for chaining.

setQuotaValidation(QuotaValidation value)

public Revision.Builder setQuotaValidation(QuotaValidation value)

Optional. Input to control quota checks for resources in terraform configuration files. There are limited resources on which quota validation applies.

.google.cloud.config.v1.QuotaValidation quota_validation = 20 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value QuotaValidation

The quotaValidation to set.

Returns
Type Description
Revision.Builder

This builder for chaining.

setQuotaValidationResults(String value)

public Revision.Builder setQuotaValidationResults(String value)

Output only. Cloud Storage path containing quota validation results. This field is set when a user sets Deployment.quota_validation field to ENABLED or ENFORCED. Format: gs://{bucket}/{object}.

string quota_validation_results = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The quotaValidationResults to set.

Returns
Type Description
Revision.Builder

This builder for chaining.

setQuotaValidationResultsBytes(ByteString value)

public Revision.Builder setQuotaValidationResultsBytes(ByteString value)

Output only. Cloud Storage path containing quota validation results. This field is set when a user sets Deployment.quota_validation field to ENABLED or ENFORCED. Format: gs://{bucket}/{object}.

string quota_validation_results = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for quotaValidationResults to set.

Returns
Type Description
Revision.Builder

This builder for chaining.

setQuotaValidationValue(int value)

public Revision.Builder setQuotaValidationValue(int value)

Optional. Input to control quota checks for resources in terraform configuration files. There are limited resources on which quota validation applies.

.google.cloud.config.v1.QuotaValidation quota_validation = 20 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
Revision.Builder

This builder for chaining.

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

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

setServiceAccount(String value)

public Revision.Builder setServiceAccount(String value)

Output only. User-specified Service Account (SA) to be used as credential to manage resources. Format: projects/{projectID}/serviceAccounts/{serviceAccount}

string service_account = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The serviceAccount to set.

Returns
Type Description
Revision.Builder

This builder for chaining.

setServiceAccountBytes(ByteString value)

public Revision.Builder setServiceAccountBytes(ByteString value)

Output only. User-specified Service Account (SA) to be used as credential to manage resources. Format: projects/{projectID}/serviceAccounts/{serviceAccount}

string service_account = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for serviceAccount to set.

Returns
Type Description
Revision.Builder

This builder for chaining.

setState(Revision.State value)

public Revision.Builder setState(Revision.State value)

Output only. Current state of the revision.

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

Parameter
Name Description
value Revision.State

The state to set.

Returns
Type Description
Revision.Builder

This builder for chaining.

setStateDetail(String value)

public Revision.Builder setStateDetail(String value)

Output only. Additional info regarding the current state.

string state_detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The stateDetail to set.

Returns
Type Description
Revision.Builder

This builder for chaining.

setStateDetailBytes(ByteString value)

public Revision.Builder setStateDetailBytes(ByteString value)

Output only. Additional info regarding the current state.

string state_detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for stateDetail to set.

Returns
Type Description
Revision.Builder

This builder for chaining.

setStateValue(int value)

public Revision.Builder setStateValue(int value)

Output only. Current state of the revision.

.google.cloud.config.v1.Revision.State state = 5 [(.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
Revision.Builder

This builder for chaining.

setTerraformBlueprint(TerraformBlueprint value)

public Revision.Builder setTerraformBlueprint(TerraformBlueprint value)

Output only. A blueprint described using Terraform's HashiCorp Configuration Language as a root module.

.google.cloud.config.v1.TerraformBlueprint terraform_blueprint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value TerraformBlueprint
Returns
Type Description
Revision.Builder

setTerraformBlueprint(TerraformBlueprint.Builder builderForValue)

public Revision.Builder setTerraformBlueprint(TerraformBlueprint.Builder builderForValue)

Output only. A blueprint described using Terraform's HashiCorp Configuration Language as a root module.

.google.cloud.config.v1.TerraformBlueprint terraform_blueprint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

setTfErrors(int index, TerraformError value)

public Revision.Builder setTfErrors(int index, TerraformError value)

Output only. Errors encountered when creating or updating this deployment. Errors are truncated to 10 entries, see delete_results and error_logs for full details.

repeated .google.cloud.config.v1.TerraformError tf_errors = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value TerraformError
Returns
Type Description
Revision.Builder

setTfErrors(int index, TerraformError.Builder builderForValue)

public Revision.Builder setTfErrors(int index, TerraformError.Builder builderForValue)

Output only. Errors encountered when creating or updating this deployment. Errors are truncated to 10 entries, see delete_results and error_logs for full details.

repeated .google.cloud.config.v1.TerraformError tf_errors = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue TerraformError.Builder
Returns
Type Description
Revision.Builder

setTfVersion(String value)

public Revision.Builder setTfVersion(String value)

Output only. The version of Terraform used to create the Revision. It is in the format of "Major.Minor.Patch", for example, "1.3.10".

string tf_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The tfVersion to set.

Returns
Type Description
Revision.Builder

This builder for chaining.

setTfVersionBytes(ByteString value)

public Revision.Builder setTfVersionBytes(ByteString value)

Output only. The version of Terraform used to create the Revision. It is in the format of "Major.Minor.Patch", for example, "1.3.10".

string tf_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for tfVersion to set.

Returns
Type Description
Revision.Builder

This builder for chaining.

setTfVersionConstraint(String value)

public Revision.Builder setTfVersionConstraint(String value)

Output only. The user-specified Terraform version constraint. Example: "=1.3.10".

string tf_version_constraint = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The tfVersionConstraint to set.

Returns
Type Description
Revision.Builder

This builder for chaining.

setTfVersionConstraintBytes(ByteString value)

public Revision.Builder setTfVersionConstraintBytes(ByteString value)

Output only. The user-specified Terraform version constraint. Example: "=1.3.10".

string tf_version_constraint = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for tfVersionConstraint to set.

Returns
Type Description
Revision.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Revision.Builder setUpdateTime(Timestamp value)

Output only. Time when the revision was last modified.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Revision.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Revision.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Time when the revision was last modified.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Revision.Builder

setWorkerPool(String value)

public Revision.Builder setWorkerPool(String value)

Output only. The user-specified Cloud Build worker pool resource in which the Cloud Build job will execute. Format: projects/{project}/locations/{location}/workerPools/{workerPoolId}. If this field is unspecified, the default Cloud Build worker pool will be used.

string worker_pool = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The workerPool to set.

Returns
Type Description
Revision.Builder

This builder for chaining.

setWorkerPoolBytes(ByteString value)

public Revision.Builder setWorkerPoolBytes(ByteString value)

Output only. The user-specified Cloud Build worker pool resource in which the Cloud Build job will execute. Format: projects/{project}/locations/{location}/workerPools/{workerPoolId}. If this field is unspecified, the default Cloud Build worker pool will be used.

string worker_pool = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for workerPool to set.

Returns
Type Description
Revision.Builder

This builder for chaining.