#[non_exhaustive]pub struct JavaSettings {
pub library_package: String,
pub service_class_names: HashMap<String, String>,
pub common: Option<CommonLanguageSettings>,
/* private fields */
}
Expand description
Settings for Java 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.library_package: String
The package name to use in Java. Clobbers the java_package option set in the protobuf. This should be used only by APIs who have already set the language_settings.java.package_name“ field in gapic.yaml. API teams should use the protobuf java_package option where possible.
Example of a YAML configuration::
publishing: java_settings: library_package: com.google.cloud.pubsub.v1
service_class_names: HashMap<String, String>
Configure the Java class name to use instead of the service’s for its corresponding generated GAPIC client. Keys are fully-qualified service names as they appear in the protobuf (including the full the language_settings.java.interface_names“ field in gapic.yaml. API teams should otherwise use the service name as it appears in the protobuf.
Example of a YAML configuration::
publishing: java_settings: service_class_names:
- google.pubsub.v1.Publisher: TopicAdmin
- google.pubsub.v1.Subscriber: SubscriptionAdmin
common: Option<CommonLanguageSettings>
Some settings.
Implementations§
Source§impl JavaSettings
impl JavaSettings
pub fn new() -> Self
Sourcepub fn set_library_package<T: Into<String>>(self, v: T) -> Self
pub fn set_library_package<T: Into<String>>(self, v: T) -> Self
Sets the value of library_package.
Sourcepub fn set_service_class_names<T, K, V>(self, v: T) -> Self
pub fn set_service_class_names<T, K, V>(self, v: T) -> Self
Sets the value of service_class_names.
Sourcepub fn set_common<T>(self, v: T) -> Selfwhere
T: Into<CommonLanguageSettings>,
pub fn set_common<T>(self, v: T) -> Selfwhere
T: Into<CommonLanguageSettings>,
Sets the value of common.
Sourcepub fn set_or_clear_common<T>(self, v: Option<T>) -> Selfwhere
T: Into<CommonLanguageSettings>,
pub fn set_or_clear_common<T>(self, v: Option<T>) -> Selfwhere
T: Into<CommonLanguageSettings>,
Sets or clears the value of common.
Trait Implementations§
Source§impl Clone for JavaSettings
impl Clone for JavaSettings
Source§fn clone(&self) -> JavaSettings
fn clone(&self) -> JavaSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more