Class V1.EndpointPort.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1.EndpointPort.Builder>
io.kubernetes.client.proto.V1.EndpointPort.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1.EndpointPortOrBuilder, Cloneable
Enclosing class:
V1.EndpointPort

public static final class V1.EndpointPort.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.EndpointPort.Builder> implements V1.EndpointPortOrBuilder
 EndpointPort is a tuple that describes a single port.
 +structType=atomic
 
Protobuf type k8s.io.api.core.v1.EndpointPort
  • 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<V1.EndpointPort.Builder>
    • clear

      public V1.EndpointPort.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<V1.EndpointPort.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<V1.EndpointPort.Builder>
    • getDefaultInstanceForType

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

      public V1.EndpointPort build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public V1.EndpointPort.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<V1.EndpointPort.Builder>
    • setField

      public V1.EndpointPort.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<V1.EndpointPort.Builder>
    • clearField

      public V1.EndpointPort.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<V1.EndpointPort.Builder>
    • clearOneof

      public V1.EndpointPort.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<V1.EndpointPort.Builder>
    • setRepeatedField

      public V1.EndpointPort.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<V1.EndpointPort.Builder>
    • addRepeatedField

      public V1.EndpointPort.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<V1.EndpointPort.Builder>
    • mergeFrom

      public V1.EndpointPort.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<V1.EndpointPort.Builder>
    • mergeFrom

      public V1.EndpointPort.Builder mergeFrom(V1.EndpointPort other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1.EndpointPort.Builder>
    • mergeFrom

      public V1.EndpointPort.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<V1.EndpointPort.Builder>
      Throws:
      IOException
    • hasName

      public boolean hasName()
       The name of this port.  This must match the 'name' field in the
       corresponding ServicePort.
       Must be a DNS_LABEL.
       Optional only if one port is defined.
       +optional
       
      optional string name = 1;
      Specified by:
      hasName in interface V1.EndpointPortOrBuilder
    • getName

      public String getName()
       The name of this port.  This must match the 'name' field in the
       corresponding ServicePort.
       Must be a DNS_LABEL.
       Optional only if one port is defined.
       +optional
       
      optional string name = 1;
      Specified by:
      getName in interface V1.EndpointPortOrBuilder
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of this port.  This must match the 'name' field in the
       corresponding ServicePort.
       Must be a DNS_LABEL.
       Optional only if one port is defined.
       +optional
       
      optional string name = 1;
      Specified by:
      getNameBytes in interface V1.EndpointPortOrBuilder
    • setName

      public V1.EndpointPort.Builder setName(String value)
       The name of this port.  This must match the 'name' field in the
       corresponding ServicePort.
       Must be a DNS_LABEL.
       Optional only if one port is defined.
       +optional
       
      optional string name = 1;
    • clearName

      public V1.EndpointPort.Builder clearName()
       The name of this port.  This must match the 'name' field in the
       corresponding ServicePort.
       Must be a DNS_LABEL.
       Optional only if one port is defined.
       +optional
       
      optional string name = 1;
    • setNameBytes

      public V1.EndpointPort.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of this port.  This must match the 'name' field in the
       corresponding ServicePort.
       Must be a DNS_LABEL.
       Optional only if one port is defined.
       +optional
       
      optional string name = 1;
    • hasPort

      public boolean hasPort()
       The port number of the endpoint.
       
      optional int32 port = 2;
      Specified by:
      hasPort in interface V1.EndpointPortOrBuilder
    • getPort

      public int getPort()
       The port number of the endpoint.
       
      optional int32 port = 2;
      Specified by:
      getPort in interface V1.EndpointPortOrBuilder
    • setPort

      public V1.EndpointPort.Builder setPort(int value)
       The port number of the endpoint.
       
      optional int32 port = 2;
    • clearPort

      public V1.EndpointPort.Builder clearPort()
       The port number of the endpoint.
       
      optional int32 port = 2;
    • hasProtocol

      public boolean hasProtocol()
       The IP protocol for this port.
       Must be UDP, TCP, or SCTP.
       Default is TCP.
       +optional
       
      optional string protocol = 3;
      Specified by:
      hasProtocol in interface V1.EndpointPortOrBuilder
    • getProtocol

      public String getProtocol()
       The IP protocol for this port.
       Must be UDP, TCP, or SCTP.
       Default is TCP.
       +optional
       
      optional string protocol = 3;
      Specified by:
      getProtocol in interface V1.EndpointPortOrBuilder
    • getProtocolBytes

      public com.google.protobuf.ByteString getProtocolBytes()
       The IP protocol for this port.
       Must be UDP, TCP, or SCTP.
       Default is TCP.
       +optional
       
      optional string protocol = 3;
      Specified by:
      getProtocolBytes in interface V1.EndpointPortOrBuilder
    • setProtocol

      public V1.EndpointPort.Builder setProtocol(String value)
       The IP protocol for this port.
       Must be UDP, TCP, or SCTP.
       Default is TCP.
       +optional
       
      optional string protocol = 3;
    • clearProtocol

      public V1.EndpointPort.Builder clearProtocol()
       The IP protocol for this port.
       Must be UDP, TCP, or SCTP.
       Default is TCP.
       +optional
       
      optional string protocol = 3;
    • setProtocolBytes

      public V1.EndpointPort.Builder setProtocolBytes(com.google.protobuf.ByteString value)
       The IP protocol for this port.
       Must be UDP, TCP, or SCTP.
       Default is TCP.
       +optional
       
      optional string protocol = 3;
    • hasAppProtocol

      public boolean hasAppProtocol()
       The application protocol for this port.
       This field follows standard Kubernetes label syntax.
       Un-prefixed names are reserved for IANA standard service names (as per
       RFC-6335 and http://www.iana.org/assignments/service-names).
       Non-standard protocols should use prefixed names such as
       mycompany.com/my-custom-protocol.
       +optional
       
      optional string appProtocol = 4;
      Specified by:
      hasAppProtocol in interface V1.EndpointPortOrBuilder
    • getAppProtocol

      public String getAppProtocol()
       The application protocol for this port.
       This field follows standard Kubernetes label syntax.
       Un-prefixed names are reserved for IANA standard service names (as per
       RFC-6335 and http://www.iana.org/assignments/service-names).
       Non-standard protocols should use prefixed names such as
       mycompany.com/my-custom-protocol.
       +optional
       
      optional string appProtocol = 4;
      Specified by:
      getAppProtocol in interface V1.EndpointPortOrBuilder
    • getAppProtocolBytes

      public com.google.protobuf.ByteString getAppProtocolBytes()
       The application protocol for this port.
       This field follows standard Kubernetes label syntax.
       Un-prefixed names are reserved for IANA standard service names (as per
       RFC-6335 and http://www.iana.org/assignments/service-names).
       Non-standard protocols should use prefixed names such as
       mycompany.com/my-custom-protocol.
       +optional
       
      optional string appProtocol = 4;
      Specified by:
      getAppProtocolBytes in interface V1.EndpointPortOrBuilder
    • setAppProtocol

      public V1.EndpointPort.Builder setAppProtocol(String value)
       The application protocol for this port.
       This field follows standard Kubernetes label syntax.
       Un-prefixed names are reserved for IANA standard service names (as per
       RFC-6335 and http://www.iana.org/assignments/service-names).
       Non-standard protocols should use prefixed names such as
       mycompany.com/my-custom-protocol.
       +optional
       
      optional string appProtocol = 4;
    • clearAppProtocol

      public V1.EndpointPort.Builder clearAppProtocol()
       The application protocol for this port.
       This field follows standard Kubernetes label syntax.
       Un-prefixed names are reserved for IANA standard service names (as per
       RFC-6335 and http://www.iana.org/assignments/service-names).
       Non-standard protocols should use prefixed names such as
       mycompany.com/my-custom-protocol.
       +optional
       
      optional string appProtocol = 4;
    • setAppProtocolBytes

      public V1.EndpointPort.Builder setAppProtocolBytes(com.google.protobuf.ByteString value)
       The application protocol for this port.
       This field follows standard Kubernetes label syntax.
       Un-prefixed names are reserved for IANA standard service names (as per
       RFC-6335 and http://www.iana.org/assignments/service-names).
       Non-standard protocols should use prefixed names such as
       mycompany.com/my-custom-protocol.
       +optional
       
      optional string appProtocol = 4;
    • setUnknownFields

      public final V1.EndpointPort.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<V1.EndpointPort.Builder>
    • mergeUnknownFields

      public final V1.EndpointPort.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<V1.EndpointPort.Builder>