Class HTTPRequestProperties

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

    public final class HTTPRequestProperties
    extends com.google.protobuf.GeneratedMessage
    implements HTTPRequestPropertiesOrBuilder
     [#next-free-field: 16]
     
    Protobuf type envoy.data.accesslog.v3.HTTPRequestProperties
    See Also:
    Serialized Form
    • Field Detail

      • bitField0_

        private int bitField0_
      • REQUEST_METHOD_FIELD_NUMBER

        public static final int REQUEST_METHOD_FIELD_NUMBER
        See Also:
        Constant Field Values
      • requestMethod_

        private int requestMethod_
      • scheme_

        private volatile java.lang.Object scheme_
      • authority_

        private volatile java.lang.Object authority_
      • port_

        private com.google.protobuf.UInt32Value port_
      • path_

        private volatile java.lang.Object path_
      • USER_AGENT_FIELD_NUMBER

        public static final int USER_AGENT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • userAgent_

        private volatile java.lang.Object userAgent_
      • referer_

        private volatile java.lang.Object referer_
      • FORWARDED_FOR_FIELD_NUMBER

        public static final int FORWARDED_FOR_FIELD_NUMBER
        See Also:
        Constant Field Values
      • forwardedFor_

        private volatile java.lang.Object forwardedFor_
      • REQUEST_ID_FIELD_NUMBER

        public static final int REQUEST_ID_FIELD_NUMBER
        See Also:
        Constant Field Values
      • requestId_

        private volatile java.lang.Object requestId_
      • ORIGINAL_PATH_FIELD_NUMBER

        public static final int ORIGINAL_PATH_FIELD_NUMBER
        See Also:
        Constant Field Values
      • originalPath_

        private volatile java.lang.Object originalPath_
      • REQUEST_HEADERS_BYTES_FIELD_NUMBER

        public static final int REQUEST_HEADERS_BYTES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • requestHeadersBytes_

        private long requestHeadersBytes_
      • REQUEST_BODY_BYTES_FIELD_NUMBER

        public static final int REQUEST_BODY_BYTES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • requestBodyBytes_

        private long requestBodyBytes_
      • REQUEST_HEADERS_FIELD_NUMBER

        public static final int REQUEST_HEADERS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • requestHeaders_

        private com.google.protobuf.MapField<java.lang.String,​java.lang.String> requestHeaders_
      • UPSTREAM_HEADER_BYTES_SENT_FIELD_NUMBER

        public static final int UPSTREAM_HEADER_BYTES_SENT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • upstreamHeaderBytesSent_

        private long upstreamHeaderBytesSent_
      • DOWNSTREAM_HEADER_BYTES_RECEIVED_FIELD_NUMBER

        public static final int DOWNSTREAM_HEADER_BYTES_RECEIVED_FIELD_NUMBER
        See Also:
        Constant Field Values
      • downstreamHeaderBytesReceived_

        private long downstreamHeaderBytesReceived_
      • memoizedIsInitialized

        private byte memoizedIsInitialized
    • Constructor Detail

      • HTTPRequestProperties

        private HTTPRequestProperties​(com.google.protobuf.GeneratedMessage.Builder<?> builder)
      • HTTPRequestProperties

        private HTTPRequestProperties()
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapFieldReflection

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection​(int number)
        Overrides:
        internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
      • internalGetFieldAccessorTable

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

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

        public java.lang.String getScheme()
         The scheme portion of the incoming request URI.
         
        string scheme = 2;
        Specified by:
        getScheme in interface HTTPRequestPropertiesOrBuilder
        Returns:
        The scheme.
      • 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.
      • getAuthority

        public java.lang.String getAuthority()
         HTTP/2 ``:authority`` or HTTP/1.1 ``Host`` header value.
         
        string authority = 3;
        Specified by:
        getAuthority in interface HTTPRequestPropertiesOrBuilder
        Returns:
        The authority.
      • 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
      • getPath

        public java.lang.String getPath()
         The path portion from the incoming request URI.
         
        string path = 5;
        Specified by:
        getPath in interface HTTPRequestPropertiesOrBuilder
        Returns:
        The path.
      • 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.
      • getUserAgent

        public java.lang.String getUserAgent()
         Value of the ``User-Agent`` request header.
         
        string user_agent = 6;
        Specified by:
        getUserAgent in interface HTTPRequestPropertiesOrBuilder
        Returns:
        The userAgent.
      • 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.
      • getReferer

        public java.lang.String getReferer()
         Value of the ``Referer`` request header.
         
        string referer = 7;
        Specified by:
        getReferer in interface HTTPRequestPropertiesOrBuilder
        Returns:
        The referer.
      • 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.
      • getForwardedFor

        public java.lang.String getForwardedFor()
         Value of the ``X-Forwarded-For`` request header.
         
        string forwarded_for = 8;
        Specified by:
        getForwardedFor in interface HTTPRequestPropertiesOrBuilder
        Returns:
        The forwardedFor.
      • 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 java.lang.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.
      • getOriginalPath

        public java.lang.String getOriginalPath()
         Value of the ``X-Envoy-Original-Path`` request header.
         
        string original_path = 10;
        Specified by:
        getOriginalPath in interface HTTPRequestPropertiesOrBuilder
        Returns:
        The originalPath.
      • 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.
      • internalGetRequestHeaders

        private com.google.protobuf.MapField<java.lang.String,​java.lang.String> internalGetRequestHeaders()
      • containsRequestHeaders

        public boolean containsRequestHeaders​(java.lang.String key)
         Map of additional headers that have been configured to be logged.
         
        map<string, string> request_headers = 13;
        Specified by:
        containsRequestHeaders in interface HTTPRequestPropertiesOrBuilder
      • getRequestHeadersMap

        public java.util.Map<java.lang.String,​java.lang.String> getRequestHeadersMap()
         Map of additional headers that have been configured to be logged.
         
        map<string, string> request_headers = 13;
        Specified by:
        getRequestHeadersMap in interface HTTPRequestPropertiesOrBuilder
      • getRequestHeadersOrDefault

        public java.lang.String getRequestHeadersOrDefault​(java.lang.String key,
                                                           java.lang.String defaultValue)
         Map of additional headers that have been configured to be logged.
         
        map<string, string> request_headers = 13;
        Specified by:
        getRequestHeadersOrDefault in interface HTTPRequestPropertiesOrBuilder
      • getRequestHeadersOrThrow

        public java.lang.String getRequestHeadersOrThrow​(java.lang.String key)
         Map of additional headers that have been configured to be logged.
         
        map<string, string> request_headers = 13;
        Specified by:
        getRequestHeadersOrThrow in interface HTTPRequestPropertiesOrBuilder
      • getUpstreamHeaderBytesSent

        public long getUpstreamHeaderBytesSent()
         Number of header bytes sent to the upstream by the http stream, including protocol overhead.
        
         This value accumulates during upstream retries.
         
        uint64 upstream_header_bytes_sent = 14;
        Specified by:
        getUpstreamHeaderBytesSent in interface HTTPRequestPropertiesOrBuilder
        Returns:
        The upstreamHeaderBytesSent.
      • getDownstreamHeaderBytesReceived

        public long getDownstreamHeaderBytesReceived()
         Number of header bytes received from the downstream by the http stream, including protocol overhead.
         
        uint64 downstream_header_bytes_received = 15;
        Specified by:
        getDownstreamHeaderBytesReceived in interface HTTPRequestPropertiesOrBuilder
        Returns:
        The downstreamHeaderBytesReceived.
      • isInitialized

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

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

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

        public boolean equals​(java.lang.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​(java.nio.ByteBuffer data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static HTTPRequestProperties parseFrom​(java.nio.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
      • parseFrom

        public static HTTPRequestProperties parseFrom​(java.io.InputStream input)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static HTTPRequestProperties parseFrom​(java.io.InputStream input,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static HTTPRequestProperties parseDelimitedFrom​(java.io.InputStream input)
                                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static HTTPRequestProperties parseDelimitedFrom​(java.io.InputStream input,
                                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static HTTPRequestProperties parseFrom​(com.google.protobuf.CodedInputStream input)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static HTTPRequestProperties parseFrom​(com.google.protobuf.CodedInputStream input,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • 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.AbstractMessage.BuilderParent parent)
        Overrides:
        newBuilderForType in class com.google.protobuf.AbstractMessage
      • 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.GeneratedMessage
      • getDefaultInstanceForType

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