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()
Methods
public Presets.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public Presets buildPartial()
public Presets.Builder clear()
Overrides
public Presets.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public Presets.Builder clearModality()
Preset option controlling parameters for different modalities
.google.cloud.aiplatform.v1beta1.Presets.Modality modality = 2;
public Presets.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public Presets.Builder clearQuery()
Preset option controlling parameters for query speed-precision trade-off
optional .google.cloud.aiplatform.v1beta1.Presets.Query query = 1;
public Presets.Builder clone()
Overrides
public Presets getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public Presets.Modality getModality()
Preset option controlling parameters for different modalities
.google.cloud.aiplatform.v1beta1.Presets.Modality modality = 2;
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;
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()
Overrides
public final boolean isInitialized()
Overrides
public Presets.Builder mergeFrom(Presets other)
Parameter |
---|
Name | Description |
other | Presets
|
public Presets.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public Presets.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public final Presets.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public Presets.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public Presets.Builder setModality(Presets.Modality value)
Preset option controlling parameters for different modalities
.google.cloud.aiplatform.v1beta1.Presets.Modality modality = 2;
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.
|
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;
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.
|
public Presets.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final Presets.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides