public final class JavaSettings extends com.google.protobuf.GeneratedMessageV3 implements JavaSettingsOrBuilder
Settings for Java client libraries.Protobuf type
google.api.JavaSettings| Modifier and Type | Class and Description |
|---|---|
static class |
JavaSettings.Builder
Settings for Java client libraries.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
COMMON_FIELD_NUMBER |
static int |
LIBRARY_PACKAGE_FIELD_NUMBER |
static int |
SERVICE_CLASS_NAMES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsServiceClassNames(String key)
Configure the Java class name to use instead of the service's for its
corresponding generated GAPIC client.
|
boolean |
equals(Object obj) |
CommonLanguageSettings |
getCommon()
Some settings.
|
CommonLanguageSettingsOrBuilder |
getCommonOrBuilder()
Some settings.
|
static JavaSettings |
getDefaultInstance() |
JavaSettings |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getLibraryPackage()
The package name to use in Java.
|
com.google.protobuf.ByteString |
getLibraryPackageBytes()
The package name to use in Java.
|
com.google.protobuf.Parser<JavaSettings> |
getParserForType() |
int |
getSerializedSize() |
Map<String,String> |
getServiceClassNames()
Deprecated.
|
int |
getServiceClassNamesCount()
Configure the Java class name to use instead of the service's for its
corresponding generated GAPIC client.
|
Map<String,String> |
getServiceClassNamesMap()
Configure the Java class name to use instead of the service's for its
corresponding generated GAPIC client.
|
String |
getServiceClassNamesOrDefault(String key,
String defaultValue)
Configure the Java class name to use instead of the service's for its
corresponding generated GAPIC client.
|
String |
getServiceClassNamesOrThrow(String key)
Configure the Java class name to use instead of the service's for its
corresponding generated GAPIC client.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasCommon()
Some settings.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static JavaSettings.Builder |
newBuilder() |
static JavaSettings.Builder |
newBuilder(JavaSettings prototype) |
JavaSettings.Builder |
newBuilderForType() |
protected JavaSettings.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
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(ByteBuffer data) |
static JavaSettings |
parseFrom(ByteBuffer 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 com.google.protobuf.Parser<JavaSettings> |
parser() |
JavaSettings.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int LIBRARY_PACKAGE_FIELD_NUMBER
public static final int SERVICE_CLASS_NAMES_FIELD_NUMBER
public static final int COMMON_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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
string library_package = 1;getLibraryPackage in interface JavaSettingsOrBuilderpublic 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;getLibraryPackageBytes in interface JavaSettingsOrBuilderpublic int getServiceClassNamesCount()
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;getServiceClassNamesCount in interface JavaSettingsOrBuilderpublic boolean containsServiceClassNames(String key)
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;containsServiceClassNames in interface JavaSettingsOrBuilder@Deprecated public Map<String,String> getServiceClassNames()
getServiceClassNamesMap() instead.getServiceClassNames in interface JavaSettingsOrBuilderpublic Map<String,String> 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;getServiceClassNamesMap in interface JavaSettingsOrBuilderpublic String getServiceClassNamesOrDefault(String key, String defaultValue)
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;getServiceClassNamesOrDefault in interface JavaSettingsOrBuilderpublic String getServiceClassNamesOrThrow(String key)
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;getServiceClassNamesOrThrow in interface JavaSettingsOrBuilderpublic boolean hasCommon()
Some settings.
.google.api.CommonLanguageSettings common = 3;hasCommon in interface JavaSettingsOrBuilderpublic CommonLanguageSettings getCommon()
Some settings.
.google.api.CommonLanguageSettings common = 3;getCommon in interface JavaSettingsOrBuilderpublic CommonLanguageSettingsOrBuilder getCommonOrBuilder()
Some settings.
.google.api.CommonLanguageSettings common = 3;getCommonOrBuilder in interface JavaSettingsOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static JavaSettings parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static JavaSettings parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static JavaSettings parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static JavaSettings parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static JavaSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static JavaSettings parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static JavaSettings parseFrom(InputStream input) throws IOException
IOExceptionpublic static JavaSettings parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static JavaSettings parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static JavaSettings parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static JavaSettings parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static JavaSettings parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic JavaSettings.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static JavaSettings.Builder newBuilder()
public static JavaSettings.Builder newBuilder(JavaSettings prototype)
public JavaSettings.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected JavaSettings.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static JavaSettings getDefaultInstance()
public static com.google.protobuf.Parser<JavaSettings> parser()
public com.google.protobuf.Parser<JavaSettings> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public JavaSettings getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.