Class V1Networking.IngressRule

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

public static final class V1Networking.IngressRule extends com.google.protobuf.GeneratedMessageV3 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
See Also:
  • Field Details

  • Method Details

    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • 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
    • 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
    • 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
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static V1Networking.IngressRule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Networking.IngressRule parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Networking.IngressRule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Networking.IngressRule parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Networking.IngressRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Networking.IngressRule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Networking.IngressRule parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1Networking.IngressRule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1Networking.IngressRule parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1Networking.IngressRule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1Networking.IngressRule parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1Networking.IngressRule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static V1Networking.IngressRule.Builder newBuilder()
    • newBuilder

      public static V1Networking.IngressRule.Builder newBuilder(V1Networking.IngressRule prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected V1Networking.IngressRule.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static V1Networking.IngressRule getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<V1Networking.IngressRule> parser()
    • getParserForType

      public com.google.protobuf.Parser<V1Networking.IngressRule> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

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