Struct google_api_proto::google::api::ClientLibrarySettings
source · pub struct ClientLibrarySettings {
pub version: String,
pub launch_stage: i32,
pub rest_numeric_enums: bool,
pub java_settings: Option<JavaSettings>,
pub cpp_settings: Option<CppSettings>,
pub php_settings: Option<PhpSettings>,
pub python_settings: Option<PythonSettings>,
pub node_settings: Option<NodeSettings>,
pub dotnet_settings: Option<DotnetSettings>,
pub ruby_settings: Option<RubySettings>,
pub go_settings: Option<GoSettings>,
}
Expand description
Details about how and where to publish client libraries.
Fields§
§version: String
Version of the API to apply these settings to. This is the full protobuf package for the API, ending in the version element. Examples: “google.cloud.speech.v1” and “google.spanner.admin.database.v1”.
launch_stage: i32
Launch stage of this version of the API.
rest_numeric_enums: bool
When using transport=rest, the client request will encode enums as numbers rather than strings.
java_settings: Option<JavaSettings>
Settings for legacy Java features, supported in the Service YAML.
cpp_settings: Option<CppSettings>
Settings for C++ client libraries.
php_settings: Option<PhpSettings>
Settings for PHP client libraries.
python_settings: Option<PythonSettings>
Settings for Python client libraries.
node_settings: Option<NodeSettings>
Settings for Node client libraries.
dotnet_settings: Option<DotnetSettings>
Settings for .NET client libraries.
ruby_settings: Option<RubySettings>
Settings for Ruby client libraries.
go_settings: Option<GoSettings>
Settings for Go client libraries.
Implementations§
source§impl ClientLibrarySettings
impl ClientLibrarySettings
sourcepub fn launch_stage(&self) -> LaunchStage
pub fn launch_stage(&self) -> LaunchStage
Returns the enum value of launch_stage
, or the default if the field is set to an invalid enum value.
sourcepub fn set_launch_stage(&mut self, value: LaunchStage)
pub fn set_launch_stage(&mut self, value: LaunchStage)
Sets launch_stage
to the provided enum value.
Trait Implementations§
source§impl Clone for ClientLibrarySettings
impl Clone for ClientLibrarySettings
source§fn clone(&self) -> ClientLibrarySettings
fn clone(&self) -> ClientLibrarySettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ClientLibrarySettings
impl Debug for ClientLibrarySettings
source§impl Default for ClientLibrarySettings
impl Default for ClientLibrarySettings
source§impl Message for ClientLibrarySettings
impl Message for ClientLibrarySettings
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 ClientLibrarySettings
impl PartialEq for ClientLibrarySettings
source§fn eq(&self, other: &ClientLibrarySettings) -> bool
fn eq(&self, other: &ClientLibrarySettings) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ClientLibrarySettings
Auto Trait Implementations§
impl Freeze for ClientLibrarySettings
impl RefUnwindSafe for ClientLibrarySettings
impl Send for ClientLibrarySettings
impl Sync for ClientLibrarySettings
impl Unpin for ClientLibrarySettings
impl UnwindSafe for ClientLibrarySettings
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