Class CustomFineTuningSpec.Builder (0.37.0)

public static final class CustomFineTuningSpec.Builder extends GeneratedMessageV3.Builder<CustomFineTuningSpec.Builder> implements CustomFineTuningSpecOrBuilder

Defines custom fine tuning spec.

Protobuf type google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CustomFineTuningSpec build()
Returns
TypeDescription
CustomFineTuningSpec

buildPartial()

public CustomFineTuningSpec buildPartial()
Returns
TypeDescription
CustomFineTuningSpec

clear()

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

clearEnableSearchAdaptor()

public CustomFineTuningSpec.Builder clearEnableSearchAdaptor()

Whether or not to enable and include custom fine tuned search adaptor model.

bool enable_search_adaptor = 1;

Returns
TypeDescription
CustomFineTuningSpec.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public CustomFineTuningSpec getDefaultInstanceForType()
Returns
TypeDescription
CustomFineTuningSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnableSearchAdaptor()

public boolean getEnableSearchAdaptor()

Whether or not to enable and include custom fine tuned search adaptor model.

bool enable_search_adaptor = 1;

Returns
TypeDescription
boolean

The enableSearchAdaptor.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CustomFineTuningSpec other)

public CustomFineTuningSpec.Builder mergeFrom(CustomFineTuningSpec other)
Parameter
NameDescription
otherCustomFineTuningSpec
Returns
TypeDescription
CustomFineTuningSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEnableSearchAdaptor(boolean value)

public CustomFineTuningSpec.Builder setEnableSearchAdaptor(boolean value)

Whether or not to enable and include custom fine tuned search adaptor model.

bool enable_search_adaptor = 1;

Parameter
NameDescription
valueboolean

The enableSearchAdaptor to set.

Returns
TypeDescription
CustomFineTuningSpec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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