Class HTTPResponseProperties.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<HTTPResponseProperties.Builder>
com.google.protobuf.GeneratedMessage.Builder<HTTPResponseProperties.Builder>
io.envoyproxy.envoy.data.accesslog.v3.HTTPResponseProperties.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, HTTPResponsePropertiesOrBuilder, Cloneable
Enclosing class:
HTTPResponseProperties

public static final class HTTPResponseProperties.Builder extends com.google.protobuf.GeneratedMessage.Builder<HTTPResponseProperties.Builder> implements HTTPResponsePropertiesOrBuilder
 [#next-free-field: 9]
 
Protobuf type envoy.data.accesslog.v3.HTTPResponseProperties
  • Field Details

    • 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<String,String> responseHeaders_
    • responseTrailers_

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

      private Object responseCodeDetails_
    • upstreamHeaderBytesReceived_

      private long upstreamHeaderBytesReceived_
    • downstreamHeaderBytesSent_

      private long downstreamHeaderBytesSent_
  • Constructor Details

    • Builder

      private Builder()
    • Builder

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

      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
    • buildPartial0

      private void buildPartial0(HTTPResponseProperties result)
    • mergeFrom

      public HTTPResponseProperties.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<HTTPResponseProperties.Builder>
    • mergeFrom

    • 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 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:
      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
    • internalGetResponseCodeFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,com.google.protobuf.UInt32Value.Builder,com.google.protobuf.UInt32ValueOrBuilder> internalGetResponseCodeFieldBuilder()
       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<String,String> internalGetResponseHeaders()
    • internalGetMutableResponseHeaders

      private com.google.protobuf.MapField<String,String> internalGetMutableResponseHeaders()
    • getResponseHeadersCount

      public int getResponseHeadersCount()
      Description copied from interface: HTTPResponsePropertiesOrBuilder
       Map of additional headers configured to be logged.
       
      map<string, string> response_headers = 4;
      Specified by:
      getResponseHeadersCount in interface HTTPResponsePropertiesOrBuilder
    • containsResponseHeaders

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

      @Deprecated public Map<String,String> getResponseHeaders()
      Deprecated.
      Specified by:
      getResponseHeaders in interface HTTPResponsePropertiesOrBuilder
    • getResponseHeadersMap

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

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

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

      public HTTPResponseProperties.Builder clearResponseHeaders()
    • removeResponseHeaders

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

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

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

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

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

      private com.google.protobuf.MapField<String,String> internalGetMutableResponseTrailers()
    • getResponseTrailersCount

      public int getResponseTrailersCount()
      Description copied from interface: HTTPResponsePropertiesOrBuilder
       Map of trailers configured to be logged.
       
      map<string, string> response_trailers = 5;
      Specified by:
      getResponseTrailersCount in interface HTTPResponsePropertiesOrBuilder
    • containsResponseTrailers

      public boolean containsResponseTrailers(String key)
       Map of trailers configured to be logged.
       
      map<string, string> response_trailers = 5;
      Specified by:
      containsResponseTrailers in interface HTTPResponsePropertiesOrBuilder
    • getResponseTrailers

      @Deprecated public Map<String,String> getResponseTrailers()
      Deprecated.
      Specified by:
      getResponseTrailers in interface HTTPResponsePropertiesOrBuilder
    • getResponseTrailersMap

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

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

      public String getResponseTrailersOrThrow(String key)
       Map of trailers configured to be logged.
       
      map<string, string> response_trailers = 5;
      Specified by:
      getResponseTrailersOrThrow in interface HTTPResponsePropertiesOrBuilder
    • clearResponseTrailers

      public HTTPResponseProperties.Builder clearResponseTrailers()
    • removeResponseTrailers

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

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

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

      public HTTPResponseProperties.Builder putAllResponseTrailers(Map<String,String> values)
       Map of trailers configured to be logged.
       
      map<string, string> response_trailers = 5;
    • getResponseCodeDetails

      public String getResponseCodeDetails()
       The HTTP response code details.
       
      string response_code_details = 6;
      Specified by:
      getResponseCodeDetails in interface HTTPResponsePropertiesOrBuilder
      Returns:
      The responseCodeDetails.
    • 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(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.