Send feedback
Class NetworkPolicy.Builder (2.27.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.27.0 keyboard_arrow_down
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.v1.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.v1.NetworkPolicy.Provider provider = 1;
getProviderValue()
public int getProviderValue ()
The selected network policy provider.
.google.container.v1.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.v1.NetworkPolicy.Provider provider = 1;
setProviderValue(int value)
public NetworkPolicy . Builder setProviderValue ( int value )
The selected network policy provider.
.google.container.v1.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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]