Class JobRun.Builder (1.7.0)

Stay organized with collections Save and categorize content based on your preferences.
public static final class JobRun.Builder extends GeneratedMessageV3.Builder<JobRun.Builder> implements JobRunOrBuilder

A JobRun resource in the Google Cloud Deploy API. A JobRun contains information of a single Rollout job evaluation.

Protobuf type google.cloud.deploy.v1.JobRun

Implements

JobRunOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public JobRun.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
JobRun.Builder
Overrides

build()

public JobRun build()
Returns
TypeDescription
JobRun

buildPartial()

public JobRun buildPartial()
Returns
TypeDescription
JobRun

clear()

public JobRun.Builder clear()
Returns
TypeDescription
JobRun.Builder
Overrides

clearCreateTime()

public JobRun.Builder clearCreateTime()

Output only. Time at which the JobRun was created.

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

Returns
TypeDescription
JobRun.Builder

clearDeployJobRun()

public JobRun.Builder clearDeployJobRun()

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
JobRun.Builder

clearEndTime()

public JobRun.Builder clearEndTime()

Output only. Time at which the JobRun ended.

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

Returns
TypeDescription
JobRun.Builder

clearEtag()

public JobRun.Builder clearEtag()

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
JobRun.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public JobRun.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
JobRun.Builder
Overrides

clearJobId()

public JobRun.Builder clearJobId()

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

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

Returns
TypeDescription
JobRun.Builder

This builder for chaining.

clearJobRun()

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

clearName()

public JobRun.Builder clearName()

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
JobRun.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public JobRun.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
JobRun.Builder
Overrides

clearPhaseId()

public JobRun.Builder clearPhaseId()

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

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

Returns
TypeDescription
JobRun.Builder

This builder for chaining.

clearStartTime()

public JobRun.Builder clearStartTime()

Output only. Time at which the JobRun was started.

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

Returns
TypeDescription
JobRun.Builder

clearState()

public JobRun.Builder clearState()

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.Builder

This builder for chaining.

clearUid()

public JobRun.Builder clearUid()

Output only. Unique identifier of the JobRun.

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

Returns
TypeDescription
JobRun.Builder

This builder for chaining.

clearVerifyJobRun()

public JobRun.Builder clearVerifyJobRun()

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
JobRun.Builder

clone()

public JobRun.Builder clone()
Returns
TypeDescription
JobRun.Builder
Overrides

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.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Time at which the JobRun was created.

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

Returns
TypeDescription
Builder

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.

getDeployJobRunBuilder()

public DeployJobRun.Builder getDeployJobRunBuilder()

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.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Output only. Time at which the JobRun ended.

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

Returns
TypeDescription
Builder

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.

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.

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.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Output only. Time at which the JobRun was started.

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

Returns
TypeDescription
Builder

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.

getVerifyJobRunBuilder()

public VerifyJobRun.Builder getVerifyJobRunBuilder()

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.Builder

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

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public JobRun.Builder mergeCreateTime(Timestamp value)

Output only. Time at which the JobRun was created.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
JobRun.Builder

mergeDeployJobRun(DeployJobRun value)

public JobRun.Builder mergeDeployJobRun(DeployJobRun value)

Output only. Information specific to a deploy JobRun.

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

Parameter
NameDescription
valueDeployJobRun
Returns
TypeDescription
JobRun.Builder

mergeEndTime(Timestamp value)

public JobRun.Builder mergeEndTime(Timestamp value)

Output only. Time at which the JobRun ended.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
JobRun.Builder

mergeFrom(JobRun other)

public JobRun.Builder mergeFrom(JobRun other)
Parameter
NameDescription
otherJobRun
Returns
TypeDescription
JobRun.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public JobRun.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
JobRun.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public JobRun.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
JobRun.Builder
Overrides

mergeStartTime(Timestamp value)

public JobRun.Builder mergeStartTime(Timestamp value)

Output only. Time at which the JobRun was started.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
JobRun.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final JobRun.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
JobRun.Builder
Overrides

mergeVerifyJobRun(VerifyJobRun value)

public JobRun.Builder mergeVerifyJobRun(VerifyJobRun value)

Output only. Information specific to a verify JobRun.

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

Parameter
NameDescription
valueVerifyJobRun
Returns
TypeDescription
JobRun.Builder

setCreateTime(Timestamp value)

public JobRun.Builder setCreateTime(Timestamp value)

Output only. Time at which the JobRun was created.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
JobRun.Builder

setCreateTime(Timestamp.Builder builderForValue)

public JobRun.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Time at which the JobRun was created.

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

Parameter