Class DotnetSettings.Builder (2.25.1)

public static final class DotnetSettings.Builder extends GeneratedMessageV3.Builder<DotnetSettings.Builder> implements DotnetSettingsOrBuilder

Settings for Dotnet client libraries.

Protobuf type google.api.DotnetSettings

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllForcedNamespaceAliases(Iterable<String> values)

public DotnetSettings.Builder addAllForcedNamespaceAliases(Iterable<String> values)

Namespaces which must be aliased in snippets due to a known (but non-generator-predictable) naming collision

repeated string forced_namespace_aliases = 5;

Parameter
NameDescription
valuesIterable<String>

The forcedNamespaceAliases to add.

Returns
TypeDescription
DotnetSettings.Builder

This builder for chaining.

addAllHandwrittenSignatures(Iterable<String> values)

public DotnetSettings.Builder addAllHandwrittenSignatures(Iterable<String> values)

Method signatures (in the form "service.method(signature)") which are provided separately, so shouldn't be generated. Snippets calling these methods are still generated, however.

repeated string handwritten_signatures = 6;

Parameter
NameDescription
valuesIterable<String>

The handwrittenSignatures to add.

Returns
TypeDescription
DotnetSettings.Builder

This builder for chaining.

addAllIgnoredResources(Iterable<String> values)

public DotnetSettings.Builder addAllIgnoredResources(Iterable<String> values)

List of full resource types to ignore during generation. This is typically used for API-specific Location resources, which should be handled by the generator as if they were actually the common Location resources. Example entry: "documentai.googleapis.com/Location"

repeated string ignored_resources = 4;

Parameter
NameDescription
valuesIterable<String>

The ignoredResources to add.

Returns
TypeDescription
DotnetSettings.Builder

This builder for chaining.

addForcedNamespaceAliases(String value)

public DotnetSettings.Builder addForcedNamespaceAliases(String value)

Namespaces which must be aliased in snippets due to a known (but non-generator-predictable) naming collision

repeated string forced_namespace_aliases = 5;

Parameter
NameDescription
valueString

The forcedNamespaceAliases to add.

Returns
TypeDescription
DotnetSettings.Builder

This builder for chaining.

addForcedNamespaceAliasesBytes(ByteString value)

public DotnetSettings.Builder addForcedNamespaceAliasesBytes(ByteString value)

Namespaces which must be aliased in snippets due to a known (but non-generator-predictable) naming collision

repeated string forced_namespace_aliases = 5;

Parameter
NameDescription
valueByteString

The bytes of the forcedNamespaceAliases to add.

Returns
TypeDescription
DotnetSettings.Builder

This builder for chaining.

addHandwrittenSignatures(String value)

public DotnetSettings.Builder addHandwrittenSignatures(String value)

Method signatures (in the form "service.method(signature)") which are provided separately, so shouldn't be generated. Snippets calling these methods are still generated, however.

repeated string handwritten_signatures = 6;

Parameter
NameDescription
valueString

The handwrittenSignatures to add.

Returns
TypeDescription
DotnetSettings.Builder

This builder for chaining.

addHandwrittenSignaturesBytes(ByteString value)

public DotnetSettings.Builder addHandwrittenSignaturesBytes(ByteString value)

Method signatures (in the form "service.method(signature)") which are provided separately, so shouldn't be generated. Snippets calling these methods are still generated, however.

repeated string handwritten_signatures = 6;

Parameter
NameDescription
valueByteString

The bytes of the handwrittenSignatures to add.

Returns
TypeDescription
DotnetSettings.Builder

This builder for chaining.

addIgnoredResources(String value)

public DotnetSettings.Builder addIgnoredResources(String value)

List of full resource types to ignore during generation. This is typically used for API-specific Location resources, which should be handled by the generator as if they were actually the common Location resources. Example entry: "documentai.googleapis.com/Location"

repeated string ignored_resources = 4;

Parameter
NameDescription
valueString

The ignoredResources to add.

Returns
TypeDescription
DotnetSettings.Builder

This builder for chaining.

addIgnoredResourcesBytes(ByteString value)

public DotnetSettings.Builder addIgnoredResourcesBytes(ByteString value)

List of full resource types to ignore during generation. This is typically used for API-specific Location resources, which should be handled by the generator as if they were actually the common Location resources. Example entry: "documentai.googleapis.com/Location"

repeated string ignored_resources = 4;

Parameter
NameDescription
valueByteString

The bytes of the ignoredResources to add.

Returns
TypeDescription
DotnetSettings.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DotnetSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DotnetSettings.Builder
Overrides

build()

public DotnetSettings build()
Returns
TypeDescription
DotnetSettings

buildPartial()

public DotnetSettings buildPartial()
Returns
TypeDescription
DotnetSettings

clear()

public DotnetSettings.Builder clear()
Returns
TypeDescription
DotnetSettings.Builder
Overrides

clearCommon()

public DotnetSettings.Builder clearCommon()

Some settings.

.google.api.CommonLanguageSettings common = 1;

Returns
TypeDescription
DotnetSettings.Builder

clearField(Descriptors.FieldDescriptor field)

public DotnetSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DotnetSettings.Builder
Overrides

clearForcedNamespaceAliases()

public DotnetSettings.Builder clearForcedNamespaceAliases()

Namespaces which must be aliased in snippets due to a known (but non-generator-predictable) naming collision

repeated string forced_namespace_aliases = 5;

Returns
TypeDescription
DotnetSettings.Builder

This builder for chaining.

clearHandwrittenSignatures()

public DotnetSettings.Builder clearHandwrittenSignatures()

Method signatures (in the form "service.method(signature)") which are provided separately, so shouldn't be generated. Snippets calling these methods are still generated, however.

repeated string handwritten_signatures = 6;

Returns
TypeDescription
DotnetSettings.Builder

This builder for chaining.

clearIgnoredResources()

public DotnetSettings.Builder clearIgnoredResources()

List of full resource types to ignore during generation. This is typically used for API-specific Location resources, which should be handled by the generator as if they were actually the common Location resources. Example entry: "documentai.googleapis.com/Location"

repeated string ignored_resources = 4;

Returns
TypeDescription
DotnetSettings.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DotnetSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DotnetSettings.Builder
Overrides

clearRenamedResources()

public DotnetSettings.Builder clearRenamedResources()
Returns
TypeDescription
DotnetSettings.Builder

clearRenamedServices()

public DotnetSettings.Builder clearRenamedServices()
Returns
TypeDescription
DotnetSettings.Builder

clone()

public DotnetSettings.Builder clone()
Returns
TypeDescription
DotnetSettings.Builder
Overrides

containsRenamedResources(String key)

public boolean containsRenamedResources(String key)

Map from full resource types to the effective short name for the resource. This is used when otherwise resource named from different services would cause naming collisions. Example entry: "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"

map<string, string> renamed_resources = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

containsRenamedServices(String key)

public boolean containsRenamedServices(String key)

Map from original service names to renamed versions. This is used when the default generated types would cause a naming conflict. (Neither name is fully-qualified.) Example: Subscriber to SubscriberServiceApi.

map<string, string> renamed_services = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCommon()

public CommonLanguageSettings getCommon()

Some settings.

.google.api.CommonLanguageSettings common = 1;

Returns
TypeDescription
CommonLanguageSettings

The common.

getCommonBuilder()

public CommonLanguageSettings.Builder getCommonBuilder()

Some settings.

.google.api.CommonLanguageSettings common = 1;

Returns
TypeDescription
CommonLanguageSettings.Builder

getCommonOrBuilder()

public CommonLanguageSettingsOrBuilder getCommonOrBuilder()

Some settings.

.google.api.CommonLanguageSettings common = 1;

Returns
TypeDescription
CommonLanguageSettingsOrBuilder

getDefaultInstanceForType()

public DotnetSettings getDefaultInstanceForType()
Returns
TypeDescription
DotnetSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getForcedNamespaceAliases(int index)

public String getForcedNamespaceAliases(int index)

Namespaces which must be aliased in snippets due to a known (but non-generator-predictable) naming collision

repeated string forced_namespace_aliases = 5;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The forcedNamespaceAliases at the given index.

getForcedNamespaceAliasesBytes(int index)

public ByteString getForcedNamespaceAliasesBytes(int index)

Namespaces which must be aliased in snippets due to a known (but non-generator-predictable) naming collision

repeated string forced_namespace_aliases = 5;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the forcedNamespaceAliases at the given index.

getForcedNamespaceAliasesCount()

public int getForcedNamespaceAliasesCount()

Namespaces which must be aliased in snippets due to a known (but non-generator-predictable) naming collision

repeated string forced_namespace_aliases = 5;

Returns
TypeDescription
int

The count of forcedNamespaceAliases.

getForcedNamespaceAliasesList()

public ProtocolStringList getForcedNamespaceAliasesList()

Namespaces which must be aliased in snippets due to a known (but non-generator-predictable) naming collision

repeated string forced_namespace_aliases = 5;

Returns
TypeDescription
ProtocolStringList

A list containing the forcedNamespaceAliases.

getHandwrittenSignatures(int index)

public String getHandwrittenSignatures(int index)

Method signatures (in the form "service.method(signature)") which are provided separately, so shouldn't be generated. Snippets calling these methods are still generated, however.

repeated string handwritten_signatures = 6;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The handwrittenSignatures at the given index.

getHandwrittenSignaturesBytes(int index)

public ByteString getHandwrittenSignaturesBytes(int index)

Method signatures (in the form "service.method(signature)") which are provided separately, so shouldn't be generated. Snippets calling these methods are still generated, however.

repeated string handwritten_signatures = 6;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the handwrittenSignatures at the given index.

getHandwrittenSignaturesCount()

public int getHandwrittenSignaturesCount()

Method signatures (in the form "service.method(signature)") which are provided separately, so shouldn't be generated. Snippets calling these methods are still generated, however.

repeated string handwritten_signatures = 6;

Returns
TypeDescription
int

The count of handwrittenSignatures.

getHandwrittenSignaturesList()

public ProtocolStringList getHandwrittenSignaturesList()

Method signatures (in the form "service.method(signature)") which are provided separately, so shouldn't be generated. Snippets calling these methods are still generated, however.

repeated string handwritten_signatures = 6;

Returns
TypeDescription
ProtocolStringList

A list containing the handwrittenSignatures.

getIgnoredResources(int index)

public String getIgnoredResources(int index)

List of full resource types to ignore during generation. This is typically used for API-specific Location resources, which should be handled by the generator as if they were actually the common Location resources. Example entry: "documentai.googleapis.com/Location"

repeated string ignored_resources = 4;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The ignoredResources at the given index.

getIgnoredResourcesBytes(int index)

public ByteString getIgnoredResourcesBytes(int index)

List of full resource types to ignore during generation. This is typically used for API-specific Location resources, which should be handled by the generator as if they were actually the common Location resources. Example entry: "documentai.googleapis.com/Location"

repeated string ignored_resources = 4;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the ignoredResources at the given index.

getIgnoredResourcesCount()

public int getIgnoredResourcesCount()

List of full resource types to ignore during generation. This is typically used for API-specific Location resources, which should be handled by the generator as if they were actually the common Location resources. Example entry: "documentai.googleapis.com/Location"

repeated string ignored_resources = 4;

Returns
TypeDescription
int

The count of ignoredResources.

getIgnoredResourcesList()

public ProtocolStringList getIgnoredResourcesList()

List of full resource types to ignore during generation. This is typically used for API-specific Location resources, which should be handled by the generator as if they were actually the common Location resources. Example entry: "documentai.googleapis.com/Location"

repeated string ignored_resources = 4;

Returns
TypeDescription
ProtocolStringList

A list containing the ignoredResources.

getMutableRenamedResources()

public Map<String,String> getMutableRenamedResources()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getMutableRenamedServices()

public Map<String,String> getMutableRenamedServices()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getRenamedResources()

public Map<String,String> getRenamedResources()
Returns
TypeDescription
Map<String,String>

getRenamedResourcesCount()

public int getRenamedResourcesCount()

Map from full resource types to the effective short name for the resource. This is used when otherwise resource named from different services would cause naming collisions. Example entry: "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"

map<string, string> renamed_resources = 3;

Returns
TypeDescription
int

getRenamedResourcesMap()

public Map<String,String> getRenamedResourcesMap()

Map from full resource types to the effective short name for the resource. This is used when otherwise resource named from different services would cause naming collisions. Example entry: "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"

map<string, string> renamed_resources = 3;

Returns
TypeDescription
Map<String,String>

getRenamedResourcesOrDefault(String key, String defaultValue)

public String getRenamedResourcesOrDefault(String key, String defaultValue)

Map from full resource types to the effective short name for the resource. This is used when otherwise resource named from different services would cause naming collisions. Example entry: "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"

map<string, string> renamed_resources = 3;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getRenamedResourcesOrThrow(String key)

public String getRenamedResourcesOrThrow(String key)

Map from full resource types to the effective short name for the resource. This is used when otherwise resource named from different services would cause naming collisions. Example entry: "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"

map<string, string> renamed_resources = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getRenamedServices()

public Map<String,String> getRenamedServices()
Returns
TypeDescription
Map<String,String>

getRenamedServicesCount()

public int getRenamedServicesCount()

Map from original service names to renamed versions. This is used when the default generated types would cause a naming conflict. (Neither name is fully-qualified.) Example: Subscriber to SubscriberServiceApi.

map<string, string> renamed_services = 2;

Returns
TypeDescription
int

getRenamedServicesMap()

public Map<String,String> getRenamedServicesMap()

Map from original service names to renamed versions. This is used when the default generated types would cause a naming conflict. (Neither name is fully-qualified.) Example: Subscriber to SubscriberServiceApi.

map<string, string> renamed_services = 2;

Returns
TypeDescription
Map<String,String>

getRenamedServicesOrDefault(String key, String defaultValue)

public String getRenamedServicesOrDefault(String key, String defaultValue)

Map from original service names to renamed versions. This is used when the default generated types would cause a naming conflict. (Neither name is fully-qualified.) Example: Subscriber to SubscriberServiceApi.

map<string, string> renamed_services = 2;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getRenamedServicesOrThrow(String key)

public String getRenamedServicesOrThrow(String key)

Map from original service names to renamed versions. This is used when the default generated types would cause a naming conflict. (Neither name is fully-qualified.) Example: Subscriber to SubscriberServiceApi.

map<string, string> renamed_services = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

hasCommon()

public boolean hasCommon()

Some settings.

.google.api.CommonLanguageSettings common = 1;

Returns
TypeDescription
boolean

Whether the common field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCommon(CommonLanguageSettings value)

public DotnetSettings.Builder mergeCommon(CommonLanguageSettings value)

Some settings.

.google.api.CommonLanguageSettings common = 1;

Parameter
NameDescription
valueCommonLanguageSettings
Returns
TypeDescription
DotnetSettings.Builder

mergeFrom(DotnetSettings other)

public DotnetSettings.Builder mergeFrom(DotnetSettings other)
Parameter
NameDescription
otherDotnetSettings
Returns
TypeDescription
DotnetSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DotnetSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DotnetSettings.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DotnetSettings.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DotnetSettings.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DotnetSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DotnetSettings.Builder
Overrides

putAllRenamedResources(Map<String,String> values)

public DotnetSettings.Builder putAllRenamedResources(Map<String,String> values)

Map from full resource types to the effective short name for the resource. This is used when otherwise resource named from different services would cause naming collisions. Example entry: "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"

map<string, string> renamed_resources = 3;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
DotnetSettings.Builder

putAllRenamedServices(Map<String,String> values)

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

Map from original service names to renamed versions. This is used when the default generated types would cause a naming conflict. (Neither name is fully-qualified.) Example: Subscriber to SubscriberServiceApi.

map<string, string> renamed_services = 2;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
DotnetSettings.Builder

putRenamedResources(String key, String value)

public DotnetSettings.Builder putRenamedResources(String key, String value)

Map from full resource types to the effective short name for the resource. This is used when otherwise resource named from different services would cause naming collisions. Example entry: "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"

map<string, string> renamed_resources = 3;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
DotnetSettings.Builder

putRenamedServices(String key, String value)

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

Map from original service names to renamed versions. This is used when the default generated types would cause a naming conflict. (Neither name is fully-qualified.) Example: Subscriber to SubscriberServiceApi.

map<string, string> renamed_services = 2;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
DotnetSettings.Builder

removeRenamedResources(String key)

public DotnetSettings.Builder removeRenamedResources(String key)

Map from full resource types to the effective short name for the resource. This is used when otherwise resource named from different services would cause naming collisions. Example entry: "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"

map<string, string> renamed_resources = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
DotnetSettings.Builder

removeRenamedServices(String key)

public DotnetSettings.Builder removeRenamedServices(String key)

Map from original service names to renamed versions. This is used when the default generated types would cause a naming conflict. (Neither name is fully-qualified.) Example: Subscriber to SubscriberServiceApi.

map<string, string> renamed_services = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
DotnetSettings.Builder

setCommon(CommonLanguageSettings value)

public DotnetSettings.Builder setCommon(CommonLanguageSettings value)

Some settings.

.google.api.CommonLanguageSettings common = 1;

Parameter
NameDescription
valueCommonLanguageSettings
Returns
TypeDescription
DotnetSettings.Builder

setCommon(CommonLanguageSettings.Builder builderForValue)

public DotnetSettings.Builder setCommon(CommonLanguageSettings.Builder builderForValue)

Some settings.

.google.api.CommonLanguageSettings common = 1;

Parameter
NameDescription
builderForValueCommonLanguageSettings.Builder
Returns
TypeDescription
DotnetSettings.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DotnetSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DotnetSettings.Builder
Overrides

setForcedNamespaceAliases(int index, String value)

public DotnetSettings.Builder setForcedNamespaceAliases(int index, String value)

Namespaces which must be aliased in snippets due to a known (but non-generator-predictable) naming collision

repeated string forced_namespace_aliases = 5;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The forcedNamespaceAliases to set.

Returns
TypeDescription
DotnetSettings.Builder

This builder for chaining.

setHandwrittenSignatures(int index, String value)

public DotnetSettings.Builder setHandwrittenSignatures(int index, String value)

Method signatures (in the form "service.method(signature)") which are provided separately, so shouldn't be generated. Snippets calling these methods are still generated, however.

repeated string handwritten_signatures = 6;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The handwrittenSignatures to set.

Returns
TypeDescription
DotnetSettings.Builder

This builder for chaining.

setIgnoredResources(int index, String value)

public DotnetSettings.Builder setIgnoredResources(int index, String value)

List of full resource types to ignore during generation. This is typically used for API-specific Location resources, which should be handled by the generator as if they were actually the common Location resources. Example entry: "documentai.googleapis.com/Location"

repeated string ignored_resources = 4;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The ignoredResources to set.

Returns
TypeDescription
DotnetSettings.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DotnetSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DotnetSettings.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DotnetSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DotnetSettings.Builder
Overrides