Class V1beta1Extensions.NetworkPolicyPort.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>
    • getDefaultInstanceForType

      public V1beta1Extensions.NetworkPolicyPort getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public V1beta1Extensions.NetworkPolicyPort buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>
    • clearField

      public V1beta1Extensions.NetworkPolicyPort.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>
    • clearOneof

      public V1beta1Extensions.NetworkPolicyPort.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>
    • mergeFrom

      public V1beta1Extensions.NetworkPolicyPort.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface V1beta1Extensions.NetworkPolicyPortOrBuilder
    • getProtocol

      public 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;
      Specified by:
      getProtocol in interface V1beta1Extensions.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 interface V1beta1Extensions.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 interface V1beta1Extensions.NetworkPolicyPortOrBuilder
    • getPort

      public 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;
      Specified by:
      getPort in interface V1beta1Extensions.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

       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

      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;
    • getPortOrBuilder

      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;
      Specified by:
      getPortOrBuilder in interface V1beta1Extensions.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 interface V1beta1Extensions.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 interface V1beta1Extensions.NetworkPolicyPortOrBuilder
    • setEndPort

      public 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;
    • 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 interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>
    • mergeUnknownFields

      public final V1beta1Extensions.NetworkPolicyPort.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPort.Builder>