Package com.google.api
Class JavaSettings
java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<JavaSettings,JavaSettings.Builder>
com.google.api.JavaSettings
- All Implemented Interfaces:
JavaSettingsOrBuilder
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
public final class JavaSettings
extends com.google.protobuf.GeneratedMessageLite<JavaSettings,JavaSettings.Builder>
implements JavaSettingsOrBuilder
Settings for Java client libraries.Protobuf type
google.api.JavaSettings
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Settings for Java client libraries.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,
?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFields
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Configure the Java class name to use instead of the service's for its corresponding generated GAPIC client.protected final Object
dynamicMethod
(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) Some settings.static JavaSettings
The package name to use in Java.com.google.protobuf.ByteString
The package name to use in Java.Deprecated.int
Configure the Java class name to use instead of the service's for its corresponding generated GAPIC client.Configure the Java class name to use instead of the service's for its corresponding generated GAPIC client.getServiceClassNamesOrDefault
(String key, String defaultValue) Configure the Java class name to use instead of the service's for its corresponding generated GAPIC client.Configure the Java class name to use instead of the service's for its corresponding generated GAPIC client.boolean
Some settings.static JavaSettings.Builder
static JavaSettings.Builder
newBuilder
(JavaSettings prototype) static JavaSettings
parseDelimitedFrom
(InputStream input) static JavaSettings
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static JavaSettings
parseFrom
(byte[] data) static JavaSettings
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static JavaSettings
parseFrom
(com.google.protobuf.ByteString data) static JavaSettings
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static JavaSettings
parseFrom
(com.google.protobuf.CodedInputStream input) static JavaSettings
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static JavaSettings
parseFrom
(InputStream input) static JavaSettings
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static JavaSettings
parseFrom
(ByteBuffer data) static JavaSettings
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<JavaSettings>
parser()
Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
LIBRARY_PACKAGE_FIELD_NUMBER
public static final int LIBRARY_PACKAGE_FIELD_NUMBER- See Also:
-
SERVICE_CLASS_NAMES_FIELD_NUMBER
public static final int SERVICE_CLASS_NAMES_FIELD_NUMBER- See Also:
-
COMMON_FIELD_NUMBER
public static final int COMMON_FIELD_NUMBER- See Also:
-
-
Method Details
-
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
string library_package = 1 [json_name = "libraryPackage"];
- Specified by:
getLibraryPackage
in interfaceJavaSettingsOrBuilder
- Returns:
- The libraryPackage.
-
getLibraryPackageBytes
public com.google.protobuf.ByteString getLibraryPackageBytes()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
string library_package = 1 [json_name = "libraryPackage"];
- Specified by:
getLibraryPackageBytes
in interfaceJavaSettingsOrBuilder
- Returns:
- The bytes for libraryPackage.
-
getServiceClassNamesCount
public int getServiceClassNamesCount()Description copied from interface:JavaSettingsOrBuilder
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
map<string, string> service_class_names = 2 [json_name = "serviceClassNames"];
- Specified by:
getServiceClassNamesCount
in interfaceJavaSettingsOrBuilder
-
containsServiceClassNames
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
map<string, string> service_class_names = 2 [json_name = "serviceClassNames"];
- Specified by:
containsServiceClassNames
in interfaceJavaSettingsOrBuilder
-
getServiceClassNames
Deprecated.UsegetServiceClassNamesMap()
instead.- Specified by:
getServiceClassNames
in interfaceJavaSettingsOrBuilder
-
getServiceClassNamesMap
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
map<string, string> service_class_names = 2 [json_name = "serviceClassNames"];
- Specified by:
getServiceClassNamesMap
in interfaceJavaSettingsOrBuilder
-
getServiceClassNamesOrDefault
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
map<string, string> service_class_names = 2 [json_name = "serviceClassNames"];
- Specified by:
getServiceClassNamesOrDefault
in interfaceJavaSettingsOrBuilder
-
getServiceClassNamesOrThrow
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
map<string, string> service_class_names = 2 [json_name = "serviceClassNames"];
- Specified by:
getServiceClassNamesOrThrow
in interfaceJavaSettingsOrBuilder
-
hasCommon
public boolean hasCommon()Some settings.
.google.api.CommonLanguageSettings common = 3 [json_name = "common"];
- Specified by:
hasCommon
in interfaceJavaSettingsOrBuilder
- Returns:
- Whether the common field is set.
-
getCommon
Some settings.
.google.api.CommonLanguageSettings common = 3 [json_name = "common"];
- Specified by:
getCommon
in interfaceJavaSettingsOrBuilder
- Returns:
- The common.
-
parseFrom
public static JavaSettings parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static JavaSettings parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static JavaSettings parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static JavaSettings parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static JavaSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static JavaSettings parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static JavaSettings parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static JavaSettings parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static JavaSettings parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethod
in classcom.google.protobuf.GeneratedMessageLite<JavaSettings,
JavaSettings.Builder>
-
getDefaultInstance
-
parser
-