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, unknownFields
memoizedSize
memoizedHashCode
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 ENABLED_FIELD_NUMBER
public static final int CIDR_BLOCKS_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 getEnabled()
Whether or not master authorized networks is enabled.
bool enabled = 1;
getEnabled
in interface MasterAuthorizedNetworksConfigOrBuilder
public 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 MasterAuthorizedNetworksConfigOrBuilder
public 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 MasterAuthorizedNetworksConfigOrBuilder
public 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 MasterAuthorizedNetworksConfigOrBuilder
public 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 MasterAuthorizedNetworksConfigOrBuilder
public 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 MasterAuthorizedNetworksConfigOrBuilder
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 MasterAuthorizedNetworksConfig parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static MasterAuthorizedNetworksConfig parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static MasterAuthorizedNetworksConfig parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static MasterAuthorizedNetworksConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static MasterAuthorizedNetworksConfig parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static MasterAuthorizedNetworksConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static MasterAuthorizedNetworksConfig parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static MasterAuthorizedNetworksConfig parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static MasterAuthorizedNetworksConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static MasterAuthorizedNetworksConfig parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static MasterAuthorizedNetworksConfig parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static MasterAuthorizedNetworksConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public MasterAuthorizedNetworksConfig.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static MasterAuthorizedNetworksConfig.Builder newBuilder()
public static MasterAuthorizedNetworksConfig.Builder newBuilder(MasterAuthorizedNetworksConfig prototype)
public MasterAuthorizedNetworksConfig.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected MasterAuthorizedNetworksConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static MasterAuthorizedNetworksConfig getDefaultInstance()
public static Parser<MasterAuthorizedNetworksConfig> parser()
public Parser<MasterAuthorizedNetworksConfig> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public MasterAuthorizedNetworksConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder