Package com.google.cloud.aiplatform.v1
Class PreTunedModel.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PreTunedModel.Builder>
com.google.cloud.aiplatform.v1.PreTunedModel.Builder
- All Implemented Interfaces:
PreTunedModelOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PreTunedModel
public static final class PreTunedModel.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PreTunedModel.Builder>
implements PreTunedModelOrBuilder
A pre-tuned model for continuous tuning.Protobuf type
google.cloud.aiplatform.v1.PreTunedModel-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Optional.The resource name of the Model.Output only.com.google.protobuf.ByteStringOutput only.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe resource name of the Model.com.google.protobuf.ByteStringThe resource name of the Model.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(PreTunedModel other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setBaseModel(String value) Output only.setBaseModelBytes(com.google.protobuf.ByteString value) Output only.setCheckpointId(String value) Optional.setCheckpointIdBytes(com.google.protobuf.ByteString value) Optional.setTunedModelName(String value) The resource name of the Model.setTunedModelNameBytes(com.google.protobuf.ByteString value) The resource name of the Model.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<PreTunedModel.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<PreTunedModel.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<PreTunedModel.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<PreTunedModel.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PreTunedModel.Builder>
-
mergeFrom
public PreTunedModel.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<PreTunedModel.Builder>- Throws:
IOException
-
getTunedModelName
The resource name of the Model. E.g., a model resource name with a specified version id or alias: `projects/{project}/locations/{location}/models/{model}@{version_id}` `projects/{project}/locations/{location}/models/{model}@{alias}` Or, omit the version id to use the default version: `projects/{project}/locations/{location}/models/{model}`string tuned_model_name = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getTunedModelNamein interfacePreTunedModelOrBuilder- Returns:
- The tunedModelName.
-
getTunedModelNameBytes
public com.google.protobuf.ByteString getTunedModelNameBytes()The resource name of the Model. E.g., a model resource name with a specified version id or alias: `projects/{project}/locations/{location}/models/{model}@{version_id}` `projects/{project}/locations/{location}/models/{model}@{alias}` Or, omit the version id to use the default version: `projects/{project}/locations/{location}/models/{model}`string tuned_model_name = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getTunedModelNameBytesin interfacePreTunedModelOrBuilder- Returns:
- The bytes for tunedModelName.
-
setTunedModelName
The resource name of the Model. E.g., a model resource name with a specified version id or alias: `projects/{project}/locations/{location}/models/{model}@{version_id}` `projects/{project}/locations/{location}/models/{model}@{alias}` Or, omit the version id to use the default version: `projects/{project}/locations/{location}/models/{model}`string tuned_model_name = 1 [(.google.api.resource_reference) = { ... }- Parameters:
value- The tunedModelName to set.- Returns:
- This builder for chaining.
-
clearTunedModelName
The resource name of the Model. E.g., a model resource name with a specified version id or alias: `projects/{project}/locations/{location}/models/{model}@{version_id}` `projects/{project}/locations/{location}/models/{model}@{alias}` Or, omit the version id to use the default version: `projects/{project}/locations/{location}/models/{model}`string tuned_model_name = 1 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setTunedModelNameBytes
The resource name of the Model. E.g., a model resource name with a specified version id or alias: `projects/{project}/locations/{location}/models/{model}@{version_id}` `projects/{project}/locations/{location}/models/{model}@{alias}` Or, omit the version id to use the default version: `projects/{project}/locations/{location}/models/{model}`string tuned_model_name = 1 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for tunedModelName to set.- Returns:
- This builder for chaining.
-
getCheckpointId
Optional. The source checkpoint id. If not specified, the default checkpoint will be used.
string checkpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCheckpointIdin interfacePreTunedModelOrBuilder- Returns:
- The checkpointId.
-
getCheckpointIdBytes
public com.google.protobuf.ByteString getCheckpointIdBytes()Optional. The source checkpoint id. If not specified, the default checkpoint will be used.
string checkpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCheckpointIdBytesin interfacePreTunedModelOrBuilder- Returns:
- The bytes for checkpointId.
-
setCheckpointId
Optional. The source checkpoint id. If not specified, the default checkpoint will be used.
string checkpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The checkpointId to set.- Returns:
- This builder for chaining.
-
clearCheckpointId
Optional. The source checkpoint id. If not specified, the default checkpoint will be used.
string checkpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setCheckpointIdBytes
Optional. The source checkpoint id. If not specified, the default checkpoint will be used.
string checkpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for checkpointId to set.- Returns:
- This builder for chaining.
-
getBaseModel
Output only. The name of the base model this [PreTunedModel][google.cloud.aiplatform.v1.PreTunedModel] was tuned from.
string base_model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getBaseModelin interfacePreTunedModelOrBuilder- Returns:
- The baseModel.
-
getBaseModelBytes
public com.google.protobuf.ByteString getBaseModelBytes()Output only. The name of the base model this [PreTunedModel][google.cloud.aiplatform.v1.PreTunedModel] was tuned from.
string base_model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getBaseModelBytesin interfacePreTunedModelOrBuilder- Returns:
- The bytes for baseModel.
-
setBaseModel
Output only. The name of the base model this [PreTunedModel][google.cloud.aiplatform.v1.PreTunedModel] was tuned from.
string base_model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The baseModel to set.- Returns:
- This builder for chaining.
-
clearBaseModel
Output only. The name of the base model this [PreTunedModel][google.cloud.aiplatform.v1.PreTunedModel] was tuned from.
string base_model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setBaseModelBytes
Output only. The name of the base model this [PreTunedModel][google.cloud.aiplatform.v1.PreTunedModel] was tuned from.
string base_model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for baseModel to set.- Returns:
- This builder for chaining.
-