Class GoSettings.Builder (2.65.0)

public static final class GoSettings.Builder extends GeneratedMessage.Builder<GoSettings.Builder> implements GoSettingsOrBuilder

Settings for Go client libraries.

Protobuf type google.api.GoSettings

Implements

GoSettingsOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public GoSettings build()
Returns
Type Description
GoSettings

buildPartial()

public GoSettings buildPartial()
Returns
Type Description
GoSettings

clear()

public GoSettings.Builder clear()
Returns
Type Description
GoSettings.Builder
Overrides

clearCommon()

public GoSettings.Builder clearCommon()

Some settings.

.google.api.CommonLanguageSettings common = 1;

Returns
Type Description
GoSettings.Builder

clearRenamedServices()

public GoSettings.Builder clearRenamedServices()
Returns
Type Description
GoSettings.Builder

containsRenamedServices(String key)

public boolean containsRenamedServices(String key)

Map of service names to renamed services. Keys are the package relative service names and values are the name to be used for the service client and call options.

publishing: go_settings: renamed_services: Publisher: TopicAdmin

map<string, string> renamed_services = 2;

Parameter
Name Description
key String
Returns
Type Description
boolean

getCommon()

public CommonLanguageSettings getCommon()

Some settings.

.google.api.CommonLanguageSettings common = 1;

Returns
Type Description
CommonLanguageSettings

The common.

getCommonBuilder()

public CommonLanguageSettings.Builder getCommonBuilder()

Some settings.

.google.api.CommonLanguageSettings common = 1;

Returns
Type Description
CommonLanguageSettings.Builder

getCommonOrBuilder()

public CommonLanguageSettingsOrBuilder getCommonOrBuilder()

Some settings.

.google.api.CommonLanguageSettings common = 1;

Returns
Type Description
CommonLanguageSettingsOrBuilder

getDefaultInstanceForType()

public GoSettings getDefaultInstanceForType()
Returns
Type Description
GoSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMutableRenamedServices() (deprecated)

public Map<String,String> getMutableRenamedServices()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getRenamedServices() (deprecated)

public Map<String,String> getRenamedServices()
Returns
Type Description
Map<String,String>

getRenamedServicesCount()

public int getRenamedServicesCount()

Map of service names to renamed services. Keys are the package relative service names and values are the name to be used for the service client and call options.

publishing: go_settings: renamed_services: Publisher: TopicAdmin

map<string, string> renamed_services = 2;

Returns
Type Description
int

getRenamedServicesMap()

public Map<String,String> getRenamedServicesMap()

Map of service names to renamed services. Keys are the package relative service names and values are the name to be used for the service client and call options.

publishing: go_settings: renamed_services: Publisher: TopicAdmin

map<string, string> renamed_services = 2;

Returns
Type Description
Map<String,String>

getRenamedServicesOrDefault(String key, String defaultValue)

public String getRenamedServicesOrDefault(String key, String defaultValue)

Map of service names to renamed services. Keys are the package relative service names and values are the name to be used for the service client and call options.

publishing: go_settings: renamed_services: Publisher: TopicAdmin

map<string, string> renamed_services = 2;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getRenamedServicesOrThrow(String key)

public String getRenamedServicesOrThrow(String key)

Map of service names to renamed services. Keys are the package relative service names and values are the name to be used for the service client and call options.

publishing: go_settings: renamed_services: Publisher: TopicAdmin

map<string, string> renamed_services = 2;

Parameter
Name Description
key String
Returns
Type Description
String

hasCommon()

public boolean hasCommon()

Some settings.

.google.api.CommonLanguageSettings common = 1;

Returns
Type Description
boolean

Whether the common field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCommon(CommonLanguageSettings value)

public GoSettings.Builder mergeCommon(CommonLanguageSettings value)

Some settings.

.google.api.CommonLanguageSettings common = 1;

Parameter
Name Description
value CommonLanguageSettings
Returns
Type Description
GoSettings.Builder

mergeFrom(GoSettings other)

public GoSettings.Builder mergeFrom(GoSettings other)
Parameter
Name Description
other GoSettings
Returns
Type Description
GoSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GoSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GoSettings.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GoSettings.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GoSettings.Builder
Overrides

putAllRenamedServices(Map<String,String> values)

public GoSettings.Builder putAllRenamedServices(Map<String,String> values)

Map of service names to renamed services. Keys are the package relative service names and values are the name to be used for the service client and call options.

publishing: go_settings: renamed_services: Publisher: TopicAdmin

map<string, string> renamed_services = 2;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
GoSettings.Builder

putRenamedServices(String key, String value)

public GoSettings.Builder putRenamedServices(String key, String value)

Map of service names to renamed services. Keys are the package relative service names and values are the name to be used for the service client and call options.

publishing: go_settings: renamed_services: Publisher: TopicAdmin

map<string, string> renamed_services = 2;

Parameters
Name Description
key String
value String
Returns
Type Description
GoSettings.Builder

removeRenamedServices(String key)

public GoSettings.Builder removeRenamedServices(String key)

Map of service names to renamed services. Keys are the package relative service names and values are the name to be used for the service client and call options.

publishing: go_settings: renamed_services: Publisher: TopicAdmin

map<string, string> renamed_services = 2;

Parameter
Name Description
key String
Returns
Type Description
GoSettings.Builder

setCommon(CommonLanguageSettings value)

public GoSettings.Builder setCommon(CommonLanguageSettings value)

Some settings.

.google.api.CommonLanguageSettings common = 1;

Parameter
Name Description
value CommonLanguageSettings
Returns
Type Description
GoSettings.Builder

setCommon(CommonLanguageSettings.Builder builderForValue)

public GoSettings.Builder setCommon(CommonLanguageSettings.Builder builderForValue)

Some settings.

.google.api.CommonLanguageSettings common = 1;

Parameter
Name Description
builderForValue CommonLanguageSettings.Builder
Returns
Type Description
GoSettings.Builder