public final class MasterAuthorizedNetworksConfig extends GeneratedMessageV3 implements MasterAuthorizedNetworksConfigOrBuilder
Master authorized networks is a Beta feature. Configuration options for the master authorized networks feature. Enabled master authorized networks will disallow all external traffic to access Kubernetes master through HTTPS except traffic from the given CIDR blocks, Google Compute Engine Public IPs and Google Prod IPs.Protobuf type
google.container.v1.MasterAuthorizedNetworksConfig| Modifier and Type | Class and Description |
|---|---|
static class |
MasterAuthorizedNetworksConfig.Builder
Master authorized networks is a Beta feature.
|
static class |
MasterAuthorizedNetworksConfig.CidrBlock
CidrBlock contains an optional name and one CIDR block.
|
static interface |
MasterAuthorizedNetworksConfig.CidrBlockOrBuilder |
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 |
CIDR_BLOCKS_FIELD_NUMBER |
static int |
ENABLED_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCodecanUseUnsafe, 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 ENABLED_FIELD_NUMBER
public static final int CIDR_BLOCKS_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 getEnabled()
Whether or not master authorized networks is enabled.
bool enabled = 1;getEnabled in interface MasterAuthorizedNetworksConfigOrBuilderpublic java.util.List<MasterAuthorizedNetworksConfig.CidrBlock> getCidrBlocksList()
cidr_blocks define up to 10 external networks that could access Kubernetes master through HTTPS.
repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;getCidrBlocksList in interface MasterAuthorizedNetworksConfigOrBuilderpublic java.util.List<? extends MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> getCidrBlocksOrBuilderList()
cidr_blocks define up to 10 external networks that could access Kubernetes master through HTTPS.
repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;getCidrBlocksOrBuilderList in interface MasterAuthorizedNetworksConfigOrBuilderpublic int getCidrBlocksCount()
cidr_blocks define up to 10 external networks that could access Kubernetes master through HTTPS.
repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;getCidrBlocksCount in interface MasterAuthorizedNetworksConfigOrBuilderpublic MasterAuthorizedNetworksConfig.CidrBlock getCidrBlocks(int index)
cidr_blocks define up to 10 external networks that could access Kubernetes master through HTTPS.
repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;getCidrBlocks in interface MasterAuthorizedNetworksConfigOrBuilderpublic MasterAuthorizedNetworksConfig.CidrBlockOrBuilder getCidrBlocksOrBuilder(int index)
cidr_blocks define up to 10 external networks that could access Kubernetes master through HTTPS.
repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;getCidrBlocksOrBuilder in interface MasterAuthorizedNetworksConfigOrBuilderpublic 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 MasterAuthorizedNetworksConfig parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static MasterAuthorizedNetworksConfig parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static MasterAuthorizedNetworksConfig parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static MasterAuthorizedNetworksConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static MasterAuthorizedNetworksConfig parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static MasterAuthorizedNetworksConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static MasterAuthorizedNetworksConfig parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static MasterAuthorizedNetworksConfig parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static MasterAuthorizedNetworksConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static MasterAuthorizedNetworksConfig parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static MasterAuthorizedNetworksConfig parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static MasterAuthorizedNetworksConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic MasterAuthorizedNetworksConfig.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static MasterAuthorizedNetworksConfig.Builder newBuilder()
public static MasterAuthorizedNetworksConfig.Builder newBuilder(MasterAuthorizedNetworksConfig prototype)
public MasterAuthorizedNetworksConfig.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected MasterAuthorizedNetworksConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static MasterAuthorizedNetworksConfig getDefaultInstance()
public static Parser<MasterAuthorizedNetworksConfig> parser()
public Parser<MasterAuthorizedNetworksConfig> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public MasterAuthorizedNetworksConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder