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<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8, Global>where Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
self
.source§impl PartialEq<ClientLibrarySettings> for ClientLibrarySettings
impl PartialEq<ClientLibrarySettings> 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 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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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