Class JobRun (1.49.0)

public final class JobRun extends GeneratedMessageV3 implements JobRunOrBuilder

A JobRun resource in the Cloud Deploy API.

A JobRun contains information of a single Rollout job evaluation.

Protobuf type google.cloud.deploy.v1.JobRun

Implements

JobRunOrBuilder

Static Fields

ADVANCE_CHILD_ROLLOUT_JOB_RUN_FIELD_NUMBER

public static final int ADVANCE_CHILD_ROLLOUT_JOB_RUN_FIELD_NUMBER
Field Value
Type Description
int

CREATE_CHILD_ROLLOUT_JOB_RUN_FIELD_NUMBER

public static final int CREATE_CHILD_ROLLOUT_JOB_RUN_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DEPLOY_JOB_RUN_FIELD_NUMBER

public static final int DEPLOY_JOB_RUN_FIELD_NUMBER
Field Value
Type Description
int

END_TIME_FIELD_NUMBER

public static final int END_TIME_FIELD_NUMBER
Field Value
Type Description
int

ETAG_FIELD_NUMBER

public static final int ETAG_FIELD_NUMBER
Field Value
Type Description
int

JOB_ID_FIELD_NUMBER

public static final int JOB_ID_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

PHASE_ID_FIELD_NUMBER

public static final int PHASE_ID_FIELD_NUMBER
Field Value
Type Description
int

POSTDEPLOY_JOB_RUN_FIELD_NUMBER

public static final int POSTDEPLOY_JOB_RUN_FIELD_NUMBER
Field Value
Type Description
int

PREDEPLOY_JOB_RUN_FIELD_NUMBER

public static final int PREDEPLOY_JOB_RUN_FIELD_NUMBER
Field Value
Type Description
int

START_TIME_FIELD_NUMBER

public static final int START_TIME_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

UID_FIELD_NUMBER

public static final int UID_FIELD_NUMBER
Field Value
Type Description
int

VERIFY_JOB_RUN_FIELD_NUMBER

public static final int VERIFY_JOB_RUN_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static JobRun getDefaultInstance()
Returns
Type Description
JobRun

getDescriptor()

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

newBuilder()

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

newBuilder(JobRun prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAdvanceChildRolloutJobRun()

public AdvanceChildRolloutJobRun getAdvanceChildRolloutJobRun()

Output only. Information specific to an advanceChildRollout JobRun

.google.cloud.deploy.v1.AdvanceChildRolloutJobRun advance_child_rollout_job_run = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AdvanceChildRolloutJobRun

The advanceChildRolloutJobRun.

getAdvanceChildRolloutJobRunOrBuilder()

public AdvanceChildRolloutJobRunOrBuilder getAdvanceChildRolloutJobRunOrBuilder()

Output only. Information specific to an advanceChildRollout JobRun

.google.cloud.deploy.v1.AdvanceChildRolloutJobRun advance_child_rollout_job_run = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AdvanceChildRolloutJobRunOrBuilder

getCreateChildRolloutJobRun()

public CreateChildRolloutJobRun getCreateChildRolloutJobRun()

Output only. Information specific to a createChildRollout JobRun.

.google.cloud.deploy.v1.CreateChildRolloutJobRun create_child_rollout_job_run = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CreateChildRolloutJobRun

The createChildRolloutJobRun.

getCreateChildRolloutJobRunOrBuilder()

public CreateChildRolloutJobRunOrBuilder getCreateChildRolloutJobRunOrBuilder()

Output only. Information specific to a createChildRollout JobRun.

.google.cloud.deploy.v1.CreateChildRolloutJobRun create_child_rollout_job_run = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CreateChildRolloutJobRunOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. Time at which the JobRun was created.

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time at which the JobRun was created.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public JobRun getDefaultInstanceForType()
Returns
Type Description
JobRun

getDeployJobRun()

public DeployJobRun getDeployJobRun()

Output only. Information specific to a deploy JobRun.

.google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeployJobRun

The deployJobRun.

getDeployJobRunOrBuilder()

public DeployJobRunOrBuilder getDeployJobRunOrBuilder()

Output only. Information specific to a deploy JobRun.

.google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeployJobRunOrBuilder

getEndTime()

public Timestamp getEndTime()

Output only. Time at which the JobRun ended.

.google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The endTime.

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Output only. Time at which the JobRun ended.

.google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getEtag()

public String getEtag()

Output only. 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 = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Output only. 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 = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for etag.

getJobId()

public String getJobId()

Output only. ID of the Rollout job this JobRun corresponds to.

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

Returns
Type Description
String

The jobId.

getJobIdBytes()

public ByteString getJobIdBytes()

Output only. ID of the Rollout job this JobRun corresponds to.

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

Returns
Type Description
ByteString

The bytes for jobId.

getJobRunCase()

public JobRun.JobRunCase getJobRunCase()
Returns
Type Description
JobRun.JobRunCase

getName()

public String getName()

Optional. Name of the JobRun. Format is projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollouts/{rollouts}/jobRuns/{uuid}.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Optional. Name of the JobRun. Format is projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollouts/{rollouts}/jobRuns/{uuid}.

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

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

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

getPhaseId()

public String getPhaseId()

Output only. ID of the Rollout phase this JobRun belongs in.

string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The phaseId.

getPhaseIdBytes()

public ByteString getPhaseIdBytes()

Output only. ID of the Rollout phase this JobRun belongs in.

string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for phaseId.

getPostdeployJobRun()

public PostdeployJobRun getPostdeployJobRun()

Output only. Information specific to a postdeploy JobRun.

.google.cloud.deploy.v1.PostdeployJobRun postdeploy_job_run = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PostdeployJobRun

The postdeployJobRun.

getPostdeployJobRunOrBuilder()

public PostdeployJobRunOrBuilder getPostdeployJobRunOrBuilder()

Output only. Information specific to a postdeploy JobRun.

.google.cloud.deploy.v1.PostdeployJobRun postdeploy_job_run = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PostdeployJobRunOrBuilder

getPredeployJobRun()

public PredeployJobRun getPredeployJobRun()

Output only. Information specific to a predeploy JobRun.

.google.cloud.deploy.v1.PredeployJobRun predeploy_job_run = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PredeployJobRun

The predeployJobRun.

getPredeployJobRunOrBuilder()

public PredeployJobRunOrBuilder getPredeployJobRunOrBuilder()

Output only. Information specific to a predeploy JobRun.

.google.cloud.deploy.v1.PredeployJobRun predeploy_job_run = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PredeployJobRunOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStartTime()

public Timestamp getStartTime()

Output only. Time at which the JobRun was started.

.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The startTime.

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Output only. Time at which the JobRun was started.

.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getState()

public JobRun.State getState()

Output only. The current state of the JobRun.

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

Returns
Type Description
JobRun.State

The state.

getStateValue()

public int getStateValue()

Output only. The current state of the JobRun.

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

Returns
Type Description
int

The enum numeric value on the wire for state.

getUid()

public String getUid()

Output only. Unique identifier of the JobRun.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. Unique identifier of the JobRun.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for uid.

getVerifyJobRun()

public VerifyJobRun getVerifyJobRun()

Output only. Information specific to a verify JobRun.

.google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
VerifyJobRun

The verifyJobRun.

getVerifyJobRunOrBuilder()

public VerifyJobRunOrBuilder getVerifyJobRunOrBuilder()

Output only. Information specific to a verify JobRun.

.google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
VerifyJobRunOrBuilder

hasAdvanceChildRolloutJobRun()

public boolean hasAdvanceChildRolloutJobRun()

Output only. Information specific to an advanceChildRollout JobRun

.google.cloud.deploy.v1.AdvanceChildRolloutJobRun advance_child_rollout_job_run = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the advanceChildRolloutJobRun field is set.

hasCreateChildRolloutJobRun()

public boolean hasCreateChildRolloutJobRun()

Output only. Information specific to a createChildRollout JobRun.

.google.cloud.deploy.v1.CreateChildRolloutJobRun create_child_rollout_job_run = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createChildRolloutJobRun field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. Time at which the JobRun was created.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasDeployJobRun()

public boolean hasDeployJobRun()

Output only. Information specific to a deploy JobRun.

.google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the deployJobRun field is set.

hasEndTime()

public boolean hasEndTime()

Output only. Time at which the JobRun ended.

.google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the endTime field is set.

hasPostdeployJobRun()

public boolean hasPostdeployJobRun()

Output only. Information specific to a postdeploy JobRun.

.google.cloud.deploy.v1.PostdeployJobRun postdeploy_job_run = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the postdeployJobRun field is set.

hasPredeployJobRun()

public boolean hasPredeployJobRun()

Output only. Information specific to a predeploy JobRun.

.google.cloud.deploy.v1.PredeployJobRun predeploy_job_run = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the predeployJobRun field is set.

hasStartTime()

public boolean hasStartTime()

Output only. Time at which the JobRun was started.

.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the startTime field is set.

hasVerifyJobRun()

public boolean hasVerifyJobRun()

Output only. Information specific to a verify JobRun.

.google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the verifyJobRun field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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