Class DistillationSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DistillationSpec.Builder>
com.google.cloud.aiplatform.v1beta1.DistillationSpec.Builder
- All Implemented Interfaces:
DistillationSpecOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DistillationSpec
public static final class DistillationSpec.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DistillationSpec.Builder>
implements DistillationSpecOrBuilder
Tuning Spec for Distillation.Protobuf type
google.cloud.aiplatform.v1beta1.DistillationSpec-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The base teacher model that is being distilled.Optional.Required.The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".Required.The resource name of the Tuned teacher model.Optional.The base teacher model that is being distilled.com.google.protobuf.ByteStringThe base teacher model that is being distilled.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.Optional.Optional.Required.com.google.protobuf.ByteStringRequired.The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".com.google.protobuf.ByteStringThe student model that is being tuned, e.g., "google/gemma-2b-1.1-it".Required.com.google.protobuf.ByteStringRequired.The resource name of the Tuned teacher model.com.google.protobuf.ByteStringThe resource name of the Tuned teacher model.Optional.com.google.protobuf.ByteStringOptional.booleanThe base teacher model that is being distilled.booleanOptional.booleanThe resource name of the Tuned teacher model.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(DistillationSpec other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.setBaseTeacherModel(String value) The base teacher model that is being distilled.setBaseTeacherModelBytes(com.google.protobuf.ByteString value) The base teacher model that is being distilled.Optional.setHyperParameters(DistillationHyperParameters.Builder builderForValue) Optional.setPipelineRootDirectory(String value) Required.setPipelineRootDirectoryBytes(com.google.protobuf.ByteString value) Required.setStudentModel(String value) The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".setStudentModelBytes(com.google.protobuf.ByteString value) The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".setTrainingDatasetUri(String value) Required.setTrainingDatasetUriBytes(com.google.protobuf.ByteString value) Required.setTunedTeacherModelSource(String value) The resource name of the Tuned teacher model.setTunedTeacherModelSourceBytes(com.google.protobuf.ByteString value) The resource name of the Tuned teacher model.setValidationDatasetUri(String value) Optional.setValidationDatasetUriBytes(com.google.protobuf.ByteString value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DistillationSpec.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DistillationSpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DistillationSpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DistillationSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DistillationSpec.Builder>
-
mergeFrom
public DistillationSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DistillationSpec.Builder>- Throws:
IOException
-
getTeacherModelCase
- Specified by:
getTeacherModelCasein interfaceDistillationSpecOrBuilder
-
clearTeacherModel
-
hasBaseTeacherModel
public boolean hasBaseTeacherModel()The base teacher model that is being distilled. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
string base_teacher_model = 5;- Specified by:
hasBaseTeacherModelin interfaceDistillationSpecOrBuilder- Returns:
- Whether the baseTeacherModel field is set.
-
getBaseTeacherModel
The base teacher model that is being distilled. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
string base_teacher_model = 5;- Specified by:
getBaseTeacherModelin interfaceDistillationSpecOrBuilder- Returns:
- The baseTeacherModel.
-
getBaseTeacherModelBytes
public com.google.protobuf.ByteString getBaseTeacherModelBytes()The base teacher model that is being distilled. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
string base_teacher_model = 5;- Specified by:
getBaseTeacherModelBytesin interfaceDistillationSpecOrBuilder- Returns:
- The bytes for baseTeacherModel.
-
setBaseTeacherModel
The base teacher model that is being distilled. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
string base_teacher_model = 5;- Parameters:
value- The baseTeacherModel to set.- Returns:
- This builder for chaining.
-
clearBaseTeacherModel
The base teacher model that is being distilled. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
string base_teacher_model = 5;- Returns:
- This builder for chaining.
-
setBaseTeacherModelBytes
The base teacher model that is being distilled. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
string base_teacher_model = 5;- Parameters:
value- The bytes for baseTeacherModel to set.- Returns:
- This builder for chaining.
-
hasTunedTeacherModelSource
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) = { ... }- Specified by:
hasTunedTeacherModelSourcein interfaceDistillationSpecOrBuilder- Returns:
- Whether the tunedTeacherModelSource field is set.
-
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) = { ... }- Specified by:
getTunedTeacherModelSourcein interfaceDistillationSpecOrBuilder- Returns:
- The tunedTeacherModelSource.
-
getTunedTeacherModelSourceBytes
public 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) = { ... }- Specified by:
getTunedTeacherModelSourceBytesin interfaceDistillationSpecOrBuilder- Returns:
- The bytes for tunedTeacherModelSource.
-
setTunedTeacherModelSource
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) = { ... }- Parameters:
value- The tunedTeacherModelSource to set.- Returns:
- This builder for chaining.
-
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) = { ... }- Returns:
- This builder for chaining.
-
setTunedTeacherModelSourceBytes
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) = { ... }- Parameters:
value- The bytes for tunedTeacherModelSource to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getTrainingDatasetUriin interfaceDistillationSpecOrBuilder- Returns:
- The trainingDatasetUri.
-
getTrainingDatasetUriBytes
public 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];- Specified by:
getTrainingDatasetUriBytesin interfaceDistillationSpecOrBuilder- Returns:
- The bytes for trainingDatasetUri.
-
setTrainingDatasetUri
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];- Parameters:
value- The trainingDatasetUri to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
setTrainingDatasetUriBytes
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];- Parameters:
value- The bytes for trainingDatasetUri to set.- Returns:
- This builder for chaining.
-
hasValidationDatasetUri
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];- Specified by:
hasValidationDatasetUriin interfaceDistillationSpecOrBuilder- Returns:
- Whether the validationDatasetUri field is set.
-
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];- Specified by:
getValidationDatasetUriin interfaceDistillationSpecOrBuilder- Returns:
- The validationDatasetUri.
-
getValidationDatasetUriBytes
public 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];- Specified by:
getValidationDatasetUriBytesin interfaceDistillationSpecOrBuilder- Returns:
- The bytes for validationDatasetUri.
-
setValidationDatasetUri
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];- Parameters:
value- The validationDatasetUri to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
setValidationDatasetUriBytes
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];- Parameters:
value- The bytes for validationDatasetUri to set.- Returns:
- This builder for chaining.
-
hasHyperParameters
public boolean hasHyperParameters()Optional. Hyperparameters for Distillation.
.google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasHyperParametersin interfaceDistillationSpecOrBuilder- Returns:
- Whether the hyperParameters field is set.
-
getHyperParameters
Optional. Hyperparameters for Distillation.
.google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getHyperParametersin interfaceDistillationSpecOrBuilder- Returns:
- The hyperParameters.
-
setHyperParameters
Optional. Hyperparameters for Distillation.
.google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; -
setHyperParameters
public DistillationSpec.Builder setHyperParameters(DistillationHyperParameters.Builder builderForValue) Optional. Hyperparameters for Distillation.
.google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; -
mergeHyperParameters
Optional. Hyperparameters for Distillation.
.google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; -
clearHyperParameters
Optional. Hyperparameters for Distillation.
.google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getHyperParametersBuilder
Optional. Hyperparameters for Distillation.
.google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getHyperParametersOrBuilder
Optional. Hyperparameters for Distillation.
.google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getHyperParametersOrBuilderin interfaceDistillationSpecOrBuilder
-
getStudentModel
The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
string student_model = 4;- Specified by:
getStudentModelin interfaceDistillationSpecOrBuilder- Returns:
- The studentModel.
-
getStudentModelBytes
public com.google.protobuf.ByteString getStudentModelBytes()The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
string student_model = 4;- Specified by:
getStudentModelBytesin interfaceDistillationSpecOrBuilder- Returns:
- The bytes for studentModel.
-
setStudentModel
The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
string student_model = 4;- Parameters:
value- The studentModel to set.- Returns:
- This builder for chaining.
-
clearStudentModel
The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
string student_model = 4;- Returns:
- This builder for chaining.
-
setStudentModelBytes
The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
string student_model = 4;- Parameters:
value- The bytes for studentModel to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getPipelineRootDirectoryin interfaceDistillationSpecOrBuilder- Returns:
- The pipelineRootDirectory.
-
getPipelineRootDirectoryBytes
public 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];- Specified by:
getPipelineRootDirectoryBytesin interfaceDistillationSpecOrBuilder- Returns:
- The bytes for pipelineRootDirectory.
-
setPipelineRootDirectory
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];- Parameters:
value- The pipelineRootDirectory to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
setPipelineRootDirectoryBytes
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];- Parameters:
value- The bytes for pipelineRootDirectory to set.- Returns:
- This builder for chaining.
-