Class Deployment (0.31.0)

public final class Deployment extends GeneratedMessageV3 implements DeploymentOrBuilder

A Deployment is a group of resources and configs managed and provisioned by Infra Manager.

Protobuf type google.cloud.config.v1.Deployment

Implements

DeploymentOrBuilder

Static Fields

ANNOTATIONS_FIELD_NUMBER

public static final int ANNOTATIONS_FIELD_NUMBER
Field Value
Type Description
int

ARTIFACTS_GCS_BUCKET_FIELD_NUMBER

public static final int ARTIFACTS_GCS_BUCKET_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DELETE_BUILD_FIELD_NUMBER

public static final int DELETE_BUILD_FIELD_NUMBER
Field Value
Type Description
int

DELETE_LOGS_FIELD_NUMBER

public static final int DELETE_LOGS_FIELD_NUMBER
Field Value
Type Description
int

DELETE_RESULTS_FIELD_NUMBER

public static final int DELETE_RESULTS_FIELD_NUMBER
Field Value
Type Description
int

ERROR_CODE_FIELD_NUMBER

public static final int ERROR_CODE_FIELD_NUMBER
Field Value
Type Description
int

ERROR_LOGS_FIELD_NUMBER

public static final int ERROR_LOGS_FIELD_NUMBER
Field Value
Type Description
int

IMPORT_EXISTING_RESOURCES_FIELD_NUMBER

public static final int IMPORT_EXISTING_RESOURCES_FIELD_NUMBER
Field Value
Type Description
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
Type Description
int

LATEST_REVISION_FIELD_NUMBER

public static final int LATEST_REVISION_FIELD_NUMBER
Field Value
Type Description
int

LOCK_STATE_FIELD_NUMBER

public static final int LOCK_STATE_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

QUOTA_VALIDATION_FIELD_NUMBER

public static final int QUOTA_VALIDATION_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_ACCOUNT_FIELD_NUMBER

public static final int SERVICE_ACCOUNT_FIELD_NUMBER
Field Value
Type Description
int

STATE_DETAIL_FIELD_NUMBER

public static final int STATE_DETAIL_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

TERRAFORM_BLUEPRINT_FIELD_NUMBER

public static final int TERRAFORM_BLUEPRINT_FIELD_NUMBER
Field Value
Type Description
int

TF_ERRORS_FIELD_NUMBER

public static final int TF_ERRORS_FIELD_NUMBER
Field Value
Type Description
int

TF_VERSION_CONSTRAINT_FIELD_NUMBER

public static final int TF_VERSION_CONSTRAINT_FIELD_NUMBER
Field Value
Type Description
int

TF_VERSION_FIELD_NUMBER

public static final int TF_VERSION_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

WORKER_POOL_FIELD_NUMBER

public static final int WORKER_POOL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Deployment getDefaultInstance()
Returns
Type Description
Deployment

getDescriptor()

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

newBuilder()

public static Deployment.Builder newBuilder()
Returns
Type Description
Deployment.Builder

newBuilder(Deployment prototype)

public static Deployment.Builder newBuilder(Deployment prototype)
Parameter
Name Description
prototype Deployment
Returns
Type Description
Deployment.Builder

parseDelimitedFrom(InputStream input)

public static Deployment parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Deployment
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Deployment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Deployment
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Deployment parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Deployment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Deployment parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Deployment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Deployment parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Deployment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Deployment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Deployment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Deployment parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Deployment
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Deployment parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Deployment
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Deployment parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Deployment
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Deployment parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Deployment
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Deployment parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Deployment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Deployment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Deployment
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Deployment> parser()
Returns
Type Description
Parser<Deployment>

Methods

containsAnnotations(String key)

public boolean containsAnnotations(String key)

Optional. Arbitrary key-value metadata storage e.g. to help client tools identify deployments during automation. See https://google.aip.dev/148#annotations for details on format and size limitations.

map<string, string> annotations = 24 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

containsLabels(String key)

public boolean containsLabels(String key)

User-defined metadata for the deployment.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAnnotations() (deprecated)

public Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
Type Description
Map<String,String>

getAnnotationsCount()

public int getAnnotationsCount()

Optional. Arbitrary key-value metadata storage e.g. to help client tools identify deployments during automation. See https://google.aip.dev/148#annotations for details on format and size limitations.

map<string, string> annotations = 24 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getAnnotationsMap()

public Map<String,String> getAnnotationsMap()

Optional. Arbitrary key-value metadata storage e.g. to help client tools identify deployments during automation. See https://google.aip.dev/148#annotations for details on format and size limitations.

map<string, string> annotations = 24 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getAnnotationsOrDefault(String key, String defaultValue)

public String getAnnotationsOrDefault(String key, String defaultValue)

Optional. Arbitrary key-value metadata storage e.g. to help client tools identify deployments during automation. See https://google.aip.dev/148#annotations for details on format and size limitations.

map<string, string> annotations = 24 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getAnnotationsOrThrow(String key)

public String getAnnotationsOrThrow(String key)

Optional. Arbitrary key-value metadata storage e.g. to help client tools identify deployments during automation. See https://google.aip.dev/148#annotations for details on format and size limitations.

map<string, string> annotations = 24 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getArtifactsGcsBucket()

public String getArtifactsGcsBucket()

Optional. User-defined location of Cloud Build logs and artifacts in Google Cloud Storage. Format: gs://{bucket}/{folder}

A default bucket will be bootstrapped if the field is not set or empty. Default bucket format: gs://<project number>-<region>-blueprint-config Constraints:

  • The bucket needs to be in the same project as the deployment
  • The path cannot be within the path of gcs_source
  • The field cannot be updated, including changing its presence

optional string artifacts_gcs_bucket = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The artifactsGcsBucket.

getArtifactsGcsBucketBytes()

public ByteString getArtifactsGcsBucketBytes()

Optional. User-defined location of Cloud Build logs and artifacts in Google Cloud Storage. Format: gs://{bucket}/{folder}

A default bucket will be bootstrapped if the field is not set or empty. Default bucket format: gs://<project number>-<region>-blueprint-config Constraints:

  • The bucket needs to be in the same project as the deployment
  • The path cannot be within the path of gcs_source
  • The field cannot be updated, including changing its presence

optional string artifacts_gcs_bucket = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for artifactsGcsBucket.

getBlueprintCase()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. Time when the deployment was created.

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time when the deployment was created.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Deployment getDefaultInstanceForType()
Returns
Type Description
Deployment

getDeleteBuild()

public String getDeleteBuild()

Output only. Cloud Build instance UUID associated with deleting this deployment.

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

Returns
Type Description
String

The deleteBuild.

getDeleteBuildBytes()

public ByteString getDeleteBuildBytes()

Output only. Cloud Build instance UUID associated with deleting this deployment.

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

Returns
Type Description
ByteString

The bytes for deleteBuild.

getDeleteLogs()

public String getDeleteLogs()

Output only. Location of Cloud Build logs in Google Cloud Storage, populated when deleting this deployment. Format: gs://{bucket}/{object}.

string delete_logs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The deleteLogs.

getDeleteLogsBytes()

public ByteString getDeleteLogsBytes()

Output only. Location of Cloud Build logs in Google Cloud Storage, populated when deleting this deployment. Format: gs://{bucket}/{object}.

string delete_logs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for deleteLogs.

getDeleteResults()

public ApplyResults getDeleteResults()

Output only. Location of artifacts from a DeleteDeployment operation.

.google.cloud.config.v1.ApplyResults delete_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ApplyResults

The deleteResults.

getDeleteResultsOrBuilder()

public ApplyResultsOrBuilder getDeleteResultsOrBuilder()

Output only. Location of artifacts from a DeleteDeployment operation.

.google.cloud.config.v1.ApplyResults delete_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ApplyResultsOrBuilder

getErrorCode()

public Deployment.ErrorCode getErrorCode()

Output only. Error code describing errors that may have occurred.

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

Returns
Type Description
Deployment.ErrorCode

The errorCode.

getErrorCodeValue()

public int getErrorCodeValue()

Output only. Error code describing errors that may have occurred.

.google.cloud.config.v1.Deployment.ErrorCode error_code = 10 [(.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 = 14 [(.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 = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for errorLogs.

getImportExistingResources()

public boolean getImportExistingResources()

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.

optional bool import_existing_resources = 17;

Returns
Type Description
boolean

The importExistingResources.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

User-defined metadata for the deployment.

map<string, string> labels = 4;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

User-defined metadata for the deployment.

map<string, string> labels = 4;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

User-defined metadata for the deployment.

map<string, string> labels = 4;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

User-defined metadata for the deployment.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
String

getLatestRevision()

public String getLatestRevision()

Output only. Revision name that was most recently applied. Format: projects/{project}/locations/{location}/deployments/{deployment}/ revisions/{revision}

string latest_revision = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The latestRevision.

getLatestRevisionBytes()

public ByteString getLatestRevisionBytes()

Output only. Revision name that was most recently applied. Format: projects/{project}/locations/{location}/deployments/{deployment}/ revisions/{revision}

string latest_revision = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for latestRevision.

getLockState()

public Deployment.LockState getLockState()

Output only. Current lock state of the deployment.

.google.cloud.config.v1.Deployment.LockState lock_state = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Deployment.LockState

The lockState.

getLockStateValue()

public int getLockStateValue()

Output only. Current lock state of the deployment.

.google.cloud.config.v1.Deployment.LockState lock_state = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for lockState.

getName()

public String getName()

Resource name of the deployment. Format: projects/{project}/locations/{location}/deployments/{deployment}

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Resource name of the deployment. Format: projects/{project}/locations/{location}/deployments/{deployment}

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<Deployment> getParserForType()
Returns
Type Description
Parser<Deployment>
Overrides

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 = 23 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
QuotaValidation

The quotaValidation.

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 = 23 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for quotaValidation.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getServiceAccount()

public String getServiceAccount()

Optional. User-specified Service Account (SA) credentials to be used when actuating resources. Format: projects/{projectID}/serviceAccounts/{serviceAccount}

optional string service_account = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The serviceAccount.

getServiceAccountBytes()

public ByteString getServiceAccountBytes()

Optional. User-specified Service Account (SA) credentials to be used when actuating resources. Format: projects/{projectID}/serviceAccounts/{serviceAccount}

optional string service_account = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for serviceAccount.

getState()

public Deployment.State getState()

Output only. Current state of the deployment.

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

Returns
Type Description
Deployment.State

The state.

getStateDetail()

public String getStateDetail()

Output only. Additional information regarding the current state.

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

Returns
Type Description
String

The stateDetail.

getStateDetailBytes()

public ByteString getStateDetailBytes()

Output only. Additional information regarding the current state.

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

Returns
Type Description
ByteString

The bytes for stateDetail.

getStateValue()

public int getStateValue()

Output only. Current state of the deployment.

.google.cloud.config.v1.Deployment.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()

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

.google.cloud.config.v1.TerraformBlueprint terraform_blueprint = 6;

Returns
Type Description
TerraformBlueprint

The terraformBlueprint.

getTerraformBlueprintOrBuilder()

public TerraformBlueprintOrBuilder getTerraformBlueprintOrBuilder()

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

.google.cloud.config.v1.TerraformBlueprint terraform_blueprint = 6;

Returns
Type Description
TerraformBlueprintOrBuilder

getTfErrors(int index)

public TerraformError getTfErrors(int index)

Output only. Errors encountered when deleting 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 = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
TerraformError

getTfErrorsCount()

public int getTfErrorsCount()

Output only. Errors encountered when deleting 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 = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getTfErrorsList()

public List<TerraformError> getTfErrorsList()

Output only. Errors encountered when deleting 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 = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<TerraformError>

getTfErrorsOrBuilder(int index)

public TerraformErrorOrBuilder getTfErrorsOrBuilder(int index)

Output only. Errors encountered when deleting 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 = 13 [(.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 deleting 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 = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

getTfVersion()

public String getTfVersion()

Output only. The current Terraform version set on the deployment. It is in the format of "Major.Minor.Patch", for example, "1.3.10".

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

Returns
Type Description
String

The tfVersion.

getTfVersionBytes()

public ByteString getTfVersionBytes()

Output only. The current Terraform version set on the deployment. It is in the format of "Major.Minor.Patch", for example, "1.3.10".

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

Returns
Type Description
ByteString

The bytes for tfVersion.

getTfVersionConstraint()

public String getTfVersionConstraint()

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

optional string tf_version_constraint = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The tfVersionConstraint.

getTfVersionConstraintBytes()

public ByteString getTfVersionConstraintBytes()

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

optional string tf_version_constraint = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for tfVersionConstraint.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Time when the deployment was last modified.

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

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Time when the deployment was last modified.

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

Returns
Type Description
TimestampOrBuilder

getWorkerPool()

public String getWorkerPool()

Optional. 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.

optional string worker_pool = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The workerPool.

getWorkerPoolBytes()

public ByteString getWorkerPoolBytes()

Optional. 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.

optional string worker_pool = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for workerPool.

hasArtifactsGcsBucket()

public boolean hasArtifactsGcsBucket()

Optional. User-defined location of Cloud Build logs and artifacts in Google Cloud Storage. Format: gs://{bucket}/{folder}

A default bucket will be bootstrapped if the field is not set or empty. Default bucket format: gs://<project number>-<region>-blueprint-config Constraints:

  • The bucket needs to be in the same project as the deployment
  • The path cannot be within the path of gcs_source
  • The field cannot be updated, including changing its presence

optional string artifacts_gcs_bucket = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the artifactsGcsBucket field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. Time when the deployment was created.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasDeleteResults()

public boolean hasDeleteResults()

Output only. Location of artifacts from a DeleteDeployment operation.

.google.cloud.config.v1.ApplyResults delete_results = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the deleteResults field is set.

hasImportExistingResources()

public boolean hasImportExistingResources()

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.

optional bool import_existing_resources = 17;

Returns
Type Description
boolean

Whether the importExistingResources field is set.

hasServiceAccount()

public boolean hasServiceAccount()

Optional. User-specified Service Account (SA) credentials to be used when actuating resources. Format: projects/{projectID}/serviceAccounts/{serviceAccount}

optional string service_account = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the serviceAccount field is set.

hasTerraformBlueprint()

public boolean hasTerraformBlueprint()

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

.google.cloud.config.v1.TerraformBlueprint terraform_blueprint = 6;

Returns
Type Description
boolean

Whether the terraformBlueprint field is set.

hasTfVersionConstraint()

public boolean hasTfVersionConstraint()

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

optional string tf_version_constraint = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the tfVersionConstraint field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Time when the deployment 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.

hasWorkerPool()

public boolean hasWorkerPool()

Optional. 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.

optional string worker_pool = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the workerPool field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Deployment.Builder newBuilderForType()
Returns
Type Description
Deployment.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Deployment.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Deployment.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Deployment.Builder toBuilder()
Returns
Type Description
Deployment.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException