Class V1.TCPSocketAction.Builder

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

public static final class V1.TCPSocketAction.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.TCPSocketAction.Builder> implements V1.TCPSocketActionOrBuilder
 TCPSocketAction describes an action based on opening a socket
 
Protobuf type k8s.io.api.core.v1.TCPSocketAction
  • 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.TCPSocketAction.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.TCPSocketAction.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.TCPSocketAction.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

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

      public boolean hasPort()
       Number or name of the port to access on the container.
       Number must be in the range 1 to 65535.
       Name must be an IANA_SVC_NAME.
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 1;
      Specified by:
      hasPort in interface V1.TCPSocketActionOrBuilder
    • getPort

      public IntStr.IntOrString getPort()
       Number or name of the port to access on the container.
       Number must be in the range 1 to 65535.
       Name must be an IANA_SVC_NAME.
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 1;
      Specified by:
      getPort in interface V1.TCPSocketActionOrBuilder
    • setPort

       Number or name of the port to access on the container.
       Number must be in the range 1 to 65535.
       Name must be an IANA_SVC_NAME.
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 1;
    • setPort

      public V1.TCPSocketAction.Builder setPort(IntStr.IntOrString.Builder builderForValue)
       Number or name of the port to access on the container.
       Number must be in the range 1 to 65535.
       Name must be an IANA_SVC_NAME.
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 1;
    • mergePort

       Number or name of the port to access on the container.
       Number must be in the range 1 to 65535.
       Name must be an IANA_SVC_NAME.
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 1;
    • clearPort

      public V1.TCPSocketAction.Builder clearPort()
       Number or name of the port to access on the container.
       Number must be in the range 1 to 65535.
       Name must be an IANA_SVC_NAME.
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 1;
    • getPortBuilder

      public IntStr.IntOrString.Builder getPortBuilder()
       Number or name of the port to access on the container.
       Number must be in the range 1 to 65535.
       Name must be an IANA_SVC_NAME.
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 1;
    • getPortOrBuilder

      public IntStr.IntOrStringOrBuilder getPortOrBuilder()
       Number or name of the port to access on the container.
       Number must be in the range 1 to 65535.
       Name must be an IANA_SVC_NAME.
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 1;
      Specified by:
      getPortOrBuilder in interface V1.TCPSocketActionOrBuilder
    • hasHost

      public boolean hasHost()
       Optional: Host name to connect to, defaults to the pod IP.
       +optional
       
      optional string host = 2;
      Specified by:
      hasHost in interface V1.TCPSocketActionOrBuilder
    • getHost

      public String getHost()
       Optional: Host name to connect to, defaults to the pod IP.
       +optional
       
      optional string host = 2;
      Specified by:
      getHost in interface V1.TCPSocketActionOrBuilder
    • getHostBytes

      public com.google.protobuf.ByteString getHostBytes()
       Optional: Host name to connect to, defaults to the pod IP.
       +optional
       
      optional string host = 2;
      Specified by:
      getHostBytes in interface V1.TCPSocketActionOrBuilder
    • setHost

      public V1.TCPSocketAction.Builder setHost(String value)
       Optional: Host name to connect to, defaults to the pod IP.
       +optional
       
      optional string host = 2;
    • clearHost

      public V1.TCPSocketAction.Builder clearHost()
       Optional: Host name to connect to, defaults to the pod IP.
       +optional
       
      optional string host = 2;
    • setHostBytes

      public V1.TCPSocketAction.Builder setHostBytes(com.google.protobuf.ByteString value)
       Optional: Host name to connect to, defaults to the pod IP.
       +optional
       
      optional string host = 2;
    • setUnknownFields

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

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