Struct gapi_grpc::google::cloud::retail::v2alpha::CreateProductRequest[][src]

pub struct CreateProductRequest {
    pub parent: String,
    pub product: Option<Product>,
    pub product_id: String,
}

Request message for [CreateProduct][] method.

Fields

parent: String

Required. The parent catalog resource name, such as “projects/*/locations/global/catalogs/default_catalog/branches/default_branch”.

product: Option<Product>

Required. The [Product][google.cloud.retail.v2alpha.Product] to create.

product_id: String

Required. The ID to use for the [Product][google.cloud.retail.v2alpha.Product], which will become the final component of the [Product.name][google.cloud.retail.v2alpha.Product.name].

If the caller does not have permission to create the [Product][google.cloud.retail.v2alpha.Product], regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

This field must be unique among all [Product][google.cloud.retail.v2alpha.Product]s with the same [parent][google.cloud.retail.v2alpha.CreateProductRequest.parent]. Otherwise, an ALREADY_EXISTS error is returned.

This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.

Trait Implementations

impl Clone for CreateProductRequest[src]

impl Debug for CreateProductRequest[src]

impl Default for CreateProductRequest[src]

impl Message for CreateProductRequest[src]

impl PartialEq<CreateProductRequest> for CreateProductRequest[src]

impl StructuralPartialEq for CreateProductRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for CreateProductRequest

impl Send for CreateProductRequest

impl Sync for CreateProductRequest

impl Unpin for CreateProductRequest

impl UnwindSafe for CreateProductRequest

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]