Class V1.HTTPGetAction.Builder

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

public static final class V1.HTTPGetAction.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.HTTPGetAction.Builder> implements V1.HTTPGetActionOrBuilder
 HTTPGetAction describes an action based on HTTP Get requests.
 
Protobuf type k8s.io.api.core.v1.HTTPGetAction
  • 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.HTTPGetAction.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

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

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

      public boolean hasPath()
       Path to access on the HTTP server.
       +optional
       
      optional string path = 1;
      Specified by:
      hasPath in interface V1.HTTPGetActionOrBuilder
    • getPath

      public String getPath()
       Path to access on the HTTP server.
       +optional
       
      optional string path = 1;
      Specified by:
      getPath in interface V1.HTTPGetActionOrBuilder
    • getPathBytes

      public com.google.protobuf.ByteString getPathBytes()
       Path to access on the HTTP server.
       +optional
       
      optional string path = 1;
      Specified by:
      getPathBytes in interface V1.HTTPGetActionOrBuilder
    • setPath

      public V1.HTTPGetAction.Builder setPath(String value)
       Path to access on the HTTP server.
       +optional
       
      optional string path = 1;
    • clearPath

      public V1.HTTPGetAction.Builder clearPath()
       Path to access on the HTTP server.
       +optional
       
      optional string path = 1;
    • setPathBytes

      public V1.HTTPGetAction.Builder setPathBytes(com.google.protobuf.ByteString value)
       Path to access on the HTTP server.
       +optional
       
      optional string path = 1;
    • hasPort

      public boolean hasPort()
       Name or number 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 = 2;
      Specified by:
      hasPort in interface V1.HTTPGetActionOrBuilder
    • getPort

      public IntStr.IntOrString getPort()
       Name or number 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 = 2;
      Specified by:
      getPort in interface V1.HTTPGetActionOrBuilder
    • setPort

       Name or number 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 = 2;
    • setPort

      public V1.HTTPGetAction.Builder setPort(IntStr.IntOrString.Builder builderForValue)
       Name or number 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 = 2;
    • mergePort

      public V1.HTTPGetAction.Builder mergePort(IntStr.IntOrString value)
       Name or number 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 = 2;
    • clearPort

      public V1.HTTPGetAction.Builder clearPort()
       Name or number 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 = 2;
    • getPortBuilder

      public IntStr.IntOrString.Builder getPortBuilder()
       Name or number 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 = 2;
    • getPortOrBuilder

      public IntStr.IntOrStringOrBuilder getPortOrBuilder()
       Name or number 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 = 2;
      Specified by:
      getPortOrBuilder in interface V1.HTTPGetActionOrBuilder
    • hasHost

      public boolean hasHost()
       Host name to connect to, defaults to the pod IP. You probably want to set
       "Host" in httpHeaders instead.
       +optional
       
      optional string host = 3;
      Specified by:
      hasHost in interface V1.HTTPGetActionOrBuilder
    • getHost

      public String getHost()
       Host name to connect to, defaults to the pod IP. You probably want to set
       "Host" in httpHeaders instead.
       +optional
       
      optional string host = 3;
      Specified by:
      getHost in interface V1.HTTPGetActionOrBuilder
    • getHostBytes

      public com.google.protobuf.ByteString getHostBytes()
       Host name to connect to, defaults to the pod IP. You probably want to set
       "Host" in httpHeaders instead.
       +optional
       
      optional string host = 3;
      Specified by:
      getHostBytes in interface V1.HTTPGetActionOrBuilder
    • setHost

      public V1.HTTPGetAction.Builder setHost(String value)
       Host name to connect to, defaults to the pod IP. You probably want to set
       "Host" in httpHeaders instead.
       +optional
       
      optional string host = 3;
    • clearHost

      public V1.HTTPGetAction.Builder clearHost()
       Host name to connect to, defaults to the pod IP. You probably want to set
       "Host" in httpHeaders instead.
       +optional
       
      optional string host = 3;
    • setHostBytes

      public V1.HTTPGetAction.Builder setHostBytes(com.google.protobuf.ByteString value)
       Host name to connect to, defaults to the pod IP. You probably want to set
       "Host" in httpHeaders instead.
       +optional
       
      optional string host = 3;
    • hasScheme

      public boolean hasScheme()
       Scheme to use for connecting to the host.
       Defaults to HTTP.
       +optional
       
      optional string scheme = 4;
      Specified by:
      hasScheme in interface V1.HTTPGetActionOrBuilder
    • getScheme

      public String getScheme()
       Scheme to use for connecting to the host.
       Defaults to HTTP.
       +optional
       
      optional string scheme = 4;
      Specified by:
      getScheme in interface V1.HTTPGetActionOrBuilder
    • getSchemeBytes

      public com.google.protobuf.ByteString getSchemeBytes()
       Scheme to use for connecting to the host.
       Defaults to HTTP.
       +optional
       
      optional string scheme = 4;
      Specified by:
      getSchemeBytes in interface V1.HTTPGetActionOrBuilder
    • setScheme

      public V1.HTTPGetAction.Builder setScheme(String value)
       Scheme to use for connecting to the host.
       Defaults to HTTP.
       +optional
       
      optional string scheme = 4;
    • clearScheme

      public V1.HTTPGetAction.Builder clearScheme()
       Scheme to use for connecting to the host.
       Defaults to HTTP.
       +optional
       
      optional string scheme = 4;
    • setSchemeBytes

      public V1.HTTPGetAction.Builder setSchemeBytes(com.google.protobuf.ByteString value)
       Scheme to use for connecting to the host.
       Defaults to HTTP.
       +optional
       
      optional string scheme = 4;
    • getHttpHeadersList

      public List<V1.HTTPHeader> getHttpHeadersList()
       Custom headers to set in the request. HTTP allows repeated headers.
       +optional
       
      repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5;
      Specified by:
      getHttpHeadersList in interface V1.HTTPGetActionOrBuilder
    • getHttpHeadersCount

      public int getHttpHeadersCount()
       Custom headers to set in the request. HTTP allows repeated headers.
       +optional
       
      repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5;
      Specified by:
      getHttpHeadersCount in interface V1.HTTPGetActionOrBuilder
    • getHttpHeaders

      public V1.HTTPHeader getHttpHeaders(int index)
       Custom headers to set in the request. HTTP allows repeated headers.
       +optional
       
      repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5;
      Specified by:
      getHttpHeaders in interface V1.HTTPGetActionOrBuilder
    • setHttpHeaders

      public V1.HTTPGetAction.Builder setHttpHeaders(int index, V1.HTTPHeader value)
       Custom headers to set in the request. HTTP allows repeated headers.
       +optional
       
      repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5;
    • setHttpHeaders

      public V1.HTTPGetAction.Builder setHttpHeaders(int index, V1.HTTPHeader.Builder builderForValue)
       Custom headers to set in the request. HTTP allows repeated headers.
       +optional
       
      repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5;
    • addHttpHeaders

      public V1.HTTPGetAction.Builder addHttpHeaders(V1.HTTPHeader value)
       Custom headers to set in the request. HTTP allows repeated headers.
       +optional
       
      repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5;
    • addHttpHeaders

      public V1.HTTPGetAction.Builder addHttpHeaders(int index, V1.HTTPHeader value)
       Custom headers to set in the request. HTTP allows repeated headers.
       +optional
       
      repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5;
    • addHttpHeaders

      public V1.HTTPGetAction.Builder addHttpHeaders(V1.HTTPHeader.Builder builderForValue)
       Custom headers to set in the request. HTTP allows repeated headers.
       +optional
       
      repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5;
    • addHttpHeaders

      public V1.HTTPGetAction.Builder addHttpHeaders(int index, V1.HTTPHeader.Builder builderForValue)
       Custom headers to set in the request. HTTP allows repeated headers.
       +optional
       
      repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5;
    • addAllHttpHeaders

      public V1.HTTPGetAction.Builder addAllHttpHeaders(Iterable<? extends V1.HTTPHeader> values)
       Custom headers to set in the request. HTTP allows repeated headers.
       +optional
       
      repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5;
    • clearHttpHeaders

      public V1.HTTPGetAction.Builder clearHttpHeaders()
       Custom headers to set in the request. HTTP allows repeated headers.
       +optional
       
      repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5;
    • removeHttpHeaders

      public V1.HTTPGetAction.Builder removeHttpHeaders(int index)
       Custom headers to set in the request. HTTP allows repeated headers.
       +optional
       
      repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5;
    • getHttpHeadersBuilder

      public V1.HTTPHeader.Builder getHttpHeadersBuilder(int index)
       Custom headers to set in the request. HTTP allows repeated headers.
       +optional
       
      repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5;
    • getHttpHeadersOrBuilder

      public V1.HTTPHeaderOrBuilder getHttpHeadersOrBuilder(int index)
       Custom headers to set in the request. HTTP allows repeated headers.
       +optional
       
      repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5;
      Specified by:
      getHttpHeadersOrBuilder in interface V1.HTTPGetActionOrBuilder
    • getHttpHeadersOrBuilderList

      public List<? extends V1.HTTPHeaderOrBuilder> getHttpHeadersOrBuilderList()
       Custom headers to set in the request. HTTP allows repeated headers.
       +optional
       
      repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5;
      Specified by:
      getHttpHeadersOrBuilderList in interface V1.HTTPGetActionOrBuilder
    • addHttpHeadersBuilder

      public V1.HTTPHeader.Builder addHttpHeadersBuilder()
       Custom headers to set in the request. HTTP allows repeated headers.
       +optional
       
      repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5;
    • addHttpHeadersBuilder

      public V1.HTTPHeader.Builder addHttpHeadersBuilder(int index)
       Custom headers to set in the request. HTTP allows repeated headers.
       +optional
       
      repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5;
    • getHttpHeadersBuilderList

      public List<V1.HTTPHeader.Builder> getHttpHeadersBuilderList()
       Custom headers to set in the request. HTTP allows repeated headers.
       +optional
       
      repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5;
    • setUnknownFields

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

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