Class MasterAuthorizedNetworksConfig (2.15.0)

public final class MasterAuthorizedNetworksConfig extends GeneratedMessageV3 implements MasterAuthorizedNetworksConfigOrBuilder

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > MasterAuthorizedNetworksConfig

Static Fields

CIDR_BLOCKS_FIELD_NUMBER

public static final int CIDR_BLOCKS_FIELD_NUMBER
Field Value
TypeDescription
int

ENABLED_FIELD_NUMBER

public static final int ENABLED_FIELD_NUMBER
Field Value
TypeDescription
int

GCP_PUBLIC_CIDRS_ACCESS_ENABLED_FIELD_NUMBER

public static final int GCP_PUBLIC_CIDRS_ACCESS_ENABLED_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static MasterAuthorizedNetworksConfig getDefaultInstance()
Returns
TypeDescription
MasterAuthorizedNetworksConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static MasterAuthorizedNetworksConfig.Builder newBuilder()
Returns
TypeDescription
MasterAuthorizedNetworksConfig.Builder

newBuilder(MasterAuthorizedNetworksConfig prototype)

public static MasterAuthorizedNetworksConfig.Builder newBuilder(MasterAuthorizedNetworksConfig prototype)
Parameter
NameDescription
prototypeMasterAuthorizedNetworksConfig
Returns
TypeDescription
MasterAuthorizedNetworksConfig.Builder

parseDelimitedFrom(InputStream input)

public static MasterAuthorizedNetworksConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MasterAuthorizedNetworksConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MasterAuthorizedNetworksConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MasterAuthorizedNetworksConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static MasterAuthorizedNetworksConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
MasterAuthorizedNetworksConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MasterAuthorizedNetworksConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MasterAuthorizedNetworksConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MasterAuthorizedNetworksConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
MasterAuthorizedNetworksConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MasterAuthorizedNetworksConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MasterAuthorizedNetworksConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MasterAuthorizedNetworksConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
MasterAuthorizedNetworksConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MasterAuthorizedNetworksConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MasterAuthorizedNetworksConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static MasterAuthorizedNetworksConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MasterAuthorizedNetworksConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MasterAuthorizedNetworksConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MasterAuthorizedNetworksConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static MasterAuthorizedNetworksConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
MasterAuthorizedNetworksConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MasterAuthorizedNetworksConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MasterAuthorizedNetworksConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<MasterAuthorizedNetworksConfig> parser()
Returns
TypeDescription
Parser<MasterAuthorizedNetworksConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCidrBlocks(int index)

public MasterAuthorizedNetworksConfig.CidrBlock getCidrBlocks(int index)

cidr_blocks define up to 50 external networks that could access Kubernetes master through HTTPS.

repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
MasterAuthorizedNetworksConfig.CidrBlock

getCidrBlocksCount()

public int getCidrBlocksCount()

cidr_blocks define up to 50 external networks that could access Kubernetes master through HTTPS.

repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;

Returns
TypeDescription
int

getCidrBlocksList()

public List<MasterAuthorizedNetworksConfig.CidrBlock> getCidrBlocksList()

cidr_blocks define up to 50 external networks that could access Kubernetes master through HTTPS.

repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;

Returns
TypeDescription
List<CidrBlock>

getCidrBlocksOrBuilder(int index)

public MasterAuthorizedNetworksConfig.CidrBlockOrBuilder getCidrBlocksOrBuilder(int index)

cidr_blocks define up to 50 external networks that could access Kubernetes master through HTTPS.

repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
MasterAuthorizedNetworksConfig.CidrBlockOrBuilder

getCidrBlocksOrBuilderList()

public List<? extends MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> getCidrBlocksOrBuilderList()

cidr_blocks define up to 50 external networks that could access Kubernetes master through HTTPS.

repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;

Returns
TypeDescription
List<? extends com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder>

getDefaultInstanceForType()

public MasterAuthorizedNetworksConfig getDefaultInstanceForType()
Returns
TypeDescription
MasterAuthorizedNetworksConfig

getEnabled()

public boolean getEnabled()

Whether or not master authorized networks is enabled.

bool enabled = 1;

Returns
TypeDescription
boolean

The enabled.

getGcpPublicCidrsAccessEnabled()

public boolean getGcpPublicCidrsAccessEnabled()

Whether master is accessbile via Google Compute Engine Public IP addresses.

optional bool gcp_public_cidrs_access_enabled = 3;

Returns
TypeDescription
boolean

The gcpPublicCidrsAccessEnabled.

getParserForType()

public Parser<MasterAuthorizedNetworksConfig> getParserForType()
Returns
TypeDescription
Parser<MasterAuthorizedNetworksConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasGcpPublicCidrsAccessEnabled()

public boolean hasGcpPublicCidrsAccessEnabled()

Whether master is accessbile via Google Compute Engine Public IP addresses.

optional bool gcp_public_cidrs_access_enabled = 3;

Returns
TypeDescription
boolean

Whether the gcpPublicCidrsAccessEnabled field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public MasterAuthorizedNetworksConfig.Builder newBuilderForType()
Returns
TypeDescription
MasterAuthorizedNetworksConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MasterAuthorizedNetworksConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
MasterAuthorizedNetworksConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public MasterAuthorizedNetworksConfig.Builder toBuilder()
Returns
TypeDescription
MasterAuthorizedNetworksConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException