Service

Struct Service 

Source
pub struct Service {
Show 28 fields pub name: String, pub title: String, pub producer_project_id: String, pub id: String, pub apis: RepeatedField<Api>, pub types: RepeatedField<Type>, pub enums: RepeatedField<Enum>, pub documentation: SingularPtrField<Documentation>, pub backend: SingularPtrField<Backend>, pub http: SingularPtrField<Http>, pub quota: SingularPtrField<Quota>, pub authentication: SingularPtrField<Authentication>, pub context: SingularPtrField<Context>, pub usage: SingularPtrField<Usage>, pub endpoints: RepeatedField<Endpoint>, pub control: SingularPtrField<Control>, pub logs: RepeatedField<LogDescriptor>, pub metrics: RepeatedField<MetricDescriptor>, pub monitored_resources: RepeatedField<MonitoredResourceDescriptor>, pub billing: SingularPtrField<Billing>, pub logging: SingularPtrField<Logging>, pub monitoring: SingularPtrField<Monitoring>, pub system_parameters: SingularPtrField<SystemParameters>, pub source_info: SingularPtrField<SourceInfo>, pub publishing: SingularPtrField<Publishing>, pub config_version: SingularPtrField<UInt32Value>, pub unknown_fields: UnknownFields, pub cached_size: CachedSize,
}
Expand description

Generated files are compatible only with the same version of protobuf runtime.

Fields§

§name: String§title: String§producer_project_id: String§id: String§apis: RepeatedField<Api>§types: RepeatedField<Type>§enums: RepeatedField<Enum>§documentation: SingularPtrField<Documentation>§backend: SingularPtrField<Backend>§http: SingularPtrField<Http>§quota: SingularPtrField<Quota>§authentication: SingularPtrField<Authentication>§context: SingularPtrField<Context>§usage: SingularPtrField<Usage>§endpoints: RepeatedField<Endpoint>§control: SingularPtrField<Control>§logs: RepeatedField<LogDescriptor>§metrics: RepeatedField<MetricDescriptor>§monitored_resources: RepeatedField<MonitoredResourceDescriptor>§billing: SingularPtrField<Billing>§logging: SingularPtrField<Logging>§monitoring: SingularPtrField<Monitoring>§system_parameters: SingularPtrField<SystemParameters>§source_info: SingularPtrField<SourceInfo>§publishing: SingularPtrField<Publishing>§config_version: SingularPtrField<UInt32Value>§unknown_fields: UnknownFields§cached_size: CachedSize

Implementations§

Source§

impl Service

Source

pub fn new() -> Service

Source

pub fn get_name(&self) -> &str

Source

pub fn clear_name(&mut self)

Source

pub fn set_name(&mut self, v: String)

Source

pub fn mut_name(&mut self) -> &mut String

Source

pub fn take_name(&mut self) -> String

Source

pub fn get_title(&self) -> &str

Source

pub fn clear_title(&mut self)

Source

pub fn set_title(&mut self, v: String)

Source

pub fn mut_title(&mut self) -> &mut String

Source

pub fn take_title(&mut self) -> String

Source

pub fn get_producer_project_id(&self) -> &str

Source

pub fn clear_producer_project_id(&mut self)

Source

pub fn set_producer_project_id(&mut self, v: String)

Source

pub fn mut_producer_project_id(&mut self) -> &mut String

Source

pub fn take_producer_project_id(&mut self) -> String

Source

pub fn get_id(&self) -> &str

Source

pub fn clear_id(&mut self)

Source

pub fn set_id(&mut self, v: String)

Source

pub fn mut_id(&mut self) -> &mut String

Source

pub fn take_id(&mut self) -> String

Source

pub fn get_apis(&self) -> &[Api]

Source

pub fn clear_apis(&mut self)

Source

pub fn set_apis(&mut self, v: RepeatedField<Api>)

Source

pub fn mut_apis(&mut self) -> &mut RepeatedField<Api>

Source

pub fn take_apis(&mut self) -> RepeatedField<Api>

Source

pub fn get_types(&self) -> &[Type]

Source

pub fn clear_types(&mut self)

Source

pub fn set_types(&mut self, v: RepeatedField<Type>)

Source

pub fn mut_types(&mut self) -> &mut RepeatedField<Type>

Source

pub fn take_types(&mut self) -> RepeatedField<Type>

Source

pub fn get_enums(&self) -> &[Enum]

Source

pub fn clear_enums(&mut self)

Source

pub fn set_enums(&mut self, v: RepeatedField<Enum>)

Source

pub fn mut_enums(&mut self) -> &mut RepeatedField<Enum>

Source

pub fn take_enums(&mut self) -> RepeatedField<Enum>

Source

pub fn get_documentation(&self) -> &Documentation

Source

pub fn clear_documentation(&mut self)

Source

pub fn has_documentation(&self) -> bool

Source

pub fn set_documentation(&mut self, v: Documentation)

Source

pub fn mut_documentation(&mut self) -> &mut Documentation

Source

pub fn take_documentation(&mut self) -> Documentation

Source

pub fn get_backend(&self) -> &Backend

Source

pub fn clear_backend(&mut self)

Source

pub fn has_backend(&self) -> bool

Source

pub fn set_backend(&mut self, v: Backend)

Source

pub fn mut_backend(&mut self) -> &mut Backend

Source

pub fn take_backend(&mut self) -> Backend

Source

pub fn get_http(&self) -> &Http

Source

pub fn clear_http(&mut self)

Source

pub fn has_http(&self) -> bool

Source

pub fn set_http(&mut self, v: Http)

Source

pub fn mut_http(&mut self) -> &mut Http

Source

pub fn take_http(&mut self) -> Http

Source

pub fn get_quota(&self) -> &Quota

Source

pub fn clear_quota(&mut self)

Source

pub fn has_quota(&self) -> bool

Source

pub fn set_quota(&mut self, v: Quota)

Source

pub fn mut_quota(&mut self) -> &mut Quota

Source

pub fn take_quota(&mut self) -> Quota

Source

pub fn get_authentication(&self) -> &Authentication

Source

pub fn clear_authentication(&mut self)

Source

pub fn has_authentication(&self) -> bool

Source

pub fn set_authentication(&mut self, v: Authentication)

Source

pub fn mut_authentication(&mut self) -> &mut Authentication

Source

pub fn take_authentication(&mut self) -> Authentication

Source

pub fn get_context(&self) -> &Context

Source

pub fn clear_context(&mut self)

Source

pub fn has_context(&self) -> bool

Source

pub fn set_context(&mut self, v: Context)

Source

pub fn mut_context(&mut self) -> &mut Context

Source

pub fn take_context(&mut self) -> Context

Source

pub fn get_usage(&self) -> &Usage

Source

pub fn clear_usage(&mut self)

Source

pub fn has_usage(&self) -> bool

Source

pub fn set_usage(&mut self, v: Usage)

Source

pub fn mut_usage(&mut self) -> &mut Usage

Source

pub fn take_usage(&mut self) -> Usage

Source

pub fn get_endpoints(&self) -> &[Endpoint]

Source

pub fn clear_endpoints(&mut self)

Source

pub fn set_endpoints(&mut self, v: RepeatedField<Endpoint>)

Source

pub fn mut_endpoints(&mut self) -> &mut RepeatedField<Endpoint>

Source

pub fn take_endpoints(&mut self) -> RepeatedField<Endpoint>

Source

pub fn get_control(&self) -> &Control

Source

pub fn clear_control(&mut self)

Source

pub fn has_control(&self) -> bool

Source

pub fn set_control(&mut self, v: Control)

Source

pub fn mut_control(&mut self) -> &mut Control

Source

pub fn take_control(&mut self) -> Control

Source

pub fn get_logs(&self) -> &[LogDescriptor]

Source

pub fn clear_logs(&mut self)

Source

pub fn set_logs(&mut self, v: RepeatedField<LogDescriptor>)

Source

pub fn mut_logs(&mut self) -> &mut RepeatedField<LogDescriptor>

Source

pub fn take_logs(&mut self) -> RepeatedField<LogDescriptor>

Source

pub fn get_metrics(&self) -> &[MetricDescriptor]

Source

pub fn clear_metrics(&mut self)

Source

pub fn set_metrics(&mut self, v: RepeatedField<MetricDescriptor>)

Source

pub fn mut_metrics(&mut self) -> &mut RepeatedField<MetricDescriptor>

Source

pub fn take_metrics(&mut self) -> RepeatedField<MetricDescriptor>

Source

pub fn get_monitored_resources(&self) -> &[MonitoredResourceDescriptor]

Source

pub fn clear_monitored_resources(&mut self)

Source

pub fn set_monitored_resources( &mut self, v: RepeatedField<MonitoredResourceDescriptor>, )

Source

pub fn mut_monitored_resources( &mut self, ) -> &mut RepeatedField<MonitoredResourceDescriptor>

Source

pub fn take_monitored_resources( &mut self, ) -> RepeatedField<MonitoredResourceDescriptor>

Source

pub fn get_billing(&self) -> &Billing

Source

pub fn clear_billing(&mut self)

Source

pub fn has_billing(&self) -> bool

Source

pub fn set_billing(&mut self, v: Billing)

Source

pub fn mut_billing(&mut self) -> &mut Billing

Source

pub fn take_billing(&mut self) -> Billing

Source

pub fn get_logging(&self) -> &Logging

Source

pub fn clear_logging(&mut self)

Source

pub fn has_logging(&self) -> bool

Source

pub fn set_logging(&mut self, v: Logging)

Source

pub fn mut_logging(&mut self) -> &mut Logging

Source

pub fn take_logging(&mut self) -> Logging

Source

pub fn get_monitoring(&self) -> &Monitoring

Source

pub fn clear_monitoring(&mut self)

Source

pub fn has_monitoring(&self) -> bool

Source

pub fn set_monitoring(&mut self, v: Monitoring)

Source

pub fn mut_monitoring(&mut self) -> &mut Monitoring

Source

pub fn take_monitoring(&mut self) -> Monitoring

Source

pub fn get_system_parameters(&self) -> &SystemParameters

Source

pub fn clear_system_parameters(&mut self)

Source

pub fn has_system_parameters(&self) -> bool

Source

pub fn set_system_parameters(&mut self, v: SystemParameters)

Source

pub fn mut_system_parameters(&mut self) -> &mut SystemParameters

Source

pub fn take_system_parameters(&mut self) -> SystemParameters

Source

pub fn get_source_info(&self) -> &SourceInfo

Source

pub fn clear_source_info(&mut self)

Source

pub fn has_source_info(&self) -> bool

Source

pub fn set_source_info(&mut self, v: SourceInfo)

Source

pub fn mut_source_info(&mut self) -> &mut SourceInfo

Source

pub fn take_source_info(&mut self) -> SourceInfo

Source

pub fn get_publishing(&self) -> &Publishing

Source

pub fn clear_publishing(&mut self)

Source

pub fn has_publishing(&self) -> bool

Source

pub fn set_publishing(&mut self, v: Publishing)

Source

pub fn mut_publishing(&mut self) -> &mut Publishing

Source

pub fn take_publishing(&mut self) -> Publishing

Source

pub fn get_config_version(&self) -> &UInt32Value

Source

pub fn clear_config_version(&mut self)

Source

pub fn has_config_version(&self) -> bool

Source

pub fn set_config_version(&mut self, v: UInt32Value)

Source

pub fn mut_config_version(&mut self) -> &mut UInt32Value

Source

pub fn take_config_version(&mut self) -> UInt32Value

Trait Implementations§

Source§

impl Clear for Service

Source§

fn clear(&mut self)

Clear this make, make it equivalent to newly created object.
Source§

impl Clone for Service

Source§

fn clone(&self) -> Service

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Service

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Default for &'a Service

Source§

fn default() -> &'a Service

Returns the “default value” for a type. Read more
Source§

impl Default for Service

Source§

fn default() -> Service

Returns the “default value” for a type. Read more
Source§

impl Message for Service

Source§

fn is_initialized(&self) -> bool

True iff all required fields are initialized. Always returns true for protobuf 3.
Source§

fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> ProtobufResult<()>

Update this message object with fields read from given stream.
Source§

fn compute_size(&self) -> u32

Compute and cache size of this message and all nested messages
Source§

fn write_to_with_cached_sizes( &self, os: &mut CodedOutputStream<'_>, ) -> ProtobufResult<()>

Write message to the stream. Read more
Source§

fn get_cached_size(&self) -> u32

Get size previously computed by compute_size.
Source§

fn get_unknown_fields(&self) -> &UnknownFields

Get a reference to unknown fields.
Source§

fn mut_unknown_fields(&mut self) -> &mut UnknownFields

Get a mutable reference to unknown fields.
Source§

fn as_any(&self) -> &dyn Any

View self as Any.
Source§

fn as_any_mut(&mut self) -> &mut dyn Any

View self as mutable Any.
Source§

fn into_any(self: Box<Self>) -> Box<dyn Any>

Convert boxed self to boxed Any.
Source§

fn descriptor(&self) -> &'static MessageDescriptor

Message descriptor for this message, used for reflection.
Source§

fn new() -> Service

Create an empty message object. Read more
Source§

fn descriptor_static() -> &'static MessageDescriptor

Get message descriptor for message type. Read more
Source§

fn default_instance() -> &'static Service

Return a pointer to default immutable message with static lifetime. Read more
Source§

fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, ProtobufError>
where Self: Sized,

Parse message from stream.
Source§

fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), ProtobufError>

Write the message to the stream. Read more
Source§

fn write_length_delimited_to( &self, os: &mut CodedOutputStream<'_>, ) -> Result<(), ProtobufError>

Write the message to the stream prepending the message with message length encoded as varint.
Source§

fn write_length_delimited_to_vec( &self, vec: &mut Vec<u8>, ) -> Result<(), ProtobufError>

Write the message to the vec, prepend the message with message length encoded as varint.
Source§

fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>

Update this message object with fields read from given stream.
Source§

fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, ProtobufError>
where Self: Sized,

Parse message from reader. Parse stops on EOF or when error encountered.
Source§

fn parse_from_bytes(bytes: &[u8]) -> Result<Self, ProtobufError>
where Self: Sized,

Parse message from byte array.
Source§

fn check_initialized(&self) -> Result<(), ProtobufError>

Check if all required fields of this object are initialized.
Source§

fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>

Write the message to the writer.
Source§

fn write_to_vec(&self, v: &mut Vec<u8>) -> Result<(), ProtobufError>

Write the message to bytes vec.
Source§

fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>

Write the message to bytes vec.
Source§

fn write_length_delimited_to_writer( &self, w: &mut dyn Write, ) -> Result<(), ProtobufError>

Write the message to the writer, prepend the message with message length encoded as varint.
Source§

fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>

Write the message to the bytes vec, prepend the message with message length encoded as varint.
Source§

fn type_id(&self) -> TypeId

Get type id for downcasting.
Source§

impl PartialEq for Service

Source§

fn eq(&self, other: &Service) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl ProtobufValue for Service

Source§

fn as_ref(&self) -> ReflectValueRef<'_>

As ref
Source§

fn as_any(&self) -> &(dyn Any + 'static)

Convert to Any
Source§

fn is_non_zero(&self) -> bool

Is value non-zero?
Source§

fn as_ref_copy(&self) -> ReflectValueRef<'static>

Return ProtobufValueRef if self is Copy. Read more
Source§

impl StructuralPartialEq for Service

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.