public static final class Presets.Builder extends GeneratedMessageV3.Builder<Presets.Builder> implements PresetsOrBuilder
Preset configuration for example-based explanations
Protobuf type google.cloud.aiplatform.v1beta1.Presets
Inherited Members
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
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public Presets.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
Returns
public Presets buildPartial()
Returns
public Presets.Builder clear()
Returns
Overrides
public Presets.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public Presets.Builder clearModality()
Preset option controlling parameters for different modalities
.google.cloud.aiplatform.v1beta1.Presets.Modality modality = 2;
Returns
public Presets.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public Presets.Builder clearQuery()
Preset option controlling parameters for query speed-precision trade-off
optional .google.cloud.aiplatform.v1beta1.Presets.Query query = 1;
Returns
public Presets.Builder clone()
Returns
Overrides
public Presets getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public Presets.Modality getModality()
Preset option controlling parameters for different modalities
.google.cloud.aiplatform.v1beta1.Presets.Modality modality = 2;
Returns
public int getModalityValue()
Preset option controlling parameters for different modalities
.google.cloud.aiplatform.v1beta1.Presets.Modality modality = 2;
Returns
Type | Description |
int | The enum numeric value on the wire for modality.
|
public Presets.Query getQuery()
Preset option controlling parameters for query speed-precision trade-off
optional .google.cloud.aiplatform.v1beta1.Presets.Query query = 1;
Returns
public int getQueryValue()
Preset option controlling parameters for query speed-precision trade-off
optional .google.cloud.aiplatform.v1beta1.Presets.Query query = 1;
Returns
Type | Description |
int | The enum numeric value on the wire for query.
|
public boolean hasQuery()
Preset option controlling parameters for query speed-precision trade-off
optional .google.cloud.aiplatform.v1beta1.Presets.Query query = 1;
Returns
Type | Description |
boolean | Whether the query field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public Presets.Builder mergeFrom(Presets other)
Parameter
Returns
public Presets.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public Presets.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final Presets.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public Presets.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public Presets.Builder setModality(Presets.Modality value)
Preset option controlling parameters for different modalities
.google.cloud.aiplatform.v1beta1.Presets.Modality modality = 2;
Parameter
Returns
public Presets.Builder setModalityValue(int value)
Preset option controlling parameters for different modalities
.google.cloud.aiplatform.v1beta1.Presets.Modality modality = 2;
Parameter
Name | Description |
value | int
The enum numeric value on the wire for modality to set.
|
Returns
public Presets.Builder setQuery(Presets.Query value)
Preset option controlling parameters for query speed-precision trade-off
optional .google.cloud.aiplatform.v1beta1.Presets.Query query = 1;
Parameter
Returns
public Presets.Builder setQueryValue(int value)
Preset option controlling parameters for query speed-precision trade-off
optional .google.cloud.aiplatform.v1beta1.Presets.Query query = 1;
Parameter
Name | Description |
value | int
The enum numeric value on the wire for query to set.
|
Returns
public Presets.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final Presets.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides