Class HTTPRequestProperties

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.envoyproxy.envoy.data.accesslog.v3.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.GeneratedMessage implements HTTPRequestPropertiesOrBuilder
 [#next-free-field: 16]
 
Protobuf type envoy.data.accesslog.v3.HTTPRequestProperties
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • bitField0_

      private int bitField0_
    • REQUEST_METHOD_FIELD_NUMBER

      public static final int REQUEST_METHOD_FIELD_NUMBER
      See Also:
    • requestMethod_

      private int requestMethod_
    • SCHEME_FIELD_NUMBER

      public static final int SCHEME_FIELD_NUMBER
      See Also:
    • scheme_

      private volatile Object scheme_
    • AUTHORITY_FIELD_NUMBER

      public static final int AUTHORITY_FIELD_NUMBER
      See Also:
    • authority_

      private volatile Object authority_
    • PORT_FIELD_NUMBER

      public static final int PORT_FIELD_NUMBER
      See Also:
    • port_

      private com.google.protobuf.UInt32Value port_
    • PATH_FIELD_NUMBER

      public static final int PATH_FIELD_NUMBER
      See Also:
    • path_

      private volatile Object path_
    • USER_AGENT_FIELD_NUMBER

      public static final int USER_AGENT_FIELD_NUMBER
      See Also:
    • userAgent_

      private volatile Object userAgent_
    • REFERER_FIELD_NUMBER

      public static final int REFERER_FIELD_NUMBER
      See Also:
    • referer_

      private volatile Object referer_
    • FORWARDED_FOR_FIELD_NUMBER

      public static final int FORWARDED_FOR_FIELD_NUMBER
      See Also:
    • forwardedFor_

      private volatile Object forwardedFor_
    • REQUEST_ID_FIELD_NUMBER

      public static final int REQUEST_ID_FIELD_NUMBER
      See Also:
    • requestId_

      private volatile Object requestId_
    • ORIGINAL_PATH_FIELD_NUMBER

      public static final int ORIGINAL_PATH_FIELD_NUMBER
      See Also:
    • originalPath_

      private volatile Object originalPath_
    • REQUEST_HEADERS_BYTES_FIELD_NUMBER

      public static final int REQUEST_HEADERS_BYTES_FIELD_NUMBER
      See Also:
    • requestHeadersBytes_

      private long requestHeadersBytes_
    • REQUEST_BODY_BYTES_FIELD_NUMBER

      public static final int REQUEST_BODY_BYTES_FIELD_NUMBER
      See Also:
    • requestBodyBytes_

      private long requestBodyBytes_
    • REQUEST_HEADERS_FIELD_NUMBER

      public static final int REQUEST_HEADERS_FIELD_NUMBER
      See Also:
    • requestHeaders_

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

      public static final int UPSTREAM_HEADER_BYTES_SENT_FIELD_NUMBER
      See Also:
    • upstreamHeaderBytesSent_

      private long upstreamHeaderBytesSent_
    • DOWNSTREAM_HEADER_BYTES_RECEIVED_FIELD_NUMBER

      public static final int DOWNSTREAM_HEADER_BYTES_RECEIVED_FIELD_NUMBER
      See Also:
    • downstreamHeaderBytesReceived_

      private long downstreamHeaderBytesReceived_
    • memoizedIsInitialized

      private byte memoizedIsInitialized
    • DEFAULT_INSTANCE

      private static final HTTPRequestProperties DEFAULT_INSTANCE
    • PARSER

      private static final com.google.protobuf.Parser<HTTPRequestProperties> PARSER
  • Constructor Details

    • HTTPRequestProperties

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

      private HTTPRequestProperties()
  • Method Details

    • 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.
    • getRequestMethod

      public RequestMethod getRequestMethod()
       The request method (RFC 7231/2616).
       
      .envoy.config.core.v3.RequestMethod request_method = 1 [(.validate.rules) = { ... }
      Specified by:
      getRequestMethod in interface HTTPRequestPropertiesOrBuilder
      Returns:
      The requestMethod.
    • getScheme

      public 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 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 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 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 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 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 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 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<String,String> internalGetRequestHeaders()
    • getRequestHeadersCount

      public int getRequestHeadersCount()
      Description copied from interface: HTTPRequestPropertiesOrBuilder
       Map of additional headers that have been configured to be logged.
       
      map<string, string> request_headers = 13;
      Specified by:
      getRequestHeadersCount in interface HTTPRequestPropertiesOrBuilder
    • containsRequestHeaders

      public boolean containsRequestHeaders(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
    • getRequestHeaders

      @Deprecated public Map<String,String> getRequestHeaders()
      Deprecated.
      Specified by:
      getRequestHeaders in interface HTTPRequestPropertiesOrBuilder
    • getRequestHeadersMap

      public Map<String,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 String getRequestHeadersOrDefault(String key, 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 String getRequestHeadersOrThrow(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 IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      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(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
    • parseFrom

      public static HTTPRequestProperties parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static HTTPRequestProperties parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static HTTPRequestProperties.Builder newBuilder()
    • newBuilder

      public static HTTPRequestProperties.Builder newBuilder(HTTPRequestProperties prototype)
    • 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
    • getDefaultInstance

      public static HTTPRequestProperties getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<HTTPRequestProperties> parser()
    • 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