Class Job.Builder (0.16.0)

public static final class Job.Builder extends GeneratedMessageV3.Builder<Job.Builder> implements JobOrBuilder

Job represents an operation for a Rollout.

Protobuf type google.events.cloud.deploy.v1.Job

Implements

JobOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Job.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Job.Builder
Overrides

build()

public Job build()
Returns
Type Description
Job

buildPartial()

public Job buildPartial()
Returns
Type Description
Job

clear()

public Job.Builder clear()
Returns
Type Description
Job.Builder
Overrides

clearAdvanceChildRolloutJob()

public Job.Builder clearAdvanceChildRolloutJob()

Output only. An advanceChildRollout Job.

.google.events.cloud.deploy.v1.AdvanceChildRolloutJob advance_child_rollout_job = 7;

Returns
Type Description
Job.Builder

clearCreateChildRolloutJob()

public Job.Builder clearCreateChildRolloutJob()

Output only. A createChildRollout Job.

.google.events.cloud.deploy.v1.CreateChildRolloutJob create_child_rollout_job = 6;

Returns
Type Description
Job.Builder

clearDeployJob()

public Job.Builder clearDeployJob()

Output only. A deploy Job.

.google.events.cloud.deploy.v1.DeployJob deploy_job = 4;

Returns
Type Description
Job.Builder

clearField(Descriptors.FieldDescriptor field)

public Job.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Job.Builder
Overrides

clearId()

public Job.Builder clearId()

Output only. The ID of the Job.

string id = 1;

Returns
Type Description
Job.Builder

This builder for chaining.

clearJobRun()

public Job.Builder clearJobRun()

Output only. The name of the JobRun responsible for the most recent invocation of this Job.

string job_run = 3;

Returns
Type Description
Job.Builder

This builder for chaining.

clearJobType()

public Job.Builder clearJobType()
Returns
Type Description
Job.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Job.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Job.Builder
Overrides

clearPostdeployJob()

public Job.Builder clearPostdeployJob()

Output only. A postdeploy Job.

.google.events.cloud.deploy.v1.PostdeployJob postdeploy_job = 10;

Returns
Type Description
Job.Builder

clearPredeployJob()

public Job.Builder clearPredeployJob()

Output only. A predeploy Job.

.google.events.cloud.deploy.v1.PredeployJob predeploy_job = 9;

Returns
Type Description
Job.Builder

clearSkipMessage()

public Job.Builder clearSkipMessage()

Output only. Additional information on why the Job was skipped, if available.

string skip_message = 8;

Returns
Type Description
Job.Builder

This builder for chaining.

clearState()

public Job.Builder clearState()

Output only. The current state of the Job.

.google.events.cloud.deploy.v1.Job.State state = 2;

Returns
Type Description
Job.Builder

This builder for chaining.

clearVerifyJob()

public Job.Builder clearVerifyJob()

Output only. A verify Job.

.google.events.cloud.deploy.v1.VerifyJob verify_job = 5;

Returns
Type Description
Job.Builder

clone()

public Job.Builder clone()
Returns
Type Description
Job.Builder
Overrides

getAdvanceChildRolloutJob()

public AdvanceChildRolloutJob getAdvanceChildRolloutJob()

Output only. An advanceChildRollout Job.

.google.events.cloud.deploy.v1.AdvanceChildRolloutJob advance_child_rollout_job = 7;

Returns
Type Description
AdvanceChildRolloutJob

The advanceChildRolloutJob.

getAdvanceChildRolloutJobBuilder()

public AdvanceChildRolloutJob.Builder getAdvanceChildRolloutJobBuilder()

Output only. An advanceChildRollout Job.

.google.events.cloud.deploy.v1.AdvanceChildRolloutJob advance_child_rollout_job = 7;

Returns
Type Description
AdvanceChildRolloutJob.Builder

getAdvanceChildRolloutJobOrBuilder()

public AdvanceChildRolloutJobOrBuilder getAdvanceChildRolloutJobOrBuilder()

Output only. An advanceChildRollout Job.

.google.events.cloud.deploy.v1.AdvanceChildRolloutJob advance_child_rollout_job = 7;

Returns
Type Description
AdvanceChildRolloutJobOrBuilder

getCreateChildRolloutJob()

public CreateChildRolloutJob getCreateChildRolloutJob()

Output only. A createChildRollout Job.

.google.events.cloud.deploy.v1.CreateChildRolloutJob create_child_rollout_job = 6;

Returns
Type Description
CreateChildRolloutJob

The createChildRolloutJob.

getCreateChildRolloutJobBuilder()

public CreateChildRolloutJob.Builder getCreateChildRolloutJobBuilder()

Output only. A createChildRollout Job.

.google.events.cloud.deploy.v1.CreateChildRolloutJob create_child_rollout_job = 6;

Returns
Type Description
CreateChildRolloutJob.Builder

getCreateChildRolloutJobOrBuilder()

public CreateChildRolloutJobOrBuilder getCreateChildRolloutJobOrBuilder()

Output only. A createChildRollout Job.

.google.events.cloud.deploy.v1.CreateChildRolloutJob create_child_rollout_job = 6;

Returns
Type Description
CreateChildRolloutJobOrBuilder

getDefaultInstanceForType()

public Job getDefaultInstanceForType()
Returns
Type Description
Job

getDeployJob()

public DeployJob getDeployJob()

Output only. A deploy Job.

.google.events.cloud.deploy.v1.DeployJob deploy_job = 4;

Returns
Type Description
DeployJob

The deployJob.

getDeployJobBuilder()

public DeployJob.Builder getDeployJobBuilder()

Output only. A deploy Job.

.google.events.cloud.deploy.v1.DeployJob deploy_job = 4;

Returns
Type Description
DeployJob.Builder

getDeployJobOrBuilder()

public DeployJobOrBuilder getDeployJobOrBuilder()

Output only. A deploy Job.

.google.events.cloud.deploy.v1.DeployJob deploy_job = 4;

Returns
Type Description
DeployJobOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getId()

public String getId()

Output only. The ID of the Job.

string id = 1;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

Output only. The ID of the Job.

string id = 1;

Returns
Type Description
ByteString

The bytes for id.

getJobRun()

public String getJobRun()

Output only. The name of the JobRun responsible for the most recent invocation of this Job.

string job_run = 3;

Returns
Type Description
String

The jobRun.

getJobRunBytes()

public ByteString getJobRunBytes()

Output only. The name of the JobRun responsible for the most recent invocation of this Job.

string job_run = 3;

Returns
Type Description
ByteString

The bytes for jobRun.

getJobTypeCase()

public Job.JobTypeCase getJobTypeCase()
Returns
Type Description
Job.JobTypeCase

getPostdeployJob()

public PostdeployJob getPostdeployJob()

Output only. A postdeploy Job.

.google.events.cloud.deploy.v1.PostdeployJob postdeploy_job = 10;

Returns
Type Description
PostdeployJob

The postdeployJob.

getPostdeployJobBuilder()

public PostdeployJob.Builder getPostdeployJobBuilder()

Output only. A postdeploy Job.

.google.events.cloud.deploy.v1.PostdeployJob postdeploy_job = 10;

Returns
Type Description
PostdeployJob.Builder

getPostdeployJobOrBuilder()

public PostdeployJobOrBuilder getPostdeployJobOrBuilder()

Output only. A postdeploy Job.

.google.events.cloud.deploy.v1.PostdeployJob postdeploy_job = 10;

Returns
Type Description
PostdeployJobOrBuilder

getPredeployJob()

public PredeployJob getPredeployJob()

Output only. A predeploy Job.

.google.events.cloud.deploy.v1.PredeployJob predeploy_job = 9;

Returns
Type Description
PredeployJob

The predeployJob.

getPredeployJobBuilder()

public PredeployJob.Builder getPredeployJobBuilder()

Output only. A predeploy Job.

.google.events.cloud.deploy.v1.PredeployJob predeploy_job = 9;

Returns
Type Description
PredeployJob.Builder

getPredeployJobOrBuilder()

public PredeployJobOrBuilder getPredeployJobOrBuilder()

Output only. A predeploy Job.

.google.events.cloud.deploy.v1.PredeployJob predeploy_job = 9;

Returns
Type Description
PredeployJobOrBuilder

getSkipMessage()

public String getSkipMessage()

Output only. Additional information on why the Job was skipped, if available.

string skip_message = 8;

Returns
Type Description
String

The skipMessage.

getSkipMessageBytes()

public ByteString getSkipMessageBytes()

Output only. Additional information on why the Job was skipped, if available.

string skip_message = 8;

Returns
Type Description
ByteString

The bytes for skipMessage.

getState()

public Job.State getState()

Output only. The current state of the Job.

.google.events.cloud.deploy.v1.Job.State state = 2;

Returns
Type Description
Job.State

The state.

getStateValue()

public int getStateValue()

Output only. The current state of the Job.

.google.events.cloud.deploy.v1.Job.State state = 2;

Returns
Type Description
int

The enum numeric value on the wire for state.

getVerifyJob()

public VerifyJob getVerifyJob()

Output only. A verify Job.

.google.events.cloud.deploy.v1.VerifyJob verify_job = 5;

Returns
Type Description
VerifyJob

The verifyJob.

getVerifyJobBuilder()

public VerifyJob.Builder getVerifyJobBuilder()

Output only. A verify Job.

.google.events.cloud.deploy.v1.VerifyJob verify_job = 5;

Returns
Type Description
VerifyJob.Builder

getVerifyJobOrBuilder()

public VerifyJobOrBuilder getVerifyJobOrBuilder()

Output only. A verify Job.

.google.events.cloud.deploy.v1.VerifyJob verify_job = 5;

Returns
Type Description
VerifyJobOrBuilder

hasAdvanceChildRolloutJob()

public boolean hasAdvanceChildRolloutJob()

Output only. An advanceChildRollout Job.

.google.events.cloud.deploy.v1.AdvanceChildRolloutJob advance_child_rollout_job = 7;

Returns
Type Description
boolean

Whether the advanceChildRolloutJob field is set.

hasCreateChildRolloutJob()

public boolean hasCreateChildRolloutJob()

Output only. A createChildRollout Job.

.google.events.cloud.deploy.v1.CreateChildRolloutJob create_child_rollout_job = 6;

Returns
Type Description
boolean

Whether the createChildRolloutJob field is set.

hasDeployJob()

public boolean hasDeployJob()

Output only. A deploy Job.

.google.events.cloud.deploy.v1.DeployJob deploy_job = 4;

Returns
Type Description
boolean

Whether the deployJob field is set.

hasPostdeployJob()

public boolean hasPostdeployJob()

Output only. A postdeploy Job.

.google.events.cloud.deploy.v1.PostdeployJob postdeploy_job = 10;

Returns
Type Description
boolean

Whether the postdeployJob field is set.

hasPredeployJob()

public boolean hasPredeployJob()

Output only. A predeploy Job.

.google.events.cloud.deploy.v1.PredeployJob predeploy_job = 9;

Returns
Type Description
boolean

Whether the predeployJob field is set.

hasVerifyJob()

public boolean hasVerifyJob()

Output only. A verify Job.

.google.events.cloud.deploy.v1.VerifyJob verify_job = 5;

Returns
Type Description
boolean

Whether the verifyJob field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAdvanceChildRolloutJob(AdvanceChildRolloutJob value)

public Job.Builder mergeAdvanceChildRolloutJob(AdvanceChildRolloutJob value)

Output only. An advanceChildRollout Job.

.google.events.cloud.deploy.v1.AdvanceChildRolloutJob advance_child_rollout_job = 7;

Parameter
Name Description
value AdvanceChildRolloutJob
Returns
Type Description
Job.Builder

mergeCreateChildRolloutJob(CreateChildRolloutJob value)

public Job.Builder mergeCreateChildRolloutJob(CreateChildRolloutJob value)

Output only. A createChildRollout Job.

.google.events.cloud.deploy.v1.CreateChildRolloutJob create_child_rollout_job = 6;

Parameter
Name Description
value CreateChildRolloutJob
Returns
Type Description
Job.Builder

mergeDeployJob(DeployJob value)

public Job.Builder mergeDeployJob(DeployJob value)

Output only. A deploy Job.

.google.events.cloud.deploy.v1.DeployJob deploy_job = 4;

Parameter
Name Description
value DeployJob
Returns
Type Description
Job.Builder

mergeFrom(Job other)

public Job.Builder mergeFrom(Job other)
Parameter
Name Description
other Job
Returns
Type Description
Job.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Job.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Job.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Job.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Job.Builder
Overrides

mergePostdeployJob(PostdeployJob value)

public Job.Builder mergePostdeployJob(PostdeployJob value)

Output only. A postdeploy Job.

.google.events.cloud.deploy.v1.PostdeployJob postdeploy_job = 10;

Parameter
Name Description
value PostdeployJob
Returns
Type Description
Job.Builder

mergePredeployJob(PredeployJob value)

public Job.Builder mergePredeployJob(PredeployJob value)

Output only. A predeploy Job.

.google.events.cloud.deploy.v1.PredeployJob predeploy_job = 9;

Parameter
Name Description
value PredeployJob
Returns
Type Description
Job.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Job.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Job.Builder
Overrides

mergeVerifyJob(VerifyJob value)

public Job.Builder mergeVerifyJob(VerifyJob value)

Output only. A verify Job.

.google.events.cloud.deploy.v1.VerifyJob verify_job = 5;

Parameter
Name Description
value VerifyJob
Returns
Type Description
Job.Builder

setAdvanceChildRolloutJob(AdvanceChildRolloutJob value)

public Job.Builder setAdvanceChildRolloutJob(AdvanceChildRolloutJob value)

Output only. An advanceChildRollout Job.

.google.events.cloud.deploy.v1.AdvanceChildRolloutJob advance_child_rollout_job = 7;

Parameter
Name Description
value AdvanceChildRolloutJob
Returns
Type Description
Job.Builder

setAdvanceChildRolloutJob(AdvanceChildRolloutJob.Builder builderForValue)

public Job.Builder setAdvanceChildRolloutJob(AdvanceChildRolloutJob.Builder builderForValue)

Output only. An advanceChildRollout Job.

.google.events.cloud.deploy.v1.AdvanceChildRolloutJob advance_child_rollout_job = 7;

Parameter
Name Description
builderForValue AdvanceChildRolloutJob.Builder
Returns
Type Description
Job.Builder

setCreateChildRolloutJob(CreateChildRolloutJob value)

public Job.Builder setCreateChildRolloutJob(CreateChildRolloutJob value)

Output only. A createChildRollout Job.

.google.events.cloud.deploy.v1.CreateChildRolloutJob create_child_rollout_job = 6;

Parameter
Name Description
value CreateChildRolloutJob
Returns
Type Description
Job.Builder

setCreateChildRolloutJob(CreateChildRolloutJob.Builder builderForValue)

public Job.Builder setCreateChildRolloutJob(CreateChildRolloutJob.Builder builderForValue)

Output only. A createChildRollout Job.

.google.events.cloud.deploy.v1.CreateChildRolloutJob create_child_rollout_job = 6;

Parameter
Name Description
builderForValue CreateChildRolloutJob.Builder
Returns
Type Description
Job.Builder

setDeployJob(DeployJob value)

public Job.Builder setDeployJob(DeployJob value)

Output only. A deploy Job.

.google.events.cloud.deploy.v1.DeployJob deploy_job = 4;

Parameter
Name Description
value DeployJob
Returns
Type Description
Job.Builder

setDeployJob(DeployJob.Builder builderForValue)

public Job.Builder setDeployJob(DeployJob.Builder builderForValue)

Output only. A deploy Job.

.google.events.cloud.deploy.v1.DeployJob deploy_job = 4;

Parameter
Name Description
builderForValue DeployJob.Builder
Returns
Type Description
Job.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Job.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Job.Builder
Overrides

setId(String value)

public Job.Builder setId(String value)

Output only. The ID of the Job.

string id = 1;

Parameter
Name Description
value String

The id to set.

Returns
Type Description
Job.Builder

This builder for chaining.

setIdBytes(ByteString value)

public Job.Builder setIdBytes(ByteString value)

Output only. The ID of the Job.

string id = 1;

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
Job.Builder

This builder for chaining.

setJobRun(String value)

public Job.Builder setJobRun(String value)

Output only. The name of the JobRun responsible for the most recent invocation of this Job.

string job_run = 3;

Parameter
Name Description
value String

The jobRun to set.

Returns
Type Description
Job.Builder

This builder for chaining.

setJobRunBytes(ByteString value)

public Job.Builder setJobRunBytes(ByteString value)

Output only. The name of the JobRun responsible for the most recent invocation of this Job.

string job_run = 3;

Parameter
Name Description
value ByteString

The bytes for jobRun to set.

Returns
Type Description
Job.Builder

This builder for chaining.

setPostdeployJob(PostdeployJob value)

public Job.Builder setPostdeployJob(PostdeployJob value)

Output only. A postdeploy Job.

.google.events.cloud.deploy.v1.PostdeployJob postdeploy_job = 10;

Parameter
Name Description
value PostdeployJob
Returns
Type Description
Job.Builder

setPostdeployJob(PostdeployJob.Builder builderForValue)

public Job.Builder setPostdeployJob(PostdeployJob.Builder builderForValue)

Output only. A postdeploy Job.

.google.events.cloud.deploy.v1.PostdeployJob postdeploy_job = 10;

Parameter
Name Description
builderForValue PostdeployJob.Builder
Returns
Type Description
Job.Builder

setPredeployJob(PredeployJob value)

public Job.Builder setPredeployJob(PredeployJob value)

Output only. A predeploy Job.

.google.events.cloud.deploy.v1.PredeployJob predeploy_job = 9;

Parameter
Name Description
value PredeployJob
Returns
Type Description
Job.Builder

setPredeployJob(PredeployJob.Builder builderForValue)

public Job.Builder setPredeployJob(PredeployJob.Builder builderForValue)

Output only. A predeploy Job.

.google.events.cloud.deploy.v1.PredeployJob predeploy_job = 9;

Parameter
Name Description
builderForValue PredeployJob.Builder
Returns
Type Description
Job.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Job.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Job.Builder
Overrides

setSkipMessage(String value)

public Job.Builder setSkipMessage(String value)

Output only. Additional information on why the Job was skipped, if available.

string skip_message = 8;

Parameter
Name Description
value String

The skipMessage to set.

Returns
Type Description
Job.Builder

This builder for chaining.

setSkipMessageBytes(ByteString value)

public Job.Builder setSkipMessageBytes(ByteString value)

Output only. Additional information on why the Job was skipped, if available.

string skip_message = 8;

Parameter
Name Description
value ByteString

The bytes for skipMessage to set.

Returns
Type Description
Job.Builder

This builder for chaining.

setState(Job.State value)

public Job.Builder setState(Job.State value)

Output only. The current state of the Job.

.google.events.cloud.deploy.v1.Job.State state = 2;

Parameter
Name Description
value Job.State

The state to set.

Returns
Type Description
Job.Builder

This builder for chaining.

setStateValue(int value)

public Job.Builder setStateValue(int value)

Output only. The current state of the Job.

.google.events.cloud.deploy.v1.Job.State state = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
Job.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Job.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Job.Builder
Overrides

setVerifyJob(VerifyJob value)

public Job.Builder setVerifyJob(VerifyJob value)

Output only. A verify Job.

.google.events.cloud.deploy.v1.VerifyJob verify_job = 5;

Parameter
Name Description
value VerifyJob
Returns
Type Description
Job.Builder

setVerifyJob(VerifyJob.Builder builderForValue)

public Job.Builder setVerifyJob(VerifyJob.Builder builderForValue)

Output only. A verify Job.

.google.events.cloud.deploy.v1.VerifyJob verify_job = 5;

Parameter
Name Description
builderForValue VerifyJob.Builder
Returns
Type Description
Job.Builder