Package io.kubernetes.client.proto
Class V1beta1Extensions.NetworkPolicyPort.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>
io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyPort.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,V1beta1Extensions.NetworkPolicyPortOrBuilder
,Cloneable
- Enclosing class:
- V1beta1Extensions.NetworkPolicyPort
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
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by the policy.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) The port on the given protocol.Optional.clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
int
If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by the policy.getPort()
The port on the given protocol.The port on the given protocol.The port on the given protocol.Optional.com.google.protobuf.ByteString
Optional.boolean
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
Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergePort
(IntStr.IntOrString value) The port on the given protocol.mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setEndPort
(int value) If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by the policy.setPort
(IntStr.IntOrString value) The port on the given protocol.setPort
(IntStr.IntOrString.Builder builderForValue) The port on the given protocol.setProtocol
(String value) Optional.setProtocolBytes
(com.google.protobuf.ByteString value) Optional.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>
-
setField
public V1beta1Extensions.NetworkPolicyPort.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>
-
clearField
public V1beta1Extensions.NetworkPolicyPort.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>
-
clearOneof
public V1beta1Extensions.NetworkPolicyPort.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>
-
setRepeatedField
public V1beta1Extensions.NetworkPolicyPort.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>
-
addRepeatedField
public V1beta1Extensions.NetworkPolicyPort.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>
-
mergeFrom
public V1beta1Extensions.NetworkPolicyPort.Builder mergeFrom(V1beta1Extensions.NetworkPolicyPort other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>
-
mergeFrom
public V1beta1Extensions.NetworkPolicyPort.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>
- Throws:
IOException
-
hasProtocol
public 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;
- Specified by:
hasProtocol
in interfaceV1beta1Extensions.NetworkPolicyPortOrBuilder
-
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;
- Specified by:
getProtocol
in interfaceV1beta1Extensions.NetworkPolicyPortOrBuilder
-
getProtocolBytes
public 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;
- Specified by:
getProtocolBytes
in interfaceV1beta1Extensions.NetworkPolicyPortOrBuilder
-
setProtocol
Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. +optional
optional string protocol = 1;
-
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;
-
setProtocolBytes
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;
-
hasPort
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;
- Specified by:
hasPort
in interfaceV1beta1Extensions.NetworkPolicyPortOrBuilder
-
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;
- Specified by:
getPort
in interfaceV1beta1Extensions.NetworkPolicyPortOrBuilder
-
setPort
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;
-
setPort
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;
-
mergePort
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;
-
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;
-
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;
-
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;
- Specified by:
getPortOrBuilder
in interfaceV1beta1Extensions.NetworkPolicyPortOrBuilder
-
hasEndPort
public 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;
- Specified by:
hasEndPort
in interfaceV1beta1Extensions.NetworkPolicyPortOrBuilder
-
getEndPort
public 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;
- Specified by:
getEndPort
in interfaceV1beta1Extensions.NetworkPolicyPortOrBuilder
-
setEndPort
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;
-
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;
-
setUnknownFields
public final V1beta1Extensions.NetworkPolicyPort.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>
-
mergeUnknownFields
public final V1beta1Extensions.NetworkPolicyPort.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>
-