public static final class DistillationSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DistillationSpec.Builder> implements DistillationSpecOrBuilder
Tuning Spec for Distillation.Protobuf type
google.cloud.aiplatform.v1beta1.DistillationSpec| Modifier and Type | Method and Description |
|---|---|
DistillationSpec.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DistillationSpec |
build() |
DistillationSpec |
buildPartial() |
DistillationSpec.Builder |
clear() |
DistillationSpec.Builder |
clearBaseTeacherModel()
The base teacher model that is being distilled, e.g.,
"gemini-1.0-pro-002".
|
DistillationSpec.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
DistillationSpec.Builder |
clearHyperParameters()
Optional.
|
DistillationSpec.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
DistillationSpec.Builder |
clearPipelineRootDirectory()
Required.
|
DistillationSpec.Builder |
clearStudentModel()
The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
|
DistillationSpec.Builder |
clearTeacherModel() |
DistillationSpec.Builder |
clearTrainingDatasetUri()
Required.
|
DistillationSpec.Builder |
clearTunedTeacherModelSource()
The resource name of the Tuned teacher model.
|
DistillationSpec.Builder |
clearValidationDatasetUri()
Optional.
|
DistillationSpec.Builder |
clone() |
String |
getBaseTeacherModel()
The base teacher model that is being distilled, e.g.,
"gemini-1.0-pro-002".
|
com.google.protobuf.ByteString |
getBaseTeacherModelBytes()
The base teacher model that is being distilled, e.g.,
"gemini-1.0-pro-002".
|
DistillationSpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
DistillationHyperParameters |
getHyperParameters()
Optional.
|
DistillationHyperParameters.Builder |
getHyperParametersBuilder()
Optional.
|
DistillationHyperParametersOrBuilder |
getHyperParametersOrBuilder()
Optional.
|
String |
getPipelineRootDirectory()
Required.
|
com.google.protobuf.ByteString |
getPipelineRootDirectoryBytes()
Required.
|
String |
getStudentModel()
The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
|
com.google.protobuf.ByteString |
getStudentModelBytes()
The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
|
DistillationSpec.TeacherModelCase |
getTeacherModelCase() |
String |
getTrainingDatasetUri()
Required.
|
com.google.protobuf.ByteString |
getTrainingDatasetUriBytes()
Required.
|
String |
getTunedTeacherModelSource()
The resource name of the Tuned teacher model.
|
com.google.protobuf.ByteString |
getTunedTeacherModelSourceBytes()
The resource name of the Tuned teacher model.
|
String |
getValidationDatasetUri()
Optional.
|
com.google.protobuf.ByteString |
getValidationDatasetUriBytes()
Optional.
|
boolean |
hasBaseTeacherModel()
The base teacher model that is being distilled, e.g.,
"gemini-1.0-pro-002".
|
boolean |
hasHyperParameters()
Optional.
|
boolean |
hasTunedTeacherModelSource()
The resource name of the Tuned teacher model.
|
boolean |
hasValidationDatasetUri()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
DistillationSpec.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
DistillationSpec.Builder |
mergeFrom(DistillationSpec other) |
DistillationSpec.Builder |
mergeFrom(com.google.protobuf.Message other) |
DistillationSpec.Builder |
mergeHyperParameters(DistillationHyperParameters value)
Optional.
|
DistillationSpec.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
DistillationSpec.Builder |
setBaseTeacherModel(String value)
The base teacher model that is being distilled, e.g.,
"gemini-1.0-pro-002".
|
DistillationSpec.Builder |
setBaseTeacherModelBytes(com.google.protobuf.ByteString value)
The base teacher model that is being distilled, e.g.,
"gemini-1.0-pro-002".
|
DistillationSpec.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DistillationSpec.Builder |
setHyperParameters(DistillationHyperParameters.Builder builderForValue)
Optional.
|
DistillationSpec.Builder |
setHyperParameters(DistillationHyperParameters value)
Optional.
|
DistillationSpec.Builder |
setPipelineRootDirectory(String value)
Required.
|
DistillationSpec.Builder |
setPipelineRootDirectoryBytes(com.google.protobuf.ByteString value)
Required.
|
DistillationSpec.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
DistillationSpec.Builder |
setStudentModel(String value)
The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
|
DistillationSpec.Builder |
setStudentModelBytes(com.google.protobuf.ByteString value)
The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
|
DistillationSpec.Builder |
setTrainingDatasetUri(String value)
Required.
|
DistillationSpec.Builder |
setTrainingDatasetUriBytes(com.google.protobuf.ByteString value)
Required.
|
DistillationSpec.Builder |
setTunedTeacherModelSource(String value)
The resource name of the Tuned teacher model.
|
DistillationSpec.Builder |
setTunedTeacherModelSourceBytes(com.google.protobuf.ByteString value)
The resource name of the Tuned teacher model.
|
DistillationSpec.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
DistillationSpec.Builder |
setValidationDatasetUri(String value)
Optional.
|
DistillationSpec.Builder |
setValidationDatasetUriBytes(com.google.protobuf.ByteString value)
Optional.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<DistillationSpec.Builder>public DistillationSpec.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<DistillationSpec.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<DistillationSpec.Builder>public DistillationSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic DistillationSpec build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic DistillationSpec buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic DistillationSpec.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<DistillationSpec.Builder>public DistillationSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<DistillationSpec.Builder>public DistillationSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<DistillationSpec.Builder>public DistillationSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DistillationSpec.Builder>public DistillationSpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DistillationSpec.Builder>public DistillationSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DistillationSpec.Builder>public DistillationSpec.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DistillationSpec.Builder>public DistillationSpec.Builder mergeFrom(DistillationSpec other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<DistillationSpec.Builder>public DistillationSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DistillationSpec.Builder>IOExceptionpublic DistillationSpec.TeacherModelCase getTeacherModelCase()
getTeacherModelCase in interface DistillationSpecOrBuilderpublic DistillationSpec.Builder clearTeacherModel()
public boolean hasBaseTeacherModel()
The base teacher model that is being distilled, e.g., "gemini-1.0-pro-002".
string base_teacher_model = 5;hasBaseTeacherModel in interface DistillationSpecOrBuilderpublic String getBaseTeacherModel()
The base teacher model that is being distilled, e.g., "gemini-1.0-pro-002".
string base_teacher_model = 5;getBaseTeacherModel in interface DistillationSpecOrBuilderpublic com.google.protobuf.ByteString getBaseTeacherModelBytes()
The base teacher model that is being distilled, e.g., "gemini-1.0-pro-002".
string base_teacher_model = 5;getBaseTeacherModelBytes in interface DistillationSpecOrBuilderpublic DistillationSpec.Builder setBaseTeacherModel(String value)
The base teacher model that is being distilled, e.g., "gemini-1.0-pro-002".
string base_teacher_model = 5;value - The baseTeacherModel to set.public DistillationSpec.Builder clearBaseTeacherModel()
The base teacher model that is being distilled, e.g., "gemini-1.0-pro-002".
string base_teacher_model = 5;public DistillationSpec.Builder setBaseTeacherModelBytes(com.google.protobuf.ByteString value)
The base teacher model that is being distilled, e.g., "gemini-1.0-pro-002".
string base_teacher_model = 5;value - The bytes for baseTeacherModel to set.public boolean hasTunedTeacherModelSource()
The resource name of the Tuned teacher model. Format:
`projects/{project}/locations/{location}/models/{model}`.
string tuned_teacher_model_source = 6 [(.google.api.resource_reference) = { ... }
hasTunedTeacherModelSource in interface DistillationSpecOrBuilderpublic String getTunedTeacherModelSource()
The resource name of the Tuned teacher model. Format:
`projects/{project}/locations/{location}/models/{model}`.
string tuned_teacher_model_source = 6 [(.google.api.resource_reference) = { ... }
getTunedTeacherModelSource in interface DistillationSpecOrBuilderpublic com.google.protobuf.ByteString getTunedTeacherModelSourceBytes()
The resource name of the Tuned teacher model. Format:
`projects/{project}/locations/{location}/models/{model}`.
string tuned_teacher_model_source = 6 [(.google.api.resource_reference) = { ... }
getTunedTeacherModelSourceBytes in interface DistillationSpecOrBuilderpublic DistillationSpec.Builder setTunedTeacherModelSource(String value)
The resource name of the Tuned teacher model. Format:
`projects/{project}/locations/{location}/models/{model}`.
string tuned_teacher_model_source = 6 [(.google.api.resource_reference) = { ... }
value - The tunedTeacherModelSource to set.public DistillationSpec.Builder clearTunedTeacherModelSource()
The resource name of the Tuned teacher model. Format:
`projects/{project}/locations/{location}/models/{model}`.
string tuned_teacher_model_source = 6 [(.google.api.resource_reference) = { ... }
public DistillationSpec.Builder setTunedTeacherModelSourceBytes(com.google.protobuf.ByteString value)
The resource name of the Tuned teacher model. Format:
`projects/{project}/locations/{location}/models/{model}`.
string tuned_teacher_model_source = 6 [(.google.api.resource_reference) = { ... }
value - The bytes for tunedTeacherModelSource to set.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];getTrainingDatasetUri in interface DistillationSpecOrBuilderpublic com.google.protobuf.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];getTrainingDatasetUriBytes in interface DistillationSpecOrBuilderpublic DistillationSpec.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];value - The trainingDatasetUri to set.public DistillationSpec.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 DistillationSpec.Builder setTrainingDatasetUriBytes(com.google.protobuf.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];value - The bytes for trainingDatasetUri to set.public boolean hasValidationDatasetUri()
Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file.
optional string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
hasValidationDatasetUri in interface DistillationSpecOrBuilderpublic String getValidationDatasetUri()
Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file.
optional string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
getValidationDatasetUri in interface DistillationSpecOrBuilderpublic com.google.protobuf.ByteString getValidationDatasetUriBytes()
Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file.
optional string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
getValidationDatasetUriBytes in interface DistillationSpecOrBuilderpublic DistillationSpec.Builder setValidationDatasetUri(String value)
Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file.
optional string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
value - The validationDatasetUri to set.public DistillationSpec.Builder clearValidationDatasetUri()
Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file.
optional string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
public DistillationSpec.Builder setValidationDatasetUriBytes(com.google.protobuf.ByteString value)
Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file.
optional string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
value - The bytes for validationDatasetUri to set.public boolean hasHyperParameters()
Optional. Hyperparameters for Distillation.
.google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
hasHyperParameters in interface DistillationSpecOrBuilderpublic DistillationHyperParameters getHyperParameters()
Optional. Hyperparameters for Distillation.
.google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
getHyperParameters in interface DistillationSpecOrBuilderpublic DistillationSpec.Builder setHyperParameters(DistillationHyperParameters value)
Optional. Hyperparameters for Distillation.
.google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
public DistillationSpec.Builder setHyperParameters(DistillationHyperParameters.Builder builderForValue)
Optional. Hyperparameters for Distillation.
.google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
public DistillationSpec.Builder mergeHyperParameters(DistillationHyperParameters value)
Optional. Hyperparameters for Distillation.
.google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
public DistillationSpec.Builder clearHyperParameters()
Optional. Hyperparameters for Distillation.
.google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
public DistillationHyperParameters.Builder getHyperParametersBuilder()
Optional. Hyperparameters for Distillation.
.google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
public DistillationHyperParametersOrBuilder getHyperParametersOrBuilder()
Optional. Hyperparameters for Distillation.
.google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
getHyperParametersOrBuilder in interface DistillationSpecOrBuilderpublic String getStudentModel()
The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
string student_model = 4;getStudentModel in interface DistillationSpecOrBuilderpublic com.google.protobuf.ByteString getStudentModelBytes()
The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
string student_model = 4;getStudentModelBytes in interface DistillationSpecOrBuilderpublic DistillationSpec.Builder setStudentModel(String value)
The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
string student_model = 4;value - The studentModel to set.public DistillationSpec.Builder clearStudentModel()
The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
string student_model = 4;public DistillationSpec.Builder setStudentModelBytes(com.google.protobuf.ByteString value)
The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
string student_model = 4;value - The bytes for studentModel to set.public String getPipelineRootDirectory()
Required. A path in a Cloud Storage bucket, which will be treated as the root output directory of the distillation pipeline. It is used by the system to generate the paths of output artifacts.
string pipeline_root_directory = 7 [(.google.api.field_behavior) = REQUIRED];getPipelineRootDirectory in interface DistillationSpecOrBuilderpublic com.google.protobuf.ByteString getPipelineRootDirectoryBytes()
Required. A path in a Cloud Storage bucket, which will be treated as the root output directory of the distillation pipeline. It is used by the system to generate the paths of output artifacts.
string pipeline_root_directory = 7 [(.google.api.field_behavior) = REQUIRED];getPipelineRootDirectoryBytes in interface DistillationSpecOrBuilderpublic DistillationSpec.Builder setPipelineRootDirectory(String value)
Required. A path in a Cloud Storage bucket, which will be treated as the root output directory of the distillation pipeline. It is used by the system to generate the paths of output artifacts.
string pipeline_root_directory = 7 [(.google.api.field_behavior) = REQUIRED];value - The pipelineRootDirectory to set.public DistillationSpec.Builder clearPipelineRootDirectory()
Required. A path in a Cloud Storage bucket, which will be treated as the root output directory of the distillation pipeline. It is used by the system to generate the paths of output artifacts.
string pipeline_root_directory = 7 [(.google.api.field_behavior) = REQUIRED];public DistillationSpec.Builder setPipelineRootDirectoryBytes(com.google.protobuf.ByteString value)
Required. A path in a Cloud Storage bucket, which will be treated as the root output directory of the distillation pipeline. It is used by the system to generate the paths of output artifacts.
string pipeline_root_directory = 7 [(.google.api.field_behavior) = REQUIRED];value - The bytes for pipelineRootDirectory to set.public final DistillationSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DistillationSpec.Builder>public final DistillationSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DistillationSpec.Builder>Copyright © 2025 Google LLC. All rights reserved.