Class HTTPResponseProperties

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

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

      • bitField0_

        private int bitField0_
      • RESPONSE_CODE_FIELD_NUMBER

        public static final int RESPONSE_CODE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • responseCode_

        private com.google.protobuf.UInt32Value responseCode_
      • RESPONSE_HEADERS_BYTES_FIELD_NUMBER

        public static final int RESPONSE_HEADERS_BYTES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • responseHeadersBytes_

        private long responseHeadersBytes_
      • RESPONSE_BODY_BYTES_FIELD_NUMBER

        public static final int RESPONSE_BODY_BYTES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • responseBodyBytes_

        private long responseBodyBytes_
      • RESPONSE_HEADERS_FIELD_NUMBER

        public static final int RESPONSE_HEADERS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • responseHeaders_

        private com.google.protobuf.MapField<java.lang.String,​java.lang.String> responseHeaders_
      • RESPONSE_TRAILERS_FIELD_NUMBER

        public static final int RESPONSE_TRAILERS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • responseTrailers_

        private com.google.protobuf.MapField<java.lang.String,​java.lang.String> responseTrailers_
      • RESPONSE_CODE_DETAILS_FIELD_NUMBER

        public static final int RESPONSE_CODE_DETAILS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • responseCodeDetails_

        private volatile java.lang.Object responseCodeDetails_
      • UPSTREAM_HEADER_BYTES_RECEIVED_FIELD_NUMBER

        public static final int UPSTREAM_HEADER_BYTES_RECEIVED_FIELD_NUMBER
        See Also:
        Constant Field Values
      • upstreamHeaderBytesReceived_

        private long upstreamHeaderBytesReceived_
      • DOWNSTREAM_HEADER_BYTES_SENT_FIELD_NUMBER

        public static final int DOWNSTREAM_HEADER_BYTES_SENT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • downstreamHeaderBytesSent_

        private long downstreamHeaderBytesSent_
      • memoizedIsInitialized

        private byte memoizedIsInitialized
    • Constructor Detail

      • HTTPResponseProperties

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

        private HTTPResponseProperties()
    • 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
      • hasResponseCode

        public boolean hasResponseCode()
         The HTTP response code returned by Envoy.
         
        .google.protobuf.UInt32Value response_code = 1;
        Specified by:
        hasResponseCode in interface HTTPResponsePropertiesOrBuilder
        Returns:
        Whether the responseCode field is set.
      • getResponseCode

        public com.google.protobuf.UInt32Value getResponseCode()
         The HTTP response code returned by Envoy.
         
        .google.protobuf.UInt32Value response_code = 1;
        Specified by:
        getResponseCode in interface HTTPResponsePropertiesOrBuilder
        Returns:
        The responseCode.
      • getResponseCodeOrBuilder

        public com.google.protobuf.UInt32ValueOrBuilder getResponseCodeOrBuilder()
         The HTTP response code returned by Envoy.
         
        .google.protobuf.UInt32Value response_code = 1;
        Specified by:
        getResponseCodeOrBuilder in interface HTTPResponsePropertiesOrBuilder
      • getResponseHeadersBytes

        public long getResponseHeadersBytes()
         Size of the HTTP response headers in bytes.
        
         This value is captured from the OSI layer 7 perspective, i.e. it does not
         include protocol overhead or overhead from framing or encoding at other networking layers.
         
        uint64 response_headers_bytes = 2;
        Specified by:
        getResponseHeadersBytes in interface HTTPResponsePropertiesOrBuilder
        Returns:
        The responseHeadersBytes.
      • getResponseBodyBytes

        public long getResponseBodyBytes()
         Size of the HTTP response 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 response_body_bytes = 3;
        Specified by:
        getResponseBodyBytes in interface HTTPResponsePropertiesOrBuilder
        Returns:
        The responseBodyBytes.
      • internalGetResponseHeaders

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

        public boolean containsResponseHeaders​(java.lang.String key)
         Map of additional headers configured to be logged.
         
        map<string, string> response_headers = 4;
        Specified by:
        containsResponseHeaders in interface HTTPResponsePropertiesOrBuilder
      • getResponseHeadersMap

        public java.util.Map<java.lang.String,​java.lang.String> getResponseHeadersMap()
         Map of additional headers configured to be logged.
         
        map<string, string> response_headers = 4;
        Specified by:
        getResponseHeadersMap in interface HTTPResponsePropertiesOrBuilder
      • getResponseHeadersOrDefault

        public java.lang.String getResponseHeadersOrDefault​(java.lang.String key,
                                                            java.lang.String defaultValue)
         Map of additional headers configured to be logged.
         
        map<string, string> response_headers = 4;
        Specified by:
        getResponseHeadersOrDefault in interface HTTPResponsePropertiesOrBuilder
      • getResponseHeadersOrThrow

        public java.lang.String getResponseHeadersOrThrow​(java.lang.String key)
         Map of additional headers configured to be logged.
         
        map<string, string> response_headers = 4;
        Specified by:
        getResponseHeadersOrThrow in interface HTTPResponsePropertiesOrBuilder
      • internalGetResponseTrailers

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

        public java.util.Map<java.lang.String,​java.lang.String> getResponseTrailersMap()
         Map of trailers configured to be logged.
         
        map<string, string> response_trailers = 5;
        Specified by:
        getResponseTrailersMap in interface HTTPResponsePropertiesOrBuilder
      • getResponseTrailersOrDefault

        public java.lang.String getResponseTrailersOrDefault​(java.lang.String key,
                                                             java.lang.String defaultValue)
         Map of trailers configured to be logged.
         
        map<string, string> response_trailers = 5;
        Specified by:
        getResponseTrailersOrDefault in interface HTTPResponsePropertiesOrBuilder
      • getResponseCodeDetailsBytes

        public com.google.protobuf.ByteString getResponseCodeDetailsBytes()
         The HTTP response code details.
         
        string response_code_details = 6;
        Specified by:
        getResponseCodeDetailsBytes in interface HTTPResponsePropertiesOrBuilder
        Returns:
        The bytes for responseCodeDetails.
      • getUpstreamHeaderBytesReceived

        public long getUpstreamHeaderBytesReceived()
         Number of header bytes received from the upstream by the http stream, including protocol overhead.
         
        uint64 upstream_header_bytes_received = 7;
        Specified by:
        getUpstreamHeaderBytesReceived in interface HTTPResponsePropertiesOrBuilder
        Returns:
        The upstreamHeaderBytesReceived.
      • getDownstreamHeaderBytesSent

        public long getDownstreamHeaderBytesSent()
         Number of header bytes sent to the downstream by the http stream, including protocol overhead.
         
        uint64 downstream_header_bytes_sent = 8;
        Specified by:
        getDownstreamHeaderBytesSent in interface HTTPResponsePropertiesOrBuilder
        Returns:
        The downstreamHeaderBytesSent.
      • 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 HTTPResponseProperties parseFrom​(java.nio.ByteBuffer data)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

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

        protected HTTPResponseProperties.Builder newBuilderForType​(com.google.protobuf.AbstractMessage.BuilderParent parent)
        Overrides:
        newBuilderForType in class com.google.protobuf.AbstractMessage
      • getParserForType

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