Class Revision

  • All Implemented Interfaces:
    RevisionOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class Revision
    extends com.google.protobuf.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
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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];
        Specified by:
        hasTerraformBlueprint in interface RevisionOrBuilder
        Returns:
        Whether the terraformBlueprint field is set.
      • 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];
        Specified by:
        getTerraformBlueprint in interface RevisionOrBuilder
        Returns:
        The terraformBlueprint.
      • 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];
        Specified by:
        getTerraformBlueprintOrBuilder in interface RevisionOrBuilder
      • getName

        public String getName()
         Revision name. Format:
         `projects/{project}/locations/{location}/deployments/{deployment}/
         revisions/{revision}`
         
        string name = 1;
        Specified by:
        getName in interface RevisionOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Revision name. Format:
         `projects/{project}/locations/{location}/deployments/{deployment}/
         revisions/{revision}`
         
        string name = 1;
        Specified by:
        getNameBytes in interface RevisionOrBuilder
        Returns:
        The bytes for name.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. Time when the revision was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface RevisionOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. Time when the revision was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface RevisionOrBuilder
        Returns:
        The createTime.
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. Time when the revision was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface RevisionOrBuilder
      • 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];
        Specified by:
        hasUpdateTime in interface RevisionOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. Time when the revision was last modified.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface RevisionOrBuilder
        Returns:
        The updateTime.
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. Time when the revision was last modified.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface RevisionOrBuilder
      • 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];
        Specified by:
        getActionValue in interface RevisionOrBuilder
        Returns:
        The enum numeric value on the wire for action.
      • 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];
        Specified by:
        getAction in interface RevisionOrBuilder
        Returns:
        The action.
      • 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];
        Specified by:
        getStateValue in interface RevisionOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • 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];
        Specified by:
        getState in interface RevisionOrBuilder
        Returns:
        The state.
      • 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];
        Specified by:
        hasApplyResults in interface RevisionOrBuilder
        Returns:
        Whether the applyResults field is set.
      • 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];
        Specified by:
        getApplyResults in interface RevisionOrBuilder
        Returns:
        The applyResults.
      • 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];
        Specified by:
        getApplyResultsOrBuilder in interface RevisionOrBuilder
      • getStateDetail

        public String getStateDetail()
         Output only. Additional info regarding the current state.
         
        string state_detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateDetail in interface RevisionOrBuilder
        Returns:
        The stateDetail.
      • getStateDetailBytes

        public com.google.protobuf.ByteString getStateDetailBytes()
         Output only. Additional info regarding the current state.
         
        string state_detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateDetailBytes in interface RevisionOrBuilder
        Returns:
        The bytes for stateDetail.
      • 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];
        Specified by:
        getErrorCodeValue in interface RevisionOrBuilder
        Returns:
        The enum numeric value on the wire for errorCode.
      • 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];
        Specified by:
        getErrorCode in interface RevisionOrBuilder
        Returns:
        The errorCode.
      • getBuild

        public String getBuild()
         Output only. Cloud Build instance UUID associated with this revision.
         
        string build = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getBuild in interface RevisionOrBuilder
        Returns:
        The build.
      • getBuildBytes

        public com.google.protobuf.ByteString getBuildBytes()
         Output only. Cloud Build instance UUID associated with this revision.
         
        string build = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getBuildBytes in interface RevisionOrBuilder
        Returns:
        The bytes for build.
      • 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];
        Specified by:
        getLogs in interface RevisionOrBuilder
        Returns:
        The logs.
      • getLogsBytes

        public com.google.protobuf.ByteString getLogsBytes()
         Output only. Location of Revision operation logs in
         `gs://{bucket}/{object}` format.
         
        string logs = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getLogsBytes in interface RevisionOrBuilder
        Returns:
        The bytes for logs.
      • 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];
        Specified by:
        getTfErrorsList in interface RevisionOrBuilder
      • 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];
        Specified by:
        getTfErrorsOrBuilderList in interface RevisionOrBuilder
      • 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];
        Specified by:
        getTfErrorsCount in interface RevisionOrBuilder
      • getTfErrors

        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];
        Specified by:
        getTfErrors in interface RevisionOrBuilder
      • getTfErrorsOrBuilder

        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];
        Specified by:
        getTfErrorsOrBuilder in interface RevisionOrBuilder
      • 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];
        Specified by:
        getErrorLogs in interface RevisionOrBuilder
        Returns:
        The errorLogs.
      • getErrorLogsBytes

        public com.google.protobuf.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];
        Specified by:
        getErrorLogsBytes in interface RevisionOrBuilder
        Returns:
        The bytes for errorLogs.
      • 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) = { ... }
        Specified by:
        getServiceAccount in interface RevisionOrBuilder
        Returns:
        The serviceAccount.
      • getServiceAccountBytes

        public com.google.protobuf.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) = { ... }
        Specified by:
        getServiceAccountBytes in interface RevisionOrBuilder
        Returns:
        The bytes for serviceAccount.
      • 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];
        Specified by:
        getImportExistingResources in interface RevisionOrBuilder
        Returns:
        The importExistingResources.
      • 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) = { ... }
        Specified by:
        getWorkerPool in interface RevisionOrBuilder
        Returns:
        The workerPool.
      • getWorkerPoolBytes

        public com.google.protobuf.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) = { ... }
        Specified by:
        getWorkerPoolBytes in interface RevisionOrBuilder
        Returns:
        The bytes for workerPool.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Revision parseFrom​(ByteBuffer data)
                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Revision parseFrom​(ByteBuffer data,
                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Revision parseFrom​(com.google.protobuf.ByteString data)
                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Revision parseFrom​(com.google.protobuf.ByteString data,
                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Revision parseFrom​(byte[] data)
                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Revision parseFrom​(byte[] data,
                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Revision parseFrom​(com.google.protobuf.CodedInputStream input,
                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                  throws IOException
        Throws:
        IOException
      • newBuilderForType

        public Revision.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Revision.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Revision.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static Revision getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Revision> parser()
      • getParserForType

        public com.google.protobuf.Parser<Revision> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Revision getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder