public static final class V1beta1Extensions.NetworkPolicyPort.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder> implements V1beta1Extensions.NetworkPolicyPortOrBuilder
DEPRECATED 1.9 - This group version of NetworkPolicyPort is deprecated by networking/v1/NetworkPolicyPort.Protobuf type
k8s.io.api.extensions.v1beta1.NetworkPolicyPort| Modifier and Type | Method and Description |
|---|---|
V1beta1Extensions.NetworkPolicyPort.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1beta1Extensions.NetworkPolicyPort |
build() |
V1beta1Extensions.NetworkPolicyPort |
buildPartial() |
V1beta1Extensions.NetworkPolicyPort.Builder |
clear() |
V1beta1Extensions.NetworkPolicyPort.Builder |
clearEndPort()
If set, indicates that the range of ports from port to endPort, inclusive,
should be allowed by the policy.
|
V1beta1Extensions.NetworkPolicyPort.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V1beta1Extensions.NetworkPolicyPort.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1beta1Extensions.NetworkPolicyPort.Builder |
clearPort()
The port on the given protocol.
|
V1beta1Extensions.NetworkPolicyPort.Builder |
clearProtocol()
Optional.
|
V1beta1Extensions.NetworkPolicyPort.Builder |
clone() |
V1beta1Extensions.NetworkPolicyPort |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getEndPort()
If set, indicates that the range of ports from port to endPort, inclusive,
should be allowed by the policy.
|
IntStr.IntOrString |
getPort()
The port on the given protocol.
|
IntStr.IntOrString.Builder |
getPortBuilder()
The port on the given protocol.
|
IntStr.IntOrStringOrBuilder |
getPortOrBuilder()
The port on the given protocol.
|
String |
getProtocol()
Optional.
|
com.google.protobuf.ByteString |
getProtocolBytes()
Optional.
|
boolean |
hasEndPort()
If set, indicates that the range of ports from port to endPort, inclusive,
should be allowed by the policy.
|
boolean |
hasPort()
The port on the given protocol.
|
boolean |
hasProtocol()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
V1beta1Extensions.NetworkPolicyPort.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1beta1Extensions.NetworkPolicyPort.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1beta1Extensions.NetworkPolicyPort.Builder |
mergeFrom(V1beta1Extensions.NetworkPolicyPort other) |
V1beta1Extensions.NetworkPolicyPort.Builder |
mergePort(IntStr.IntOrString value)
The port on the given protocol.
|
V1beta1Extensions.NetworkPolicyPort.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1beta1Extensions.NetworkPolicyPort.Builder |
setEndPort(int value)
If set, indicates that the range of ports from port to endPort, inclusive,
should be allowed by the policy.
|
V1beta1Extensions.NetworkPolicyPort.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1beta1Extensions.NetworkPolicyPort.Builder |
setPort(IntStr.IntOrString.Builder builderForValue)
The port on the given protocol.
|
V1beta1Extensions.NetworkPolicyPort.Builder |
setPort(IntStr.IntOrString value)
The port on the given protocol.
|
V1beta1Extensions.NetworkPolicyPort.Builder |
setProtocol(String value)
Optional.
|
V1beta1Extensions.NetworkPolicyPort.Builder |
setProtocolBytes(com.google.protobuf.ByteString value)
Optional.
|
V1beta1Extensions.NetworkPolicyPort.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1beta1Extensions.NetworkPolicyPort.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>public V1beta1Extensions.NetworkPolicyPort.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>public V1beta1Extensions.NetworkPolicyPort getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V1beta1Extensions.NetworkPolicyPort build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V1beta1Extensions.NetworkPolicyPort buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V1beta1Extensions.NetworkPolicyPort.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>public V1beta1Extensions.NetworkPolicyPort.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>public V1beta1Extensions.NetworkPolicyPort.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>public V1beta1Extensions.NetworkPolicyPort.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>public V1beta1Extensions.NetworkPolicyPort.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>public V1beta1Extensions.NetworkPolicyPort.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>public V1beta1Extensions.NetworkPolicyPort.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>public V1beta1Extensions.NetworkPolicyPort.Builder mergeFrom(V1beta1Extensions.NetworkPolicyPort other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>public V1beta1Extensions.NetworkPolicyPort.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>IOExceptionpublic boolean hasProtocol()
Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. +optional
optional string protocol = 1;hasProtocol in interface V1beta1Extensions.NetworkPolicyPortOrBuilderpublic String getProtocol()
Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. +optional
optional string protocol = 1;getProtocol in interface V1beta1Extensions.NetworkPolicyPortOrBuilderpublic com.google.protobuf.ByteString getProtocolBytes()
Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. +optional
optional string protocol = 1;getProtocolBytes in interface V1beta1Extensions.NetworkPolicyPortOrBuilderpublic V1beta1Extensions.NetworkPolicyPort.Builder setProtocol(String value)
Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. +optional
optional string protocol = 1;public V1beta1Extensions.NetworkPolicyPort.Builder clearProtocol()
Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. +optional
optional string protocol = 1;public V1beta1Extensions.NetworkPolicyPort.Builder setProtocolBytes(com.google.protobuf.ByteString value)
Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. +optional
optional string protocol = 1;public boolean hasPort()
The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. +optional
optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;hasPort in interface V1beta1Extensions.NetworkPolicyPortOrBuilderpublic IntStr.IntOrString getPort()
The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. +optional
optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;getPort in interface V1beta1Extensions.NetworkPolicyPortOrBuilderpublic V1beta1Extensions.NetworkPolicyPort.Builder setPort(IntStr.IntOrString value)
The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. +optional
optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;public V1beta1Extensions.NetworkPolicyPort.Builder setPort(IntStr.IntOrString.Builder builderForValue)
The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. +optional
optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;public V1beta1Extensions.NetworkPolicyPort.Builder mergePort(IntStr.IntOrString value)
The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. +optional
optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;public V1beta1Extensions.NetworkPolicyPort.Builder clearPort()
The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. +optional
optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;public IntStr.IntOrString.Builder getPortBuilder()
The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. +optional
optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;public IntStr.IntOrStringOrBuilder getPortOrBuilder()
The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. +optional
optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;getPortOrBuilder in interface V1beta1Extensions.NetworkPolicyPortOrBuilderpublic boolean hasEndPort()
If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port. This feature is in Beta state and is enabled by default. It can be disabled using the Feature Gate "NetworkPolicyEndPort". +optional
optional int32 endPort = 3;hasEndPort in interface V1beta1Extensions.NetworkPolicyPortOrBuilderpublic int getEndPort()
If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port. This feature is in Beta state and is enabled by default. It can be disabled using the Feature Gate "NetworkPolicyEndPort". +optional
optional int32 endPort = 3;getEndPort in interface V1beta1Extensions.NetworkPolicyPortOrBuilderpublic V1beta1Extensions.NetworkPolicyPort.Builder setEndPort(int value)
If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port. This feature is in Beta state and is enabled by default. It can be disabled using the Feature Gate "NetworkPolicyEndPort". +optional
optional int32 endPort = 3;public V1beta1Extensions.NetworkPolicyPort.Builder clearEndPort()
If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port. This feature is in Beta state and is enabled by default. It can be disabled using the Feature Gate "NetworkPolicyEndPort". +optional
optional int32 endPort = 3;public final V1beta1Extensions.NetworkPolicyPort.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>public final V1beta1Extensions.NetworkPolicyPort.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>Copyright © 2023. All rights reserved.