Class UpdateJobRequest.Builder (0.83.0)

public static final class UpdateJobRequest.Builder extends GeneratedMessage.Builder<UpdateJobRequest.Builder> implements UpdateJobRequestOrBuilder

Request message for updating a Job.

Protobuf type google.cloud.run.v2.UpdateJobRequest

Static Methods

getDescriptor()

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

Methods

build()

public UpdateJobRequest build()
Returns
Type Description
UpdateJobRequest

buildPartial()

public UpdateJobRequest buildPartial()
Returns
Type Description
UpdateJobRequest

clear()

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

clearAllowMissing()

public UpdateJobRequest.Builder clearAllowMissing()

Optional. If set to true, and if the Job does not exist, it will create a new one. Caller must have both create and update permissions for this call if this is set to true.

bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UpdateJobRequest.Builder

This builder for chaining.

clearJob()

public UpdateJobRequest.Builder clearJob()

Required. The Job to be updated.

.google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateJobRequest.Builder

clearValidateOnly()

public UpdateJobRequest.Builder clearValidateOnly()

Indicates that the request should be validated and default values populated, without persisting the request or updating any resources.

bool validate_only = 3;

Returns
Type Description
UpdateJobRequest.Builder

This builder for chaining.

getAllowMissing()

public boolean getAllowMissing()

Optional. If set to true, and if the Job does not exist, it will create a new one. Caller must have both create and update permissions for this call if this is set to true.

bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The allowMissing.

getDefaultInstanceForType()

public UpdateJobRequest getDefaultInstanceForType()
Returns
Type Description
UpdateJobRequest

getDescriptorForType()

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

getJob()

public Job getJob()

Required. The Job to be updated.

.google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Job

The job.

getJobBuilder()

public Job.Builder getJobBuilder()

Required. The Job to be updated.

.google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Job.Builder

getJobOrBuilder()

public JobOrBuilder getJobOrBuilder()

Required. The Job to be updated.

.google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
JobOrBuilder

getValidateOnly()

public boolean getValidateOnly()

Indicates that the request should be validated and default values populated, without persisting the request or updating any resources.

bool validate_only = 3;

Returns
Type Description
boolean

The validateOnly.

hasJob()

public boolean hasJob()

Required. The Job to be updated.

.google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the job field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdateJobRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeJob(Job value)

public UpdateJobRequest.Builder mergeJob(Job value)

Required. The Job to be updated.

.google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Job
Returns
Type Description
UpdateJobRequest.Builder

setAllowMissing(boolean value)

public UpdateJobRequest.Builder setAllowMissing(boolean value)

Optional. If set to true, and if the Job does not exist, it will create a new one. Caller must have both create and update permissions for this call if this is set to true.

bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The allowMissing to set.

Returns
Type Description
UpdateJobRequest.Builder

This builder for chaining.

setJob(Job value)

public UpdateJobRequest.Builder setJob(Job value)

Required. The Job to be updated.

.google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Job
Returns
Type Description
UpdateJobRequest.Builder

setJob(Job.Builder builderForValue)

public UpdateJobRequest.Builder setJob(Job.Builder builderForValue)

Required. The Job to be updated.

.google.cloud.run.v2.Job job = 1 [(.google.api.field_behavior) = REQUIRED];

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

setValidateOnly(boolean value)

public UpdateJobRequest.Builder setValidateOnly(boolean value)

Indicates that the request should be validated and default values populated, without persisting the request or updating any resources.

bool validate_only = 3;

Parameter
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
UpdateJobRequest.Builder

This builder for chaining.