Send feedback Class Presets.Builder (1.23.0) Stay organized with collections Save and categorize content based on your preferences.
public static final class Presets . Builder extends GeneratedMessageV3 . Builder<Presets . Builder > implements PresetsOrBuilder
Preset configuration for example-based explanations
Protobuf type google.cloud.vertexai.v1.Presets
Inherited Members com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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 ()
Methods addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Presets . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides build() buildPartial()
public Presets buildPartial ()
clear()
public Presets . Builder clear ()
Overrides clearField(Descriptors.FieldDescriptor field)
public Presets . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides clearModality()
public Presets . Builder clearModality ()
The modality of the uploaded model, which automatically configures the distance measurement and feature normalization for the underlying example index and queries. If your model does not precisely fit one of these types, it is okay to choose the closest type.
.google.cloud.vertexai.v1.Presets.Modality modality = 2;
clearOneof(Descriptors.OneofDescriptor oneof)
public Presets . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides clearQuery()
public Presets . Builder clearQuery ()
Preset option controlling parameters for speed-precision trade-off when querying for examples. If omitted, defaults to PRECISE
.
optional .google.cloud.vertexai.v1.Presets.Query query = 1;
clone()
public Presets . Builder clone ()
Overrides getDefaultInstanceForType()
public Presets getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides getModality()
public Presets . Modality getModality ()
The modality of the uploaded model, which automatically configures the distance measurement and feature normalization for the underlying example index and queries. If your model does not precisely fit one of these types, it is okay to choose the closest type.
.google.cloud.vertexai.v1.Presets.Modality modality = 2;
getModalityValue()
public int getModalityValue ()
The modality of the uploaded model, which automatically configures the distance measurement and feature normalization for the underlying example index and queries. If your model does not precisely fit one of these types, it is okay to choose the closest type.
.google.cloud.vertexai.v1.Presets.Modality modality = 2;
Returns Type Description int
The enum numeric value on the wire for modality.
getQuery()
public Presets . Query getQuery ()
Preset option controlling parameters for speed-precision trade-off when querying for examples. If omitted, defaults to PRECISE
.
optional .google.cloud.vertexai.v1.Presets.Query query = 1;
getQueryValue()
public int getQueryValue ()
Preset option controlling parameters for speed-precision trade-off when querying for examples. If omitted, defaults to PRECISE
.
optional .google.cloud.vertexai.v1.Presets.Query query = 1;
Returns Type Description int
The enum numeric value on the wire for query.
hasQuery()
public boolean hasQuery ()
Preset option controlling parameters for speed-precision trade-off when querying for examples. If omitted, defaults to PRECISE
.
optional .google.cloud.vertexai.v1.Presets.Query query = 1;
Returns Type Description boolean
Whether the query field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides isInitialized()
public final boolean isInitialized ()
Overrides mergeFrom(Presets other)
public Presets . Builder mergeFrom ( Presets other )
Parameter Name Description other
Presets
public Presets . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides mergeFrom(Message other)
public Presets . Builder mergeFrom ( Message other )
Parameter Name Description other
Message
Overrides mergeUnknownFields(UnknownFieldSet unknownFields)
public final Presets . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides setField(Descriptors.FieldDescriptor field, Object value)
public Presets . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides setModality(Presets.Modality value)
public Presets . Builder setModality ( Presets . Modality value )
The modality of the uploaded model, which automatically configures the distance measurement and feature normalization for the underlying example index and queries. If your model does not precisely fit one of these types, it is okay to choose the closest type.
.google.cloud.vertexai.v1.Presets.Modality modality = 2;
setModalityValue(int value)
public Presets . Builder setModalityValue ( int value )
The modality of the uploaded model, which automatically configures the distance measurement and feature normalization for the underlying example index and queries. If your model does not precisely fit one of these types, it is okay to choose the closest type.
.google.cloud.vertexai.v1.Presets.Modality modality = 2;
Parameter Name Description value
int
The enum numeric value on the wire for modality to set.
setQuery(Presets.Query value)
public Presets . Builder setQuery ( Presets . Query value )
Preset option controlling parameters for speed-precision trade-off when querying for examples. If omitted, defaults to PRECISE
.
optional .google.cloud.vertexai.v1.Presets.Query query = 1;
setQueryValue(int value)
public Presets . Builder setQueryValue ( int value )
Preset option controlling parameters for speed-precision trade-off when querying for examples. If omitted, defaults to PRECISE
.
optional .google.cloud.vertexai.v1.Presets.Query query = 1;
Parameter Name Description value
int
The enum numeric value on the wire for query to set.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Presets . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides setUnknownFields(UnknownFieldSet unknownFields)
public final Presets . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides Send feedback
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-06-05 UTC.
Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-05 UTC."],[],[]]