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
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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