Class HttpGrpcAccessLogConfig.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, HttpGrpcAccessLogConfigOrBuilder, Cloneable
    Enclosing class:
    HttpGrpcAccessLogConfig

    public static final class HttpGrpcAccessLogConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<HttpGrpcAccessLogConfig.Builder>
    implements HttpGrpcAccessLogConfigOrBuilder
     Configuration for the built-in ``envoy.access_loggers.http_grpc``
     :ref:`AccessLog <envoy_v3_api_msg_config.accesslog.v3.AccessLog>`. This configuration will
     populate :ref:`StreamAccessLogsMessage.http_logs
     <envoy_v3_api_field_service.accesslog.v3.StreamAccessLogsMessage.http_logs>`.
     [#extension: envoy.access_loggers.http_grpc]
     
    Protobuf type envoy.extensions.access_loggers.grpc.v3.HttpGrpcAccessLogConfig
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<HttpGrpcAccessLogConfig.Builder>
      • clear

        public HttpGrpcAccessLogConfig.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.GeneratedMessageV3.Builder<HttpGrpcAccessLogConfig.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.GeneratedMessageV3.Builder<HttpGrpcAccessLogConfig.Builder>
      • getDefaultInstanceForType

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

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

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

        public HttpGrpcAccessLogConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<HttpGrpcAccessLogConfig.Builder>
      • clearField

        public HttpGrpcAccessLogConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<HttpGrpcAccessLogConfig.Builder>
      • clearOneof

        public HttpGrpcAccessLogConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<HttpGrpcAccessLogConfig.Builder>
      • setRepeatedField

        public HttpGrpcAccessLogConfig.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                int index,
                                                                Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<HttpGrpcAccessLogConfig.Builder>
      • addRepeatedField

        public HttpGrpcAccessLogConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<HttpGrpcAccessLogConfig.Builder>
      • isInitialized

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

        public HttpGrpcAccessLogConfig.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<HttpGrpcAccessLogConfig.Builder>
        Throws:
        IOException
      • hasCommonConfig

        public boolean hasCommonConfig()
        .envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig common_config = 1 [(.validate.rules) = { ... }
        Specified by:
        hasCommonConfig in interface HttpGrpcAccessLogConfigOrBuilder
        Returns:
        Whether the commonConfig field is set.
      • clearCommonConfig

        public HttpGrpcAccessLogConfig.Builder clearCommonConfig()
        .envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig common_config = 1 [(.validate.rules) = { ... }
      • getCommonConfigBuilder

        public CommonGrpcAccessLogConfig.Builder getCommonConfigBuilder()
        .envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig common_config = 1 [(.validate.rules) = { ... }
      • getAdditionalRequestHeadersToLogList

        public com.google.protobuf.ProtocolStringList getAdditionalRequestHeadersToLogList()
         Additional request headers to log in :ref:`HTTPRequestProperties.request_headers
         <envoy_v3_api_field_data.accesslog.v3.HTTPRequestProperties.request_headers>`.
         
        repeated string additional_request_headers_to_log = 2;
        Specified by:
        getAdditionalRequestHeadersToLogList in interface HttpGrpcAccessLogConfigOrBuilder
        Returns:
        A list containing the additionalRequestHeadersToLog.
      • getAdditionalRequestHeadersToLogCount

        public int getAdditionalRequestHeadersToLogCount()
         Additional request headers to log in :ref:`HTTPRequestProperties.request_headers
         <envoy_v3_api_field_data.accesslog.v3.HTTPRequestProperties.request_headers>`.
         
        repeated string additional_request_headers_to_log = 2;
        Specified by:
        getAdditionalRequestHeadersToLogCount in interface HttpGrpcAccessLogConfigOrBuilder
        Returns:
        The count of additionalRequestHeadersToLog.
      • getAdditionalRequestHeadersToLog

        public String getAdditionalRequestHeadersToLog​(int index)
         Additional request headers to log in :ref:`HTTPRequestProperties.request_headers
         <envoy_v3_api_field_data.accesslog.v3.HTTPRequestProperties.request_headers>`.
         
        repeated string additional_request_headers_to_log = 2;
        Specified by:
        getAdditionalRequestHeadersToLog in interface HttpGrpcAccessLogConfigOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The additionalRequestHeadersToLog at the given index.
      • getAdditionalRequestHeadersToLogBytes

        public com.google.protobuf.ByteString getAdditionalRequestHeadersToLogBytes​(int index)
         Additional request headers to log in :ref:`HTTPRequestProperties.request_headers
         <envoy_v3_api_field_data.accesslog.v3.HTTPRequestProperties.request_headers>`.
         
        repeated string additional_request_headers_to_log = 2;
        Specified by:
        getAdditionalRequestHeadersToLogBytes in interface HttpGrpcAccessLogConfigOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the additionalRequestHeadersToLog at the given index.
      • setAdditionalRequestHeadersToLog

        public HttpGrpcAccessLogConfig.Builder setAdditionalRequestHeadersToLog​(int index,
                                                                                String value)
         Additional request headers to log in :ref:`HTTPRequestProperties.request_headers
         <envoy_v3_api_field_data.accesslog.v3.HTTPRequestProperties.request_headers>`.
         
        repeated string additional_request_headers_to_log = 2;
        Parameters:
        index - The index to set the value at.
        value - The additionalRequestHeadersToLog to set.
        Returns:
        This builder for chaining.
      • addAdditionalRequestHeadersToLog

        public HttpGrpcAccessLogConfig.Builder addAdditionalRequestHeadersToLog​(String value)
         Additional request headers to log in :ref:`HTTPRequestProperties.request_headers
         <envoy_v3_api_field_data.accesslog.v3.HTTPRequestProperties.request_headers>`.
         
        repeated string additional_request_headers_to_log = 2;
        Parameters:
        value - The additionalRequestHeadersToLog to add.
        Returns:
        This builder for chaining.
      • addAllAdditionalRequestHeadersToLog

        public HttpGrpcAccessLogConfig.Builder addAllAdditionalRequestHeadersToLog​(Iterable<String> values)
         Additional request headers to log in :ref:`HTTPRequestProperties.request_headers
         <envoy_v3_api_field_data.accesslog.v3.HTTPRequestProperties.request_headers>`.
         
        repeated string additional_request_headers_to_log = 2;
        Parameters:
        values - The additionalRequestHeadersToLog to add.
        Returns:
        This builder for chaining.
      • clearAdditionalRequestHeadersToLog

        public HttpGrpcAccessLogConfig.Builder clearAdditionalRequestHeadersToLog()
         Additional request headers to log in :ref:`HTTPRequestProperties.request_headers
         <envoy_v3_api_field_data.accesslog.v3.HTTPRequestProperties.request_headers>`.
         
        repeated string additional_request_headers_to_log = 2;
        Returns:
        This builder for chaining.
      • addAdditionalRequestHeadersToLogBytes

        public HttpGrpcAccessLogConfig.Builder addAdditionalRequestHeadersToLogBytes​(com.google.protobuf.ByteString value)
         Additional request headers to log in :ref:`HTTPRequestProperties.request_headers
         <envoy_v3_api_field_data.accesslog.v3.HTTPRequestProperties.request_headers>`.
         
        repeated string additional_request_headers_to_log = 2;
        Parameters:
        value - The bytes of the additionalRequestHeadersToLog to add.
        Returns:
        This builder for chaining.
      • getAdditionalResponseHeadersToLogList

        public com.google.protobuf.ProtocolStringList getAdditionalResponseHeadersToLogList()
         Additional response headers to log in :ref:`HTTPResponseProperties.response_headers
         <envoy_v3_api_field_data.accesslog.v3.HTTPResponseProperties.response_headers>`.
         
        repeated string additional_response_headers_to_log = 3;
        Specified by:
        getAdditionalResponseHeadersToLogList in interface HttpGrpcAccessLogConfigOrBuilder
        Returns:
        A list containing the additionalResponseHeadersToLog.
      • getAdditionalResponseHeadersToLogCount

        public int getAdditionalResponseHeadersToLogCount()
         Additional response headers to log in :ref:`HTTPResponseProperties.response_headers
         <envoy_v3_api_field_data.accesslog.v3.HTTPResponseProperties.response_headers>`.
         
        repeated string additional_response_headers_to_log = 3;
        Specified by:
        getAdditionalResponseHeadersToLogCount in interface HttpGrpcAccessLogConfigOrBuilder
        Returns:
        The count of additionalResponseHeadersToLog.
      • getAdditionalResponseHeadersToLog

        public String getAdditionalResponseHeadersToLog​(int index)
         Additional response headers to log in :ref:`HTTPResponseProperties.response_headers
         <envoy_v3_api_field_data.accesslog.v3.HTTPResponseProperties.response_headers>`.
         
        repeated string additional_response_headers_to_log = 3;
        Specified by:
        getAdditionalResponseHeadersToLog in interface HttpGrpcAccessLogConfigOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The additionalResponseHeadersToLog at the given index.
      • getAdditionalResponseHeadersToLogBytes

        public com.google.protobuf.ByteString getAdditionalResponseHeadersToLogBytes​(int index)
         Additional response headers to log in :ref:`HTTPResponseProperties.response_headers
         <envoy_v3_api_field_data.accesslog.v3.HTTPResponseProperties.response_headers>`.
         
        repeated string additional_response_headers_to_log = 3;
        Specified by:
        getAdditionalResponseHeadersToLogBytes in interface HttpGrpcAccessLogConfigOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the additionalResponseHeadersToLog at the given index.
      • setAdditionalResponseHeadersToLog

        public HttpGrpcAccessLogConfig.Builder setAdditionalResponseHeadersToLog​(int index,
                                                                                 String value)
         Additional response headers to log in :ref:`HTTPResponseProperties.response_headers
         <envoy_v3_api_field_data.accesslog.v3.HTTPResponseProperties.response_headers>`.
         
        repeated string additional_response_headers_to_log = 3;
        Parameters:
        index - The index to set the value at.
        value - The additionalResponseHeadersToLog to set.
        Returns:
        This builder for chaining.
      • addAdditionalResponseHeadersToLog

        public HttpGrpcAccessLogConfig.Builder addAdditionalResponseHeadersToLog​(String value)
         Additional response headers to log in :ref:`HTTPResponseProperties.response_headers
         <envoy_v3_api_field_data.accesslog.v3.HTTPResponseProperties.response_headers>`.
         
        repeated string additional_response_headers_to_log = 3;
        Parameters:
        value - The additionalResponseHeadersToLog to add.
        Returns:
        This builder for chaining.
      • addAllAdditionalResponseHeadersToLog

        public HttpGrpcAccessLogConfig.Builder addAllAdditionalResponseHeadersToLog​(Iterable<String> values)
         Additional response headers to log in :ref:`HTTPResponseProperties.response_headers
         <envoy_v3_api_field_data.accesslog.v3.HTTPResponseProperties.response_headers>`.
         
        repeated string additional_response_headers_to_log = 3;
        Parameters:
        values - The additionalResponseHeadersToLog to add.
        Returns:
        This builder for chaining.
      • clearAdditionalResponseHeadersToLog

        public HttpGrpcAccessLogConfig.Builder clearAdditionalResponseHeadersToLog()
         Additional response headers to log in :ref:`HTTPResponseProperties.response_headers
         <envoy_v3_api_field_data.accesslog.v3.HTTPResponseProperties.response_headers>`.
         
        repeated string additional_response_headers_to_log = 3;
        Returns:
        This builder for chaining.
      • addAdditionalResponseHeadersToLogBytes

        public HttpGrpcAccessLogConfig.Builder addAdditionalResponseHeadersToLogBytes​(com.google.protobuf.ByteString value)
         Additional response headers to log in :ref:`HTTPResponseProperties.response_headers
         <envoy_v3_api_field_data.accesslog.v3.HTTPResponseProperties.response_headers>`.
         
        repeated string additional_response_headers_to_log = 3;
        Parameters:
        value - The bytes of the additionalResponseHeadersToLog to add.
        Returns:
        This builder for chaining.
      • getAdditionalResponseTrailersToLogList

        public com.google.protobuf.ProtocolStringList getAdditionalResponseTrailersToLogList()
         Additional response trailers to log in :ref:`HTTPResponseProperties.response_trailers
         <envoy_v3_api_field_data.accesslog.v3.HTTPResponseProperties.response_trailers>`.
         
        repeated string additional_response_trailers_to_log = 4;
        Specified by:
        getAdditionalResponseTrailersToLogList in interface HttpGrpcAccessLogConfigOrBuilder
        Returns:
        A list containing the additionalResponseTrailersToLog.
      • getAdditionalResponseTrailersToLogCount

        public int getAdditionalResponseTrailersToLogCount()
         Additional response trailers to log in :ref:`HTTPResponseProperties.response_trailers
         <envoy_v3_api_field_data.accesslog.v3.HTTPResponseProperties.response_trailers>`.
         
        repeated string additional_response_trailers_to_log = 4;
        Specified by:
        getAdditionalResponseTrailersToLogCount in interface HttpGrpcAccessLogConfigOrBuilder
        Returns:
        The count of additionalResponseTrailersToLog.
      • getAdditionalResponseTrailersToLog

        public String getAdditionalResponseTrailersToLog​(int index)
         Additional response trailers to log in :ref:`HTTPResponseProperties.response_trailers
         <envoy_v3_api_field_data.accesslog.v3.HTTPResponseProperties.response_trailers>`.
         
        repeated string additional_response_trailers_to_log = 4;
        Specified by:
        getAdditionalResponseTrailersToLog in interface HttpGrpcAccessLogConfigOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The additionalResponseTrailersToLog at the given index.
      • getAdditionalResponseTrailersToLogBytes

        public com.google.protobuf.ByteString getAdditionalResponseTrailersToLogBytes​(int index)
         Additional response trailers to log in :ref:`HTTPResponseProperties.response_trailers
         <envoy_v3_api_field_data.accesslog.v3.HTTPResponseProperties.response_trailers>`.
         
        repeated string additional_response_trailers_to_log = 4;
        Specified by:
        getAdditionalResponseTrailersToLogBytes in interface HttpGrpcAccessLogConfigOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the additionalResponseTrailersToLog at the given index.
      • setAdditionalResponseTrailersToLog

        public HttpGrpcAccessLogConfig.Builder setAdditionalResponseTrailersToLog​(int index,
                                                                                  String value)
         Additional response trailers to log in :ref:`HTTPResponseProperties.response_trailers
         <envoy_v3_api_field_data.accesslog.v3.HTTPResponseProperties.response_trailers>`.
         
        repeated string additional_response_trailers_to_log = 4;
        Parameters:
        index - The index to set the value at.
        value - The additionalResponseTrailersToLog to set.
        Returns:
        This builder for chaining.
      • addAdditionalResponseTrailersToLog

        public HttpGrpcAccessLogConfig.Builder addAdditionalResponseTrailersToLog​(String value)
         Additional response trailers to log in :ref:`HTTPResponseProperties.response_trailers
         <envoy_v3_api_field_data.accesslog.v3.HTTPResponseProperties.response_trailers>`.
         
        repeated string additional_response_trailers_to_log = 4;
        Parameters:
        value - The additionalResponseTrailersToLog to add.
        Returns:
        This builder for chaining.
      • addAllAdditionalResponseTrailersToLog

        public HttpGrpcAccessLogConfig.Builder addAllAdditionalResponseTrailersToLog​(Iterable<String> values)
         Additional response trailers to log in :ref:`HTTPResponseProperties.response_trailers
         <envoy_v3_api_field_data.accesslog.v3.HTTPResponseProperties.response_trailers>`.
         
        repeated string additional_response_trailers_to_log = 4;
        Parameters:
        values - The additionalResponseTrailersToLog to add.
        Returns:
        This builder for chaining.
      • clearAdditionalResponseTrailersToLog

        public HttpGrpcAccessLogConfig.Builder clearAdditionalResponseTrailersToLog()
         Additional response trailers to log in :ref:`HTTPResponseProperties.response_trailers
         <envoy_v3_api_field_data.accesslog.v3.HTTPResponseProperties.response_trailers>`.
         
        repeated string additional_response_trailers_to_log = 4;
        Returns:
        This builder for chaining.
      • addAdditionalResponseTrailersToLogBytes

        public HttpGrpcAccessLogConfig.Builder addAdditionalResponseTrailersToLogBytes​(com.google.protobuf.ByteString value)
         Additional response trailers to log in :ref:`HTTPResponseProperties.response_trailers
         <envoy_v3_api_field_data.accesslog.v3.HTTPResponseProperties.response_trailers>`.
         
        repeated string additional_response_trailers_to_log = 4;
        Parameters:
        value - The bytes of the additionalResponseTrailersToLog to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final HttpGrpcAccessLogConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<HttpGrpcAccessLogConfig.Builder>
      • mergeUnknownFields

        public final HttpGrpcAccessLogConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<HttpGrpcAccessLogConfig.Builder>