Class CreateCustomJobRequest.Builder (3.8.0)

See more code actions.
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

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()

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 Overrides

build()

public CreateCustomJobRequest build()
Returns
TypeDescription
CreateCustomJobRequest

buildPartial()

public CreateCustomJobRequest buildPartial()
Returns
TypeDescription
CreateCustomJobRequest

clear()

public CreateCustomJobRequest.Builder clear()
Returns 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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateCustomJobRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns 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 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

mergeFrom(CreateCustomJobRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateCustomJobRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns 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

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

setField(Descriptors.FieldDescriptor field, Object value)

public CreateCustomJobRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns 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 Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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