public static final class PartnerModelTuningSpec.Builder extends GeneratedMessageV3.Builder<PartnerModelTuningSpec.Builder> implements PartnerModelTuningSpecOrBuilder
Tuning spec for Partner models.
Protobuf type google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec
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
public static final Descriptors.Descriptor getDescriptor()
Methods
public PartnerModelTuningSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public PartnerModelTuningSpec build()
public PartnerModelTuningSpec buildPartial()
public PartnerModelTuningSpec.Builder clear()
Overrides
public PartnerModelTuningSpec.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public PartnerModelTuningSpec.Builder clearHyperParameters()
public PartnerModelTuningSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public PartnerModelTuningSpec.Builder clearTrainingDatasetUri()
Required. Cloud Storage path to file containing training dataset for
tuning. The dataset must be formatted as a JSONL file.
string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED];
public PartnerModelTuningSpec.Builder clearValidationDatasetUri()
Optional. Cloud Storage path to file containing validation dataset for
tuning. The dataset must be formatted as a JSONL file.
string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
public PartnerModelTuningSpec.Builder clone()
Overrides
public boolean containsHyperParameters(String key)
Hyperparameters for tuning. The accepted hyper_parameters and their valid
range of values will differ depending on the base model.
map<string, .google.protobuf.Value> hyper_parameters = 3;
Parameter |
Name |
Description |
key |
String
|
public PartnerModelTuningSpec getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public Map<String,Value> getHyperParameters()
public int getHyperParametersCount()
Hyperparameters for tuning. The accepted hyper_parameters and their valid
range of values will differ depending on the base model.
map<string, .google.protobuf.Value> hyper_parameters = 3;
Returns |
Type |
Description |
int |
|
public Map<String,Value> getHyperParametersMap()
Hyperparameters for tuning. The accepted hyper_parameters and their valid
range of values will differ depending on the base model.
map<string, .google.protobuf.Value> hyper_parameters = 3;
public Value getHyperParametersOrDefault(String key, Value defaultValue)
Hyperparameters for tuning. The accepted hyper_parameters and their valid
range of values will differ depending on the base model.
map<string, .google.protobuf.Value> hyper_parameters = 3;
Parameters |
Name |
Description |
key |
String
|
defaultValue |
Value
|
Returns |
Type |
Description |
Value |
|
public Value getHyperParametersOrThrow(String key)
Hyperparameters for tuning. The accepted hyper_parameters and their valid
range of values will differ depending on the base model.
map<string, .google.protobuf.Value> hyper_parameters = 3;
Parameter |
Name |
Description |
key |
String
|
Returns |
Type |
Description |
Value |
|
public Map<String,Value> getMutableHyperParameters()
Use alternate mutation accessors instead.
public String getTrainingDatasetUri()
Required. Cloud Storage path to file containing training dataset for
tuning. The dataset must be formatted as a JSONL file.
string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The trainingDatasetUri.
|
public ByteString getTrainingDatasetUriBytes()
Required. Cloud Storage path to file containing training dataset for
tuning. The dataset must be formatted as a JSONL file.
string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for trainingDatasetUri.
|
public String getValidationDatasetUri()
Optional. Cloud Storage path to file containing validation dataset for
tuning. The dataset must be formatted as a JSONL file.
string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The validationDatasetUri.
|
public ByteString getValidationDatasetUriBytes()
Optional. Cloud Storage path to file containing validation dataset for
tuning. The dataset must be formatted as a JSONL file.
string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for validationDatasetUri.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter |
Name |
Description |
number |
int
|
Returns |
Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter |
Name |
Description |
number |
int
|
Returns |
Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
public final boolean isInitialized()
Overrides
public PartnerModelTuningSpec.Builder mergeFrom(PartnerModelTuningSpec other)
public PartnerModelTuningSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public PartnerModelTuningSpec.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final PartnerModelTuningSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public PartnerModelTuningSpec.Builder putAllHyperParameters(Map<String,Value> values)
Hyperparameters for tuning. The accepted hyper_parameters and their valid
range of values will differ depending on the base model.
map<string, .google.protobuf.Value> hyper_parameters = 3;
public PartnerModelTuningSpec.Builder putHyperParameters(String key, Value value)
Hyperparameters for tuning. The accepted hyper_parameters and their valid
range of values will differ depending on the base model.
map<string, .google.protobuf.Value> hyper_parameters = 3;
public Value.Builder putHyperParametersBuilderIfAbsent(String key)
Hyperparameters for tuning. The accepted hyper_parameters and their valid
range of values will differ depending on the base model.
map<string, .google.protobuf.Value> hyper_parameters = 3;
Parameter |
Name |
Description |
key |
String
|
public PartnerModelTuningSpec.Builder removeHyperParameters(String key)
Hyperparameters for tuning. The accepted hyper_parameters and their valid
range of values will differ depending on the base model.
map<string, .google.protobuf.Value> hyper_parameters = 3;
Parameter |
Name |
Description |
key |
String
|
public PartnerModelTuningSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public PartnerModelTuningSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public PartnerModelTuningSpec.Builder setTrainingDatasetUri(String value)
Required. Cloud Storage path to file containing training dataset for
tuning. The dataset must be formatted as a JSONL file.
string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
String
The trainingDatasetUri to set.
|
public PartnerModelTuningSpec.Builder setTrainingDatasetUriBytes(ByteString value)
Required. Cloud Storage path to file containing training dataset for
tuning. The dataset must be formatted as a JSONL file.
string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
ByteString
The bytes for trainingDatasetUri to set.
|
public final PartnerModelTuningSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
public PartnerModelTuningSpec.Builder setValidationDatasetUri(String value)
Optional. Cloud Storage path to file containing validation dataset for
tuning. The dataset must be formatted as a JSONL file.
string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
String
The validationDatasetUri to set.
|
public PartnerModelTuningSpec.Builder setValidationDatasetUriBytes(ByteString value)
Optional. Cloud Storage path to file containing validation dataset for
tuning. The dataset must be formatted as a JSONL file.
string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
ByteString
The bytes for validationDatasetUri to set.
|