Class CreateTuningJobRequest.Builder (3.47.0)

public static final class CreateTuningJobRequest.Builder extends GeneratedMessageV3.Builder<CreateTuningJobRequest.Builder> implements CreateTuningJobRequestOrBuilder

Request message for GenAiTuningService.CreateTuningJob.

Protobuf type google.cloud.aiplatform.v1beta1.CreateTuningJobRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateTuningJobRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateTuningJobRequest.Builder
Overrides

build()

public CreateTuningJobRequest build()
Returns
Type Description
CreateTuningJobRequest

buildPartial()

public CreateTuningJobRequest buildPartial()
Returns
Type Description
CreateTuningJobRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public CreateTuningJobRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateTuningJobRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateTuningJobRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateTuningJobRequest.Builder
Overrides

clearParent()

public CreateTuningJobRequest.Builder clearParent()

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

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

Returns
Type Description
CreateTuningJobRequest.Builder

This builder for chaining.

clearTuningJob()

public CreateTuningJobRequest.Builder clearTuningJob()

Required. The TuningJob to create.

.google.cloud.aiplatform.v1beta1.TuningJob tuning_job = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateTuningJobRequest.Builder

clone()

public CreateTuningJobRequest.Builder clone()
Returns
Type Description
CreateTuningJobRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateTuningJobRequest getDefaultInstanceForType()
Returns
Type Description
CreateTuningJobRequest

getDescriptorForType()

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

getParent()

public String getParent()

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

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

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

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

Returns
Type Description
ByteString

The bytes for parent.

getTuningJob()

public TuningJob getTuningJob()

Required. The TuningJob to create.

.google.cloud.aiplatform.v1beta1.TuningJob tuning_job = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TuningJob

The tuningJob.

getTuningJobBuilder()

public TuningJob.Builder getTuningJobBuilder()

Required. The TuningJob to create.

.google.cloud.aiplatform.v1beta1.TuningJob tuning_job = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TuningJob.Builder

getTuningJobOrBuilder()

public TuningJobOrBuilder getTuningJobOrBuilder()

Required. The TuningJob to create.

.google.cloud.aiplatform.v1beta1.TuningJob tuning_job = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TuningJobOrBuilder

hasTuningJob()

public boolean hasTuningJob()

Required. The TuningJob to create.

.google.cloud.aiplatform.v1beta1.TuningJob tuning_job = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the tuningJob field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateTuningJobRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTuningJob(TuningJob value)

public CreateTuningJobRequest.Builder mergeTuningJob(TuningJob value)

Required. The TuningJob to create.

.google.cloud.aiplatform.v1beta1.TuningJob tuning_job = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value TuningJob
Returns
Type Description
CreateTuningJobRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateTuningJobRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateTuningJobRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateTuningJobRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateTuningJobRequest.Builder
Overrides

setParent(String value)

public CreateTuningJobRequest.Builder setParent(String value)

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

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateTuningJobRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateTuningJobRequest.Builder setParentBytes(ByteString value)

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

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
CreateTuningJobRequest.Builder

This builder for chaining.

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

public CreateTuningJobRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateTuningJobRequest.Builder
Overrides

setTuningJob(TuningJob value)

public CreateTuningJobRequest.Builder setTuningJob(TuningJob value)

Required. The TuningJob to create.

.google.cloud.aiplatform.v1beta1.TuningJob tuning_job = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value TuningJob
Returns
Type Description
CreateTuningJobRequest.Builder

setTuningJob(TuningJob.Builder builderForValue)

public CreateTuningJobRequest.Builder setTuningJob(TuningJob.Builder builderForValue)

Required. The TuningJob to create.

.google.cloud.aiplatform.v1beta1.TuningJob tuning_job = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue TuningJob.Builder
Returns
Type Description
CreateTuningJobRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateTuningJobRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateTuningJobRequest.Builder
Overrides