target.apidocs.com.google.api.services.servicemanagement.model.JavaSettings.html Maven / Gradle / Ivy
JavaSettings (Service Management API v1-rev20240823-2.0.0)
com.google.api.services.servicemanagement.model
Class JavaSettings
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.servicemanagement.model.JavaSettings
-
public final class JavaSettings
extends com.google.api.client.json.GenericJson
Settings for Java client libraries.
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the Service Management API. For a detailed explanation
see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
JavaSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
JavaSettings
clone()
CommonLanguageSettings
getCommon()
Some settings.
String
getLibraryPackage()
The package name to use in Java.
Map<String,String>
getServiceClassNames()
Configure the Java class name to use instead of the service's for its corresponding generated
GAPIC client.
JavaSettings
set(String fieldName,
Object value)
JavaSettings
setCommon(CommonLanguageSettings common)
Some settings.
JavaSettings
setLibraryPackage(String libraryPackage)
The package name to use in Java.
JavaSettings
setServiceClassNames(Map<String,String> serviceClassNames)
Configure the Java class name to use instead of the service's for its corresponding generated
GAPIC client.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getCommon
public CommonLanguageSettings getCommon()
Some settings.
- Returns:
- value or
null
for none
-
setCommon
public JavaSettings setCommon(CommonLanguageSettings common)
Some settings.
- Parameters:
common
- common or null
for none
-
getLibraryPackage
public String getLibraryPackage()
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
- Returns:
- value or
null
for none
-
setLibraryPackage
public JavaSettings setLibraryPackage(String libraryPackage)
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
- Parameters:
libraryPackage
- libraryPackage or null
for none
-
getServiceClassNames
public Map<String,String> getServiceClassNames()
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
- Returns:
- value or
null
for none
-
setServiceClassNames
public JavaSettings setServiceClassNames(Map<String,String> serviceClassNames)
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
- Parameters:
serviceClassNames
- serviceClassNames or null
for none
-
set
public JavaSettings set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public JavaSettings clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy