Class DotnetSettings.Builder (2.23.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
Type Description
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
Name Description
values Iterable<String>

The forcedNamespaceAliases to add.

Returns
Type Description
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
Name Description
values Iterable<String>

The handwrittenSignatures to add.

Returns
Type Description
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
Name Description
values Iterable<String>

The ignoredResources to add.

Returns
Type Description
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
Name Description
value String

The forcedNamespaceAliases to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the forcedNamespaceAliases to add.

Returns
Type Description
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
Name Description
value String

The handwrittenSignatures to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the handwrittenSignatures to add.

Returns
Type Description
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
Name Description
value String

The ignoredResources to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the ignoredResources to add.

Returns
Type Description
DotnetSettings.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DotnetSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DotnetSettings.Builder
Overrides

build()

public DotnetSettings build()
Returns
Type Description
DotnetSettings

buildPartial()

public DotnetSettings buildPartial()
Returns
Type Description
DotnetSettings

clear()

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

clearCommon()

public DotnetSettings.Builder clearCommon()

Some settings.

.google.api.CommonLanguageSettings common = 1;

Returns
Type Description
DotnetSettings.Builder

clearField(Descriptors.FieldDescriptor field)

public DotnetSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
DotnetSettings.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DotnetSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DotnetSettings.Builder
Overrides

clearRenamedResources()

public DotnetSettings.Builder clearRenamedResources()
Returns
Type Description
DotnetSettings.Builder

clearRenamedServices()

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

clone()

public DotnetSettings.Builder clone()
Returns
Type Description
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
Name Description
key String
Returns
Type Description
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
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 DotnetSettings getDefaultInstanceForType()
Returns
Type Description
DotnetSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the ignoredResources.

getMutableRenamedResources()

public Map<String,String> getMutableRenamedResources()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getMutableRenamedServices()

public Map<String,String> getMutableRenamedServices()

Use alternate mutation accessors instead.

Returns
Type Description
Map<