public RepeatedField<string> AutoPopulatedFields { get; }
List of top-level fields of the request message, that should be
automatically populated by the client libraries based on their
(google.api.field_info).format. Currently supported format: UUID4.
public MethodSettings.Types.LongRunning LongRunning { get; set; }
Describes settings to use for long-running operations when generating
API methods for RPCs. Complements RPCs that use the annotations in
google/longrunning/operations.proto.
[[["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\u003e\u003ccode\u003eMethodSettings\u003c/code\u003e is a class that configures generator settings for a method, implementing interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties such as \u003ccode\u003eAutoPopulatedFields\u003c/code\u003e, \u003ccode\u003eLongRunning\u003c/code\u003e, and \u003ccode\u003eSelector\u003c/code\u003e, which are used to define method-specific behaviors and options, including for long-running operations.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers methods for cloning, calculating size, merging data, and performing equality checks, along with constructors for creating new instances and copying existing ones.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMethodSettings\u003c/code\u003e contains fields like \u003ccode\u003eAutoPopulatedFieldsFieldNumber\u003c/code\u003e, \u003ccode\u003eLongRunningFieldNumber\u003c/code\u003e, and \u003ccode\u003eSelectorFieldNumber\u003c/code\u003e, which represent field numbers used in the protocol buffer format.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMethodSettings\u003c/code\u003e class is defined within the \u003ccode\u003eGoogle.Api\u003c/code\u003e namespace and is found in the \u003ccode\u003eGoogle.Api.CommonProtos.dll\u003c/code\u003e assembly, and the latest version is \u003ccode\u003e2.15.0\u003c/code\u003e, however, \u003ccode\u003e2.10.0\u003c/code\u003e and \u003ccode\u003e2.2.0\u003c/code\u003e are also provided.\u003c/p\u003e\n"]]],[],null,["# Class MethodSettings (2.17.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.17.0 (latest)](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.MethodSettings)\n- [2.15.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.15.0/Google.Api.MethodSettings)\n- [2.10.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.10.0/Google.Api.MethodSettings)\n- [2.2.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.2.0/Google.Api.MethodSettings) \n\n public sealed class MethodSettings : IMessage\u003cMethodSettings\u003e, IEquatable\u003cMethodSettings\u003e, IDeepCloneable\u003cMethodSettings\u003e, IBufferMessage, IMessage\n\nDescribes the generator configuration for a method. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e MethodSettings \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[MethodSettings](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.MethodSettings), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[MethodSettings](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.MethodSettings), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[MethodSettings](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.MethodSettings), [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### MethodSettings()\n\n public MethodSettings()\n\n### MethodSettings(MethodSettings)\n\n public MethodSettings(MethodSettings other)\n\nFields\n------\n\n### AutoPopulatedFieldsFieldNumber\n\n public const int AutoPopulatedFieldsFieldNumber = 3\n\nField number for the \"auto_populated_fields\" field.\n\n### LongRunningFieldNumber\n\n public const int LongRunningFieldNumber = 2\n\nField number for the \"long_running\" field.\n\n### SelectorFieldNumber\n\n public const int SelectorFieldNumber = 1\n\nField number for the \"selector\" field.\n\nProperties\n----------\n\n### AutoPopulatedFields\n\n public RepeatedField\u003cstring\u003e AutoPopulatedFields { get; }\n\nList of top-level fields of the request message, that should be\nautomatically populated by the client libraries based on their\n(google.api.field_info).format. Currently supported format: UUID4.\n\nExample of a YAML configuration:\n\npublishing:\nmethod_settings:\n\n- selector: google.example.v1.ExampleService.CreateExample auto_populated_fields:\n - request_id\n\n### Descriptor\n\n public static MessageDescriptor Descriptor { get; }\n\n### LongRunning\n\n public MethodSettings.Types.LongRunning LongRunning { get; set; }\n\nDescribes settings to use for long-running operations when generating\nAPI methods for RPCs. Complements RPCs that use the annotations in\ngoogle/longrunning/operations.proto.\n\nExample of a YAML configuration::\n\npublishing:\nmethod_settings:\n\n- selector: google.cloud.speech.v2.Speech.BatchRecognize long_running: initial_poll_delay: 60s # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: 360s # 6 minutes total_poll_timeout: 54000s # 90 minutes\n\n### Parser\n\n public static MessageParser\u003cMethodSettings\u003e Parser { get; }\n\n### Selector\n\n public string Selector { get; set; }\n\nThe fully qualified name of the method, for which the options below apply.\nThis is used to find the method to apply the options.\n\nExample:\n\npublishing:\nmethod_settings:\n\n- selector: google.storage.control.v2.StorageControl.CreateFolder # method settings for CreateFolder...\n\nMethods\n-------\n\n### CalculateSize()\n\n public int CalculateSize()\n\n### Clone()\n\n public MethodSettings Clone()\n\n### Equals(MethodSettings)\n\n public bool Equals(MethodSettings 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(MethodSettings)\n\n public void MergeFrom(MethodSettings 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)"]]