Class V1Networking.IngressRule.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.IngressRule.Builder>
io.kubernetes.client.proto.V1Networking.IngressRule.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1Networking.IngressRuleOrBuilder, Cloneable
Enclosing class:
V1Networking.IngressRule

public static final class V1Networking.IngressRule.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.IngressRule.Builder> implements V1Networking.IngressRuleOrBuilder
 IngressRule represents the rules mapping the paths under a specified host to
 the related backend services. Incoming requests are first evaluated for a host
 match, then routed to the backend associated with the matching IngressRuleValue.
 
Protobuf type k8s.io.api.networking.v1.IngressRule
  • 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<V1Networking.IngressRule.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<V1Networking.IngressRule.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<V1Networking.IngressRule.Builder>
    • getDefaultInstanceForType

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

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

      public V1Networking.IngressRule 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<V1Networking.IngressRule.Builder>
    • setField

      public V1Networking.IngressRule.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<V1Networking.IngressRule.Builder>
    • clearField

      public V1Networking.IngressRule.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<V1Networking.IngressRule.Builder>
    • clearOneof

      public V1Networking.IngressRule.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<V1Networking.IngressRule.Builder>
    • setRepeatedField

      public V1Networking.IngressRule.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<V1Networking.IngressRule.Builder>
    • addRepeatedField

      public V1Networking.IngressRule.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<V1Networking.IngressRule.Builder>
    • mergeFrom

      public V1Networking.IngressRule.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<V1Networking.IngressRule.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<V1Networking.IngressRule.Builder>
    • mergeFrom

      public V1Networking.IngressRule.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<V1Networking.IngressRule.Builder>
      Throws:
      IOException
    • hasHost

      public boolean hasHost()
       Host is the fully qualified domain name of a network host, as defined by RFC 3986.
       Note the following deviations from the "host" part of the
       URI as defined in RFC 3986:
       1. IPs are not allowed. Currently an IngressRuleValue can only apply to
          the IP in the Spec of the parent Ingress.
       2. The `:` delimiter is not respected because ports are not allowed.
                Currently the port of an Ingress is implicitly :80 for http and
                :443 for https.
       Both these may change in the future.
       Incoming requests are matched against the host before the
       IngressRuleValue. If the host is unspecified, the Ingress routes all
       traffic based on the specified IngressRuleValue.
       Host can be "precise" which is a domain name without the terminating dot of
       a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name
       prefixed with a single wildcard label (e.g. "*.foo.com").
       The wildcard character '*' must appear by itself as the first DNS label and
       matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*").
       Requests will be matched against the Host field in the following way:
       1. If Host is precise, the request matches this rule if the http host header is equal to Host.
       2. If Host is a wildcard, then the request matches this rule if the http host header
       is to equal to the suffix (removing the first label) of the wildcard rule.
       +optional
       
      optional string host = 1;
      Specified by:
      hasHost in interface V1Networking.IngressRuleOrBuilder
    • getHost

      public String getHost()
       Host is the fully qualified domain name of a network host, as defined by RFC 3986.
       Note the following deviations from the "host" part of the
       URI as defined in RFC 3986:
       1. IPs are not allowed. Currently an IngressRuleValue can only apply to
          the IP in the Spec of the parent Ingress.
       2. The `:` delimiter is not respected because ports are not allowed.
                Currently the port of an Ingress is implicitly :80 for http and
                :443 for https.
       Both these may change in the future.
       Incoming requests are matched against the host before the
       IngressRuleValue. If the host is unspecified, the Ingress routes all
       traffic based on the specified IngressRuleValue.
       Host can be "precise" which is a domain name without the terminating dot of
       a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name
       prefixed with a single wildcard label (e.g. "*.foo.com").
       The wildcard character '*' must appear by itself as the first DNS label and
       matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*").
       Requests will be matched against the Host field in the following way:
       1. If Host is precise, the request matches this rule if the http host header is equal to Host.
       2. If Host is a wildcard, then the request matches this rule if the http host header
       is to equal to the suffix (removing the first label) of the wildcard rule.
       +optional
       
      optional string host = 1;
      Specified by:
      getHost in interface V1Networking.IngressRuleOrBuilder
    • getHostBytes

      public com.google.protobuf.ByteString getHostBytes()
       Host is the fully qualified domain name of a network host, as defined by RFC 3986.
       Note the following deviations from the "host" part of the
       URI as defined in RFC 3986:
       1. IPs are not allowed. Currently an IngressRuleValue can only apply to
          the IP in the Spec of the parent Ingress.
       2. The `:` delimiter is not respected because ports are not allowed.
                Currently the port of an Ingress is implicitly :80 for http and
                :443 for https.
       Both these may change in the future.
       Incoming requests are matched against the host before the
       IngressRuleValue. If the host is unspecified, the Ingress routes all
       traffic based on the specified IngressRuleValue.
       Host can be "precise" which is a domain name without the terminating dot of
       a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name
       prefixed with a single wildcard label (e.g. "*.foo.com").
       The wildcard character '*' must appear by itself as the first DNS label and
       matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*").
       Requests will be matched against the Host field in the following way:
       1. If Host is precise, the request matches this rule if the http host header is equal to Host.
       2. If Host is a wildcard, then the request matches this rule if the http host header
       is to equal to the suffix (removing the first label) of the wildcard rule.
       +optional
       
      optional string host = 1;
      Specified by:
      getHostBytes in interface V1Networking.IngressRuleOrBuilder
    • setHost

      public V1Networking.IngressRule.Builder setHost(String value)
       Host is the fully qualified domain name of a network host, as defined by RFC 3986.
       Note the following deviations from the "host" part of the
       URI as defined in RFC 3986:
       1. IPs are not allowed. Currently an IngressRuleValue can only apply to
          the IP in the Spec of the parent Ingress.
       2. The `:` delimiter is not respected because ports are not allowed.
                Currently the port of an Ingress is implicitly :80 for http and
                :443 for https.
       Both these may change in the future.
       Incoming requests are matched against the host before the
       IngressRuleValue. If the host is unspecified, the Ingress routes all
       traffic based on the specified IngressRuleValue.
       Host can be "precise" which is a domain name without the terminating dot of
       a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name
       prefixed with a single wildcard label (e.g. "*.foo.com").
       The wildcard character '*' must appear by itself as the first DNS label and
       matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*").
       Requests will be matched against the Host field in the following way:
       1. If Host is precise, the request matches this rule if the http host header is equal to Host.
       2. If Host is a wildcard, then the request matches this rule if the http host header
       is to equal to the suffix (removing the first label) of the wildcard rule.
       +optional
       
      optional string host = 1;
    • clearHost

       Host is the fully qualified domain name of a network host, as defined by RFC 3986.
       Note the following deviations from the "host" part of the
       URI as defined in RFC 3986:
       1. IPs are not allowed. Currently an IngressRuleValue can only apply to
          the IP in the Spec of the parent Ingress.
       2. The `:` delimiter is not respected because ports are not allowed.
                Currently the port of an Ingress is implicitly :80 for http and
                :443 for https.
       Both these may change in the future.
       Incoming requests are matched against the host before the
       IngressRuleValue. If the host is unspecified, the Ingress routes all
       traffic based on the specified IngressRuleValue.
       Host can be "precise" which is a domain name without the terminating dot of
       a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name
       prefixed with a single wildcard label (e.g. "*.foo.com").
       The wildcard character '*' must appear by itself as the first DNS label and
       matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*").
       Requests will be matched against the Host field in the following way:
       1. If Host is precise, the request matches this rule if the http host header is equal to Host.
       2. If Host is a wildcard, then the request matches this rule if the http host header
       is to equal to the suffix (removing the first label) of the wildcard rule.
       +optional
       
      optional string host = 1;
    • setHostBytes

      public V1Networking.IngressRule.Builder setHostBytes(com.google.protobuf.ByteString value)
       Host is the fully qualified domain name of a network host, as defined by RFC 3986.
       Note the following deviations from the "host" part of the
       URI as defined in RFC 3986:
       1. IPs are not allowed. Currently an IngressRuleValue can only apply to
          the IP in the Spec of the parent Ingress.
       2. The `:` delimiter is not respected because ports are not allowed.
                Currently the port of an Ingress is implicitly :80 for http and
                :443 for https.
       Both these may change in the future.
       Incoming requests are matched against the host before the
       IngressRuleValue. If the host is unspecified, the Ingress routes all
       traffic based on the specified IngressRuleValue.
       Host can be "precise" which is a domain name without the terminating dot of
       a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name
       prefixed with a single wildcard label (e.g. "*.foo.com").
       The wildcard character '*' must appear by itself as the first DNS label and
       matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*").
       Requests will be matched against the Host field in the following way:
       1. If Host is precise, the request matches this rule if the http host header is equal to Host.
       2. If Host is a wildcard, then the request matches this rule if the http host header
       is to equal to the suffix (removing the first label) of the wildcard rule.
       +optional
       
      optional string host = 1;
    • hasIngressRuleValue

      public boolean hasIngressRuleValue()
       IngressRuleValue represents a rule to route requests for this IngressRule.
       If unspecified, the rule defaults to a http catch-all. Whether that sends
       just traffic matching the host to the default backend or all traffic to the
       default backend, is left to the controller fulfilling the Ingress. Http is
       currently the only supported IngressRuleValue.
       +optional
       
      optional .k8s.io.api.networking.v1.IngressRuleValue ingressRuleValue = 2;
      Specified by:
      hasIngressRuleValue in interface V1Networking.IngressRuleOrBuilder
    • getIngressRuleValue

      public V1Networking.IngressRuleValue getIngressRuleValue()
       IngressRuleValue represents a rule to route requests for this IngressRule.
       If unspecified, the rule defaults to a http catch-all. Whether that sends
       just traffic matching the host to the default backend or all traffic to the
       default backend, is left to the controller fulfilling the Ingress. Http is
       currently the only supported IngressRuleValue.
       +optional
       
      optional .k8s.io.api.networking.v1.IngressRuleValue ingressRuleValue = 2;
      Specified by:
      getIngressRuleValue in interface V1Networking.IngressRuleOrBuilder
    • setIngressRuleValue

       IngressRuleValue represents a rule to route requests for this IngressRule.
       If unspecified, the rule defaults to a http catch-all. Whether that sends
       just traffic matching the host to the default backend or all traffic to the
       default backend, is left to the controller fulfilling the Ingress. Http is
       currently the only supported IngressRuleValue.
       +optional
       
      optional .k8s.io.api.networking.v1.IngressRuleValue ingressRuleValue = 2;
    • setIngressRuleValue

      public V1Networking.IngressRule.Builder setIngressRuleValue(V1Networking.IngressRuleValue.Builder builderForValue)
       IngressRuleValue represents a rule to route requests for this IngressRule.
       If unspecified, the rule defaults to a http catch-all. Whether that sends
       just traffic matching the host to the default backend or all traffic to the
       default backend, is left to the controller fulfilling the Ingress. Http is
       currently the only supported IngressRuleValue.
       +optional
       
      optional .k8s.io.api.networking.v1.IngressRuleValue ingressRuleValue = 2;
    • mergeIngressRuleValue

       IngressRuleValue represents a rule to route requests for this IngressRule.
       If unspecified, the rule defaults to a http catch-all. Whether that sends
       just traffic matching the host to the default backend or all traffic to the
       default backend, is left to the controller fulfilling the Ingress. Http is
       currently the only supported IngressRuleValue.
       +optional
       
      optional .k8s.io.api.networking.v1.IngressRuleValue ingressRuleValue = 2;
    • clearIngressRuleValue

      public V1Networking.IngressRule.Builder clearIngressRuleValue()
       IngressRuleValue represents a rule to route requests for this IngressRule.
       If unspecified, the rule defaults to a http catch-all. Whether that sends
       just traffic matching the host to the default backend or all traffic to the
       default backend, is left to the controller fulfilling the Ingress. Http is
       currently the only supported IngressRuleValue.
       +optional
       
      optional .k8s.io.api.networking.v1.IngressRuleValue ingressRuleValue = 2;
    • getIngressRuleValueBuilder

      public V1Networking.IngressRuleValue.Builder getIngressRuleValueBuilder()
       IngressRuleValue represents a rule to route requests for this IngressRule.
       If unspecified, the rule defaults to a http catch-all. Whether that sends
       just traffic matching the host to the default backend or all traffic to the
       default backend, is left to the controller fulfilling the Ingress. Http is
       currently the only supported IngressRuleValue.
       +optional
       
      optional .k8s.io.api.networking.v1.IngressRuleValue ingressRuleValue = 2;
    • getIngressRuleValueOrBuilder

      public V1Networking.IngressRuleValueOrBuilder getIngressRuleValueOrBuilder()
       IngressRuleValue represents a rule to route requests for this IngressRule.
       If unspecified, the rule defaults to a http catch-all. Whether that sends
       just traffic matching the host to the default backend or all traffic to the
       default backend, is left to the controller fulfilling the Ingress. Http is
       currently the only supported IngressRuleValue.
       +optional
       
      optional .k8s.io.api.networking.v1.IngressRuleValue ingressRuleValue = 2;
      Specified by:
      getIngressRuleValueOrBuilder in interface V1Networking.IngressRuleOrBuilder
    • setUnknownFields

      public final V1Networking.IngressRule.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<V1Networking.IngressRule.Builder>
    • mergeUnknownFields

      public final V1Networking.IngressRule.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<V1Networking.IngressRule.Builder>