Class HTTPRequestProperties

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, HTTPRequestPropertiesOrBuilder, Serializable

    public final class HTTPRequestProperties
    extends com.google.protobuf.GeneratedMessageV3
    implements HTTPRequestPropertiesOrBuilder
     [#next-free-field: 14]
     
    Protobuf type envoy.data.accesslog.v2.HTTPRequestProperties
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getRequestMethodValue

        public int getRequestMethodValue()
         The request method (RFC 7231/2616).
         
        .envoy.api.v2.core.RequestMethod request_method = 1 [(.validate.rules) = { ... }
        Specified by:
        getRequestMethodValue in interface HTTPRequestPropertiesOrBuilder
        Returns:
        The enum numeric value on the wire for requestMethod.
      • getSchemeBytes

        public com.google.protobuf.ByteString getSchemeBytes()
         The scheme portion of the incoming request URI.
         
        string scheme = 2;
        Specified by:
        getSchemeBytes in interface HTTPRequestPropertiesOrBuilder
        Returns:
        The bytes for scheme.
      • getAuthorityBytes

        public com.google.protobuf.ByteString getAuthorityBytes()
         HTTP/2 ``:authority`` or HTTP/1.1 ``Host`` header value.
         
        string authority = 3;
        Specified by:
        getAuthorityBytes in interface HTTPRequestPropertiesOrBuilder
        Returns:
        The bytes for authority.
      • hasPort

        public boolean hasPort()
         The port of the incoming request URI
         (unused currently, as port is composed onto authority).
         
        .google.protobuf.UInt32Value port = 4;
        Specified by:
        hasPort in interface HTTPRequestPropertiesOrBuilder
        Returns:
        Whether the port field is set.
      • getPort

        public com.google.protobuf.UInt32Value getPort()
         The port of the incoming request URI
         (unused currently, as port is composed onto authority).
         
        .google.protobuf.UInt32Value port = 4;
        Specified by:
        getPort in interface HTTPRequestPropertiesOrBuilder
        Returns:
        The port.
      • getPortOrBuilder

        public com.google.protobuf.UInt32ValueOrBuilder getPortOrBuilder()
         The port of the incoming request URI
         (unused currently, as port is composed onto authority).
         
        .google.protobuf.UInt32Value port = 4;
        Specified by:
        getPortOrBuilder in interface HTTPRequestPropertiesOrBuilder
      • getPathBytes

        public com.google.protobuf.ByteString getPathBytes()
         The path portion from the incoming request URI.
         
        string path = 5;
        Specified by:
        getPathBytes in interface HTTPRequestPropertiesOrBuilder
        Returns:
        The bytes for path.
      • getUserAgentBytes

        public com.google.protobuf.ByteString getUserAgentBytes()
         Value of the ``User-Agent`` request header.
         
        string user_agent = 6;
        Specified by:
        getUserAgentBytes in interface HTTPRequestPropertiesOrBuilder
        Returns:
        The bytes for userAgent.
      • getRefererBytes

        public com.google.protobuf.ByteString getRefererBytes()
         Value of the ``Referer`` request header.
         
        string referer = 7;
        Specified by:
        getRefererBytes in interface HTTPRequestPropertiesOrBuilder
        Returns:
        The bytes for referer.
      • getForwardedForBytes

        public com.google.protobuf.ByteString getForwardedForBytes()
         Value of the ``X-Forwarded-For`` request header.
         
        string forwarded_for = 8;
        Specified by:
        getForwardedForBytes in interface HTTPRequestPropertiesOrBuilder
        Returns:
        The bytes for forwardedFor.
      • getRequestId

        public String getRequestId()
         Value of the ``X-Request-Id`` request header
         This header is used by Envoy to uniquely identify a request.
         It will be generated for all external requests and internal requests that
         do not already have a request ID.
         
        string request_id = 9;
        Specified by:
        getRequestId in interface HTTPRequestPropertiesOrBuilder
        Returns:
        The requestId.
      • getRequestIdBytes

        public com.google.protobuf.ByteString getRequestIdBytes()
         Value of the ``X-Request-Id`` request header
         This header is used by Envoy to uniquely identify a request.
         It will be generated for all external requests and internal requests that
         do not already have a request ID.
         
        string request_id = 9;
        Specified by:
        getRequestIdBytes in interface HTTPRequestPropertiesOrBuilder
        Returns:
        The bytes for requestId.
      • getOriginalPathBytes

        public com.google.protobuf.ByteString getOriginalPathBytes()
         Value of the ``X-Envoy-Original-Path`` request header.
         
        string original_path = 10;
        Specified by:
        getOriginalPathBytes in interface HTTPRequestPropertiesOrBuilder
        Returns:
        The bytes for originalPath.
      • getRequestHeadersBytes

        public long getRequestHeadersBytes()
         Size of the HTTP request headers in bytes.
         This value is captured from the OSI layer 7 perspective, i.e. it does not
         include overhead from framing or encoding at other networking layers.
         
        uint64 request_headers_bytes = 11;
        Specified by:
        getRequestHeadersBytes in interface HTTPRequestPropertiesOrBuilder
        Returns:
        The requestHeadersBytes.
      • getRequestBodyBytes

        public long getRequestBodyBytes()
         Size of the HTTP request body in bytes.
         This value is captured from the OSI layer 7 perspective, i.e. it does not
         include overhead from framing or encoding at other networking layers.
         
        uint64 request_body_bytes = 12;
        Specified by:
        getRequestBodyBytes in interface HTTPRequestPropertiesOrBuilder
        Returns:
        The requestBodyBytes.
      • 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 HTTPRequestProperties parseFrom​(ByteBuffer data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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