Class Revision.Builder (0.5.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.config.v1.TerraformError>
Returns
TypeDescription
Revision.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Revision.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueTerraformError
Returns
TypeDescription
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
NameDescription
builderForValueTerraformError.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueTerraformError
Returns
TypeDescription
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
NameDescription
indexint
builderForValueTerraformError.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
TerraformError.Builder

build()

public Revision build()
Returns
TypeDescription
Revision

buildPartial()

public Revision buildPartial()
Returns
TypeDescription
Revision

clear()

public Revision.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Revision.Builder

clearBlueprint()

public Revision.Builder clearBlueprint()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Revision.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Revision.Builder

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
TypeDescription
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
TypeDescription
Revision.Builder

This builder for chaining.

clone()

public Revision.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ApplyResultsOrBuilder

getBlueprintCase()

public Revision.BlueprintCase getBlueprintCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Revision getDefaultInstanceForType()
Returns
TypeDescription
Revision

getDescriptorForType()

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

The bytes for logs.

getName()

public String getName()

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

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.config.v1.TerraformErrorOrBuilder>

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueApplyResults
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
Revision.Builder

mergeFrom(Revision other)

public Revision.Builder mergeFrom(Revision other)
Parameter
NameDescription
otherRevision
Returns
TypeDescription
Revision.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Revision.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueRevision.Action

The action to set.

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

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

Returns
TypeDescription
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
NameDescription
valueApplyResults
Returns
TypeDescription
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
NameDescription
builderForValueApplyResults.Builder
Returns
TypeDescription
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
NameDescription
valueString

The build to set.

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

The bytes for build to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueRevision.ErrorCode

The errorCode to set.

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

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

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

The errorLogs to set.

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

The bytes for errorLogs to set.

Returns
TypeDescription
Revision.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The importExistingResources to set.

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

The logs to set.

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

The bytes for logs to set.

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

The name to set.

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

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The serviceAccount to set.

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

The bytes for serviceAccount to set.

Returns
TypeDescription
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
NameDescription
valueRevision.State

The state to set.

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

The stateDetail to set.

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

The bytes for stateDetail to set.

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

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

Returns
TypeDescription
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
NameDescription
valueTerraformBlueprint
Returns
TypeDescription
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
NameDescription
builderForValueTerraformBlueprint.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueTerraformError
Returns
TypeDescription
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
NameDescription
indexint
builderForValueTerraformError.Builder
Returns
TypeDescription
Revision.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Revision.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The workerPool to set.

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

The bytes for workerPool to set.

Returns
TypeDescription
Revision.Builder

This builder for chaining.