Class AutomationRun (1.29.0)

public final class AutomationRun extends GeneratedMessageV3 implements AutomationRunOrBuilder

An AutomationRun resource in the Cloud Deploy API.

An AutomationRun represents an automation execution instance of an automation rule.

Protobuf type google.cloud.deploy.v1.AutomationRun

Static Fields

ADVANCE_ROLLOUT_OPERATION_FIELD_NUMBER

public static final int ADVANCE_ROLLOUT_OPERATION_FIELD_NUMBER
Field Value
TypeDescription
int

AUTOMATION_ID_FIELD_NUMBER

public static final int AUTOMATION_ID_FIELD_NUMBER
Field Value
TypeDescription
int

AUTOMATION_SNAPSHOT_FIELD_NUMBER

public static final int AUTOMATION_SNAPSHOT_FIELD_NUMBER
Field Value
TypeDescription
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

ETAG_FIELD_NUMBER

public static final int ETAG_FIELD_NUMBER
Field Value
TypeDescription
int

EXPIRE_TIME_FIELD_NUMBER

public static final int EXPIRE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PROMOTE_RELEASE_OPERATION_FIELD_NUMBER

public static final int PROMOTE_RELEASE_OPERATION_FIELD_NUMBER
Field Value
TypeDescription
int

REPAIR_ROLLOUT_OPERATION_FIELD_NUMBER

public static final int REPAIR_ROLLOUT_OPERATION_FIELD_NUMBER
Field Value
TypeDescription
int

RULE_ID_FIELD_NUMBER

public static final int RULE_ID_FIELD_NUMBER
Field Value
TypeDescription
int

SERVICE_ACCOUNT_FIELD_NUMBER

public static final int SERVICE_ACCOUNT_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_DESCRIPTION_FIELD_NUMBER

public static final int STATE_DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

TARGET_ID_FIELD_NUMBER

public static final int TARGET_ID_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

WAIT_UNTIL_TIME_FIELD_NUMBER

public static final int WAIT_UNTIL_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AutomationRun getDefaultInstance()
Returns
TypeDescription
AutomationRun

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static AutomationRun.Builder newBuilder()
Returns
TypeDescription
AutomationRun.Builder

newBuilder(AutomationRun prototype)

public static AutomationRun.Builder newBuilder(AutomationRun prototype)
Parameter
NameDescription
prototypeAutomationRun
Returns
TypeDescription
AutomationRun.Builder

parseDelimitedFrom(InputStream input)

public static AutomationRun parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AutomationRun
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AutomationRun parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutomationRun
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AutomationRun parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AutomationRun
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AutomationRun parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutomationRun
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AutomationRun parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AutomationRun
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AutomationRun parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutomationRun
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AutomationRun parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AutomationRun
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AutomationRun parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutomationRun
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AutomationRun parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AutomationRun
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AutomationRun parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutomationRun
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AutomationRun parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AutomationRun
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AutomationRun parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutomationRun
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AutomationRun> parser()
Returns
TypeDescription
Parser<AutomationRun>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAdvanceRolloutOperation()

public AdvanceRolloutOperation getAdvanceRolloutOperation()

Output only. Advances a rollout to the next phase.

.google.cloud.deploy.v1.AdvanceRolloutOperation advance_rollout_operation = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AdvanceRolloutOperation

The advanceRolloutOperation.

getAdvanceRolloutOperationOrBuilder()

public AdvanceRolloutOperationOrBuilder getAdvanceRolloutOperationOrBuilder()

Output only. Advances a rollout to the next phase.

.google.cloud.deploy.v1.AdvanceRolloutOperation advance_rollout_operation = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AdvanceRolloutOperationOrBuilder

getAutomationId()

public String getAutomationId()

Output only. The ID of the automation that initiated the operation.

string automation_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The automationId.

getAutomationIdBytes()

public ByteString getAutomationIdBytes()

Output only. The ID of the automation that initiated the operation.

string automation_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for automationId.

getAutomationSnapshot()

public Automation getAutomationSnapshot()

Output only. Snapshot of the Automation taken at AutomationRun creation time.

.google.cloud.deploy.v1.Automation automation_snapshot = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Automation

The automationSnapshot.

getAutomationSnapshotOrBuilder()

public AutomationOrBuilder getAutomationSnapshotOrBuilder()

Output only. Snapshot of the Automation taken at AutomationRun creation time.

.google.cloud.deploy.v1.Automation automation_snapshot = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AutomationOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. Time at which the AutomationRun was created.

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

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time at which the AutomationRun was created.

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

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public AutomationRun getDefaultInstanceForType()
Returns
TypeDescription
AutomationRun

getEtag()

public String getEtag()

Output only. The weak etag of the AutomationRun resource. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Output only. The weak etag of the AutomationRun resource. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for etag.

getExpireTime()

public Timestamp getExpireTime()

Output only. Time the AutomationRun will expire. An AutomationRun will expire after 14 days from its creation date.

.google.protobuf.Timestamp expire_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The expireTime.

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

Output only. Time the AutomationRun will expire. An AutomationRun will expire after 14 days from its creation date.

.google.protobuf.Timestamp expire_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getName()

public String getName()

Output only. Name of the AutomationRun. Format is projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Name of the AutomationRun. Format is projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getOperationCase()

public AutomationRun.OperationCase getOperationCase()
Returns
TypeDescription
AutomationRun.OperationCase

getParserForType()

public Parser<AutomationRun> getParserForType()
Returns
TypeDescription
Parser<AutomationRun>
Overrides

getPromoteReleaseOperation()

public PromoteReleaseOperation getPromoteReleaseOperation()

Output only. Promotes a release to a specified 'Target'.

.google.cloud.deploy.v1.PromoteReleaseOperation promote_release_operation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
PromoteReleaseOperation

The promoteReleaseOperation.

getPromoteReleaseOperationOrBuilder()

public PromoteReleaseOperationOrBuilder getPromoteReleaseOperationOrBuilder()

Output only. Promotes a release to a specified 'Target'.

.google.cloud.deploy.v1.PromoteReleaseOperation promote_release_operation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
PromoteReleaseOperationOrBuilder

getRepairRolloutOperation()

public RepairRolloutOperation getRepairRolloutOperation()

Output only. Repairs a failed 'Rollout'.

.google.cloud.deploy.v1.RepairRolloutOperation repair_rollout_operation = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
RepairRolloutOperation

The repairRolloutOperation.

getRepairRolloutOperationOrBuilder()

public RepairRolloutOperationOrBuilder getRepairRolloutOperationOrBuilder()

Output only. Repairs a failed 'Rollout'.

.google.cloud.deploy.v1.RepairRolloutOperation repair_rollout_operation = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
RepairRolloutOperationOrBuilder

getRuleId()

public String getRuleId()

Output only. The ID of the automation rule that initiated the operation.

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

Returns
TypeDescription
String

The ruleId.

getRuleIdBytes()

public ByteString getRuleIdBytes()

Output only. The ID of the automation rule that initiated the operation.

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

Returns
TypeDescription
ByteString

The bytes for ruleId.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getServiceAccount()

public String getServiceAccount()

Output only. Email address of the user-managed IAM service account that performs the operations against Cloud Deploy resources.

string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The serviceAccount.

getServiceAccountBytes()

public ByteString getServiceAccountBytes()

Output only. Email address of the user-managed IAM service account that performs the operations against Cloud Deploy resources.

string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for serviceAccount.

getState()

public AutomationRun.State getState()

Output only. Current state of the AutomationRun.

.google.cloud.deploy.v1.AutomationRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AutomationRun.State

The state.

getStateDescription()

public String getStateDescription()

Output only. Explains the current state of the AutomationRun. Present only an explanation is needed.

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

Returns
TypeDescription
String

The stateDescription.

getStateDescriptionBytes()

public ByteString getStateDescriptionBytes()

Output only. Explains the current state of the AutomationRun. Present only an explanation is needed.

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

Returns
TypeDescription
ByteString

The bytes for stateDescription.

getStateValue()

public int getStateValue()

Output only. Current state of the AutomationRun.

.google.cloud.deploy.v1.AutomationRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getTargetId()

public String getTargetId()

Output only. The ID of the target that represents the promotion stage that initiates the AutomationRun. The value of this field is the last segment of a target name.

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

Returns
TypeDescription
String

The targetId.

getTargetIdBytes()

public ByteString getTargetIdBytes()

Output only. The ID of the target that represents the promotion stage that initiates the AutomationRun. The value of this field is the last segment of a target name.

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

Returns
TypeDescription
ByteString

The bytes for targetId.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Time at which the automationRun was updated.

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

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Time at which the automationRun was updated.

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

Returns
TypeDescription
TimestampOrBuilder

getWaitUntilTime()

public Timestamp getWaitUntilTime()

Output only. Earliest time the AutomationRun will attempt to resume. Wait-time is configured by wait in automation rule.

.google.protobuf.Timestamp wait_until_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The waitUntilTime.

getWaitUntilTimeOrBuilder()

public TimestampOrBuilder getWaitUntilTimeOrBuilder()

Output only. Earliest time the AutomationRun will attempt to resume. Wait-time is configured by wait in automation rule.

.google.protobuf.Timestamp wait_until_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasAdvanceRolloutOperation()

public boolean hasAdvanceRolloutOperation()

Output only. Advances a rollout to the next phase.

.google.cloud.deploy.v1.AdvanceRolloutOperation advance_rollout_operation = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the advanceRolloutOperation field is set.

hasAutomationSnapshot()

public boolean hasAutomationSnapshot()

Output only. Snapshot of the Automation taken at AutomationRun creation time.

.google.cloud.deploy.v1.Automation automation_snapshot = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the automationSnapshot field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. Time at which the AutomationRun was created.

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

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasExpireTime()

public boolean hasExpireTime()

Output only. Time the AutomationRun will expire. An AutomationRun will expire after 14 days from its creation date.

.google.protobuf.Timestamp expire_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the expireTime field is set.

hasPromoteReleaseOperation()

public boolean hasPromoteReleaseOperation()

Output only. Promotes a release to a specified 'Target'.

.google.cloud.deploy.v1.PromoteReleaseOperation promote_release_operation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the promoteReleaseOperation field is set.

hasRepairRolloutOperation()

public boolean hasRepairRolloutOperation()

Output only. Repairs a failed 'Rollout'.

.google.cloud.deploy.v1.RepairRolloutOperation repair_rollout_operation = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the repairRolloutOperation field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Time at which the automationRun was updated.

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

Returns
TypeDescription
boolean

Whether the updateTime field is set.

hasWaitUntilTime()

public boolean hasWaitUntilTime()

Output only. Earliest time the AutomationRun will attempt to resume. Wait-time is configured by wait in automation rule.

.google.protobuf.Timestamp wait_until_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the waitUntilTime field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AutomationRun.Builder newBuilderForType()
Returns
TypeDescription
AutomationRun.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AutomationRun.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AutomationRun.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AutomationRun.Builder toBuilder()
Returns
TypeDescription
AutomationRun.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException