Reference documentation and code samples for the Google Cloud Network Connectivity V1 Client class AllocationOptions.
Range auto-allocation options, to be optionally used when CIDR block is not
explicitly set.
Generated from protobuf message google.cloud.networkconnectivity.v1.InternalRange.AllocationOptions
Namespace
Google \ Cloud \ NetworkConnectivity \ V1 \ InternalRange
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ allocation_strategy
int
Optional. Allocation strategy Not setting this field when the allocation is requested means an implementation defined strategy is used.
↳ first_available_ranges_lookup_size
int
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.
getAllocationStrategy
Optional. Allocation strategy Not setting this field when the allocation
is requested means an implementation defined strategy is used.
Returns
Type
Description
int
setAllocationStrategy
Optional. Allocation strategy Not setting this field when the allocation
is requested means an implementation defined strategy is used.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getFirstAvailableRangesLookupSize
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.
Returns
Type
Description
int
setFirstAvailableRangesLookupSize
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-09-04 UTC."],[],[],null,["# Google Cloud Network Connectivity V1 Client - Class AllocationOptions (2.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.0 (latest)](/php/docs/reference/cloud-network-connectivity/latest/V1.InternalRange.AllocationOptions)\n- [2.2.2](/php/docs/reference/cloud-network-connectivity/2.2.2/V1.InternalRange.AllocationOptions)\n- [2.1.2](/php/docs/reference/cloud-network-connectivity/2.1.2/V1.InternalRange.AllocationOptions)\n- [2.0.2](/php/docs/reference/cloud-network-connectivity/2.0.2/V1.InternalRange.AllocationOptions)\n- [1.5.5](/php/docs/reference/cloud-network-connectivity/1.5.5/V1.InternalRange.AllocationOptions)\n- [1.4.2](/php/docs/reference/cloud-network-connectivity/1.4.2/V1.InternalRange.AllocationOptions)\n- [1.3.0](/php/docs/reference/cloud-network-connectivity/1.3.0/V1.InternalRange.AllocationOptions)\n- [1.2.0](/php/docs/reference/cloud-network-connectivity/1.2.0/V1.InternalRange.AllocationOptions)\n- [1.1.1](/php/docs/reference/cloud-network-connectivity/1.1.1/V1.InternalRange.AllocationOptions)\n- [1.0.5](/php/docs/reference/cloud-network-connectivity/1.0.5/V1.InternalRange.AllocationOptions) \nReference documentation and code samples for the Google Cloud Network Connectivity V1 Client class AllocationOptions.\n\nRange auto-allocation options, to be optionally used when CIDR block is not\nexplicitly set.\n\nGenerated from protobuf message `google.cloud.networkconnectivity.v1.InternalRange.AllocationOptions`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ NetworkConnectivity \\\\ V1 \\\\ InternalRange\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getAllocationStrategy\n\nOptional. Allocation strategy Not setting this field when the allocation\nis requested means an implementation defined strategy is used.\n\n### setAllocationStrategy\n\nOptional. Allocation strategy Not setting this field when the allocation\nis requested means an implementation defined strategy is used.\n\n### getFirstAvailableRangesLookupSize\n\nOptional. This field must be set only when allocation_strategy is set to\nRANDOM_FIRST_N_AVAILABLE.\n\nThe value should be the maximum expected parallelism of range creation\nrequests issued to the same space of peered netwroks.\n\n### setFirstAvailableRangesLookupSize\n\nOptional. This field must be set only when allocation_strategy is set to\nRANDOM_FIRST_N_AVAILABLE.\n\nThe value should be the maximum expected parallelism of range creation\nrequests issued to the same space of peered netwroks."]]