Class CreateJobRequest.Builder (2.23.0)

publicstaticfinalclass CreateJobRequest.BuilderextendsGeneratedMessageV3.Builder<CreateJobRequest.Builder>implementsCreateJobRequestOrBuilder

Request message for CreateJob.

Protobuf type google.cloud.scheduler.v1beta1.CreateJobRequest

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicCreateJobRequest.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateJobRequest.Builder
Overrides

build()

publicCreateJobRequestbuild()
Returns
Type Description
CreateJobRequest

buildPartial()

publicCreateJobRequestbuildPartial()
Returns
Type Description
CreateJobRequest

clear()

publicCreateJobRequest.Builderclear()
Returns
Type Description
CreateJobRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicCreateJobRequest.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateJobRequest.Builder
Overrides

clearJob()

publicCreateJobRequest.BuilderclearJob()

Required. The job to add. The user can optionally specify a name for the job in name. name cannot be the same as an existing job. If a name is not specified then the system will generate a random unique name that will be returned (name) in the response.

.google.cloud.scheduler.v1beta1.Job job = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateJobRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

publicCreateJobRequest.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateJobRequest.Builder
Overrides

clearParent()

publicCreateJobRequest.BuilderclearParent()

Required. The location name. For example: projects/PROJECT_ID/locations/LOCATION_ID.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateJobRequest.Builder

This builder for chaining.

clone()

publicCreateJobRequest.Builderclone()
Returns
Type Description
CreateJobRequest.Builder
Overrides

getDefaultInstanceForType()

publicCreateJobRequestgetDefaultInstanceForType()
Returns
Type Description
CreateJobRequest

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getJob()

publicJobgetJob()

Required. The job to add. The user can optionally specify a name for the job in name. name cannot be the same as an existing job. If a name is not specified then the system will generate a random unique name that will be returned (name) in the response.

.google.cloud.scheduler.v1beta1.Job job = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Job

The job.

getJobBuilder()

publicJob.BuildergetJobBuilder()

Required. The job to add. The user can optionally specify a name for the job in name. name cannot be the same as an existing job. If a name is not specified then the system will generate a random unique name that will be returned (name) in the response.

.google.cloud.scheduler.v1beta1.Job job = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Job.Builder

getJobOrBuilder()

publicJobOrBuildergetJobOrBuilder()

Required. The job to add. The user can optionally specify a name for the job in name. name cannot be the same as an existing job. If a name is not specified then the system will generate a random unique name that will be returned (name) in the response.

.google.cloud.scheduler.v1beta1.Job job = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
JobOrBuilder

getParent()

publicStringgetParent()

Required. The location name. For example: projects/PROJECT_ID/locations/LOCATION_ID.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

publicByteStringgetParentBytes()

Required. The location name. For example: projects/PROJECT_ID/locations/LOCATION_ID.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasJob()

publicbooleanhasJob()

Required. The job to add. The user can optionally specify a name for the job in name. name cannot be the same as an existing job. If a name is not specified then the system will generate a random unique name that will be returned (name) in the response.

.google.cloud.scheduler.v1beta1.Job job = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the job field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateJobRequest other)

publicCreateJobRequest.BuildermergeFrom(CreateJobRequestother)
Parameter
Name Description
other CreateJobRequest
Returns
Type Description
CreateJobRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicCreateJobRequest.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateJobRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicCreateJobRequest.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
CreateJobRequest.Builder
Overrides

mergeJob(Job value)

publicCreateJobRequest.BuildermergeJob(Jobvalue)

Required. The job to add. The user can optionally specify a name for the job in name. name cannot be the same as an existing job. If a name is not specified then the system will generate a random unique name that will be returned (name) in the response.

.google.cloud.scheduler.v1beta1.Job job = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Job
Returns
Type Description
CreateJobRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalCreateJobRequest.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateJobRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicCreateJobRequest.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateJobRequest.Builder
Overrides

setJob(Job value)

publicCreateJobRequest.BuildersetJob(Jobvalue)

Required. The job to add. The user can optionally specify a name for the job in name. name cannot be the same as an existing job. If a name is not specified then the system will generate a random unique name that will be returned (name) in the response.

.google.cloud.scheduler.v1beta1.Job job = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Job
Returns
Type Description
CreateJobRequest.Builder

setJob(Job.Builder builderForValue)

publicCreateJobRequest.BuildersetJob(Job.BuilderbuilderForValue)

Required. The job to add. The user can optionally specify a name for the job in name. name cannot be the same as an existing job. If a name is not specified then the system will generate a random unique name that will be returned (name) in the response.

.google.cloud.scheduler.v1beta1.Job job = 2 [(.google.api.field_behavior) = REQUIRED];

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

setParent(String value)

publicCreateJobRequest.BuildersetParent(Stringvalue)

Required. The location name. For example: projects/PROJECT_ID/locations/LOCATION_ID.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateJobRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

publicCreateJobRequest.BuildersetParentBytes(ByteStringvalue)

Required. The location name. For example: projects/PROJECT_ID/locations/LOCATION_ID.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateJobRequest.Builder

This builder for chaining.

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

publicCreateJobRequest.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateJobRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalCreateJobRequest.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateJobRequest.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.