public final class IPAllocationPolicy extends GeneratedMessageV3 implements IPAllocationPolicyOrBuilder
Configuration for controlling how IPs are allocated in the cluster.Protobuf type
google.container.v1.IPAllocationPolicy| Modifier and Type | Class and Description |
|---|---|
static class |
IPAllocationPolicy.Builder
Configuration for controlling how IPs are allocated in the cluster.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
CLUSTER_IPV4_CIDR_BLOCK_FIELD_NUMBER |
static int |
CLUSTER_IPV4_CIDR_FIELD_NUMBER |
static int |
CLUSTER_SECONDARY_RANGE_NAME_FIELD_NUMBER |
static int |
CREATE_SUBNETWORK_FIELD_NUMBER |
static int |
NODE_IPV4_CIDR_BLOCK_FIELD_NUMBER |
static int |
NODE_IPV4_CIDR_FIELD_NUMBER |
static int |
SERVICES_IPV4_CIDR_BLOCK_FIELD_NUMBER |
static int |
SERVICES_IPV4_CIDR_FIELD_NUMBER |
static int |
SERVICES_SECONDARY_RANGE_NAME_FIELD_NUMBER |
static int |
SUBNETWORK_NAME_FIELD_NUMBER |
static int |
USE_IP_ALIASES_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClusterIpv4Cidr()
This field is deprecated, use cluster_ipv4_cidr_block.
|
java.lang.String |
getClusterIpv4CidrBlock()
The IP address range for the cluster pod IPs.
|
ByteString |
getClusterIpv4CidrBlockBytes()
The IP address range for the cluster pod IPs.
|
ByteString |
getClusterIpv4CidrBytes()
This field is deprecated, use cluster_ipv4_cidr_block.
|
java.lang.String |
getClusterSecondaryRangeName()
The name of the secondary range to be used for the cluster CIDR
block.
|
ByteString |
getClusterSecondaryRangeNameBytes()
The name of the secondary range to be used for the cluster CIDR
block.
|
boolean |
getCreateSubnetwork()
Whether a new subnetwork will be created automatically for the cluster.
|
static IPAllocationPolicy |
getDefaultInstance() |
IPAllocationPolicy |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getNodeIpv4Cidr()
This field is deprecated, use node_ipv4_cidr_block.
|
java.lang.String |
getNodeIpv4CidrBlock()
The IP address range of the instance IPs in this cluster.
|
ByteString |
getNodeIpv4CidrBlockBytes()
The IP address range of the instance IPs in this cluster.
|
ByteString |
getNodeIpv4CidrBytes()
This field is deprecated, use node_ipv4_cidr_block.
|
Parser<IPAllocationPolicy> |
getParserForType() |
int |
getSerializedSize() |
java.lang.String |
getServicesIpv4Cidr()
This field is deprecated, use services_ipv4_cidr_block.
|
java.lang.String |
getServicesIpv4CidrBlock()
The IP address range of the services IPs in this cluster.
|
ByteString |
getServicesIpv4CidrBlockBytes()
The IP address range of the services IPs in this cluster.
|
ByteString |
getServicesIpv4CidrBytes()
This field is deprecated, use services_ipv4_cidr_block.
|
java.lang.String |
getServicesSecondaryRangeName()
The name of the secondary range to be used as for the services
CIDR block.
|
ByteString |
getServicesSecondaryRangeNameBytes()
The name of the secondary range to be used as for the services
CIDR block.
|
java.lang.String |
getSubnetworkName()
A custom subnetwork name to be used if `create_subnetwork` is true.
|
ByteString |
getSubnetworkNameBytes()
A custom subnetwork name to be used if `create_subnetwork` is true.
|
UnknownFieldSet |
getUnknownFields() |
boolean |
getUseIpAliases()
Whether alias IPs will be used for pod IPs in the cluster.
|
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static IPAllocationPolicy.Builder |
newBuilder() |
static IPAllocationPolicy.Builder |
newBuilder(IPAllocationPolicy prototype) |
IPAllocationPolicy.Builder |
newBuilderForType() |
protected IPAllocationPolicy.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static IPAllocationPolicy |
parseDelimitedFrom(java.io.InputStream input) |
static IPAllocationPolicy |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static IPAllocationPolicy |
parseFrom(byte[] data) |
static IPAllocationPolicy |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static IPAllocationPolicy |
parseFrom(java.nio.ByteBuffer data) |
static IPAllocationPolicy |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static IPAllocationPolicy |
parseFrom(ByteString data) |
static IPAllocationPolicy |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static IPAllocationPolicy |
parseFrom(CodedInputStream input) |
static IPAllocationPolicy |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static IPAllocationPolicy |
parseFrom(java.io.InputStream input) |
static IPAllocationPolicy |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<IPAllocationPolicy> |
parser() |
IPAllocationPolicy.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int USE_IP_ALIASES_FIELD_NUMBER
public static final int CREATE_SUBNETWORK_FIELD_NUMBER
public static final int SUBNETWORK_NAME_FIELD_NUMBER
public static final int CLUSTER_IPV4_CIDR_FIELD_NUMBER
public static final int NODE_IPV4_CIDR_FIELD_NUMBER
public static final int SERVICES_IPV4_CIDR_FIELD_NUMBER
public static final int CLUSTER_SECONDARY_RANGE_NAME_FIELD_NUMBER
public static final int SERVICES_SECONDARY_RANGE_NAME_FIELD_NUMBER
public static final int CLUSTER_IPV4_CIDR_BLOCK_FIELD_NUMBER
public static final int NODE_IPV4_CIDR_BLOCK_FIELD_NUMBER
public static final int SERVICES_IPV4_CIDR_BLOCK_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public boolean getUseIpAliases()
Whether alias IPs will be used for pod IPs in the cluster.
bool use_ip_aliases = 1;getUseIpAliases in interface IPAllocationPolicyOrBuilderpublic boolean getCreateSubnetwork()
Whether a new subnetwork will be created automatically for the cluster. This field is only applicable when `use_ip_aliases` is true.
bool create_subnetwork = 2;getCreateSubnetwork in interface IPAllocationPolicyOrBuilderpublic java.lang.String getSubnetworkName()
A custom subnetwork name to be used if `create_subnetwork` is true. If this field is empty, then an automatic name will be chosen for the new subnetwork.
string subnetwork_name = 3;getSubnetworkName in interface IPAllocationPolicyOrBuilderpublic ByteString getSubnetworkNameBytes()
A custom subnetwork name to be used if `create_subnetwork` is true. If this field is empty, then an automatic name will be chosen for the new subnetwork.
string subnetwork_name = 3;getSubnetworkNameBytes in interface IPAllocationPolicyOrBuilderpublic java.lang.String getClusterIpv4Cidr()
This field is deprecated, use cluster_ipv4_cidr_block.
string cluster_ipv4_cidr = 4;getClusterIpv4Cidr in interface IPAllocationPolicyOrBuilderpublic ByteString getClusterIpv4CidrBytes()
This field is deprecated, use cluster_ipv4_cidr_block.
string cluster_ipv4_cidr = 4;getClusterIpv4CidrBytes in interface IPAllocationPolicyOrBuilderpublic java.lang.String getNodeIpv4Cidr()
This field is deprecated, use node_ipv4_cidr_block.
string node_ipv4_cidr = 5;getNodeIpv4Cidr in interface IPAllocationPolicyOrBuilderpublic ByteString getNodeIpv4CidrBytes()
This field is deprecated, use node_ipv4_cidr_block.
string node_ipv4_cidr = 5;getNodeIpv4CidrBytes in interface IPAllocationPolicyOrBuilderpublic java.lang.String getServicesIpv4Cidr()
This field is deprecated, use services_ipv4_cidr_block.
string services_ipv4_cidr = 6;getServicesIpv4Cidr in interface IPAllocationPolicyOrBuilderpublic ByteString getServicesIpv4CidrBytes()
This field is deprecated, use services_ipv4_cidr_block.
string services_ipv4_cidr = 6;getServicesIpv4CidrBytes in interface IPAllocationPolicyOrBuilderpublic java.lang.String getClusterSecondaryRangeName()
The name of the secondary range to be used for the cluster CIDR block. The secondary range will be used for pod IP addresses. This must be an existing secondary range associated with the cluster subnetwork. This field is only applicable with use_ip_aliases is true and create_subnetwork is false.
string cluster_secondary_range_name = 7;getClusterSecondaryRangeName in interface IPAllocationPolicyOrBuilderpublic ByteString getClusterSecondaryRangeNameBytes()
The name of the secondary range to be used for the cluster CIDR block. The secondary range will be used for pod IP addresses. This must be an existing secondary range associated with the cluster subnetwork. This field is only applicable with use_ip_aliases is true and create_subnetwork is false.
string cluster_secondary_range_name = 7;getClusterSecondaryRangeNameBytes in interface IPAllocationPolicyOrBuilderpublic java.lang.String getServicesSecondaryRangeName()
The name of the secondary range to be used as for the services CIDR block. The secondary range will be used for service ClusterIPs. This must be an existing secondary range associated with the cluster subnetwork. This field is only applicable with use_ip_aliases is true and create_subnetwork is false.
string services_secondary_range_name = 8;getServicesSecondaryRangeName in interface IPAllocationPolicyOrBuilderpublic ByteString getServicesSecondaryRangeNameBytes()
The name of the secondary range to be used as for the services CIDR block. The secondary range will be used for service ClusterIPs. This must be an existing secondary range associated with the cluster subnetwork. This field is only applicable with use_ip_aliases is true and create_subnetwork is false.
string services_secondary_range_name = 8;getServicesSecondaryRangeNameBytes in interface IPAllocationPolicyOrBuilderpublic java.lang.String getClusterIpv4CidrBlock()
The IP address range for the cluster pod IPs. If this field is set, then `cluster.cluster_ipv4_cidr` must be left blank. This field is only applicable when `use_ip_aliases` is true. Set to blank to have a range chosen with the default size. Set to /netmask (e.g. `/14`) to have a range chosen with a specific netmask. Set to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range to use.
string cluster_ipv4_cidr_block = 9;getClusterIpv4CidrBlock in interface IPAllocationPolicyOrBuilderpublic ByteString getClusterIpv4CidrBlockBytes()
The IP address range for the cluster pod IPs. If this field is set, then `cluster.cluster_ipv4_cidr` must be left blank. This field is only applicable when `use_ip_aliases` is true. Set to blank to have a range chosen with the default size. Set to /netmask (e.g. `/14`) to have a range chosen with a specific netmask. Set to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range to use.
string cluster_ipv4_cidr_block = 9;getClusterIpv4CidrBlockBytes in interface IPAllocationPolicyOrBuilderpublic java.lang.String getNodeIpv4CidrBlock()
The IP address range of the instance IPs in this cluster. This is applicable only if `create_subnetwork` is true. Set to blank to have a range chosen with the default size. Set to /netmask (e.g. `/14`) to have a range chosen with a specific netmask. Set to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range to use.
string node_ipv4_cidr_block = 10;getNodeIpv4CidrBlock in interface IPAllocationPolicyOrBuilderpublic ByteString getNodeIpv4CidrBlockBytes()
The IP address range of the instance IPs in this cluster. This is applicable only if `create_subnetwork` is true. Set to blank to have a range chosen with the default size. Set to /netmask (e.g. `/14`) to have a range chosen with a specific netmask. Set to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range to use.
string node_ipv4_cidr_block = 10;getNodeIpv4CidrBlockBytes in interface IPAllocationPolicyOrBuilderpublic java.lang.String getServicesIpv4CidrBlock()
The IP address range of the services IPs in this cluster. If blank, a range will be automatically chosen with the default size. This field is only applicable when `use_ip_aliases` is true. Set to blank to have a range chosen with the default size. Set to /netmask (e.g. `/14`) to have a range chosen with a specific netmask. Set to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range to use.
string services_ipv4_cidr_block = 11;getServicesIpv4CidrBlock in interface IPAllocationPolicyOrBuilderpublic ByteString getServicesIpv4CidrBlockBytes()
The IP address range of the services IPs in this cluster. If blank, a range will be automatically chosen with the default size. This field is only applicable when `use_ip_aliases` is true. Set to blank to have a range chosen with the default size. Set to /netmask (e.g. `/14`) to have a range chosen with a specific netmask. Set to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range to use.
string services_ipv4_cidr_block = 11;getServicesIpv4CidrBlockBytes in interface IPAllocationPolicyOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static IPAllocationPolicy parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static IPAllocationPolicy parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static IPAllocationPolicy parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static IPAllocationPolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static IPAllocationPolicy parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static IPAllocationPolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static IPAllocationPolicy parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static IPAllocationPolicy parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static IPAllocationPolicy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static IPAllocationPolicy parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static IPAllocationPolicy parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static IPAllocationPolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic IPAllocationPolicy.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static IPAllocationPolicy.Builder newBuilder()
public static IPAllocationPolicy.Builder newBuilder(IPAllocationPolicy prototype)
public IPAllocationPolicy.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected IPAllocationPolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static IPAllocationPolicy getDefaultInstance()
public static Parser<IPAllocationPolicy> parser()
public Parser<IPAllocationPolicy> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public IPAllocationPolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder