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, unknownFields
memoizedSize
memoizedHashCode
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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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 MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public boolean getUseIpAliases()
Whether alias IPs will be used for pod IPs in the cluster.
bool use_ip_aliases = 1;
getUseIpAliases
in interface IPAllocationPolicyOrBuilder
public 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 IPAllocationPolicyOrBuilder
public 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 IPAllocationPolicyOrBuilder
public 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 IPAllocationPolicyOrBuilder
public java.lang.String getClusterIpv4Cidr()
This field is deprecated, use cluster_ipv4_cidr_block.
string cluster_ipv4_cidr = 4;
getClusterIpv4Cidr
in interface IPAllocationPolicyOrBuilder
public ByteString getClusterIpv4CidrBytes()
This field is deprecated, use cluster_ipv4_cidr_block.
string cluster_ipv4_cidr = 4;
getClusterIpv4CidrBytes
in interface IPAllocationPolicyOrBuilder
public java.lang.String getNodeIpv4Cidr()
This field is deprecated, use node_ipv4_cidr_block.
string node_ipv4_cidr = 5;
getNodeIpv4Cidr
in interface IPAllocationPolicyOrBuilder
public ByteString getNodeIpv4CidrBytes()
This field is deprecated, use node_ipv4_cidr_block.
string node_ipv4_cidr = 5;
getNodeIpv4CidrBytes
in interface IPAllocationPolicyOrBuilder
public java.lang.String getServicesIpv4Cidr()
This field is deprecated, use services_ipv4_cidr_block.
string services_ipv4_cidr = 6;
getServicesIpv4Cidr
in interface IPAllocationPolicyOrBuilder
public ByteString getServicesIpv4CidrBytes()
This field is deprecated, use services_ipv4_cidr_block.
string services_ipv4_cidr = 6;
getServicesIpv4CidrBytes
in interface IPAllocationPolicyOrBuilder
public 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 IPAllocationPolicyOrBuilder
public 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 IPAllocationPolicyOrBuilder
public 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 IPAllocationPolicyOrBuilder
public 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 IPAllocationPolicyOrBuilder
public 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 IPAllocationPolicyOrBuilder
public 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 IPAllocationPolicyOrBuilder
public 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 IPAllocationPolicyOrBuilder
public 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 IPAllocationPolicyOrBuilder
public 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 IPAllocationPolicyOrBuilder
public 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 IPAllocationPolicyOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static IPAllocationPolicy parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static IPAllocationPolicy parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static IPAllocationPolicy parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static IPAllocationPolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static IPAllocationPolicy parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static IPAllocationPolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static IPAllocationPolicy parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static IPAllocationPolicy parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static IPAllocationPolicy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static IPAllocationPolicy parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static IPAllocationPolicy parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static IPAllocationPolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public IPAllocationPolicy.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static IPAllocationPolicy.Builder newBuilder()
public static IPAllocationPolicy.Builder newBuilder(IPAllocationPolicy prototype)
public IPAllocationPolicy.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected IPAllocationPolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static IPAllocationPolicy getDefaultInstance()
public static Parser<IPAllocationPolicy> parser()
public Parser<IPAllocationPolicy> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public IPAllocationPolicy getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder