public static final class MasterAuthorizedNetworksConfig.Builder extends GeneratedMessageV3.Builder<MasterAuthorizedNetworksConfig.Builder> 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.v1beta1.MasterAuthorizedNetworksConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllCidrBlocks(Iterable<? extends MasterAuthorizedNetworksConfig.CidrBlock> values)
public MasterAuthorizedNetworksConfig.Builder addAllCidrBlocks(Iterable<? extends MasterAuthorizedNetworksConfig.CidrBlock> values)
cidr_blocks define up to 10 external networks that could access
Kubernetes master through HTTPS.
repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock>
|
addCidrBlocks(MasterAuthorizedNetworksConfig.CidrBlock value)
public MasterAuthorizedNetworksConfig.Builder addCidrBlocks(MasterAuthorizedNetworksConfig.CidrBlock value)
cidr_blocks define up to 10 external networks that could access
Kubernetes master through HTTPS.
repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;
addCidrBlocks(MasterAuthorizedNetworksConfig.CidrBlock.Builder builderForValue)
public MasterAuthorizedNetworksConfig.Builder addCidrBlocks(MasterAuthorizedNetworksConfig.CidrBlock.Builder builderForValue)
cidr_blocks define up to 10 external networks that could access
Kubernetes master through HTTPS.
repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;
addCidrBlocks(int index, MasterAuthorizedNetworksConfig.CidrBlock value)
public MasterAuthorizedNetworksConfig.Builder addCidrBlocks(int index, MasterAuthorizedNetworksConfig.CidrBlock value)
cidr_blocks define up to 10 external networks that could access
Kubernetes master through HTTPS.
repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;
addCidrBlocks(int index, MasterAuthorizedNetworksConfig.CidrBlock.Builder builderForValue)
public MasterAuthorizedNetworksConfig.Builder addCidrBlocks(int index, MasterAuthorizedNetworksConfig.CidrBlock.Builder builderForValue)
cidr_blocks define up to 10 external networks that could access
Kubernetes master through HTTPS.
repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;
addCidrBlocksBuilder()
public MasterAuthorizedNetworksConfig.CidrBlock.Builder addCidrBlocksBuilder()
cidr_blocks define up to 10 external networks that could access
Kubernetes master through HTTPS.
repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;
addCidrBlocksBuilder(int index)
public MasterAuthorizedNetworksConfig.CidrBlock.Builder addCidrBlocksBuilder(int index)
cidr_blocks define up to 10 external networks that could access
Kubernetes master through HTTPS.
repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;
Parameter |
---|
Name | Description |
index | int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MasterAuthorizedNetworksConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public MasterAuthorizedNetworksConfig build()
buildPartial()
public MasterAuthorizedNetworksConfig buildPartial()
clear()
public MasterAuthorizedNetworksConfig.Builder clear()
Overrides
clearCidrBlocks()
public MasterAuthorizedNetworksConfig.Builder clearCidrBlocks()
cidr_blocks define up to 10 external networks that could access
Kubernetes master through HTTPS.
repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;
clearEnabled()
public MasterAuthorizedNetworksConfig.Builder clearEnabled()
Whether or not master authorized networks is enabled.
bool enabled = 1;
clearField(Descriptors.FieldDescriptor field)
public MasterAuthorizedNetworksConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearGcpPublicCidrsAccessEnabled()
public MasterAuthorizedNetworksConfig.Builder clearGcpPublicCidrsAccessEnabled()
Whether master is accessbile via Google Compute Engine Public IP addresses.
optional bool gcp_public_cidrs_access_enabled = 3;
clearOneof(Descriptors.OneofDescriptor oneof)
public MasterAuthorizedNetworksConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public MasterAuthorizedNetworksConfig.Builder clone()
Overrides
getCidrBlocks(int index)
public MasterAuthorizedNetworksConfig.CidrBlock getCidrBlocks(int index)
cidr_blocks define up to 10 external networks that could access
Kubernetes master through HTTPS.
repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;
Parameter |
---|
Name | Description |
index | int
|
getCidrBlocksBuilder(int index)
public MasterAuthorizedNetworksConfig.CidrBlock.Builder getCidrBlocksBuilder(int index)
cidr_blocks define up to 10 external networks that could access
Kubernetes master through HTTPS.
repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;
Parameter |
---|
Name | Description |
index | int
|
getCidrBlocksBuilderList()
public List<MasterAuthorizedNetworksConfig.CidrBlock.Builder> getCidrBlocksBuilderList()
cidr_blocks define up to 10 external networks that could access
Kubernetes master through HTTPS.
repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;
getCidrBlocksCount()
public int getCidrBlocksCount()
cidr_blocks define up to 10 external networks that could access
Kubernetes master through HTTPS.
repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;
Returns |
---|
Type | Description |
int | |
getCidrBlocksList()
public List<MasterAuthorizedNetworksConfig.CidrBlock> getCidrBlocksList()
cidr_blocks define up to 10 external networks that could access
Kubernetes master through HTTPS.
repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;
getCidrBlocksOrBuilder(int index)
public MasterAuthorizedNetworksConfig.CidrBlockOrBuilder getCidrBlocksOrBuilder(int index)
cidr_blocks define up to 10 external networks that could access
Kubernetes master through HTTPS.
repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;
Parameter |
---|
Name | Description |
index | int
|
getCidrBlocksOrBuilderList()
public List<? extends MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> getCidrBlocksOrBuilderList()
cidr_blocks define up to 10 external networks that could access
Kubernetes master through HTTPS.
repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;
Returns |
---|
Type | Description |
List<? extends com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> | |
getDefaultInstanceForType()
public MasterAuthorizedNetworksConfig getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getEnabled()
public boolean getEnabled()
Whether or not master authorized networks is enabled.
bool enabled = 1;
Returns |
---|
Type | Description |
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 |
---|
Type | Description |
boolean | The gcpPublicCidrsAccessEnabled.
|
hasGcpPublicCidrsAccessEnabled()
public boolean hasGcpPublicCidrsAccessEnabled()
Whether master is accessbile via Google Compute Engine Public IP addresses.
optional bool gcp_public_cidrs_access_enabled = 3;
Returns |
---|
Type | Description |
boolean | Whether the gcpPublicCidrsAccessEnabled field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(MasterAuthorizedNetworksConfig other)
public MasterAuthorizedNetworksConfig.Builder mergeFrom(MasterAuthorizedNetworksConfig other)
public MasterAuthorizedNetworksConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public MasterAuthorizedNetworksConfig.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MasterAuthorizedNetworksConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeCidrBlocks(int index)
public MasterAuthorizedNetworksConfig.Builder removeCidrBlocks(int index)
cidr_blocks define up to 10 external networks that could access
Kubernetes master through HTTPS.
repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;
Parameter |
---|
Name | Description |
index | int
|
setCidrBlocks(int index, MasterAuthorizedNetworksConfig.CidrBlock value)
public MasterAuthorizedNetworksConfig.Builder setCidrBlocks(int index, MasterAuthorizedNetworksConfig.CidrBlock value)
cidr_blocks define up to 10 external networks that could access
Kubernetes master through HTTPS.
repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;
setCidrBlocks(int index, MasterAuthorizedNetworksConfig.CidrBlock.Builder builderForValue)
public MasterAuthorizedNetworksConfig.Builder setCidrBlocks(int index, MasterAuthorizedNetworksConfig.CidrBlock.Builder builderForValue)
cidr_blocks define up to 10 external networks that could access
Kubernetes master through HTTPS.
repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;
setEnabled(boolean value)
public MasterAuthorizedNetworksConfig.Builder setEnabled(boolean value)
Whether or not master authorized networks is enabled.
bool enabled = 1;
Parameter |
---|
Name | Description |
value | boolean
The enabled to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public MasterAuthorizedNetworksConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setGcpPublicCidrsAccessEnabled(boolean value)
public MasterAuthorizedNetworksConfig.Builder setGcpPublicCidrsAccessEnabled(boolean value)
Whether master is accessbile via Google Compute Engine Public IP addresses.
optional bool gcp_public_cidrs_access_enabled = 3;
Parameter |
---|
Name | Description |
value | boolean
The gcpPublicCidrsAccessEnabled to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MasterAuthorizedNetworksConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final MasterAuthorizedNetworksConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides