public static final class V1Networking.NetworkPolicyPort.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPort.Builder> implements V1Networking.NetworkPolicyPortOrBuilder
NetworkPolicyPort describes a port to allow traffic onProtobuf type
k8s.io.api.networking.v1.NetworkPolicyPort| Modifier and Type | Method and Description |
|---|---|
V1Networking.NetworkPolicyPort.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1Networking.NetworkPolicyPort |
build() |
V1Networking.NetworkPolicyPort |
buildPartial() |
V1Networking.NetworkPolicyPort.Builder |
clear() |
V1Networking.NetworkPolicyPort.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V1Networking.NetworkPolicyPort.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1Networking.NetworkPolicyPort.Builder |
clearPort()
The port on the given protocol.
|
V1Networking.NetworkPolicyPort.Builder |
clearProtocol()
The protocol (TCP, UDP, or SCTP) which traffic must match.
|
V1Networking.NetworkPolicyPort.Builder |
clone() |
V1Networking.NetworkPolicyPort |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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()
The protocol (TCP, UDP, or SCTP) which traffic must match.
|
com.google.protobuf.ByteString |
getProtocolBytes()
The protocol (TCP, UDP, or SCTP) which traffic must match.
|
boolean |
hasPort()
The port on the given protocol.
|
boolean |
hasProtocol()
The protocol (TCP, UDP, or SCTP) which traffic must match.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
V1Networking.NetworkPolicyPort.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1Networking.NetworkPolicyPort.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1Networking.NetworkPolicyPort.Builder |
mergeFrom(V1Networking.NetworkPolicyPort other) |
V1Networking.NetworkPolicyPort.Builder |
mergePort(IntStr.IntOrString value)
The port on the given protocol.
|
V1Networking.NetworkPolicyPort.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1Networking.NetworkPolicyPort.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1Networking.NetworkPolicyPort.Builder |
setPort(IntStr.IntOrString.Builder builderForValue)
The port on the given protocol.
|
V1Networking.NetworkPolicyPort.Builder |
setPort(IntStr.IntOrString value)
The port on the given protocol.
|
V1Networking.NetworkPolicyPort.Builder |
setProtocol(String value)
The protocol (TCP, UDP, or SCTP) which traffic must match.
|
V1Networking.NetworkPolicyPort.Builder |
setProtocolBytes(com.google.protobuf.ByteString value)
The protocol (TCP, UDP, or SCTP) which traffic must match.
|
V1Networking.NetworkPolicyPort.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1Networking.NetworkPolicyPort.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPort.Builder>public V1Networking.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<V1Networking.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<V1Networking.NetworkPolicyPort.Builder>public V1Networking.NetworkPolicyPort getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V1Networking.NetworkPolicyPort build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V1Networking.NetworkPolicyPort buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V1Networking.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<V1Networking.NetworkPolicyPort.Builder>public V1Networking.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<V1Networking.NetworkPolicyPort.Builder>public V1Networking.NetworkPolicyPort.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPort.Builder>public V1Networking.NetworkPolicyPort.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPort.Builder>public V1Networking.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<V1Networking.NetworkPolicyPort.Builder>public V1Networking.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<V1Networking.NetworkPolicyPort.Builder>public V1Networking.NetworkPolicyPort.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1Networking.NetworkPolicyPort.Builder>public V1Networking.NetworkPolicyPort.Builder mergeFrom(V1Networking.NetworkPolicyPort other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPort.Builder>public V1Networking.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<V1Networking.NetworkPolicyPort.Builder>IOExceptionpublic boolean hasProtocol()
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 V1Networking.NetworkPolicyPortOrBuilderpublic String getProtocol()
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 V1Networking.NetworkPolicyPortOrBuilderpublic com.google.protobuf.ByteString getProtocolBytes()
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 V1Networking.NetworkPolicyPortOrBuilderpublic V1Networking.NetworkPolicyPort.Builder setProtocol(String value)
The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. +optional
optional string protocol = 1;public V1Networking.NetworkPolicyPort.Builder clearProtocol()
The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. +optional
optional string protocol = 1;public V1Networking.NetworkPolicyPort.Builder setProtocolBytes(com.google.protobuf.ByteString value)
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. +optional
optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;hasPort in interface V1Networking.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. +optional
optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;getPort in interface V1Networking.NetworkPolicyPortOrBuilderpublic V1Networking.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. +optional
optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;public V1Networking.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. +optional
optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;public V1Networking.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. +optional
optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;public V1Networking.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. +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. +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. +optional
optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;getPortOrBuilder in interface V1Networking.NetworkPolicyPortOrBuilderpublic final V1Networking.NetworkPolicyPort.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPort.Builder>public final V1Networking.NetworkPolicyPort.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPort.Builder>Copyright © 2019. All rights reserved.