Class JobRun (1.37.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
TypeDescription
int

CREATE_CHILD_ROLLOUT_JOB_RUN_FIELD_NUMBER

public static final int CREATE_CHILD_ROLLOUT_JOB_RUN_FIELD_NUMBER
Field Value
TypeDescription
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

DEPLOY_JOB_RUN_FIELD_NUMBER

public static final int DEPLOY_JOB_RUN_FIELD_NUMBER
Field Value
TypeDescription
int

END_TIME_FIELD_NUMBER

public static final int END_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

ETAG_FIELD_NUMBER

public static final int ETAG_FIELD_NUMBER
Field Value
TypeDescription
int

JOB_ID_FIELD_NUMBER

public static final int JOB_ID_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PHASE_ID_FIELD_NUMBER

public static final int PHASE_ID_FIELD_NUMBER
Field Value
TypeDescription
int

POSTDEPLOY_JOB_RUN_FIELD_NUMBER

public static final int POSTDEPLOY_JOB_RUN_FIELD_NUMBER
Field Value
TypeDescription
int

PREDEPLOY_JOB_RUN_FIELD_NUMBER

public static final int PREDEPLOY_JOB_RUN_FIELD_NUMBER
Field Value
TypeDescription
int

START_TIME_FIELD_NUMBER

public static final int START_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

UID_FIELD_NUMBER

public static final int UID_FIELD_NUMBER
Field Value
TypeDescription
int

VERIFY_JOB_RUN_FIELD_NUMBER

public static final int VERIFY_JOB_RUN_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static JobRun getDefaultInstance()
Returns
TypeDescription
JobRun

getDescriptor()

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

newBuilder()

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

newBuilder(JobRun prototype)

public static JobRun.Builder newBuilder(JobRun prototype)
Parameter
NameDescription
prototypeJobRun
Returns
TypeDescription
JobRun.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public JobRun getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for jobId.

getJobRunCase()

public JobRun.JobRunCase getJobRunCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<JobRun> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
PredeployJobRunOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. Unique identifier of the JobRun.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the verifyJobRun 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 JobRun.Builder newBuilderForType()
Returns
TypeDescription
JobRun.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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