Package com.google.cloud.aiplatform.v1
Class UploadModelRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<UploadModelRequest.Builder>
com.google.cloud.aiplatform.v1.UploadModelRequest.Builder
- All Implemented Interfaces:
UploadModelRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- UploadModelRequest
public static final class UploadModelRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<UploadModelRequest.Builder>
implements UploadModelRequestOrBuilder
Request message for [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel].Protobuf type
google.cloud.aiplatform.v1.UploadModelRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Optional.Required.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetModel()Required.Required.Optional.com.google.protobuf.ByteStringOptional.Required.Required.com.google.protobuf.ByteStringRequired.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.booleanhasModel()Required.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(UploadModelRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeModel(Model value) Required.Required.setModel(Model.Builder builderForValue) Required.setModelId(String value) Optional.setModelIdBytes(com.google.protobuf.ByteString value) Optional.Required.setParentBytes(com.google.protobuf.ByteString value) Required.setParentModel(String value) Optional.setParentModelBytes(com.google.protobuf.ByteString value) Optional.setServiceAccount(String value) Optional.setServiceAccountBytes(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<UploadModelRequest.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<UploadModelRequest.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<UploadModelRequest.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<UploadModelRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<UploadModelRequest.Builder>
-
mergeFrom
public UploadModelRequest.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<UploadModelRequest.Builder>- Throws:
IOException
-
getParent
Required. The resource name of the Location into which to upload the Model. Format: `projects/{project}/locations/{location}`string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentin interfaceUploadModelRequestOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()Required. The resource name of the Location into which to upload the Model. Format: `projects/{project}/locations/{location}`string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentBytesin interfaceUploadModelRequestOrBuilder- Returns:
- The bytes for parent.
-
setParent
Required. The resource name of the Location into which to upload the Model. Format: `projects/{project}/locations/{location}`string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
Required. The resource name of the Location into which to upload the Model. Format: `projects/{project}/locations/{location}`string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setParentBytes
Required. The resource name of the Location into which to upload the Model. Format: `projects/{project}/locations/{location}`string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for parent to set.- Returns:
- This builder for chaining.
-
getParentModel
Optional. The resource name of the model into which to upload the version. Only specify this field when uploading a new version.
string parent_model = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getParentModelin interfaceUploadModelRequestOrBuilder- Returns:
- The parentModel.
-
getParentModelBytes
public com.google.protobuf.ByteString getParentModelBytes()Optional. The resource name of the model into which to upload the version. Only specify this field when uploading a new version.
string parent_model = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getParentModelBytesin interfaceUploadModelRequestOrBuilder- Returns:
- The bytes for parentModel.
-
setParentModel
Optional. The resource name of the model into which to upload the version. Only specify this field when uploading a new version.
string parent_model = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The parentModel to set.- Returns:
- This builder for chaining.
-
clearParentModel
Optional. The resource name of the model into which to upload the version. Only specify this field when uploading a new version.
string parent_model = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setParentModelBytes
Optional. The resource name of the model into which to upload the version. Only specify this field when uploading a new version.
string parent_model = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for parentModel to set.- Returns:
- This builder for chaining.
-
getModelId
Optional. The ID to use for the uploaded Model, which will become the final component of the model resource name. This value may be up to 63 characters, and valid characters are `[a-z0-9_-]`. The first character cannot be a number or hyphen.
string model_id = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getModelIdin interfaceUploadModelRequestOrBuilder- Returns:
- The modelId.
-
getModelIdBytes
public com.google.protobuf.ByteString getModelIdBytes()Optional. The ID to use for the uploaded Model, which will become the final component of the model resource name. This value may be up to 63 characters, and valid characters are `[a-z0-9_-]`. The first character cannot be a number or hyphen.
string model_id = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getModelIdBytesin interfaceUploadModelRequestOrBuilder- Returns:
- The bytes for modelId.
-
setModelId
Optional. The ID to use for the uploaded Model, which will become the final component of the model resource name. This value may be up to 63 characters, and valid characters are `[a-z0-9_-]`. The first character cannot be a number or hyphen.
string model_id = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The modelId to set.- Returns:
- This builder for chaining.
-
clearModelId
Optional. The ID to use for the uploaded Model, which will become the final component of the model resource name. This value may be up to 63 characters, and valid characters are `[a-z0-9_-]`. The first character cannot be a number or hyphen.
string model_id = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setModelIdBytes
Optional. The ID to use for the uploaded Model, which will become the final component of the model resource name. This value may be up to 63 characters, and valid characters are `[a-z0-9_-]`. The first character cannot be a number or hyphen.
string model_id = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for modelId to set.- Returns:
- This builder for chaining.
-
hasModel
public boolean hasModel()Required. The Model to create.
.google.cloud.aiplatform.v1.Model model = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasModelin interfaceUploadModelRequestOrBuilder- Returns:
- Whether the model field is set.
-
getModel
Required. The Model to create.
.google.cloud.aiplatform.v1.Model model = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getModelin interfaceUploadModelRequestOrBuilder- Returns:
- The model.
-
setModel
Required. The Model to create.
.google.cloud.aiplatform.v1.Model model = 2 [(.google.api.field_behavior) = REQUIRED]; -
setModel
Required. The Model to create.
.google.cloud.aiplatform.v1.Model model = 2 [(.google.api.field_behavior) = REQUIRED]; -
mergeModel
Required. The Model to create.
.google.cloud.aiplatform.v1.Model model = 2 [(.google.api.field_behavior) = REQUIRED]; -
clearModel
Required. The Model to create.
.google.cloud.aiplatform.v1.Model model = 2 [(.google.api.field_behavior) = REQUIRED]; -
getModelBuilder
Required. The Model to create.
.google.cloud.aiplatform.v1.Model model = 2 [(.google.api.field_behavior) = REQUIRED]; -
getModelOrBuilder
Required. The Model to create.
.google.cloud.aiplatform.v1.Model model = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getModelOrBuilderin interfaceUploadModelRequestOrBuilder
-
getServiceAccount
Optional. The user-provided custom service account to use to do the model upload. If empty, [Vertex AI Service Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) will be used to access resources needed to upload the model. This account must belong to the target project where the model is uploaded to, i.e., the project specified in the `parent` field of this request and have necessary read permissions (to Google Cloud Storage, Artifact Registry, etc.).
string service_account = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getServiceAccountin interfaceUploadModelRequestOrBuilder- Returns:
- The serviceAccount.
-
getServiceAccountBytes
public com.google.protobuf.ByteString getServiceAccountBytes()Optional. The user-provided custom service account to use to do the model upload. If empty, [Vertex AI Service Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) will be used to access resources needed to upload the model. This account must belong to the target project where the model is uploaded to, i.e., the project specified in the `parent` field of this request and have necessary read permissions (to Google Cloud Storage, Artifact Registry, etc.).
string service_account = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getServiceAccountBytesin interfaceUploadModelRequestOrBuilder- Returns:
- The bytes for serviceAccount.
-
setServiceAccount
Optional. The user-provided custom service account to use to do the model upload. If empty, [Vertex AI Service Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) will be used to access resources needed to upload the model. This account must belong to the target project where the model is uploaded to, i.e., the project specified in the `parent` field of this request and have necessary read permissions (to Google Cloud Storage, Artifact Registry, etc.).
string service_account = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The serviceAccount to set.- Returns:
- This builder for chaining.
-
clearServiceAccount
Optional. The user-provided custom service account to use to do the model upload. If empty, [Vertex AI Service Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) will be used to access resources needed to upload the model. This account must belong to the target project where the model is uploaded to, i.e., the project specified in the `parent` field of this request and have necessary read permissions (to Google Cloud Storage, Artifact Registry, etc.).
string service_account = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setServiceAccountBytes
Optional. The user-provided custom service account to use to do the model upload. If empty, [Vertex AI Service Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) will be used to access resources needed to upload the model. This account must belong to the target project where the model is uploaded to, i.e., the project specified in the `parent` field of this request and have necessary read permissions (to Google Cloud Storage, Artifact Registry, etc.).
string service_account = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for serviceAccount to set.- Returns:
- This builder for chaining.
-