Class Generated.HTTPIngressPath

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Generated.HTTPIngressPathOrBuilder
    Enclosing class:
    Generated

    public static final class Generated.HTTPIngressPath
    extends com.google.protobuf.GeneratedMessageV3
    implements Generated.HTTPIngressPathOrBuilder
     HTTPIngressPath associates a path with a backend. Incoming urls matching the
     path are forwarded to the backend.
     
    Protobuf type k8s.io.api.networking.v1.HTTPIngressPath
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance 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
      • hasPath

        public boolean hasPath()
         path is matched against the path of an incoming request. Currently it can
         contain characters disallowed from the conventional "path" part of a URL
         as defined by RFC 3986. Paths must begin with a '/' and must be present
         when using PathType with value "Exact" or "Prefix".
         +optional
         
        optional string path = 1;
        Specified by:
        hasPath in interface Generated.HTTPIngressPathOrBuilder
        Returns:
        Whether the path field is set.
      • getPath

        public String getPath()
         path is matched against the path of an incoming request. Currently it can
         contain characters disallowed from the conventional "path" part of a URL
         as defined by RFC 3986. Paths must begin with a '/' and must be present
         when using PathType with value "Exact" or "Prefix".
         +optional
         
        optional string path = 1;
        Specified by:
        getPath in interface Generated.HTTPIngressPathOrBuilder
        Returns:
        The path.
      • getPathBytes

        public com.google.protobuf.ByteString getPathBytes()
         path is matched against the path of an incoming request. Currently it can
         contain characters disallowed from the conventional "path" part of a URL
         as defined by RFC 3986. Paths must begin with a '/' and must be present
         when using PathType with value "Exact" or "Prefix".
         +optional
         
        optional string path = 1;
        Specified by:
        getPathBytes in interface Generated.HTTPIngressPathOrBuilder
        Returns:
        The bytes for path.
      • hasPathType

        public boolean hasPathType()
         pathType determines the interpretation of the path matching. PathType can
         be one of the following values:
         * Exact: Matches the URL path exactly.
         * Prefix: Matches based on a URL path prefix split by '/'. Matching is
           done on a path element by element basis. A path element refers is the
           list of labels in the path split by the '/' separator. A request is a
           match for path p if every p is an element-wise prefix of p of the
           request path. Note that if the last element of the path is a substring
           of the last element in request path, it is not a match (e.g. /foo/bar
           matches /foo/bar/baz, but does not match /foo/barbaz).
         * ImplementationSpecific: Interpretation of the Path matching is up to
           the IngressClass. Implementations can treat this as a separate PathType
           or treat it identically to Prefix or Exact path types.
         Implementations are required to support all path types.
         
        optional string pathType = 3;
        Specified by:
        hasPathType in interface Generated.HTTPIngressPathOrBuilder
        Returns:
        Whether the pathType field is set.
      • getPathType

        public String getPathType()
         pathType determines the interpretation of the path matching. PathType can
         be one of the following values:
         * Exact: Matches the URL path exactly.
         * Prefix: Matches based on a URL path prefix split by '/'. Matching is
           done on a path element by element basis. A path element refers is the
           list of labels in the path split by the '/' separator. A request is a
           match for path p if every p is an element-wise prefix of p of the
           request path. Note that if the last element of the path is a substring
           of the last element in request path, it is not a match (e.g. /foo/bar
           matches /foo/bar/baz, but does not match /foo/barbaz).
         * ImplementationSpecific: Interpretation of the Path matching is up to
           the IngressClass. Implementations can treat this as a separate PathType
           or treat it identically to Prefix or Exact path types.
         Implementations are required to support all path types.
         
        optional string pathType = 3;
        Specified by:
        getPathType in interface Generated.HTTPIngressPathOrBuilder
        Returns:
        The pathType.
      • getPathTypeBytes

        public com.google.protobuf.ByteString getPathTypeBytes()
         pathType determines the interpretation of the path matching. PathType can
         be one of the following values:
         * Exact: Matches the URL path exactly.
         * Prefix: Matches based on a URL path prefix split by '/'. Matching is
           done on a path element by element basis. A path element refers is the
           list of labels in the path split by the '/' separator. A request is a
           match for path p if every p is an element-wise prefix of p of the
           request path. Note that if the last element of the path is a substring
           of the last element in request path, it is not a match (e.g. /foo/bar
           matches /foo/bar/baz, but does not match /foo/barbaz).
         * ImplementationSpecific: Interpretation of the Path matching is up to
           the IngressClass. Implementations can treat this as a separate PathType
           or treat it identically to Prefix or Exact path types.
         Implementations are required to support all path types.
         
        optional string pathType = 3;
        Specified by:
        getPathTypeBytes in interface Generated.HTTPIngressPathOrBuilder
        Returns:
        The bytes for pathType.
      • hasBackend

        public boolean hasBackend()
         backend defines the referenced service endpoint to which the traffic
         will be forwarded to.
         
        optional .k8s.io.api.networking.v1.IngressBackend backend = 2;
        Specified by:
        hasBackend in interface Generated.HTTPIngressPathOrBuilder
        Returns:
        Whether the backend field is set.
      • 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 Generated.HTTPIngressPath parseFrom​(ByteBuffer data)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.HTTPIngressPath parseFrom​(ByteBuffer data,
                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.HTTPIngressPath parseFrom​(com.google.protobuf.ByteString data)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.HTTPIngressPath parseFrom​(com.google.protobuf.ByteString data,
                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.HTTPIngressPath parseFrom​(byte[] data)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.HTTPIngressPath parseFrom​(byte[] data,
                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public Generated.HTTPIngressPath.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Generated.HTTPIngressPath.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Generated.HTTPIngressPath.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<Generated.HTTPIngressPath> 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 Generated.HTTPIngressPath getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder