Struct google_api_proto::google::cloud::servicedirectory::v1beta1::ListServicesRequest
source · pub struct ListServicesRequest {
pub parent: String,
pub page_size: i32,
pub page_token: String,
pub filter: String,
pub order_by: String,
}Expand description
The request message for [RegistrationService.ListServices][google.cloud.servicedirectory.v1beta1.RegistrationService.ListServices].
Fields§
§parent: StringRequired. The resource name of the namespace whose services you’d like to list.
page_size: i32Optional. The maximum number of items to return. The default value is 100.
page_token: StringOptional. The next_page_token value returned from a previous List request, if any.
filter: StringOptional. The filter to list results by.
General filter string syntax:
<field> <operator> <value> (<logical connector>)
<field>can benameormetadata.<key>for map field<operator>can be<,>,<=,>=,!=,=,:. Of which:meansHAS, and is roughly the same as=<value>must be the same data type as field<logical connector>can beAND,OR,NOT
Examples of valid filters:
metadata.ownerreturns services that have a metadata with the keyowner, this is the same asmetadata:ownermetadata.protocol=gRPCreturns services that have key/valueprotocol=gRPC
name>projects/my-project/locations/us-east1/namespaces/my-namespace/services/service-c
returns services that have name that is alphabetically later than the
string, so “service-e” is returned but “service-a” is not
metadata.owner!=sd AND metadata.foo=barreturns services that haveownerin metadata key but value is notsdAND have key/valuefoo=bardoesnotexist.foo=barreturns an empty list. Note that service doesn’t have a field called “doesnotexist”. Since the filter does not match any services, it returns no resultsattributes.managed_registration=truereturns services that are managed by a GCP product or service
For more information about filtering, see API Filtering.
order_by: StringOptional. The order to list results by.
General order_by string syntax: <field> (<asc|desc>) (,)
<field>allows value:name<asc|desc>ascending or descending order by<field>. If this is left blank,ascis used
Note that an empty order_by string results in default order, which is
order by name in ascending order.
Trait Implementations§
source§impl Clone for ListServicesRequest
impl Clone for ListServicesRequest
source§fn clone(&self) -> ListServicesRequest
fn clone(&self) -> ListServicesRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ListServicesRequest
impl Debug for ListServicesRequest
source§impl Default for ListServicesRequest
impl Default for ListServicesRequest
source§impl Message for ListServicesRequest
impl Message for ListServicesRequest
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 ListServicesRequest
impl PartialEq for ListServicesRequest
source§fn eq(&self, other: &ListServicesRequest) -> bool
fn eq(&self, other: &ListServicesRequest) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ListServicesRequest
Auto Trait Implementations§
impl Freeze for ListServicesRequest
impl RefUnwindSafe for ListServicesRequest
impl Send for ListServicesRequest
impl Sync for ListServicesRequest
impl Unpin for ListServicesRequest
impl UnwindSafe for ListServicesRequest
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