Class CommonGrpcAccessLogConfig

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, CommonGrpcAccessLogConfigOrBuilder, Serializable

    public final class CommonGrpcAccessLogConfig
    extends com.google.protobuf.GeneratedMessageV3
    implements CommonGrpcAccessLogConfigOrBuilder
     Common configuration for gRPC access logs.
     [#next-free-field: 6]
     
    Protobuf type envoy.config.accesslog.v2.CommonGrpcAccessLogConfig
    See Also:
    Serialized Form
    • Field Detail

      • GRPC_SERVICE_FIELD_NUMBER

        public static final int GRPC_SERVICE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • BUFFER_FLUSH_INTERVAL_FIELD_NUMBER

        public static final int BUFFER_FLUSH_INTERVAL_FIELD_NUMBER
        See Also:
        Constant Field Values
      • BUFFER_SIZE_BYTES_FIELD_NUMBER

        public static final int BUFFER_SIZE_BYTES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • FILTER_STATE_OBJECTS_TO_LOG_FIELD_NUMBER

        public static final int FILTER_STATE_OBJECTS_TO_LOG_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • 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
      • getLogName

        public String getLogName()
         The friendly name of the access log to be returned in :ref:`StreamAccessLogsMessage.Identifier
         <envoy_api_msg_service.accesslog.v2.StreamAccessLogsMessage.Identifier>`. This allows the
         access log server to differentiate between different access logs coming from the same Envoy.
         
        string log_name = 1 [(.validate.rules) = { ... }
        Specified by:
        getLogName in interface CommonGrpcAccessLogConfigOrBuilder
        Returns:
        The logName.
      • getLogNameBytes

        public com.google.protobuf.ByteString getLogNameBytes()
         The friendly name of the access log to be returned in :ref:`StreamAccessLogsMessage.Identifier
         <envoy_api_msg_service.accesslog.v2.StreamAccessLogsMessage.Identifier>`. This allows the
         access log server to differentiate between different access logs coming from the same Envoy.
         
        string log_name = 1 [(.validate.rules) = { ... }
        Specified by:
        getLogNameBytes in interface CommonGrpcAccessLogConfigOrBuilder
        Returns:
        The bytes for logName.
      • hasGrpcService

        public boolean hasGrpcService()
         The gRPC service for the access log service.
         
        .envoy.api.v2.core.GrpcService grpc_service = 2 [(.validate.rules) = { ... }
        Specified by:
        hasGrpcService in interface CommonGrpcAccessLogConfigOrBuilder
        Returns:
        Whether the grpcService field is set.
      • hasBufferFlushInterval

        public boolean hasBufferFlushInterval()
         Interval for flushing access logs to the gRPC stream. Logger will flush requests every time
         this interval is elapsed, or when batch size limit is hit, whichever comes first. Defaults to
         1 second.
         
        .google.protobuf.Duration buffer_flush_interval = 3 [(.validate.rules) = { ... }
        Specified by:
        hasBufferFlushInterval in interface CommonGrpcAccessLogConfigOrBuilder
        Returns:
        Whether the bufferFlushInterval field is set.
      • getBufferFlushInterval

        public com.google.protobuf.Duration getBufferFlushInterval()
         Interval for flushing access logs to the gRPC stream. Logger will flush requests every time
         this interval is elapsed, or when batch size limit is hit, whichever comes first. Defaults to
         1 second.
         
        .google.protobuf.Duration buffer_flush_interval = 3 [(.validate.rules) = { ... }
        Specified by:
        getBufferFlushInterval in interface CommonGrpcAccessLogConfigOrBuilder
        Returns:
        The bufferFlushInterval.
      • getBufferFlushIntervalOrBuilder

        public com.google.protobuf.DurationOrBuilder getBufferFlushIntervalOrBuilder()
         Interval for flushing access logs to the gRPC stream. Logger will flush requests every time
         this interval is elapsed, or when batch size limit is hit, whichever comes first. Defaults to
         1 second.
         
        .google.protobuf.Duration buffer_flush_interval = 3 [(.validate.rules) = { ... }
        Specified by:
        getBufferFlushIntervalOrBuilder in interface CommonGrpcAccessLogConfigOrBuilder
      • hasBufferSizeBytes

        public boolean hasBufferSizeBytes()
         Soft size limit in bytes for access log entries buffer. Logger will buffer requests until
         this limit it hit, or every time flush interval is elapsed, whichever comes first. Setting it
         to zero effectively disables the batching. Defaults to 16384.
         
        .google.protobuf.UInt32Value buffer_size_bytes = 4;
        Specified by:
        hasBufferSizeBytes in interface CommonGrpcAccessLogConfigOrBuilder
        Returns:
        Whether the bufferSizeBytes field is set.
      • getBufferSizeBytes

        public com.google.protobuf.UInt32Value getBufferSizeBytes()
         Soft size limit in bytes for access log entries buffer. Logger will buffer requests until
         this limit it hit, or every time flush interval is elapsed, whichever comes first. Setting it
         to zero effectively disables the batching. Defaults to 16384.
         
        .google.protobuf.UInt32Value buffer_size_bytes = 4;
        Specified by:
        getBufferSizeBytes in interface CommonGrpcAccessLogConfigOrBuilder
        Returns:
        The bufferSizeBytes.
      • getBufferSizeBytesOrBuilder

        public com.google.protobuf.UInt32ValueOrBuilder getBufferSizeBytesOrBuilder()
         Soft size limit in bytes for access log entries buffer. Logger will buffer requests until
         this limit it hit, or every time flush interval is elapsed, whichever comes first. Setting it
         to zero effectively disables the batching. Defaults to 16384.
         
        .google.protobuf.UInt32Value buffer_size_bytes = 4;
        Specified by:
        getBufferSizeBytesOrBuilder in interface CommonGrpcAccessLogConfigOrBuilder
      • getFilterStateObjectsToLogList

        public com.google.protobuf.ProtocolStringList getFilterStateObjectsToLogList()
         Additional filter state objects to log in :ref:`filter_state_objects
         <envoy_api_field_data.accesslog.v2.AccessLogCommon.filter_state_objects>`.
         Logger will call `FilterState::Object::serializeAsProto` to serialize the filter state object.
         
        repeated string filter_state_objects_to_log = 5;
        Specified by:
        getFilterStateObjectsToLogList in interface CommonGrpcAccessLogConfigOrBuilder
        Returns:
        A list containing the filterStateObjectsToLog.
      • getFilterStateObjectsToLogCount

        public int getFilterStateObjectsToLogCount()
         Additional filter state objects to log in :ref:`filter_state_objects
         <envoy_api_field_data.accesslog.v2.AccessLogCommon.filter_state_objects>`.
         Logger will call `FilterState::Object::serializeAsProto` to serialize the filter state object.
         
        repeated string filter_state_objects_to_log = 5;
        Specified by:
        getFilterStateObjectsToLogCount in interface CommonGrpcAccessLogConfigOrBuilder
        Returns:
        The count of filterStateObjectsToLog.
      • getFilterStateObjectsToLog

        public String getFilterStateObjectsToLog​(int index)
         Additional filter state objects to log in :ref:`filter_state_objects
         <envoy_api_field_data.accesslog.v2.AccessLogCommon.filter_state_objects>`.
         Logger will call `FilterState::Object::serializeAsProto` to serialize the filter state object.
         
        repeated string filter_state_objects_to_log = 5;
        Specified by:
        getFilterStateObjectsToLog in interface CommonGrpcAccessLogConfigOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The filterStateObjectsToLog at the given index.
      • getFilterStateObjectsToLogBytes

        public com.google.protobuf.ByteString getFilterStateObjectsToLogBytes​(int index)
         Additional filter state objects to log in :ref:`filter_state_objects
         <envoy_api_field_data.accesslog.v2.AccessLogCommon.filter_state_objects>`.
         Logger will call `FilterState::Object::serializeAsProto` to serialize the filter state object.
         
        repeated string filter_state_objects_to_log = 5;
        Specified by:
        getFilterStateObjectsToLogBytes in interface CommonGrpcAccessLogConfigOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the filterStateObjectsToLog at the given index.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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 CommonGrpcAccessLogConfig parseFrom​(ByteBuffer data)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

        protected CommonGrpcAccessLogConfig.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<CommonGrpcAccessLogConfig> 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.GeneratedMessageV3
      • getDefaultInstanceForType

        public CommonGrpcAccessLogConfig getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder