Struct google_api_proto::google::cloud::aiplatform::v1beta1::UploadModelRequest
source · pub struct UploadModelRequest {
pub parent: String,
pub parent_model: String,
pub model_id: String,
pub model: Option<Model>,
pub service_account: String,
}
Expand description
Request message for [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel].
Fields§
§parent: String
Required. The resource name of the Location into which to upload the Model.
Format: projects/{project}/locations/{location}
parent_model: String
Optional. The resource name of the model into which to upload the version. Only specify this field when uploading a new version.
model_id: String
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.
model: Option<Model>
Required. The Model to create.
service_account: String
Optional. The user-provided custom service account to use to do the model
upload. If empty, Vertex AI Service
Agent
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.).
Trait Implementations§
source§impl Clone for UploadModelRequest
impl Clone for UploadModelRequest
source§fn clone(&self) -> UploadModelRequest
fn clone(&self) -> UploadModelRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UploadModelRequest
impl Debug for UploadModelRequest
source§impl Default for UploadModelRequest
impl Default for UploadModelRequest
source§impl Message for UploadModelRequest
impl Message for UploadModelRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for UploadModelRequest
impl PartialEq for UploadModelRequest
source§fn eq(&self, other: &UploadModelRequest) -> bool
fn eq(&self, other: &UploadModelRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UploadModelRequest
Auto Trait Implementations§
impl Freeze for UploadModelRequest
impl RefUnwindSafe for UploadModelRequest
impl Send for UploadModelRequest
impl Sync for UploadModelRequest
impl Unpin for UploadModelRequest
impl UnwindSafe for UploadModelRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request