public sealed class InternalRange.Types.AllocationOptions : IMessage<InternalRange.Types.AllocationOptions>, IEquatable<InternalRange.Types.AllocationOptions>, IDeepCloneable<InternalRange.Types.AllocationOptions>, IBufferMessage, IMessage
Reference documentation and code samples for the Network Connectivity v1 API class InternalRange.Types.AllocationOptions.
Range auto-allocation options, to be optionally used when CIDR block is not
explicitly set.
public int FirstAvailableRangesLookupSize { get; set; }
Optional. This field must be set only when allocation_strategy is set to
RANDOM_FIRST_N_AVAILABLE.
The value should be the maximum expected parallelism of range creation
requests issued to the same space of peered netwroks.
[[["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-07 UTC."],[],[],null,["# Network Connectivity v1 API - Class InternalRange.Types.AllocationOptions (2.11.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.11.0 (latest)](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationOptions)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.10.0/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationOptions)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.9.0/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationOptions)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.8.0/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationOptions)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.7.0/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationOptions)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.6.0/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationOptions)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.5.0/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationOptions)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.4.0/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationOptions)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.3.0/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationOptions)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.2.0/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationOptions)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.1.0/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationOptions)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.0.0/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationOptions)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/1.2.0/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationOptions)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/1.1.0/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationOptions)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/1.0.0/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationOptions) \n\n public sealed class InternalRange.Types.AllocationOptions : IMessage\u003cInternalRange.Types.AllocationOptions\u003e, IEquatable\u003cInternalRange.Types.AllocationOptions\u003e, IDeepCloneable\u003cInternalRange.Types.AllocationOptions\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Network Connectivity v1 API class InternalRange.Types.AllocationOptions.\n\nRange auto-allocation options, to be optionally used when CIDR block is not\nexplicitly set. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e InternalRange.Types.AllocationOptions \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[InternalRange](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.InternalRange)[Types](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types)[AllocationOptions](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationOptions), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[InternalRange](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.InternalRange)[Types](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types)[AllocationOptions](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationOptions), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[InternalRange](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.InternalRange)[Types](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types)[AllocationOptions](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationOptions), [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.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.NetworkConnectivity.V1](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.NetworkConnectivity.V1.dll\n\nConstructors\n------------\n\n### AllocationOptions()\n\n public AllocationOptions()\n\n### AllocationOptions(AllocationOptions)\n\n public AllocationOptions(InternalRange.Types.AllocationOptions other)\n\nProperties\n----------\n\n### AllocationStrategy\n\n public InternalRange.Types.AllocationStrategy AllocationStrategy { get; set; }\n\nOptional. Allocation strategy Not setting this field when the allocation\nis requested means an implementation defined strategy is used.\n\n### FirstAvailableRangesLookupSize\n\n public int FirstAvailableRangesLookupSize { get; set; }\n\nOptional. This field must be set only when allocation_strategy is set to\nRANDOM_FIRST_N_AVAILABLE.\nThe value should be the maximum expected parallelism of range creation\nrequests issued to the same space of peered netwroks."]]