Class Generated.IngressRule.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Generated.IngressRuleOrBuilder
    Enclosing class:
    Generated.IngressRule

    public static final class Generated.IngressRule.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.IngressRule.Builder>
    implements Generated.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 Detail

      • 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<Generated.IngressRule.Builder>
      • clear

        public Generated.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<Generated.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<Generated.IngressRule.Builder>
      • getDefaultInstanceForType

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

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

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

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

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

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

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

        public Generated.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<Generated.IngressRule.Builder>
      • isInitialized

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

        public Generated.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<Generated.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 Generated.IngressRuleOrBuilder
        Returns:
        Whether the host field is set.
      • 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 Generated.IngressRuleOrBuilder
        Returns:
        The host.
      • 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 Generated.IngressRuleOrBuilder
        Returns:
        The bytes for host.
      • setHost

        public Generated.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;
        Parameters:
        value - The host to set.
        Returns:
        This builder for chaining.
      • clearHost

        public Generated.IngressRule.Builder 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;
        Returns:
        This builder for chaining.
      • setHostBytes

        public Generated.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;
        Parameters:
        value - The bytes for host to set.
        Returns:
        This builder for chaining.
      • 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 Generated.IngressRuleOrBuilder
        Returns:
        Whether the ingressRuleValue field is set.
      • getIngressRuleValue

        public Generated.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 Generated.IngressRuleOrBuilder
        Returns:
        The ingressRuleValue.
      • setIngressRuleValue

        public Generated.IngressRule.Builder setIngressRuleValue​(Generated.IngressRuleValue value)
         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 Generated.IngressRule.Builder setIngressRuleValue​(Generated.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

        public Generated.IngressRule.Builder mergeIngressRuleValue​(Generated.IngressRuleValue value)
         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 Generated.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 Generated.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 Generated.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 Generated.IngressRuleOrBuilder
      • setUnknownFields

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

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