#[non_exhaustive]pub struct ClientLibrarySettings {
pub version: String,
pub launch_stage: LaunchStage,
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>,
/* private fields */
}
Expand description
Details about how and where to publish client libraries.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.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: LaunchStage
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
pub fn new() -> Self
Sourcepub fn set_version<T: Into<String>>(self, v: T) -> Self
pub fn set_version<T: Into<String>>(self, v: T) -> Self
Sets the value of version.
Sourcepub fn set_launch_stage<T: Into<LaunchStage>>(self, v: T) -> Self
pub fn set_launch_stage<T: Into<LaunchStage>>(self, v: T) -> Self
Sets the value of launch_stage.
Sourcepub fn set_rest_numeric_enums<T: Into<bool>>(self, v: T) -> Self
pub fn set_rest_numeric_enums<T: Into<bool>>(self, v: T) -> Self
Sets the value of rest_numeric_enums.
Sourcepub fn set_java_settings<T>(self, v: T) -> Selfwhere
T: Into<JavaSettings>,
pub fn set_java_settings<T>(self, v: T) -> Selfwhere
T: Into<JavaSettings>,
Sets the value of java_settings.
Sourcepub fn set_or_clear_java_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<JavaSettings>,
pub fn set_or_clear_java_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<JavaSettings>,
Sets or clears the value of java_settings.
Sourcepub fn set_cpp_settings<T>(self, v: T) -> Selfwhere
T: Into<CppSettings>,
pub fn set_cpp_settings<T>(self, v: T) -> Selfwhere
T: Into<CppSettings>,
Sets the value of cpp_settings.
Sourcepub fn set_or_clear_cpp_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<CppSettings>,
pub fn set_or_clear_cpp_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<CppSettings>,
Sets or clears the value of cpp_settings.
Sourcepub fn set_php_settings<T>(self, v: T) -> Selfwhere
T: Into<PhpSettings>,
pub fn set_php_settings<T>(self, v: T) -> Selfwhere
T: Into<PhpSettings>,
Sets the value of php_settings.
Sourcepub fn set_or_clear_php_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<PhpSettings>,
pub fn set_or_clear_php_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<PhpSettings>,
Sets or clears the value of php_settings.
Sourcepub fn set_python_settings<T>(self, v: T) -> Selfwhere
T: Into<PythonSettings>,
pub fn set_python_settings<T>(self, v: T) -> Selfwhere
T: Into<PythonSettings>,
Sets the value of python_settings.
Sourcepub fn set_or_clear_python_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<PythonSettings>,
pub fn set_or_clear_python_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<PythonSettings>,
Sets or clears the value of python_settings.
Sourcepub fn set_node_settings<T>(self, v: T) -> Selfwhere
T: Into<NodeSettings>,
pub fn set_node_settings<T>(self, v: T) -> Selfwhere
T: Into<NodeSettings>,
Sets the value of node_settings.
Sourcepub fn set_or_clear_node_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<NodeSettings>,
pub fn set_or_clear_node_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<NodeSettings>,
Sets or clears the value of node_settings.
Sourcepub fn set_dotnet_settings<T>(self, v: T) -> Selfwhere
T: Into<DotnetSettings>,
pub fn set_dotnet_settings<T>(self, v: T) -> Selfwhere
T: Into<DotnetSettings>,
Sets the value of dotnet_settings.
Sourcepub fn set_or_clear_dotnet_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<DotnetSettings>,
pub fn set_or_clear_dotnet_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<DotnetSettings>,
Sets or clears the value of dotnet_settings.
Sourcepub fn set_ruby_settings<T>(self, v: T) -> Selfwhere
T: Into<RubySettings>,
pub fn set_ruby_settings<T>(self, v: T) -> Selfwhere
T: Into<RubySettings>,
Sets the value of ruby_settings.
Sourcepub fn set_or_clear_ruby_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<RubySettings>,
pub fn set_or_clear_ruby_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<RubySettings>,
Sets or clears the value of ruby_settings.
Sourcepub fn set_go_settings<T>(self, v: T) -> Selfwhere
T: Into<GoSettings>,
pub fn set_go_settings<T>(self, v: T) -> Selfwhere
T: Into<GoSettings>,
Sets the value of go_settings.
Sourcepub fn set_or_clear_go_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<GoSettings>,
pub fn set_or_clear_go_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<GoSettings>,
Sets or clears the value of go_settings.
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 more