public final class Revision extends GeneratedMessageV3 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
ACTION_FIELD_NUMBER
public static final int ACTION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
APPLY_RESULTS_FIELD_NUMBER
public static final int APPLY_RESULTS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
BUILD_FIELD_NUMBER
public static final int BUILD_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_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 | |
LOGS_FIELD_NUMBER
public static final int LOGS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
NAME_FIELD_NUMBER
public static final int NAME_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 | |
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 | |
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 Revision getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Revision.Builder newBuilder()
newBuilder(Revision prototype)
public static Revision.Builder newBuilder(Revision prototype)
Parameter |
---|
Name | Description |
prototype | Revision
|
public static Revision parseDelimitedFrom(InputStream input)
public static Revision parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Revision parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Revision parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Revision parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Revision parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Revision parseFrom(CodedInputStream input)
public static Revision parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Revision parseFrom(InputStream input)
public static Revision parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Revision parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Revision parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Revision> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
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];
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];
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];
getBlueprintCase()
public Revision.BlueprintCase getBlueprintCase()
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.
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Time when the revision was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDefaultInstanceForType()
public Revision getDefaultInstanceForType()
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];
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()
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()
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.
|
getParserForType()
public Parser<Revision> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
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];
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.
|
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];
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];
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
|
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];
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
|
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> | |
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.
|
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];
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.
|
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.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Revision.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Revision.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public Revision.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides