Struct google_api_proto::google::cloud::retail::v2beta::SetDefaultBranchRequest
source · pub struct SetDefaultBranchRequest {
pub catalog: String,
pub branch_id: String,
pub note: String,
pub force: bool,
}
Expand description
Request message to set a specified branch as new default_branch.
Fields§
§catalog: String
Full resource name of the catalog, such as
projects/*/locations/global/catalogs/default_catalog
.
branch_id: String
The final component of the resource name of a branch.
This field must be one of “0”, “1” or “2”. Otherwise, an INVALID_ARGUMENT error is returned.
If there are no sufficient active products in the targeted branch and [force][google.cloud.retail.v2beta.SetDefaultBranchRequest.force] is not set, a FAILED_PRECONDITION error is returned.
note: String
Some note on this request, this can be retrieved by [CatalogService.GetDefaultBranch][google.cloud.retail.v2beta.CatalogService.GetDefaultBranch] before next valid default branch set occurs.
This field must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
force: bool
If set to true, it permits switching to a branch with [branch_id][google.cloud.retail.v2beta.SetDefaultBranchRequest.branch_id] even if it has no sufficient active products.
Trait Implementations§
source§impl Clone for SetDefaultBranchRequest
impl Clone for SetDefaultBranchRequest
source§fn clone(&self) -> SetDefaultBranchRequest
fn clone(&self) -> SetDefaultBranchRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SetDefaultBranchRequest
impl Debug for SetDefaultBranchRequest
source§impl Default for SetDefaultBranchRequest
impl Default for SetDefaultBranchRequest
source§impl Message for SetDefaultBranchRequest
impl Message for SetDefaultBranchRequest
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 SetDefaultBranchRequest
impl PartialEq for SetDefaultBranchRequest
source§fn eq(&self, other: &SetDefaultBranchRequest) -> bool
fn eq(&self, other: &SetDefaultBranchRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SetDefaultBranchRequest
Auto Trait Implementations§
impl Freeze for SetDefaultBranchRequest
impl RefUnwindSafe for SetDefaultBranchRequest
impl Send for SetDefaultBranchRequest
impl Sync for SetDefaultBranchRequest
impl Unpin for SetDefaultBranchRequest
impl UnwindSafe for SetDefaultBranchRequest
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