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()
DotnetSettings(DotnetSettings)
public DotnetSettings(DotnetSettings other)
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; }
Descriptor
public static MessageDescriptor Descriptor { get; }
ForcedNamespaceAliases
public RepeatedField<string> ForcedNamespaceAliases { get; }
Namespaces which must be aliased in snippets due to
a known (but non-generator-predictable) naming collision
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.
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"
Parser
public static MessageParser<DotnetSettings> Parser { get; }
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"
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.
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.
Equals(DotnetSettings)
public bool Equals(DotnetSettings other)
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.
Remarks
public void MergeFrom(CodedInputStream input)
Merges the data from the specified coded input stream with the current message.
Remarks
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.
|