Class HTTPResponseProperties.Builder

    • Field Detail

      • bitField0_

        private int bitField0_
      • responseCode_

        private com.google.protobuf.UInt32Value responseCode_
      • responseCodeBuilder_

        private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,​com.google.protobuf.UInt32Value.Builder,​com.google.protobuf.UInt32ValueOrBuilder> responseCodeBuilder_
      • responseHeadersBytes_

        private long responseHeadersBytes_
      • responseBodyBytes_

        private long responseBodyBytes_
      • responseHeaders_

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

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

        private java.lang.Object responseCodeDetails_
      • upstreamHeaderBytesReceived_

        private long upstreamHeaderBytesReceived_
      • downstreamHeaderBytesSent_

        private long downstreamHeaderBytesSent_
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • 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.Builder<HTTPResponseProperties.Builder>
      • internalGetMutableMapFieldReflection

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection​(int number)
        Overrides:
        internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<HTTPResponseProperties.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<HTTPResponseProperties.Builder>
      • maybeForceBuilderInitialization

        private void maybeForceBuilderInitialization()
      • clear

        public HTTPResponseProperties.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessage.Builder<HTTPResponseProperties.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<HTTPResponseProperties.Builder>
      • getDefaultInstanceForType

        public HTTPResponseProperties getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.Builder<HTTPResponseProperties.Builder>
      • mergeFrom

        public HTTPResponseProperties.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                 throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<HTTPResponseProperties.Builder>
        Throws:
        java.io.IOException
      • 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.
      • setResponseCode

        public HTTPResponseProperties.Builder setResponseCode​(com.google.protobuf.UInt32Value value)
         The HTTP response code returned by Envoy.
         
        .google.protobuf.UInt32Value response_code = 1;
      • setResponseCode

        public HTTPResponseProperties.Builder setResponseCode​(com.google.protobuf.UInt32Value.Builder builderForValue)
         The HTTP response code returned by Envoy.
         
        .google.protobuf.UInt32Value response_code = 1;
      • mergeResponseCode

        public HTTPResponseProperties.Builder mergeResponseCode​(com.google.protobuf.UInt32Value value)
         The HTTP response code returned by Envoy.
         
        .google.protobuf.UInt32Value response_code = 1;
      • clearResponseCode

        public HTTPResponseProperties.Builder clearResponseCode()
         The HTTP response code returned by Envoy.
         
        .google.protobuf.UInt32Value response_code = 1;
      • getResponseCodeBuilder

        public com.google.protobuf.UInt32Value.Builder getResponseCodeBuilder()
         The HTTP response code returned by Envoy.
         
        .google.protobuf.UInt32Value response_code = 1;
      • 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
      • getResponseCodeFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,​com.google.protobuf.UInt32Value.Builder,​com.google.protobuf.UInt32ValueOrBuilder> getResponseCodeFieldBuilder()
         The HTTP response code returned by Envoy.
         
        .google.protobuf.UInt32Value response_code = 1;
      • 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.
      • setResponseHeadersBytes

        public HTTPResponseProperties.Builder setResponseHeadersBytes​(long value)
         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;
        Parameters:
        value - The responseHeadersBytes to set.
        Returns:
        This builder for chaining.
      • clearResponseHeadersBytes

        public HTTPResponseProperties.Builder clearResponseHeadersBytes()
         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;
        Returns:
        This builder for chaining.
      • 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.
      • setResponseBodyBytes

        public HTTPResponseProperties.Builder setResponseBodyBytes​(long value)
         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;
        Parameters:
        value - The responseBodyBytes to set.
        Returns:
        This builder for chaining.
      • clearResponseBodyBytes

        public HTTPResponseProperties.Builder clearResponseBodyBytes()
         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;
        Returns:
        This builder for chaining.
      • internalGetResponseHeaders

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

        private com.google.protobuf.MapField<java.lang.String,​java.lang.String> internalGetMutableResponseHeaders()
      • 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
      • removeResponseHeaders

        public HTTPResponseProperties.Builder removeResponseHeaders​(java.lang.String key)
         Map of additional headers configured to be logged.
         
        map<string, string> response_headers = 4;
      • getMutableResponseHeaders

        @Deprecated
        public java.util.Map<java.lang.String,​java.lang.String> getMutableResponseHeaders()
        Deprecated.
        Use alternate mutation accessors instead.
      • putResponseHeaders

        public HTTPResponseProperties.Builder putResponseHeaders​(java.lang.String key,
                                                                 java.lang.String value)
         Map of additional headers configured to be logged.
         
        map<string, string> response_headers = 4;
      • putAllResponseHeaders

        public HTTPResponseProperties.Builder putAllResponseHeaders​(java.util.Map<java.lang.String,​java.lang.String> values)
         Map of additional headers configured to be logged.
         
        map<string, string> response_headers = 4;
      • internalGetResponseTrailers

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

        private com.google.protobuf.MapField<java.lang.String,​java.lang.String> internalGetMutableResponseTrailers()
      • 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
      • removeResponseTrailers

        public HTTPResponseProperties.Builder removeResponseTrailers​(java.lang.String key)
         Map of trailers configured to be logged.
         
        map<string, string> response_trailers = 5;
      • getMutableResponseTrailers

        @Deprecated
        public java.util.Map<java.lang.String,​java.lang.String> getMutableResponseTrailers()
        Deprecated.
        Use alternate mutation accessors instead.
      • putResponseTrailers

        public HTTPResponseProperties.Builder putResponseTrailers​(java.lang.String key,
                                                                  java.lang.String value)
         Map of trailers configured to be logged.
         
        map<string, string> response_trailers = 5;
      • putAllResponseTrailers

        public HTTPResponseProperties.Builder putAllResponseTrailers​(java.util.Map<java.lang.String,​java.lang.String> values)
         Map of trailers configured to be logged.
         
        map<string, string> response_trailers = 5;
      • 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.
      • setResponseCodeDetails

        public HTTPResponseProperties.Builder setResponseCodeDetails​(java.lang.String value)
         The HTTP response code details.
         
        string response_code_details = 6;
        Parameters:
        value - The responseCodeDetails to set.
        Returns:
        This builder for chaining.
      • clearResponseCodeDetails

        public HTTPResponseProperties.Builder clearResponseCodeDetails()
         The HTTP response code details.
         
        string response_code_details = 6;
        Returns:
        This builder for chaining.
      • setResponseCodeDetailsBytes

        public HTTPResponseProperties.Builder setResponseCodeDetailsBytes​(com.google.protobuf.ByteString value)
         The HTTP response code details.
         
        string response_code_details = 6;
        Parameters:
        value - The bytes for responseCodeDetails to set.
        Returns:
        This builder for chaining.
      • 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.
      • setUpstreamHeaderBytesReceived

        public HTTPResponseProperties.Builder setUpstreamHeaderBytesReceived​(long value)
         Number of header bytes received from the upstream by the http stream, including protocol overhead.
         
        uint64 upstream_header_bytes_received = 7;
        Parameters:
        value - The upstreamHeaderBytesReceived to set.
        Returns:
        This builder for chaining.
      • clearUpstreamHeaderBytesReceived

        public HTTPResponseProperties.Builder clearUpstreamHeaderBytesReceived()
         Number of header bytes received from the upstream by the http stream, including protocol overhead.
         
        uint64 upstream_header_bytes_received = 7;
        Returns:
        This builder for chaining.
      • 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.
      • setDownstreamHeaderBytesSent

        public HTTPResponseProperties.Builder setDownstreamHeaderBytesSent​(long value)
         Number of header bytes sent to the downstream by the http stream, including protocol overhead.
         
        uint64 downstream_header_bytes_sent = 8;
        Parameters:
        value - The downstreamHeaderBytesSent to set.
        Returns:
        This builder for chaining.
      • clearDownstreamHeaderBytesSent

        public HTTPResponseProperties.Builder clearDownstreamHeaderBytesSent()
         Number of header bytes sent to the downstream by the http stream, including protocol overhead.
         
        uint64 downstream_header_bytes_sent = 8;
        Returns:
        This builder for chaining.