Class CreateCustomJobRequest.Builder (3.25.0)

public static final class CreateCustomJobRequest.Builder extends GeneratedMessageV3.Builder<CreateCustomJobRequest.Builder> implements CreateCustomJobRequestOrBuilder

Request message for JobService.CreateCustomJob.

Protobuf type google.cloud.aiplatform.v1.CreateCustomJobRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateCustomJobRequest build()
Returns
TypeDescription
CreateCustomJobRequest

buildPartial()

public CreateCustomJobRequest buildPartial()
Returns
TypeDescription
CreateCustomJobRequest

clear()

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

clearCustomJob()

public CreateCustomJobRequest.Builder clearCustomJob()

Required. The CustomJob to create.

.google.cloud.aiplatform.v1.CustomJob custom_job = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateCustomJobRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateCustomJobRequest.Builder clearParent()

Required. The resource name of the Location to create the CustomJob in. Format: projects/{project}/locations/{location}

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

Returns
TypeDescription
CreateCustomJobRequest.Builder

This builder for chaining.

clone()

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

getCustomJob()

public CustomJob getCustomJob()

Required. The CustomJob to create.

.google.cloud.aiplatform.v1.CustomJob custom_job = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CustomJob

The customJob.

getCustomJobBuilder()

public CustomJob.Builder getCustomJobBuilder()

Required. The CustomJob to create.

.google.cloud.aiplatform.v1.CustomJob custom_job = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CustomJob.Builder

getCustomJobOrBuilder()

public CustomJobOrBuilder getCustomJobOrBuilder()

Required. The CustomJob to create.

.google.cloud.aiplatform.v1.CustomJob custom_job = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CustomJobOrBuilder

getDefaultInstanceForType()

public CreateCustomJobRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateCustomJobRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. The resource name of the Location to create the CustomJob in. Format: projects/{project}/locations/{location}

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the Location to create the CustomJob in. Format: projects/{project}/locations/{location}

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

Returns
TypeDescription
ByteString

The bytes for parent.

hasCustomJob()

public boolean hasCustomJob()

Required. The CustomJob to create.

.google.cloud.aiplatform.v1.CustomJob custom_job = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the customJob field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCustomJob(CustomJob value)

public CreateCustomJobRequest.Builder mergeCustomJob(CustomJob value)

Required. The CustomJob to create.

.google.cloud.aiplatform.v1.CustomJob custom_job = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueCustomJob
Returns
TypeDescription
CreateCustomJobRequest.Builder

mergeFrom(CreateCustomJobRequest other)

public CreateCustomJobRequest.Builder mergeFrom(CreateCustomJobRequest other)
Parameter
NameDescription
otherCreateCustomJobRequest
Returns
TypeDescription
CreateCustomJobRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCustomJob(CustomJob value)

public CreateCustomJobRequest.Builder setCustomJob(CustomJob value)

Required. The CustomJob to create.

.google.cloud.aiplatform.v1.CustomJob custom_job = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueCustomJob
Returns
TypeDescription
CreateCustomJobRequest.Builder

setCustomJob(CustomJob.Builder builderForValue)

public CreateCustomJobRequest.Builder setCustomJob(CustomJob.Builder builderForValue)

Required. The CustomJob to create.

.google.cloud.aiplatform.v1.CustomJob custom_job = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueCustomJob.Builder
Returns
TypeDescription
CreateCustomJobRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateCustomJobRequest.Builder setParent(String value)

Required. The resource name of the Location to create the CustomJob in. Format: projects/{project}/locations/{location}

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateCustomJobRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateCustomJobRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the Location to create the CustomJob in. Format: projects/{project}/locations/{location}

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateCustomJobRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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