public static final class UploadModelRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<UploadModelRequest.Builder> implements UploadModelRequestOrBuilder
Request message for [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel].Protobuf type
google.cloud.aiplatform.v1beta1.UploadModelRequestgetAllFields, 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<UploadModelRequest.Builder>public UploadModelRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<UploadModelRequest.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<UploadModelRequest.Builder>public UploadModelRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic UploadModelRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic UploadModelRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic UploadModelRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<UploadModelRequest.Builder>public UploadModelRequest.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<UploadModelRequest.Builder>public UploadModelRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<UploadModelRequest.Builder>public UploadModelRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<UploadModelRequest.Builder>public UploadModelRequest.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<UploadModelRequest.Builder>public UploadModelRequest.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<UploadModelRequest.Builder>public UploadModelRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<UploadModelRequest.Builder>public UploadModelRequest.Builder mergeFrom(UploadModelRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<UploadModelRequest.Builder>public UploadModelRequest.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<UploadModelRequest.Builder>IOExceptionpublic String 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) = { ... }
getParent in interface UploadModelRequestOrBuilderpublic 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) = { ... }
getParentBytes in interface UploadModelRequestOrBuilderpublic UploadModelRequest.Builder setParent(String value)
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) = { ... }
value - The parent to set.public UploadModelRequest.Builder 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) = { ... }
public UploadModelRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
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) = { ... }
value - The bytes for parent to set.public String 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];getParentModel in interface UploadModelRequestOrBuilderpublic 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];getParentModelBytes in interface UploadModelRequestOrBuilderpublic UploadModelRequest.Builder setParentModel(String value)
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];value - The parentModel to set.public UploadModelRequest.Builder 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];public UploadModelRequest.Builder setParentModelBytes(com.google.protobuf.ByteString value)
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];value - The bytes for parentModel to set.public String 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];getModelId in interface UploadModelRequestOrBuilderpublic 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];getModelIdBytes in interface UploadModelRequestOrBuilderpublic UploadModelRequest.Builder setModelId(String value)
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];value - The modelId to set.public UploadModelRequest.Builder 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];public UploadModelRequest.Builder setModelIdBytes(com.google.protobuf.ByteString value)
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];value - The bytes for modelId to set.public boolean hasModel()
Required. The Model to create.
.google.cloud.aiplatform.v1beta1.Model model = 2 [(.google.api.field_behavior) = REQUIRED];
hasModel in interface UploadModelRequestOrBuilderpublic Model getModel()
Required. The Model to create.
.google.cloud.aiplatform.v1beta1.Model model = 2 [(.google.api.field_behavior) = REQUIRED];
getModel in interface UploadModelRequestOrBuilderpublic UploadModelRequest.Builder setModel(Model value)
Required. The Model to create.
.google.cloud.aiplatform.v1beta1.Model model = 2 [(.google.api.field_behavior) = REQUIRED];
public UploadModelRequest.Builder setModel(Model.Builder builderForValue)
Required. The Model to create.
.google.cloud.aiplatform.v1beta1.Model model = 2 [(.google.api.field_behavior) = REQUIRED];
public UploadModelRequest.Builder mergeModel(Model value)
Required. The Model to create.
.google.cloud.aiplatform.v1beta1.Model model = 2 [(.google.api.field_behavior) = REQUIRED];
public UploadModelRequest.Builder clearModel()
Required. The Model to create.
.google.cloud.aiplatform.v1beta1.Model model = 2 [(.google.api.field_behavior) = REQUIRED];
public Model.Builder getModelBuilder()
Required. The Model to create.
.google.cloud.aiplatform.v1beta1.Model model = 2 [(.google.api.field_behavior) = REQUIRED];
public ModelOrBuilder getModelOrBuilder()
Required. The Model to create.
.google.cloud.aiplatform.v1beta1.Model model = 2 [(.google.api.field_behavior) = REQUIRED];
getModelOrBuilder in interface UploadModelRequestOrBuilderpublic String 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];getServiceAccount in interface UploadModelRequestOrBuilderpublic 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];getServiceAccountBytes in interface UploadModelRequestOrBuilderpublic UploadModelRequest.Builder setServiceAccount(String value)
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];value - The serviceAccount to set.public UploadModelRequest.Builder 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];public UploadModelRequest.Builder setServiceAccountBytes(com.google.protobuf.ByteString value)
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];value - The bytes for serviceAccount to set.public final UploadModelRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UploadModelRequest.Builder>public final UploadModelRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UploadModelRequest.Builder>Copyright © 2025 Google LLC. All rights reserved.