public static final class NetworkPolicy.Builder extends GeneratedMessageV3.Builder<NetworkPolicy.Builder> implements NetworkPolicyOrBuilder
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public NetworkPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public NetworkPolicy build()
buildPartial()
public NetworkPolicy buildPartial()
clear()
public NetworkPolicy.Builder clear()
Overrides
clearEnabled()
public NetworkPolicy.Builder clearEnabled()
Whether network policy is enabled on the cluster.
bool enabled = 2;
clearField(Descriptors.FieldDescriptor field)
public NetworkPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public NetworkPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearProvider()
public NetworkPolicy.Builder clearProvider()
The selected network policy provider.
.google.container.v1beta1.NetworkPolicy.Provider provider = 1;
clone()
public NetworkPolicy.Builder clone()
Overrides
getDefaultInstanceForType()
public NetworkPolicy getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getEnabled()
public boolean getEnabled()
Whether network policy is enabled on the cluster.
bool enabled = 2;
Returns |
---|
Type | Description |
boolean | The enabled.
|
getProvider()
public NetworkPolicy.Provider getProvider()
The selected network policy provider.
.google.container.v1beta1.NetworkPolicy.Provider provider = 1;
getProviderValue()
public int getProviderValue()
The selected network policy provider.
.google.container.v1beta1.NetworkPolicy.Provider provider = 1;
Returns |
---|
Type | Description |
int | The enum numeric value on the wire for provider.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(NetworkPolicy other)
public NetworkPolicy.Builder mergeFrom(NetworkPolicy other)
public NetworkPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public NetworkPolicy.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final NetworkPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setEnabled(boolean value)
public NetworkPolicy.Builder setEnabled(boolean value)
Whether network policy is enabled on the cluster.
bool enabled = 2;
Parameter |
---|
Name | Description |
value | boolean
The enabled to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public NetworkPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setProvider(NetworkPolicy.Provider value)
public NetworkPolicy.Builder setProvider(NetworkPolicy.Provider value)
The selected network policy provider.
.google.container.v1beta1.NetworkPolicy.Provider provider = 1;
setProviderValue(int value)
public NetworkPolicy.Builder setProviderValue(int value)
The selected network policy provider.
.google.container.v1beta1.NetworkPolicy.Provider provider = 1;
Parameter |
---|
Name | Description |
value | int
The enum numeric value on the wire for provider to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public NetworkPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final NetworkPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides