Class Job.Builder (1.4.0)

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

Job represents an operation for a Rollout.

Protobuf type google.cloud.deploy.v1.Job

Implements

JobOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Job build()
Returns
TypeDescription
Job

buildPartial()

public Job buildPartial()
Returns
TypeDescription
Job

clear()

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

clearDeployJob()

public Job.Builder clearDeployJob()

Output only. A deploy Job.

.google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Job.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public Job.Builder clearId()

Output only. The ID of the Job.

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

Returns
TypeDescription
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 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
Job.Builder

This builder for chaining.

clearJobType()

public Job.Builder clearJobType()
Returns
TypeDescription
Job.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public Job.Builder clearState()

Output only. The current state of the Job.

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

Returns
TypeDescription
Job.Builder

This builder for chaining.

clearVerifyJob()

public Job.Builder clearVerifyJob()

Output only. A verify Job.

.google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Job.Builder

clone()

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

getDefaultInstanceForType()

public Job getDefaultInstanceForType()
Returns
TypeDescription
Job

getDeployJob()

public DeployJob getDeployJob()

Output only. A deploy Job.

.google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DeployJob

The deployJob.

getDeployJobBuilder()

public DeployJob.Builder getDeployJobBuilder()

Output only. A deploy Job.

.google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DeployJob.Builder

getDeployJobOrBuilder()

public DeployJobOrBuilder getDeployJobOrBuilder()

Output only. A deploy Job.

.google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DeployJobOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getId()

public String getId()

Output only. The ID of the Job.

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

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

Output only. The ID of the Job.

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

Returns
TypeDescription
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 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
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 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for jobRun.

getJobTypeCase()

public Job.JobTypeCase getJobTypeCase()
Returns
TypeDescription
Job.JobTypeCase

getState()

public Job.State getState()

Output only. The current state of the Job.

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

Returns
TypeDescription
Job.State

The state.

getStateValue()

public int getStateValue()

Output only. The current state of the Job.

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

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getVerifyJob()

public VerifyJob getVerifyJob()

Output only. A verify Job.

.google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
VerifyJob

The verifyJob.

getVerifyJobBuilder()

public VerifyJob.Builder getVerifyJobBuilder()

Output only. A verify Job.

.google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
VerifyJob.Builder

getVerifyJobOrBuilder()

public VerifyJobOrBuilder getVerifyJobOrBuilder()

Output only. A verify Job.

.google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
VerifyJobOrBuilder

hasDeployJob()

public boolean hasDeployJob()

Output only. A deploy Job.

.google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the deployJob field is set.

hasVerifyJob()

public boolean hasVerifyJob()

Output only. A verify Job.

.google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the verifyJob field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDeployJob(DeployJob value)

public Job.Builder mergeDeployJob(DeployJob value)

Output only. A deploy Job.

.google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueDeployJob
Returns
TypeDescription
Job.Builder

mergeFrom(Job other)

public Job.Builder mergeFrom(Job other)
Parameter
NameDescription
otherJob
Returns
TypeDescription
Job.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeVerifyJob(VerifyJob value)

public Job.Builder mergeVerifyJob(VerifyJob value)

Output only. A verify Job.

.google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueVerifyJob
Returns
TypeDescription
Job.Builder

setDeployJob(DeployJob value)

public Job.Builder setDeployJob(DeployJob value)

Output only. A deploy Job.

.google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueDeployJob
Returns
TypeDescription
Job.Builder

setDeployJob(DeployJob.Builder builderForValue)

public Job.Builder setDeployJob(DeployJob.Builder builderForValue)

Output only. A deploy Job.

.google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueDeployJob.Builder
Returns
TypeDescription
Job.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(String value)

public Job.Builder setId(String value)

Output only. The ID of the Job.

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

Parameter
NameDescription
valueString

The id to set.

Returns
TypeDescription
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
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 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The jobRun to set.

Returns
TypeDescription
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 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for jobRun to set.

Returns
TypeDescription
Job.Builder

This builder for chaining.

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

public Job.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Job.Builder
Overrides

setState(Job.State value)

public Job.Builder setState(Job.State value)

Output only. The current state of the Job.

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

Parameter
NameDescription
valueJob.State

The state to set.

Returns
TypeDescription
Job.Builder

This builder for chaining.

setStateValue(int value)

public Job.Builder setStateValue(int value)

Output only. The current state of the Job.

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
Job.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Job.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Job.Builder
Overrides

setVerifyJob(VerifyJob value)

public Job.Builder setVerifyJob(VerifyJob value)

Output only. A verify Job.

.google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueVerifyJob
Returns
TypeDescription
Job.Builder

setVerifyJob(VerifyJob.Builder builderForValue)

public Job.Builder setVerifyJob(VerifyJob.Builder builderForValue)

Output only. A verify Job.

.google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueVerifyJob.Builder
Returns
TypeDescription
Job.Builder