Class DotnetSettings (2.15.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
Name Description
other DotnetSettings

Fields

CommonFieldNumber

public const int CommonFieldNumber = 1

Field number for the "common" field.

Field Value
Type Description
int

ForcedNamespaceAliasesFieldNumber

public const int ForcedNamespaceAliasesFieldNumber = 5

Field number for the "forced_namespace_aliases" field.

Field Value
Type Description
int

HandwrittenSignaturesFieldNumber

public const int HandwrittenSignaturesFieldNumber = 6

Field number for the "handwritten_signatures" field.

Field Value
Type Description
int

IgnoredResourcesFieldNumber

public const int IgnoredResourcesFieldNumber = 4

Field number for the "ignored_resources" field.

Field Value
Type Description
int

RenamedResourcesFieldNumber

public const int RenamedResourcesFieldNumber = 3

Field number for the "renamed_resources" field.

Field Value
Type Description
int

RenamedServicesFieldNumber

public const int RenamedServicesFieldNumber = 2

Field number for the "renamed_services" field.

Field Value
Type Description
int

Properties

Common

public CommonLanguageSettings Common { get; set; }

Some settings.

Property Value
Type Description
CommonLanguageSettings

Descriptor

public static MessageDescriptor Descriptor { get; }
Property Value
Type Description
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
Type Description
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
Type Description
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
Type Description
RepeatedFieldstring

Parser

public static MessageParser<DotnetSettings> Parser { get; }
Property Value
Type Description
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
Type Description
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
Type Description
MapFieldstringstring

Methods

CalculateSize()

public int CalculateSize()

Calculates the size of this message in Protocol Buffer wire format, in bytes.

Returns
Type Description
int

The number of bytes required to write this message to a coded output stream.

Clone()

public DotnetSettings Clone()

Creates a deep clone of this object.

Returns
Type Description
DotnetSettings

A deep clone of this object.

Equals(DotnetSettings)

public bool Equals(DotnetSettings other)
Parameter
Name Description
other DotnetSettings
Returns
Type Description
bool

Equals(object)

public override bool Equals(object other)
Parameter
Name Description
other object
Returns
Type Description
bool
Overrides

GetHashCode()

public override int GetHashCode()
Returns
Type Description
int
Overrides

MergeFrom(DotnetSettings)

public void MergeFrom(DotnetSettings other)

Merges the given message into this one.

Parameter
Name Description
other DotnetSettings
Remarks

See the user guide for precise merge semantics.

MergeFrom(CodedInputStream)

public void MergeFrom(CodedInputStream input)

Merges the data from the specified coded input stream with the current message.

Parameter
Name Description
input CodedInputStream
Remarks

See the user guide for precise merge semantics.

ToString()

public override string ToString()
Returns
Type Description
string
Overrides

WriteTo(CodedOutputStream)

public void WriteTo(CodedOutputStream output)

Writes the data to the given coded output stream.

Parameter
Name Description
output CodedOutputStream

Coded output stream to write the data to. Must not be null.