public sealed class SelectiveGapicGeneration : IMessage<SelectiveGapicGeneration>, IEquatable<SelectiveGapicGeneration>, IDeepCloneable<SelectiveGapicGeneration>, IBufferMessage, IMessage
This message is used to configure the generation of a subset of the RPCs in
a service for client libraries.
public bool GenerateOmittedAsInternal { get; set; }
Setting this to true indicates to the client generators that methods
that would be excluded from the generation should instead be generated
in a way that indicates these methods should not be consumed by
end users. How this is expressed is up to individual language
implementations to decide. Some examples may be: added annotations,
obfuscated identifiers, or other language idiomatic patterns.
[[["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."],[],[],null,["# Class SelectiveGapicGeneration (2.17.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.17.0 (latest)](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.SelectiveGapicGeneration)\n- [2.15.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.15.0/Google.Api.SelectiveGapicGeneration)\n- [2.10.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.10.0/Google.Api.SelectiveGapicGeneration)\n- [2.2.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.2.0/Google.Api.SelectiveGapicGeneration) \n\n public sealed class SelectiveGapicGeneration : IMessage\u003cSelectiveGapicGeneration\u003e, IEquatable\u003cSelectiveGapicGeneration\u003e, IDeepCloneable\u003cSelectiveGapicGeneration\u003e, IBufferMessage, IMessage\n\nThis message is used to configure the generation of a subset of the RPCs in\na service for client libraries. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SelectiveGapicGeneration \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SelectiveGapicGeneration](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.SelectiveGapicGeneration), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SelectiveGapicGeneration](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.SelectiveGapicGeneration), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SelectiveGapicGeneration](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.SelectiveGapicGeneration), [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### SelectiveGapicGeneration()\n\n public SelectiveGapicGeneration()\n\n### SelectiveGapicGeneration(SelectiveGapicGeneration)\n\n public SelectiveGapicGeneration(SelectiveGapicGeneration other)\n\nFields\n------\n\n### GenerateOmittedAsInternalFieldNumber\n\n public const int GenerateOmittedAsInternalFieldNumber = 2\n\nField number for the \"generate_omitted_as_internal\" field.\n\n### MethodsFieldNumber\n\n public const int MethodsFieldNumber = 1\n\nField number for the \"methods\" field.\n\nProperties\n----------\n\n### Descriptor\n\n public static MessageDescriptor Descriptor { get; }\n\n### GenerateOmittedAsInternal\n\n public bool GenerateOmittedAsInternal { get; set; }\n\nSetting this to true indicates to the client generators that methods\nthat would be excluded from the generation should instead be generated\nin a way that indicates these methods should not be consumed by\nend users. How this is expressed is up to individual language\nimplementations to decide. Some examples may be: added annotations,\nobfuscated identifiers, or other language idiomatic patterns.\n\n### Methods\n\n public RepeatedField\u003cstring\u003e Methods { get; }\n\nAn allowlist of the fully qualified names of RPCs that should be included\non public client surfaces.\n\n### Parser\n\n public static MessageParser\u003cSelectiveGapicGeneration\u003e Parser { get; }\n\nMethods\n-------\n\n### CalculateSize()\n\n public int CalculateSize()\n\n### Clone()\n\n public SelectiveGapicGeneration Clone()\n\n### Equals(SelectiveGapicGeneration)\n\n public bool Equals(SelectiveGapicGeneration 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(SelectiveGapicGeneration)\n\n public void MergeFrom(SelectiveGapicGeneration 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)"]]