Class DotnetSettings (2.10.0)

public sealed class DotnetSettings : IMessage<DotnetSettings>, IEquatable<DotnetSettings>, IDeepCloneable<DotnetSettings>, IBufferMessage, IMessage

Settings for Dotnet client libraries.

Inheritance

object > DotnetSettings

Namespace

Google.Api

Assembly

Google.Api.CommonProtos.dll

Constructors

DotnetSettings()

public DotnetSettings()

DotnetSettings(DotnetSettings)

public DotnetSettings(DotnetSettings other)
Parameter
NameDescription
otherDotnetSettings

Fields

CommonFieldNumber

public const int CommonFieldNumber = 1

Field number for the "common" field.

Field Value
TypeDescription
int

ForcedNamespaceAliasesFieldNumber

public const int ForcedNamespaceAliasesFieldNumber = 5

Field number for the "forced_namespace_aliases" field.

Field Value
TypeDescription
int

HandwrittenSignaturesFieldNumber

public const int HandwrittenSignaturesFieldNumber = 6

Field number for the "handwritten_signatures" field.

Field Value
TypeDescription
int

IgnoredResourcesFieldNumber

public const int IgnoredResourcesFieldNumber = 4

Field number for the "ignored_resources" field.

Field Value
TypeDescription
int

RenamedResourcesFieldNumber

public const int RenamedResourcesFieldNumber = 3

Field number for the "renamed_resources" field.

Field Value
TypeDescription
int

RenamedServicesFieldNumber

public const int RenamedServicesFieldNumber = 2

Field number for the "renamed_services" field.

Field Value
TypeDescription
int

Properties

Common

public CommonLanguageSettings Common { get; set; }

Some settings.

Property Value
TypeDescription
CommonLanguageSettings

Descriptor

public static MessageDescriptor Descriptor { get; }
Property Value
TypeDescription
MessageDescriptor

ForcedNamespaceAliases

public RepeatedField<string> ForcedNamespaceAliases { get; }

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

Property Value
TypeDescription
RepeatedFieldstring

HandwrittenSignatures

public RepeatedField<string> HandwrittenSignatures { get; }

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.

Property Value
TypeDescription
RepeatedFieldstring

IgnoredResources

public RepeatedField<string> IgnoredResources { get; }

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"

Property Value
TypeDescription
RepeatedFieldstring

Parser

public static MessageParser<DotnetSettings> Parser { get; }
Property Value
TypeDescription
MessageParserDotnetSettings

RenamedResources

public MapField<string, string> RenamedResources { get; }

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"

Property Value
TypeDescription
MapFieldstringstring

RenamedServices

public MapField<string, string> RenamedServices { get; }

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.

Property Value
TypeDescription
MapFieldstringstring

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
int

Clone()

public DotnetSettings Clone()
Returns
TypeDescription
DotnetSettings

Equals(DotnetSettings)

public bool Equals(DotnetSettings other)
Parameter
NameDescription
otherDotnetSettings
Returns
TypeDescription
bool

Equals(object)

public override bool Equals(object other)
Parameter
NameDescription
otherobject
Returns
TypeDescription
bool
Overrides

GetHashCode()

public override int GetHashCode()
Returns
TypeDescription
int
Overrides

MergeFrom(DotnetSettings)

public void MergeFrom(DotnetSettings other)
Parameter
NameDescription
otherDotnetSettings

MergeFrom(CodedInputStream)

public void MergeFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream

ToString()

public override string ToString()
Returns
TypeDescription
string
Overrides

WriteTo(CodedOutputStream)

public void WriteTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream