public static final class JavaSettings.Builder extends GeneratedMessageV3.Builder<JavaSettings.Builder> implements JavaSettingsOrBuilder
Settings for Java client libraries.
Protobuf type google.api.JavaSettings
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public JavaSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public JavaSettings build()
Returns
buildPartial()
public JavaSettings buildPartial()
Returns
clear()
public JavaSettings.Builder clear()
Returns
Overrides
clearCommon()
public JavaSettings.Builder clearCommon()
Some settings.
.google.api.CommonLanguageSettings common = 3;
Returns
clearField(Descriptors.FieldDescriptor field)
public JavaSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearLibraryPackage()
public JavaSettings.Builder clearLibraryPackage()
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;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public JavaSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearServiceClassNames()
public JavaSettings.Builder clearServiceClassNames()
Returns
clone()
public JavaSettings.Builder clone()
Returns
Overrides
containsServiceClassNames(String key)
public 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;
Parameter
Returns
getCommon()
public CommonLanguageSettings getCommon()
Some settings.
.google.api.CommonLanguageSettings common = 3;
Returns
getCommonBuilder()
public CommonLanguageSettings.Builder getCommonBuilder()
Some settings.
.google.api.CommonLanguageSettings common = 3;
Returns
getCommonOrBuilder()
public CommonLanguageSettingsOrBuilder getCommonOrBuilder()
Some settings.
.google.api.CommonLanguageSettings common = 3;
Returns
getDefaultInstanceForType()
public JavaSettings getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
string library_package = 1;
Returns
Type | Description |
String | The libraryPackage.
|
getLibraryPackageBytes()
public 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;
Returns
Type | Description |
ByteString | The bytes for libraryPackage.
|
getMutableServiceClassNames()
public Map<String,String> getMutableServiceClassNames()
Use alternate mutation accessors instead.
Returns
getServiceClassNames()
public Map<String,String> getServiceClassNames()
Returns
getServiceClassNamesCount()
public int getServiceClassNamesCount()
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;
Returns
getServiceClassNamesMap()
public 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;
Returns
getServiceClassNamesOrDefault(String key, String defaultValue)
public 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;
Parameters
Returns
getServiceClassNamesOrThrow(String key)
public 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;
Parameter
Returns
hasCommon()
public boolean hasCommon()
Some settings.
.google.api.CommonLanguageSettings common = 3;
Returns
Type | Description |
boolean | Whether the common field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeCommon(CommonLanguageSettings value)
public JavaSettings.Builder mergeCommon(CommonLanguageSettings value)
Some settings.
.google.api.CommonLanguageSettings common = 3;
Parameter
Returns
mergeFrom(JavaSettings other)
public JavaSettings.Builder mergeFrom(JavaSettings other)
Parameter
Returns
public JavaSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public JavaSettings.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final JavaSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
putAllServiceClassNames(Map<String,String> values)
public JavaSettings.Builder putAllServiceClassNames(Map<String,String> values)
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;
Parameter
Returns
putServiceClassNames(String key, String value)
public JavaSettings.Builder putServiceClassNames(String key, String value)
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;
Parameters
Returns
removeServiceClassNames(String key)
public JavaSettings.Builder removeServiceClassNames(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;
Parameter
Returns
setCommon(CommonLanguageSettings value)
public JavaSettings.Builder setCommon(CommonLanguageSettings value)
Some settings.
.google.api.CommonLanguageSettings common = 3;
Parameter
Returns
setCommon(CommonLanguageSettings.Builder builderForValue)
public JavaSettings.Builder setCommon(CommonLanguageSettings.Builder builderForValue)
Some settings.
.google.api.CommonLanguageSettings common = 3;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public JavaSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setLibraryPackage(String value)
public JavaSettings.Builder setLibraryPackage(String value)
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;
Parameter
Name | Description |
value | String
The libraryPackage to set.
|
Returns
setLibraryPackageBytes(ByteString value)
public JavaSettings.Builder setLibraryPackageBytes(ByteString value)
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;
Parameter
Name | Description |
value | ByteString
The bytes for libraryPackage to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public JavaSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final JavaSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides