[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eCppSettings is a class for managing settings for C++ client libraries, and it implements multiple interfaces including IMessage, IEquatable, IDeepCloneable, and IBufferMessage.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers constructors for default initialization and for creating a new instance based on an existing CppSettings object, as well as a Common field which represents common language settings.\u003c/p\u003e\n"],["\u003cp\u003eCppSettings provides methods to manage its state such as CalculateSize, Clone, Equals, GetHashCode, MergeFrom, ToString, and WriteTo.\u003c/p\u003e\n"],["\u003cp\u003eThere are three different versions of the package listed: 2.15.0, 2.10.0, and 2.2.0.\u003c/p\u003e\n"],["\u003cp\u003eCppSettings is in the namespace Google.Api and is part of the assembly Google.Api.CommonProtos.dll.\u003c/p\u003e\n"]]],[],null,["# Class CppSettings (2.17.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.17.0 (latest)](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.CppSettings)\n- [2.15.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.15.0/Google.Api.CppSettings)\n- [2.10.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.10.0/Google.Api.CppSettings)\n- [2.2.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.2.0/Google.Api.CppSettings) \n\n public sealed class CppSettings : IMessage\u003cCppSettings\u003e, IEquatable\u003cCppSettings\u003e, IDeepCloneable\u003cCppSettings\u003e, IBufferMessage, IMessage\n\nSettings for C++ client libraries. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CppSettings \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CppSettings](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.CppSettings), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CppSettings](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.CppSettings), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CppSettings](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.CppSettings), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals)\n\nNamespace\n---------\n\n[Google.Api](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api)\n\nAssembly\n--------\n\nGoogle.Api.CommonProtos.dll\n\nConstructors\n------------\n\n### CppSettings()\n\n public CppSettings()\n\n### CppSettings(CppSettings)\n\n public CppSettings(CppSettings other)\n\nFields\n------\n\n### CommonFieldNumber\n\n public const int CommonFieldNumber = 1\n\nField number for the \"common\" field.\n\nProperties\n----------\n\n### Common\n\n public CommonLanguageSettings Common { get; set; }\n\nSome settings.\n\n### Descriptor\n\n public static MessageDescriptor Descriptor { get; }\n\n### Parser\n\n public static MessageParser\u003cCppSettings\u003e Parser { get; }\n\nMethods\n-------\n\n### CalculateSize()\n\n public int CalculateSize()\n\n### Clone()\n\n public CppSettings Clone()\n\n### Equals(CppSettings)\n\n public bool Equals(CppSettings other)\n\n### Equals(object)\n\n public override bool Equals(object other)\n\n**Overrides** \n[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object))\n\n### GetHashCode()\n\n public override int GetHashCode()\n\n**Overrides** \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode)\n\n### MergeFrom(CppSettings)\n\n public void MergeFrom(CppSettings other)\n\n### MergeFrom(CodedInputStream)\n\n public void MergeFrom(CodedInputStream input)\n\n### ToString()\n\n public override string ToString()\n\n**Overrides** \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\n### WriteTo(CodedOutputStream)\n\n public void WriteTo(CodedOutputStream output)"]]