public static final class InternalRange.AllocationOptions extends GeneratedMessage implements InternalRange.AllocationOptionsOrBuilderRange auto-allocation options, to be optionally used when CIDR block is not explicitly set.
Protobuf type google.cloud.networkconnectivity.v1.InternalRange.AllocationOptions
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > InternalRange.AllocationOptionsImplements
InternalRange.AllocationOptionsOrBuilderStatic Fields
ALLOCATION_STRATEGY_FIELD_NUMBER
public static final int ALLOCATION_STRATEGY_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
FIRST_AVAILABLE_RANGES_LOOKUP_SIZE_FIELD_NUMBER
public static final int FIRST_AVAILABLE_RANGES_LOOKUP_SIZE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static InternalRange.AllocationOptions getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
InternalRange.AllocationOptions |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static InternalRange.AllocationOptions.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
InternalRange.AllocationOptions.Builder |
|
newBuilder(InternalRange.AllocationOptions prototype)
public static InternalRange.AllocationOptions.Builder newBuilder(InternalRange.AllocationOptions prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
InternalRange.AllocationOptions |
| Returns | |
|---|---|
| Type | Description |
InternalRange.AllocationOptions.Builder |
|
parseDelimitedFrom(InputStream input)
public static InternalRange.AllocationOptions parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
InternalRange.AllocationOptions |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static InternalRange.AllocationOptions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
InternalRange.AllocationOptions |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static InternalRange.AllocationOptions parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
InternalRange.AllocationOptions |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static InternalRange.AllocationOptions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
InternalRange.AllocationOptions |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static InternalRange.AllocationOptions parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
InternalRange.AllocationOptions |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static InternalRange.AllocationOptions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
InternalRange.AllocationOptions |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static InternalRange.AllocationOptions parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
InternalRange.AllocationOptions |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static InternalRange.AllocationOptions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
InternalRange.AllocationOptions |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static InternalRange.AllocationOptions parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
InternalRange.AllocationOptions |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static InternalRange.AllocationOptions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
InternalRange.AllocationOptions |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static InternalRange.AllocationOptions parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
InternalRange.AllocationOptions |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static InternalRange.AllocationOptions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
InternalRange.AllocationOptions |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<InternalRange.AllocationOptions> parser()| Returns | |
|---|---|
| Type | Description |
Parser<AllocationOptions> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getAllocationStrategy()
public InternalRange.AllocationStrategy getAllocationStrategy()Optional. Allocation strategy Not setting this field when the allocation is requested means an implementation defined strategy is used.
.google.cloud.networkconnectivity.v1.InternalRange.AllocationStrategy allocation_strategy = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
InternalRange.AllocationStrategy |
The allocationStrategy. |
getAllocationStrategyValue()
public int getAllocationStrategyValue()Optional. Allocation strategy Not setting this field when the allocation is requested means an implementation defined strategy is used.
.google.cloud.networkconnectivity.v1.InternalRange.AllocationStrategy allocation_strategy = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for allocationStrategy. |
getDefaultInstanceForType()
public InternalRange.AllocationOptions getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
InternalRange.AllocationOptions |
|
getFirstAvailableRangesLookupSize()
public int 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.
int32 first_available_ranges_lookup_size = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The firstAvailableRangesLookupSize. |
getParserForType()
public Parser<InternalRange.AllocationOptions> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<AllocationOptions> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public InternalRange.AllocationOptions.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
InternalRange.AllocationOptions.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected InternalRange.AllocationOptions.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
InternalRange.AllocationOptions.Builder |
|
toBuilder()
public InternalRange.AllocationOptions.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
InternalRange.AllocationOptions.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|