Reference documentation and code samples for the Google API Common Protos Client class DotnetSettings.
Settings for Dotnet client libraries.
Generated from protobuf message google.api.DotnetSettings
Namespace
Google \ ApiMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ common |
CommonLanguageSettings
Some settings. |
↳ renamed_services |
array|Google\Protobuf\Internal\MapField
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. |
↳ renamed_resources |
array|Google\Protobuf\Internal\MapField
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" |
↳ ignored_resources |
array
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" |
↳ forced_namespace_aliases |
array
Namespaces which must be aliased in snippets due to a known (but non-generator-predictable) naming collision |
↳ handwritten_signatures |
array
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. |
getCommon
Some settings.
| Returns | |
|---|---|
| Type | Description |
CommonLanguageSettings|null |
|
hasCommon
clearCommon
setCommon
Some settings.
| Parameter | |
|---|---|
| Name | Description |
var |
CommonLanguageSettings
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRenamedServices
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.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\MapField |
|
setRenamedServices
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.
| Parameter | |
|---|---|
| Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRenamedResources
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"
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\MapField |
|
setRenamedResources
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"
| Parameter | |
|---|---|
| Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getIgnoredResources
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"
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setIgnoredResources
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"
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getForcedNamespaceAliases
Namespaces which must be aliased in snippets due to a known (but non-generator-predictable) naming collision
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setForcedNamespaceAliases
Namespaces which must be aliased in snippets due to a known (but non-generator-predictable) naming collision
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getHandwrittenSignatures
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.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setHandwrittenSignatures
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.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|