Struct google_api_proto::google::cloud::bigquery::analyticshub::v1::Listing
source · pub struct Listing {Show 14 fields
pub name: String,
pub display_name: String,
pub description: String,
pub primary_contact: String,
pub documentation: String,
pub state: i32,
pub icon: Bytes,
pub data_provider: Option<DataProvider>,
pub categories: Vec<i32>,
pub publisher: Option<Publisher>,
pub request_access: String,
pub restricted_export_config: Option<RestrictedExportConfig>,
pub discovery_type: Option<i32>,
pub source: Option<Source>,
}
Expand description
A listing is what gets published into a data exchange that a subscriber can subscribe to. It contains a reference to the data source along with descriptive information that will help subscribers find and subscribe the data.
Fields§
§name: String
Output only. The resource name of the listing.
e.g. projects/myproject/locations/US/dataExchanges/123/listings/456
display_name: String
Required. Human-readable display name of the listing. The display name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), ampersands (&) and can’t start or end with spaces. Default value is an empty string. Max length: 63 bytes.
description: String
Optional. Short description of the listing. The description must not contain Unicode non-characters and C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF). Default value is an empty string. Max length: 2000 bytes.
primary_contact: String
Optional. Email or URL of the primary point of contact of the listing. Max Length: 1000 bytes.
documentation: String
Optional. Documentation describing the listing.
state: i32
Output only. Current state of the listing.
icon: Bytes
Optional. Base64 encoded image representing the listing. Max Size: 3.0MiB Expected image dimensions are 512x512 pixels, however the API only performs validation on size of the encoded data. Note: For byte fields, the contents of the field are base64-encoded (which increases the size of the data by 33-36%) when using JSON on the wire.
data_provider: Option<DataProvider>
Optional. Details of the data provider who owns the source data.
categories: Vec<i32>
Optional. Categories of the listing. Up to two categories are allowed.
publisher: Option<Publisher>
Optional. Details of the publisher who owns the listing and who can share the source data.
request_access: String
Optional. Email or URL of the request access of the listing. Subscribers can use this reference to request access. Max Length: 1000 bytes.
restricted_export_config: Option<RestrictedExportConfig>
Optional. If set, restricted export configuration will be propagated and enforced on the linked dataset.
discovery_type: Option<i32>
Optional. Type of discovery of the listing on the discovery page.
source: Option<Source>
Listing source.
Implementations§
source§impl Listing
impl Listing
sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn categories(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<Category>>
pub fn categories( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<Category>>
Returns an iterator which yields the valid enum values contained in categories
.
sourcepub fn push_categories(&mut self, value: Category)
pub fn push_categories(&mut self, value: Category)
Appends the provided enum value to categories
.
sourcepub fn discovery_type(&self) -> DiscoveryType
pub fn discovery_type(&self) -> DiscoveryType
Returns the enum value of discovery_type
, or the default if the field is unset or set to an invalid enum value.
sourcepub fn set_discovery_type(&mut self, value: DiscoveryType)
pub fn set_discovery_type(&mut self, value: DiscoveryType)
Sets discovery_type
to the provided enum value.
Trait Implementations§
source§impl Message for Listing
impl Message for Listing
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 Listing
impl PartialEq for Listing
impl StructuralPartialEq for Listing
Auto Trait Implementations§
impl !Freeze for Listing
impl RefUnwindSafe for Listing
impl Send for Listing
impl Sync for Listing
impl Unpin for Listing
impl UnwindSafe for Listing
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