All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig Maven / Gradle / Ivy

There is a newer version: 1.0.47
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/extensions/access_loggers/fluentd/v3/fluentd.proto

// Protobuf Java Version: 3.25.1
package io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3;

/**
 * 
 * Configuration for the *envoy.access_loggers.fluentd* :ref:`AccessLog <envoy_v3_api_msg_config.accesslog.v3.AccessLog>`.
 * This access log extension will send the emitted access logs over a TCP connection to an upstream that is accepting
 * the Fluentd Forward Protocol as described in: `Fluentd Forward Protocol Specification
 * <https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v1>`_.
 * [#extension: envoy.access_loggers.fluentd]
 * [#next-free-field: 9]
 * 
* * Protobuf type {@code envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig} */ public final class FluentdAccessLogConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig) FluentdAccessLogConfigOrBuilder { private static final long serialVersionUID = 0L; // Use FluentdAccessLogConfig.newBuilder() to construct. private FluentdAccessLogConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FluentdAccessLogConfig() { cluster_ = ""; tag_ = ""; statPrefix_ = ""; formatters_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FluentdAccessLogConfig(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdProto.internal_static_envoy_extensions_access_loggers_fluentd_v3_FluentdAccessLogConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdProto.internal_static_envoy_extensions_access_loggers_fluentd_v3_FluentdAccessLogConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.class, io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.Builder.class); } public interface RetryOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions) com.google.protobuf.MessageOrBuilder { /** *
     * The number of times the logger will attempt to connect to the upstream during reconnects.
     * By default, there is no limit. The logger will attempt to reconnect to the upstream each time
     * connecting to the upstream failed or the upstream connection had been closed for any reason.
     * 
* * .google.protobuf.UInt32Value max_connect_attempts = 1; * @return Whether the maxConnectAttempts field is set. */ boolean hasMaxConnectAttempts(); /** *
     * The number of times the logger will attempt to connect to the upstream during reconnects.
     * By default, there is no limit. The logger will attempt to reconnect to the upstream each time
     * connecting to the upstream failed or the upstream connection had been closed for any reason.
     * 
* * .google.protobuf.UInt32Value max_connect_attempts = 1; * @return The maxConnectAttempts. */ com.google.protobuf.UInt32Value getMaxConnectAttempts(); /** *
     * The number of times the logger will attempt to connect to the upstream during reconnects.
     * By default, there is no limit. The logger will attempt to reconnect to the upstream each time
     * connecting to the upstream failed or the upstream connection had been closed for any reason.
     * 
* * .google.protobuf.UInt32Value max_connect_attempts = 1; */ com.google.protobuf.UInt32ValueOrBuilder getMaxConnectAttemptsOrBuilder(); /** *
     * Sets the backoff strategy. If this value is not set, the default base backoff interval is 500
     * milliseconds and the default max backoff interval is 5 seconds (10 times the base interval).
     * 
* * .envoy.config.core.v3.BackoffStrategy backoff_options = 2; * @return Whether the backoffOptions field is set. */ boolean hasBackoffOptions(); /** *
     * Sets the backoff strategy. If this value is not set, the default base backoff interval is 500
     * milliseconds and the default max backoff interval is 5 seconds (10 times the base interval).
     * 
* * .envoy.config.core.v3.BackoffStrategy backoff_options = 2; * @return The backoffOptions. */ io.envoyproxy.envoy.config.core.v3.BackoffStrategy getBackoffOptions(); /** *
     * Sets the backoff strategy. If this value is not set, the default base backoff interval is 500
     * milliseconds and the default max backoff interval is 5 seconds (10 times the base interval).
     * 
* * .envoy.config.core.v3.BackoffStrategy backoff_options = 2; */ io.envoyproxy.envoy.config.core.v3.BackoffStrategyOrBuilder getBackoffOptionsOrBuilder(); } /** * Protobuf type {@code envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions} */ public static final class RetryOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions) RetryOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use RetryOptions.newBuilder() to construct. private RetryOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RetryOptions() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RetryOptions(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdProto.internal_static_envoy_extensions_access_loggers_fluentd_v3_FluentdAccessLogConfig_RetryOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdProto.internal_static_envoy_extensions_access_loggers_fluentd_v3_FluentdAccessLogConfig_RetryOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions.class, io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions.Builder.class); } private int bitField0_; public static final int MAX_CONNECT_ATTEMPTS_FIELD_NUMBER = 1; private com.google.protobuf.UInt32Value maxConnectAttempts_; /** *
     * The number of times the logger will attempt to connect to the upstream during reconnects.
     * By default, there is no limit. The logger will attempt to reconnect to the upstream each time
     * connecting to the upstream failed or the upstream connection had been closed for any reason.
     * 
* * .google.protobuf.UInt32Value max_connect_attempts = 1; * @return Whether the maxConnectAttempts field is set. */ @java.lang.Override public boolean hasMaxConnectAttempts() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The number of times the logger will attempt to connect to the upstream during reconnects.
     * By default, there is no limit. The logger will attempt to reconnect to the upstream each time
     * connecting to the upstream failed or the upstream connection had been closed for any reason.
     * 
* * .google.protobuf.UInt32Value max_connect_attempts = 1; * @return The maxConnectAttempts. */ @java.lang.Override public com.google.protobuf.UInt32Value getMaxConnectAttempts() { return maxConnectAttempts_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxConnectAttempts_; } /** *
     * The number of times the logger will attempt to connect to the upstream during reconnects.
     * By default, there is no limit. The logger will attempt to reconnect to the upstream each time
     * connecting to the upstream failed or the upstream connection had been closed for any reason.
     * 
* * .google.protobuf.UInt32Value max_connect_attempts = 1; */ @java.lang.Override public com.google.protobuf.UInt32ValueOrBuilder getMaxConnectAttemptsOrBuilder() { return maxConnectAttempts_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxConnectAttempts_; } public static final int BACKOFF_OPTIONS_FIELD_NUMBER = 2; private io.envoyproxy.envoy.config.core.v3.BackoffStrategy backoffOptions_; /** *
     * Sets the backoff strategy. If this value is not set, the default base backoff interval is 500
     * milliseconds and the default max backoff interval is 5 seconds (10 times the base interval).
     * 
* * .envoy.config.core.v3.BackoffStrategy backoff_options = 2; * @return Whether the backoffOptions field is set. */ @java.lang.Override public boolean hasBackoffOptions() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Sets the backoff strategy. If this value is not set, the default base backoff interval is 500
     * milliseconds and the default max backoff interval is 5 seconds (10 times the base interval).
     * 
* * .envoy.config.core.v3.BackoffStrategy backoff_options = 2; * @return The backoffOptions. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.BackoffStrategy getBackoffOptions() { return backoffOptions_ == null ? io.envoyproxy.envoy.config.core.v3.BackoffStrategy.getDefaultInstance() : backoffOptions_; } /** *
     * Sets the backoff strategy. If this value is not set, the default base backoff interval is 500
     * milliseconds and the default max backoff interval is 5 seconds (10 times the base interval).
     * 
* * .envoy.config.core.v3.BackoffStrategy backoff_options = 2; */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.BackoffStrategyOrBuilder getBackoffOptionsOrBuilder() { return backoffOptions_ == null ? io.envoyproxy.envoy.config.core.v3.BackoffStrategy.getDefaultInstance() : backoffOptions_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getMaxConnectAttempts()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getBackoffOptions()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getMaxConnectAttempts()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getBackoffOptions()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions)) { return super.equals(obj); } io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions other = (io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions) obj; if (hasMaxConnectAttempts() != other.hasMaxConnectAttempts()) return false; if (hasMaxConnectAttempts()) { if (!getMaxConnectAttempts() .equals(other.getMaxConnectAttempts())) return false; } if (hasBackoffOptions() != other.hasBackoffOptions()) return false; if (hasBackoffOptions()) { if (!getBackoffOptions() .equals(other.getBackoffOptions())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasMaxConnectAttempts()) { hash = (37 * hash) + MAX_CONNECT_ATTEMPTS_FIELD_NUMBER; hash = (53 * hash) + getMaxConnectAttempts().hashCode(); } if (hasBackoffOptions()) { hash = (37 * hash) + BACKOFF_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getBackoffOptions().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions) io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdProto.internal_static_envoy_extensions_access_loggers_fluentd_v3_FluentdAccessLogConfig_RetryOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdProto.internal_static_envoy_extensions_access_loggers_fluentd_v3_FluentdAccessLogConfig_RetryOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions.class, io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions.Builder.class); } // Construct using io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMaxConnectAttemptsFieldBuilder(); getBackoffOptionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; maxConnectAttempts_ = null; if (maxConnectAttemptsBuilder_ != null) { maxConnectAttemptsBuilder_.dispose(); maxConnectAttemptsBuilder_ = null; } backoffOptions_ = null; if (backoffOptionsBuilder_ != null) { backoffOptionsBuilder_.dispose(); backoffOptionsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdProto.internal_static_envoy_extensions_access_loggers_fluentd_v3_FluentdAccessLogConfig_RetryOptions_descriptor; } @java.lang.Override public io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions getDefaultInstanceForType() { return io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions build() { io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions buildPartial() { io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions result = new io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.maxConnectAttempts_ = maxConnectAttemptsBuilder_ == null ? maxConnectAttempts_ : maxConnectAttemptsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.backoffOptions_ = backoffOptionsBuilder_ == null ? backoffOptions_ : backoffOptionsBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions) { return mergeFrom((io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions other) { if (other == io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions.getDefaultInstance()) return this; if (other.hasMaxConnectAttempts()) { mergeMaxConnectAttempts(other.getMaxConnectAttempts()); } if (other.hasBackoffOptions()) { mergeBackoffOptions(other.getBackoffOptions()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getMaxConnectAttemptsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getBackoffOptionsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.UInt32Value maxConnectAttempts_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> maxConnectAttemptsBuilder_; /** *
       * The number of times the logger will attempt to connect to the upstream during reconnects.
       * By default, there is no limit. The logger will attempt to reconnect to the upstream each time
       * connecting to the upstream failed or the upstream connection had been closed for any reason.
       * 
* * .google.protobuf.UInt32Value max_connect_attempts = 1; * @return Whether the maxConnectAttempts field is set. */ public boolean hasMaxConnectAttempts() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * The number of times the logger will attempt to connect to the upstream during reconnects.
       * By default, there is no limit. The logger will attempt to reconnect to the upstream each time
       * connecting to the upstream failed or the upstream connection had been closed for any reason.
       * 
* * .google.protobuf.UInt32Value max_connect_attempts = 1; * @return The maxConnectAttempts. */ public com.google.protobuf.UInt32Value getMaxConnectAttempts() { if (maxConnectAttemptsBuilder_ == null) { return maxConnectAttempts_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxConnectAttempts_; } else { return maxConnectAttemptsBuilder_.getMessage(); } } /** *
       * The number of times the logger will attempt to connect to the upstream during reconnects.
       * By default, there is no limit. The logger will attempt to reconnect to the upstream each time
       * connecting to the upstream failed or the upstream connection had been closed for any reason.
       * 
* * .google.protobuf.UInt32Value max_connect_attempts = 1; */ public Builder setMaxConnectAttempts(com.google.protobuf.UInt32Value value) { if (maxConnectAttemptsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxConnectAttempts_ = value; } else { maxConnectAttemptsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The number of times the logger will attempt to connect to the upstream during reconnects.
       * By default, there is no limit. The logger will attempt to reconnect to the upstream each time
       * connecting to the upstream failed or the upstream connection had been closed for any reason.
       * 
* * .google.protobuf.UInt32Value max_connect_attempts = 1; */ public Builder setMaxConnectAttempts( com.google.protobuf.UInt32Value.Builder builderForValue) { if (maxConnectAttemptsBuilder_ == null) { maxConnectAttempts_ = builderForValue.build(); } else { maxConnectAttemptsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The number of times the logger will attempt to connect to the upstream during reconnects.
       * By default, there is no limit. The logger will attempt to reconnect to the upstream each time
       * connecting to the upstream failed or the upstream connection had been closed for any reason.
       * 
* * .google.protobuf.UInt32Value max_connect_attempts = 1; */ public Builder mergeMaxConnectAttempts(com.google.protobuf.UInt32Value value) { if (maxConnectAttemptsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && maxConnectAttempts_ != null && maxConnectAttempts_ != com.google.protobuf.UInt32Value.getDefaultInstance()) { getMaxConnectAttemptsBuilder().mergeFrom(value); } else { maxConnectAttempts_ = value; } } else { maxConnectAttemptsBuilder_.mergeFrom(value); } if (maxConnectAttempts_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * The number of times the logger will attempt to connect to the upstream during reconnects.
       * By default, there is no limit. The logger will attempt to reconnect to the upstream each time
       * connecting to the upstream failed or the upstream connection had been closed for any reason.
       * 
* * .google.protobuf.UInt32Value max_connect_attempts = 1; */ public Builder clearMaxConnectAttempts() { bitField0_ = (bitField0_ & ~0x00000001); maxConnectAttempts_ = null; if (maxConnectAttemptsBuilder_ != null) { maxConnectAttemptsBuilder_.dispose(); maxConnectAttemptsBuilder_ = null; } onChanged(); return this; } /** *
       * The number of times the logger will attempt to connect to the upstream during reconnects.
       * By default, there is no limit. The logger will attempt to reconnect to the upstream each time
       * connecting to the upstream failed or the upstream connection had been closed for any reason.
       * 
* * .google.protobuf.UInt32Value max_connect_attempts = 1; */ public com.google.protobuf.UInt32Value.Builder getMaxConnectAttemptsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMaxConnectAttemptsFieldBuilder().getBuilder(); } /** *
       * The number of times the logger will attempt to connect to the upstream during reconnects.
       * By default, there is no limit. The logger will attempt to reconnect to the upstream each time
       * connecting to the upstream failed or the upstream connection had been closed for any reason.
       * 
* * .google.protobuf.UInt32Value max_connect_attempts = 1; */ public com.google.protobuf.UInt32ValueOrBuilder getMaxConnectAttemptsOrBuilder() { if (maxConnectAttemptsBuilder_ != null) { return maxConnectAttemptsBuilder_.getMessageOrBuilder(); } else { return maxConnectAttempts_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxConnectAttempts_; } } /** *
       * The number of times the logger will attempt to connect to the upstream during reconnects.
       * By default, there is no limit. The logger will attempt to reconnect to the upstream each time
       * connecting to the upstream failed or the upstream connection had been closed for any reason.
       * 
* * .google.protobuf.UInt32Value max_connect_attempts = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> getMaxConnectAttemptsFieldBuilder() { if (maxConnectAttemptsBuilder_ == null) { maxConnectAttemptsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>( getMaxConnectAttempts(), getParentForChildren(), isClean()); maxConnectAttempts_ = null; } return maxConnectAttemptsBuilder_; } private io.envoyproxy.envoy.config.core.v3.BackoffStrategy backoffOptions_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.BackoffStrategy, io.envoyproxy.envoy.config.core.v3.BackoffStrategy.Builder, io.envoyproxy.envoy.config.core.v3.BackoffStrategyOrBuilder> backoffOptionsBuilder_; /** *
       * Sets the backoff strategy. If this value is not set, the default base backoff interval is 500
       * milliseconds and the default max backoff interval is 5 seconds (10 times the base interval).
       * 
* * .envoy.config.core.v3.BackoffStrategy backoff_options = 2; * @return Whether the backoffOptions field is set. */ public boolean hasBackoffOptions() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Sets the backoff strategy. If this value is not set, the default base backoff interval is 500
       * milliseconds and the default max backoff interval is 5 seconds (10 times the base interval).
       * 
* * .envoy.config.core.v3.BackoffStrategy backoff_options = 2; * @return The backoffOptions. */ public io.envoyproxy.envoy.config.core.v3.BackoffStrategy getBackoffOptions() { if (backoffOptionsBuilder_ == null) { return backoffOptions_ == null ? io.envoyproxy.envoy.config.core.v3.BackoffStrategy.getDefaultInstance() : backoffOptions_; } else { return backoffOptionsBuilder_.getMessage(); } } /** *
       * Sets the backoff strategy. If this value is not set, the default base backoff interval is 500
       * milliseconds and the default max backoff interval is 5 seconds (10 times the base interval).
       * 
* * .envoy.config.core.v3.BackoffStrategy backoff_options = 2; */ public Builder setBackoffOptions(io.envoyproxy.envoy.config.core.v3.BackoffStrategy value) { if (backoffOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } backoffOptions_ = value; } else { backoffOptionsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Sets the backoff strategy. If this value is not set, the default base backoff interval is 500
       * milliseconds and the default max backoff interval is 5 seconds (10 times the base interval).
       * 
* * .envoy.config.core.v3.BackoffStrategy backoff_options = 2; */ public Builder setBackoffOptions( io.envoyproxy.envoy.config.core.v3.BackoffStrategy.Builder builderForValue) { if (backoffOptionsBuilder_ == null) { backoffOptions_ = builderForValue.build(); } else { backoffOptionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Sets the backoff strategy. If this value is not set, the default base backoff interval is 500
       * milliseconds and the default max backoff interval is 5 seconds (10 times the base interval).
       * 
* * .envoy.config.core.v3.BackoffStrategy backoff_options = 2; */ public Builder mergeBackoffOptions(io.envoyproxy.envoy.config.core.v3.BackoffStrategy value) { if (backoffOptionsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && backoffOptions_ != null && backoffOptions_ != io.envoyproxy.envoy.config.core.v3.BackoffStrategy.getDefaultInstance()) { getBackoffOptionsBuilder().mergeFrom(value); } else { backoffOptions_ = value; } } else { backoffOptionsBuilder_.mergeFrom(value); } if (backoffOptions_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
       * Sets the backoff strategy. If this value is not set, the default base backoff interval is 500
       * milliseconds and the default max backoff interval is 5 seconds (10 times the base interval).
       * 
* * .envoy.config.core.v3.BackoffStrategy backoff_options = 2; */ public Builder clearBackoffOptions() { bitField0_ = (bitField0_ & ~0x00000002); backoffOptions_ = null; if (backoffOptionsBuilder_ != null) { backoffOptionsBuilder_.dispose(); backoffOptionsBuilder_ = null; } onChanged(); return this; } /** *
       * Sets the backoff strategy. If this value is not set, the default base backoff interval is 500
       * milliseconds and the default max backoff interval is 5 seconds (10 times the base interval).
       * 
* * .envoy.config.core.v3.BackoffStrategy backoff_options = 2; */ public io.envoyproxy.envoy.config.core.v3.BackoffStrategy.Builder getBackoffOptionsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getBackoffOptionsFieldBuilder().getBuilder(); } /** *
       * Sets the backoff strategy. If this value is not set, the default base backoff interval is 500
       * milliseconds and the default max backoff interval is 5 seconds (10 times the base interval).
       * 
* * .envoy.config.core.v3.BackoffStrategy backoff_options = 2; */ public io.envoyproxy.envoy.config.core.v3.BackoffStrategyOrBuilder getBackoffOptionsOrBuilder() { if (backoffOptionsBuilder_ != null) { return backoffOptionsBuilder_.getMessageOrBuilder(); } else { return backoffOptions_ == null ? io.envoyproxy.envoy.config.core.v3.BackoffStrategy.getDefaultInstance() : backoffOptions_; } } /** *
       * Sets the backoff strategy. If this value is not set, the default base backoff interval is 500
       * milliseconds and the default max backoff interval is 5 seconds (10 times the base interval).
       * 
* * .envoy.config.core.v3.BackoffStrategy backoff_options = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.BackoffStrategy, io.envoyproxy.envoy.config.core.v3.BackoffStrategy.Builder, io.envoyproxy.envoy.config.core.v3.BackoffStrategyOrBuilder> getBackoffOptionsFieldBuilder() { if (backoffOptionsBuilder_ == null) { backoffOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.BackoffStrategy, io.envoyproxy.envoy.config.core.v3.BackoffStrategy.Builder, io.envoyproxy.envoy.config.core.v3.BackoffStrategyOrBuilder>( getBackoffOptions(), getParentForChildren(), isClean()); backoffOptions_ = null; } return backoffOptionsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions) } // @@protoc_insertion_point(class_scope:envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions) private static final io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions(); } public static io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RetryOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int CLUSTER_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object cluster_ = ""; /** *
   * The upstream cluster to connect to for streaming the Fluentd messages.
   * 
* * string cluster = 1 [(.validate.rules) = { ... } * @return The cluster. */ @java.lang.Override public java.lang.String getCluster() { java.lang.Object ref = cluster_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cluster_ = s; return s; } } /** *
   * The upstream cluster to connect to for streaming the Fluentd messages.
   * 
* * string cluster = 1 [(.validate.rules) = { ... } * @return The bytes for cluster. */ @java.lang.Override public com.google.protobuf.ByteString getClusterBytes() { java.lang.Object ref = cluster_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cluster_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TAG_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object tag_ = ""; /** *
   * A tag is a string separated with '.' (e.g. log.type) to categorize events.
   * See: https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v1#message-modes
   * 
* * string tag = 2 [(.validate.rules) = { ... } * @return The tag. */ @java.lang.Override public java.lang.String getTag() { java.lang.Object ref = tag_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tag_ = s; return s; } } /** *
   * A tag is a string separated with '.' (e.g. log.type) to categorize events.
   * See: https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v1#message-modes
   * 
* * string tag = 2 [(.validate.rules) = { ... } * @return The bytes for tag. */ @java.lang.Override public com.google.protobuf.ByteString getTagBytes() { java.lang.Object ref = tag_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STAT_PREFIX_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object statPrefix_ = ""; /** *
   * The prefix to use when emitting :ref:`statistics <config_access_log_stats>`.
   * 
* * string stat_prefix = 3 [(.validate.rules) = { ... } * @return The statPrefix. */ @java.lang.Override public java.lang.String getStatPrefix() { java.lang.Object ref = statPrefix_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statPrefix_ = s; return s; } } /** *
   * The prefix to use when emitting :ref:`statistics <config_access_log_stats>`.
   * 
* * string stat_prefix = 3 [(.validate.rules) = { ... } * @return The bytes for statPrefix. */ @java.lang.Override public com.google.protobuf.ByteString getStatPrefixBytes() { java.lang.Object ref = statPrefix_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); statPrefix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BUFFER_FLUSH_INTERVAL_FIELD_NUMBER = 4; private com.google.protobuf.Duration bufferFlushInterval_; /** *
   * Interval for flushing access logs to the TCP 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 = 4 [(.validate.rules) = { ... } * @return Whether the bufferFlushInterval field is set. */ @java.lang.Override public boolean hasBufferFlushInterval() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Interval for flushing access logs to the TCP 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 = 4 [(.validate.rules) = { ... } * @return The bufferFlushInterval. */ @java.lang.Override public com.google.protobuf.Duration getBufferFlushInterval() { return bufferFlushInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : bufferFlushInterval_; } /** *
   * Interval for flushing access logs to the TCP 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 = 4 [(.validate.rules) = { ... } */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getBufferFlushIntervalOrBuilder() { return bufferFlushInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : bufferFlushInterval_; } public static final int BUFFER_SIZE_BYTES_FIELD_NUMBER = 5; private com.google.protobuf.UInt32Value bufferSizeBytes_; /** *
   * Soft size limit in bytes for access log entries buffer. The logger will buffer requests until
   * this limit it hit, or every time flush interval is elapsed, whichever comes first. When the buffer
   * limit is hit, the logger will immediately flush the buffer contents. Setting it to zero effectively
   * disables the batching. Defaults to 16384.
   * 
* * .google.protobuf.UInt32Value buffer_size_bytes = 5; * @return Whether the bufferSizeBytes field is set. */ @java.lang.Override public boolean hasBufferSizeBytes() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Soft size limit in bytes for access log entries buffer. The logger will buffer requests until
   * this limit it hit, or every time flush interval is elapsed, whichever comes first. When the buffer
   * limit is hit, the logger will immediately flush the buffer contents. Setting it to zero effectively
   * disables the batching. Defaults to 16384.
   * 
* * .google.protobuf.UInt32Value buffer_size_bytes = 5; * @return The bufferSizeBytes. */ @java.lang.Override public com.google.protobuf.UInt32Value getBufferSizeBytes() { return bufferSizeBytes_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : bufferSizeBytes_; } /** *
   * Soft size limit in bytes for access log entries buffer. The logger will buffer requests until
   * this limit it hit, or every time flush interval is elapsed, whichever comes first. When the buffer
   * limit is hit, the logger will immediately flush the buffer contents. Setting it to zero effectively
   * disables the batching. Defaults to 16384.
   * 
* * .google.protobuf.UInt32Value buffer_size_bytes = 5; */ @java.lang.Override public com.google.protobuf.UInt32ValueOrBuilder getBufferSizeBytesOrBuilder() { return bufferSizeBytes_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : bufferSizeBytes_; } public static final int RECORD_FIELD_NUMBER = 6; private com.google.protobuf.Struct record_; /** *
   * A struct that represents the record that is sent for each log entry.
   * https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v1#entry
   * Values are rendered as strings, numbers, or boolean values as appropriate.
   * Nested JSON objects may be produced by some command operators (e.g. FILTER_STATE or DYNAMIC_METADATA).
   * See :ref:`format string<config_access_log_format_strings>` documentation for a specific command operator details.
   *
   * .. validated-code-block:: yaml
   *   :type-name: envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig
   *
   *   record:
   *     status: "%RESPONSE_CODE%"
   *     message: "%LOCAL_REPLY_BODY%"
   *
   * The following msgpack record would be created:
   *
   * .. code-block:: json
   *
   *  {
   *    "status": 500,
   *    "message": "My error message"
   *  }
   * 
* * .google.protobuf.Struct record = 6 [(.validate.rules) = { ... } * @return Whether the record field is set. */ @java.lang.Override public boolean hasRecord() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * A struct that represents the record that is sent for each log entry.
   * https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v1#entry
   * Values are rendered as strings, numbers, or boolean values as appropriate.
   * Nested JSON objects may be produced by some command operators (e.g. FILTER_STATE or DYNAMIC_METADATA).
   * See :ref:`format string<config_access_log_format_strings>` documentation for a specific command operator details.
   *
   * .. validated-code-block:: yaml
   *   :type-name: envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig
   *
   *   record:
   *     status: "%RESPONSE_CODE%"
   *     message: "%LOCAL_REPLY_BODY%"
   *
   * The following msgpack record would be created:
   *
   * .. code-block:: json
   *
   *  {
   *    "status": 500,
   *    "message": "My error message"
   *  }
   * 
* * .google.protobuf.Struct record = 6 [(.validate.rules) = { ... } * @return The record. */ @java.lang.Override public com.google.protobuf.Struct getRecord() { return record_ == null ? com.google.protobuf.Struct.getDefaultInstance() : record_; } /** *
   * A struct that represents the record that is sent for each log entry.
   * https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v1#entry
   * Values are rendered as strings, numbers, or boolean values as appropriate.
   * Nested JSON objects may be produced by some command operators (e.g. FILTER_STATE or DYNAMIC_METADATA).
   * See :ref:`format string<config_access_log_format_strings>` documentation for a specific command operator details.
   *
   * .. validated-code-block:: yaml
   *   :type-name: envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig
   *
   *   record:
   *     status: "%RESPONSE_CODE%"
   *     message: "%LOCAL_REPLY_BODY%"
   *
   * The following msgpack record would be created:
   *
   * .. code-block:: json
   *
   *  {
   *    "status": 500,
   *    "message": "My error message"
   *  }
   * 
* * .google.protobuf.Struct record = 6 [(.validate.rules) = { ... } */ @java.lang.Override public com.google.protobuf.StructOrBuilder getRecordOrBuilder() { return record_ == null ? com.google.protobuf.Struct.getDefaultInstance() : record_; } public static final int RETRY_OPTIONS_FIELD_NUMBER = 7; private io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions retryOptions_; /** *
   * Optional retry, in case upstream connection has failed. If this field is not set, the default values will be applied,
   * as specified in the :ref:`RetryOptions <envoy_v3_api_msg_extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions>`
   * configuration.
   * 
* * .envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions retry_options = 7; * @return Whether the retryOptions field is set. */ @java.lang.Override public boolean hasRetryOptions() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * Optional retry, in case upstream connection has failed. If this field is not set, the default values will be applied,
   * as specified in the :ref:`RetryOptions <envoy_v3_api_msg_extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions>`
   * configuration.
   * 
* * .envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions retry_options = 7; * @return The retryOptions. */ @java.lang.Override public io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions getRetryOptions() { return retryOptions_ == null ? io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions.getDefaultInstance() : retryOptions_; } /** *
   * Optional retry, in case upstream connection has failed. If this field is not set, the default values will be applied,
   * as specified in the :ref:`RetryOptions <envoy_v3_api_msg_extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions>`
   * configuration.
   * 
* * .envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions retry_options = 7; */ @java.lang.Override public io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptionsOrBuilder getRetryOptionsOrBuilder() { return retryOptions_ == null ? io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions.getDefaultInstance() : retryOptions_; } public static final int FORMATTERS_FIELD_NUMBER = 8; @SuppressWarnings("serial") private java.util.List formatters_; /** *
   * Specifies a collection of Formatter plugins that can be called from the access log configuration.
   * See the formatters extensions documentation for details.
   * [#extension-category: envoy.formatter]
   * 
* * repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 8; */ @java.lang.Override public java.util.List getFormattersList() { return formatters_; } /** *
   * Specifies a collection of Formatter plugins that can be called from the access log configuration.
   * See the formatters extensions documentation for details.
   * [#extension-category: envoy.formatter]
   * 
* * repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 8; */ @java.lang.Override public java.util.List getFormattersOrBuilderList() { return formatters_; } /** *
   * Specifies a collection of Formatter plugins that can be called from the access log configuration.
   * See the formatters extensions documentation for details.
   * [#extension-category: envoy.formatter]
   * 
* * repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 8; */ @java.lang.Override public int getFormattersCount() { return formatters_.size(); } /** *
   * Specifies a collection of Formatter plugins that can be called from the access log configuration.
   * See the formatters extensions documentation for details.
   * [#extension-category: envoy.formatter]
   * 
* * repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 8; */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig getFormatters(int index) { return formatters_.get(index); } /** *
   * Specifies a collection of Formatter plugins that can be called from the access log configuration.
   * See the formatters extensions documentation for details.
   * [#extension-category: envoy.formatter]
   * 
* * repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 8; */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getFormattersOrBuilder( int index) { return formatters_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cluster_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tag_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statPrefix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, statPrefix_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getBufferFlushInterval()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getBufferSizeBytes()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(6, getRecord()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(7, getRetryOptions()); } for (int i = 0; i < formatters_.size(); i++) { output.writeMessage(8, formatters_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cluster_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tag_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statPrefix_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, statPrefix_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getBufferFlushInterval()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getBufferSizeBytes()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getRecord()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getRetryOptions()); } for (int i = 0; i < formatters_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, formatters_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig)) { return super.equals(obj); } io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig other = (io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig) obj; if (!getCluster() .equals(other.getCluster())) return false; if (!getTag() .equals(other.getTag())) return false; if (!getStatPrefix() .equals(other.getStatPrefix())) return false; if (hasBufferFlushInterval() != other.hasBufferFlushInterval()) return false; if (hasBufferFlushInterval()) { if (!getBufferFlushInterval() .equals(other.getBufferFlushInterval())) return false; } if (hasBufferSizeBytes() != other.hasBufferSizeBytes()) return false; if (hasBufferSizeBytes()) { if (!getBufferSizeBytes() .equals(other.getBufferSizeBytes())) return false; } if (hasRecord() != other.hasRecord()) return false; if (hasRecord()) { if (!getRecord() .equals(other.getRecord())) return false; } if (hasRetryOptions() != other.hasRetryOptions()) return false; if (hasRetryOptions()) { if (!getRetryOptions() .equals(other.getRetryOptions())) return false; } if (!getFormattersList() .equals(other.getFormattersList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CLUSTER_FIELD_NUMBER; hash = (53 * hash) + getCluster().hashCode(); hash = (37 * hash) + TAG_FIELD_NUMBER; hash = (53 * hash) + getTag().hashCode(); hash = (37 * hash) + STAT_PREFIX_FIELD_NUMBER; hash = (53 * hash) + getStatPrefix().hashCode(); if (hasBufferFlushInterval()) { hash = (37 * hash) + BUFFER_FLUSH_INTERVAL_FIELD_NUMBER; hash = (53 * hash) + getBufferFlushInterval().hashCode(); } if (hasBufferSizeBytes()) { hash = (37 * hash) + BUFFER_SIZE_BYTES_FIELD_NUMBER; hash = (53 * hash) + getBufferSizeBytes().hashCode(); } if (hasRecord()) { hash = (37 * hash) + RECORD_FIELD_NUMBER; hash = (53 * hash) + getRecord().hashCode(); } if (hasRetryOptions()) { hash = (37 * hash) + RETRY_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getRetryOptions().hashCode(); } if (getFormattersCount() > 0) { hash = (37 * hash) + FORMATTERS_FIELD_NUMBER; hash = (53 * hash) + getFormattersList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Configuration for the *envoy.access_loggers.fluentd* :ref:`AccessLog <envoy_v3_api_msg_config.accesslog.v3.AccessLog>`.
   * This access log extension will send the emitted access logs over a TCP connection to an upstream that is accepting
   * the Fluentd Forward Protocol as described in: `Fluentd Forward Protocol Specification
   * <https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v1>`_.
   * [#extension: envoy.access_loggers.fluentd]
   * [#next-free-field: 9]
   * 
* * Protobuf type {@code envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig) io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdProto.internal_static_envoy_extensions_access_loggers_fluentd_v3_FluentdAccessLogConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdProto.internal_static_envoy_extensions_access_loggers_fluentd_v3_FluentdAccessLogConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.class, io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.Builder.class); } // Construct using io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getBufferFlushIntervalFieldBuilder(); getBufferSizeBytesFieldBuilder(); getRecordFieldBuilder(); getRetryOptionsFieldBuilder(); getFormattersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; cluster_ = ""; tag_ = ""; statPrefix_ = ""; bufferFlushInterval_ = null; if (bufferFlushIntervalBuilder_ != null) { bufferFlushIntervalBuilder_.dispose(); bufferFlushIntervalBuilder_ = null; } bufferSizeBytes_ = null; if (bufferSizeBytesBuilder_ != null) { bufferSizeBytesBuilder_.dispose(); bufferSizeBytesBuilder_ = null; } record_ = null; if (recordBuilder_ != null) { recordBuilder_.dispose(); recordBuilder_ = null; } retryOptions_ = null; if (retryOptionsBuilder_ != null) { retryOptionsBuilder_.dispose(); retryOptionsBuilder_ = null; } if (formattersBuilder_ == null) { formatters_ = java.util.Collections.emptyList(); } else { formatters_ = null; formattersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdProto.internal_static_envoy_extensions_access_loggers_fluentd_v3_FluentdAccessLogConfig_descriptor; } @java.lang.Override public io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig getDefaultInstanceForType() { return io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig build() { io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig buildPartial() { io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig result = new io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig result) { if (formattersBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0)) { formatters_ = java.util.Collections.unmodifiableList(formatters_); bitField0_ = (bitField0_ & ~0x00000080); } result.formatters_ = formatters_; } else { result.formatters_ = formattersBuilder_.build(); } } private void buildPartial0(io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.cluster_ = cluster_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.tag_ = tag_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.statPrefix_ = statPrefix_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.bufferFlushInterval_ = bufferFlushIntervalBuilder_ == null ? bufferFlushInterval_ : bufferFlushIntervalBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.bufferSizeBytes_ = bufferSizeBytesBuilder_ == null ? bufferSizeBytes_ : bufferSizeBytesBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000020) != 0)) { result.record_ = recordBuilder_ == null ? record_ : recordBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000040) != 0)) { result.retryOptions_ = retryOptionsBuilder_ == null ? retryOptions_ : retryOptionsBuilder_.build(); to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig) { return mergeFrom((io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig other) { if (other == io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.getDefaultInstance()) return this; if (!other.getCluster().isEmpty()) { cluster_ = other.cluster_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getTag().isEmpty()) { tag_ = other.tag_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getStatPrefix().isEmpty()) { statPrefix_ = other.statPrefix_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasBufferFlushInterval()) { mergeBufferFlushInterval(other.getBufferFlushInterval()); } if (other.hasBufferSizeBytes()) { mergeBufferSizeBytes(other.getBufferSizeBytes()); } if (other.hasRecord()) { mergeRecord(other.getRecord()); } if (other.hasRetryOptions()) { mergeRetryOptions(other.getRetryOptions()); } if (formattersBuilder_ == null) { if (!other.formatters_.isEmpty()) { if (formatters_.isEmpty()) { formatters_ = other.formatters_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureFormattersIsMutable(); formatters_.addAll(other.formatters_); } onChanged(); } } else { if (!other.formatters_.isEmpty()) { if (formattersBuilder_.isEmpty()) { formattersBuilder_.dispose(); formattersBuilder_ = null; formatters_ = other.formatters_; bitField0_ = (bitField0_ & ~0x00000080); formattersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFormattersFieldBuilder() : null; } else { formattersBuilder_.addAllMessages(other.formatters_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { cluster_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { tag_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { statPrefix_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getBufferFlushIntervalFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getBufferSizeBytesFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage( getRecordFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 58: { input.readMessage( getRetryOptionsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 58 case 66: { io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig m = input.readMessage( io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.parser(), extensionRegistry); if (formattersBuilder_ == null) { ensureFormattersIsMutable(); formatters_.add(m); } else { formattersBuilder_.addMessage(m); } break; } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object cluster_ = ""; /** *
     * The upstream cluster to connect to for streaming the Fluentd messages.
     * 
* * string cluster = 1 [(.validate.rules) = { ... } * @return The cluster. */ public java.lang.String getCluster() { java.lang.Object ref = cluster_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cluster_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The upstream cluster to connect to for streaming the Fluentd messages.
     * 
* * string cluster = 1 [(.validate.rules) = { ... } * @return The bytes for cluster. */ public com.google.protobuf.ByteString getClusterBytes() { java.lang.Object ref = cluster_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cluster_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The upstream cluster to connect to for streaming the Fluentd messages.
     * 
* * string cluster = 1 [(.validate.rules) = { ... } * @param value The cluster to set. * @return This builder for chaining. */ public Builder setCluster( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cluster_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The upstream cluster to connect to for streaming the Fluentd messages.
     * 
* * string cluster = 1 [(.validate.rules) = { ... } * @return This builder for chaining. */ public Builder clearCluster() { cluster_ = getDefaultInstance().getCluster(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * The upstream cluster to connect to for streaming the Fluentd messages.
     * 
* * string cluster = 1 [(.validate.rules) = { ... } * @param value The bytes for cluster to set. * @return This builder for chaining. */ public Builder setClusterBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cluster_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object tag_ = ""; /** *
     * A tag is a string separated with '.' (e.g. log.type) to categorize events.
     * See: https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v1#message-modes
     * 
* * string tag = 2 [(.validate.rules) = { ... } * @return The tag. */ public java.lang.String getTag() { java.lang.Object ref = tag_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tag_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * A tag is a string separated with '.' (e.g. log.type) to categorize events.
     * See: https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v1#message-modes
     * 
* * string tag = 2 [(.validate.rules) = { ... } * @return The bytes for tag. */ public com.google.protobuf.ByteString getTagBytes() { java.lang.Object ref = tag_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * A tag is a string separated with '.' (e.g. log.type) to categorize events.
     * See: https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v1#message-modes
     * 
* * string tag = 2 [(.validate.rules) = { ... } * @param value The tag to set. * @return This builder for chaining. */ public Builder setTag( java.lang.String value) { if (value == null) { throw new NullPointerException(); } tag_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * A tag is a string separated with '.' (e.g. log.type) to categorize events.
     * See: https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v1#message-modes
     * 
* * string tag = 2 [(.validate.rules) = { ... } * @return This builder for chaining. */ public Builder clearTag() { tag_ = getDefaultInstance().getTag(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * A tag is a string separated with '.' (e.g. log.type) to categorize events.
     * See: https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v1#message-modes
     * 
* * string tag = 2 [(.validate.rules) = { ... } * @param value The bytes for tag to set. * @return This builder for chaining. */ public Builder setTagBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tag_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object statPrefix_ = ""; /** *
     * The prefix to use when emitting :ref:`statistics <config_access_log_stats>`.
     * 
* * string stat_prefix = 3 [(.validate.rules) = { ... } * @return The statPrefix. */ public java.lang.String getStatPrefix() { java.lang.Object ref = statPrefix_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statPrefix_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The prefix to use when emitting :ref:`statistics <config_access_log_stats>`.
     * 
* * string stat_prefix = 3 [(.validate.rules) = { ... } * @return The bytes for statPrefix. */ public com.google.protobuf.ByteString getStatPrefixBytes() { java.lang.Object ref = statPrefix_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); statPrefix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The prefix to use when emitting :ref:`statistics <config_access_log_stats>`.
     * 
* * string stat_prefix = 3 [(.validate.rules) = { ... } * @param value The statPrefix to set. * @return This builder for chaining. */ public Builder setStatPrefix( java.lang.String value) { if (value == null) { throw new NullPointerException(); } statPrefix_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The prefix to use when emitting :ref:`statistics <config_access_log_stats>`.
     * 
* * string stat_prefix = 3 [(.validate.rules) = { ... } * @return This builder for chaining. */ public Builder clearStatPrefix() { statPrefix_ = getDefaultInstance().getStatPrefix(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     * The prefix to use when emitting :ref:`statistics <config_access_log_stats>`.
     * 
* * string stat_prefix = 3 [(.validate.rules) = { ... } * @param value The bytes for statPrefix to set. * @return This builder for chaining. */ public Builder setStatPrefixBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); statPrefix_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private com.google.protobuf.Duration bufferFlushInterval_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> bufferFlushIntervalBuilder_; /** *
     * Interval for flushing access logs to the TCP 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 = 4 [(.validate.rules) = { ... } * @return Whether the bufferFlushInterval field is set. */ public boolean hasBufferFlushInterval() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Interval for flushing access logs to the TCP 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 = 4 [(.validate.rules) = { ... } * @return The bufferFlushInterval. */ public com.google.protobuf.Duration getBufferFlushInterval() { if (bufferFlushIntervalBuilder_ == null) { return bufferFlushInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : bufferFlushInterval_; } else { return bufferFlushIntervalBuilder_.getMessage(); } } /** *
     * Interval for flushing access logs to the TCP 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 = 4 [(.validate.rules) = { ... } */ public Builder setBufferFlushInterval(com.google.protobuf.Duration value) { if (bufferFlushIntervalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } bufferFlushInterval_ = value; } else { bufferFlushIntervalBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Interval for flushing access logs to the TCP 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 = 4 [(.validate.rules) = { ... } */ public Builder setBufferFlushInterval( com.google.protobuf.Duration.Builder builderForValue) { if (bufferFlushIntervalBuilder_ == null) { bufferFlushInterval_ = builderForValue.build(); } else { bufferFlushIntervalBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Interval for flushing access logs to the TCP 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 = 4 [(.validate.rules) = { ... } */ public Builder mergeBufferFlushInterval(com.google.protobuf.Duration value) { if (bufferFlushIntervalBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && bufferFlushInterval_ != null && bufferFlushInterval_ != com.google.protobuf.Duration.getDefaultInstance()) { getBufferFlushIntervalBuilder().mergeFrom(value); } else { bufferFlushInterval_ = value; } } else { bufferFlushIntervalBuilder_.mergeFrom(value); } if (bufferFlushInterval_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
     * Interval for flushing access logs to the TCP 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 = 4 [(.validate.rules) = { ... } */ public Builder clearBufferFlushInterval() { bitField0_ = (bitField0_ & ~0x00000008); bufferFlushInterval_ = null; if (bufferFlushIntervalBuilder_ != null) { bufferFlushIntervalBuilder_.dispose(); bufferFlushIntervalBuilder_ = null; } onChanged(); return this; } /** *
     * Interval for flushing access logs to the TCP 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 = 4 [(.validate.rules) = { ... } */ public com.google.protobuf.Duration.Builder getBufferFlushIntervalBuilder() { bitField0_ |= 0x00000008; onChanged(); return getBufferFlushIntervalFieldBuilder().getBuilder(); } /** *
     * Interval for flushing access logs to the TCP 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 = 4 [(.validate.rules) = { ... } */ public com.google.protobuf.DurationOrBuilder getBufferFlushIntervalOrBuilder() { if (bufferFlushIntervalBuilder_ != null) { return bufferFlushIntervalBuilder_.getMessageOrBuilder(); } else { return bufferFlushInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : bufferFlushInterval_; } } /** *
     * Interval for flushing access logs to the TCP 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 = 4 [(.validate.rules) = { ... } */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getBufferFlushIntervalFieldBuilder() { if (bufferFlushIntervalBuilder_ == null) { bufferFlushIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getBufferFlushInterval(), getParentForChildren(), isClean()); bufferFlushInterval_ = null; } return bufferFlushIntervalBuilder_; } private com.google.protobuf.UInt32Value bufferSizeBytes_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> bufferSizeBytesBuilder_; /** *
     * Soft size limit in bytes for access log entries buffer. The logger will buffer requests until
     * this limit it hit, or every time flush interval is elapsed, whichever comes first. When the buffer
     * limit is hit, the logger will immediately flush the buffer contents. Setting it to zero effectively
     * disables the batching. Defaults to 16384.
     * 
* * .google.protobuf.UInt32Value buffer_size_bytes = 5; * @return Whether the bufferSizeBytes field is set. */ public boolean hasBufferSizeBytes() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Soft size limit in bytes for access log entries buffer. The logger will buffer requests until
     * this limit it hit, or every time flush interval is elapsed, whichever comes first. When the buffer
     * limit is hit, the logger will immediately flush the buffer contents. Setting it to zero effectively
     * disables the batching. Defaults to 16384.
     * 
* * .google.protobuf.UInt32Value buffer_size_bytes = 5; * @return The bufferSizeBytes. */ public com.google.protobuf.UInt32Value getBufferSizeBytes() { if (bufferSizeBytesBuilder_ == null) { return bufferSizeBytes_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : bufferSizeBytes_; } else { return bufferSizeBytesBuilder_.getMessage(); } } /** *
     * Soft size limit in bytes for access log entries buffer. The logger will buffer requests until
     * this limit it hit, or every time flush interval is elapsed, whichever comes first. When the buffer
     * limit is hit, the logger will immediately flush the buffer contents. Setting it to zero effectively
     * disables the batching. Defaults to 16384.
     * 
* * .google.protobuf.UInt32Value buffer_size_bytes = 5; */ public Builder setBufferSizeBytes(com.google.protobuf.UInt32Value value) { if (bufferSizeBytesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } bufferSizeBytes_ = value; } else { bufferSizeBytesBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Soft size limit in bytes for access log entries buffer. The logger will buffer requests until
     * this limit it hit, or every time flush interval is elapsed, whichever comes first. When the buffer
     * limit is hit, the logger will immediately flush the buffer contents. Setting it to zero effectively
     * disables the batching. Defaults to 16384.
     * 
* * .google.protobuf.UInt32Value buffer_size_bytes = 5; */ public Builder setBufferSizeBytes( com.google.protobuf.UInt32Value.Builder builderForValue) { if (bufferSizeBytesBuilder_ == null) { bufferSizeBytes_ = builderForValue.build(); } else { bufferSizeBytesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Soft size limit in bytes for access log entries buffer. The logger will buffer requests until
     * this limit it hit, or every time flush interval is elapsed, whichever comes first. When the buffer
     * limit is hit, the logger will immediately flush the buffer contents. Setting it to zero effectively
     * disables the batching. Defaults to 16384.
     * 
* * .google.protobuf.UInt32Value buffer_size_bytes = 5; */ public Builder mergeBufferSizeBytes(com.google.protobuf.UInt32Value value) { if (bufferSizeBytesBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && bufferSizeBytes_ != null && bufferSizeBytes_ != com.google.protobuf.UInt32Value.getDefaultInstance()) { getBufferSizeBytesBuilder().mergeFrom(value); } else { bufferSizeBytes_ = value; } } else { bufferSizeBytesBuilder_.mergeFrom(value); } if (bufferSizeBytes_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
     * Soft size limit in bytes for access log entries buffer. The logger will buffer requests until
     * this limit it hit, or every time flush interval is elapsed, whichever comes first. When the buffer
     * limit is hit, the logger will immediately flush the buffer contents. Setting it to zero effectively
     * disables the batching. Defaults to 16384.
     * 
* * .google.protobuf.UInt32Value buffer_size_bytes = 5; */ public Builder clearBufferSizeBytes() { bitField0_ = (bitField0_ & ~0x00000010); bufferSizeBytes_ = null; if (bufferSizeBytesBuilder_ != null) { bufferSizeBytesBuilder_.dispose(); bufferSizeBytesBuilder_ = null; } onChanged(); return this; } /** *
     * Soft size limit in bytes for access log entries buffer. The logger will buffer requests until
     * this limit it hit, or every time flush interval is elapsed, whichever comes first. When the buffer
     * limit is hit, the logger will immediately flush the buffer contents. Setting it to zero effectively
     * disables the batching. Defaults to 16384.
     * 
* * .google.protobuf.UInt32Value buffer_size_bytes = 5; */ public com.google.protobuf.UInt32Value.Builder getBufferSizeBytesBuilder() { bitField0_ |= 0x00000010; onChanged(); return getBufferSizeBytesFieldBuilder().getBuilder(); } /** *
     * Soft size limit in bytes for access log entries buffer. The logger will buffer requests until
     * this limit it hit, or every time flush interval is elapsed, whichever comes first. When the buffer
     * limit is hit, the logger will immediately flush the buffer contents. Setting it to zero effectively
     * disables the batching. Defaults to 16384.
     * 
* * .google.protobuf.UInt32Value buffer_size_bytes = 5; */ public com.google.protobuf.UInt32ValueOrBuilder getBufferSizeBytesOrBuilder() { if (bufferSizeBytesBuilder_ != null) { return bufferSizeBytesBuilder_.getMessageOrBuilder(); } else { return bufferSizeBytes_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : bufferSizeBytes_; } } /** *
     * Soft size limit in bytes for access log entries buffer. The logger will buffer requests until
     * this limit it hit, or every time flush interval is elapsed, whichever comes first. When the buffer
     * limit is hit, the logger will immediately flush the buffer contents. Setting it to zero effectively
     * disables the batching. Defaults to 16384.
     * 
* * .google.protobuf.UInt32Value buffer_size_bytes = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> getBufferSizeBytesFieldBuilder() { if (bufferSizeBytesBuilder_ == null) { bufferSizeBytesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>( getBufferSizeBytes(), getParentForChildren(), isClean()); bufferSizeBytes_ = null; } return bufferSizeBytesBuilder_; } private com.google.protobuf.Struct record_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> recordBuilder_; /** *
     * A struct that represents the record that is sent for each log entry.
     * https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v1#entry
     * Values are rendered as strings, numbers, or boolean values as appropriate.
     * Nested JSON objects may be produced by some command operators (e.g. FILTER_STATE or DYNAMIC_METADATA).
     * See :ref:`format string<config_access_log_format_strings>` documentation for a specific command operator details.
     *
     * .. validated-code-block:: yaml
     *   :type-name: envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig
     *
     *   record:
     *     status: "%RESPONSE_CODE%"
     *     message: "%LOCAL_REPLY_BODY%"
     *
     * The following msgpack record would be created:
     *
     * .. code-block:: json
     *
     *  {
     *    "status": 500,
     *    "message": "My error message"
     *  }
     * 
* * .google.protobuf.Struct record = 6 [(.validate.rules) = { ... } * @return Whether the record field is set. */ public boolean hasRecord() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * A struct that represents the record that is sent for each log entry.
     * https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v1#entry
     * Values are rendered as strings, numbers, or boolean values as appropriate.
     * Nested JSON objects may be produced by some command operators (e.g. FILTER_STATE or DYNAMIC_METADATA).
     * See :ref:`format string<config_access_log_format_strings>` documentation for a specific command operator details.
     *
     * .. validated-code-block:: yaml
     *   :type-name: envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig
     *
     *   record:
     *     status: "%RESPONSE_CODE%"
     *     message: "%LOCAL_REPLY_BODY%"
     *
     * The following msgpack record would be created:
     *
     * .. code-block:: json
     *
     *  {
     *    "status": 500,
     *    "message": "My error message"
     *  }
     * 
* * .google.protobuf.Struct record = 6 [(.validate.rules) = { ... } * @return The record. */ public com.google.protobuf.Struct getRecord() { if (recordBuilder_ == null) { return record_ == null ? com.google.protobuf.Struct.getDefaultInstance() : record_; } else { return recordBuilder_.getMessage(); } } /** *
     * A struct that represents the record that is sent for each log entry.
     * https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v1#entry
     * Values are rendered as strings, numbers, or boolean values as appropriate.
     * Nested JSON objects may be produced by some command operators (e.g. FILTER_STATE or DYNAMIC_METADATA).
     * See :ref:`format string<config_access_log_format_strings>` documentation for a specific command operator details.
     *
     * .. validated-code-block:: yaml
     *   :type-name: envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig
     *
     *   record:
     *     status: "%RESPONSE_CODE%"
     *     message: "%LOCAL_REPLY_BODY%"
     *
     * The following msgpack record would be created:
     *
     * .. code-block:: json
     *
     *  {
     *    "status": 500,
     *    "message": "My error message"
     *  }
     * 
* * .google.protobuf.Struct record = 6 [(.validate.rules) = { ... } */ public Builder setRecord(com.google.protobuf.Struct value) { if (recordBuilder_ == null) { if (value == null) { throw new NullPointerException(); } record_ = value; } else { recordBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * A struct that represents the record that is sent for each log entry.
     * https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v1#entry
     * Values are rendered as strings, numbers, or boolean values as appropriate.
     * Nested JSON objects may be produced by some command operators (e.g. FILTER_STATE or DYNAMIC_METADATA).
     * See :ref:`format string<config_access_log_format_strings>` documentation for a specific command operator details.
     *
     * .. validated-code-block:: yaml
     *   :type-name: envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig
     *
     *   record:
     *     status: "%RESPONSE_CODE%"
     *     message: "%LOCAL_REPLY_BODY%"
     *
     * The following msgpack record would be created:
     *
     * .. code-block:: json
     *
     *  {
     *    "status": 500,
     *    "message": "My error message"
     *  }
     * 
* * .google.protobuf.Struct record = 6 [(.validate.rules) = { ... } */ public Builder setRecord( com.google.protobuf.Struct.Builder builderForValue) { if (recordBuilder_ == null) { record_ = builderForValue.build(); } else { recordBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * A struct that represents the record that is sent for each log entry.
     * https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v1#entry
     * Values are rendered as strings, numbers, or boolean values as appropriate.
     * Nested JSON objects may be produced by some command operators (e.g. FILTER_STATE or DYNAMIC_METADATA).
     * See :ref:`format string<config_access_log_format_strings>` documentation for a specific command operator details.
     *
     * .. validated-code-block:: yaml
     *   :type-name: envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig
     *
     *   record:
     *     status: "%RESPONSE_CODE%"
     *     message: "%LOCAL_REPLY_BODY%"
     *
     * The following msgpack record would be created:
     *
     * .. code-block:: json
     *
     *  {
     *    "status": 500,
     *    "message": "My error message"
     *  }
     * 
* * .google.protobuf.Struct record = 6 [(.validate.rules) = { ... } */ public Builder mergeRecord(com.google.protobuf.Struct value) { if (recordBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && record_ != null && record_ != com.google.protobuf.Struct.getDefaultInstance()) { getRecordBuilder().mergeFrom(value); } else { record_ = value; } } else { recordBuilder_.mergeFrom(value); } if (record_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** *
     * A struct that represents the record that is sent for each log entry.
     * https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v1#entry
     * Values are rendered as strings, numbers, or boolean values as appropriate.
     * Nested JSON objects may be produced by some command operators (e.g. FILTER_STATE or DYNAMIC_METADATA).
     * See :ref:`format string<config_access_log_format_strings>` documentation for a specific command operator details.
     *
     * .. validated-code-block:: yaml
     *   :type-name: envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig
     *
     *   record:
     *     status: "%RESPONSE_CODE%"
     *     message: "%LOCAL_REPLY_BODY%"
     *
     * The following msgpack record would be created:
     *
     * .. code-block:: json
     *
     *  {
     *    "status": 500,
     *    "message": "My error message"
     *  }
     * 
* * .google.protobuf.Struct record = 6 [(.validate.rules) = { ... } */ public Builder clearRecord() { bitField0_ = (bitField0_ & ~0x00000020); record_ = null; if (recordBuilder_ != null) { recordBuilder_.dispose(); recordBuilder_ = null; } onChanged(); return this; } /** *
     * A struct that represents the record that is sent for each log entry.
     * https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v1#entry
     * Values are rendered as strings, numbers, or boolean values as appropriate.
     * Nested JSON objects may be produced by some command operators (e.g. FILTER_STATE or DYNAMIC_METADATA).
     * See :ref:`format string<config_access_log_format_strings>` documentation for a specific command operator details.
     *
     * .. validated-code-block:: yaml
     *   :type-name: envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig
     *
     *   record:
     *     status: "%RESPONSE_CODE%"
     *     message: "%LOCAL_REPLY_BODY%"
     *
     * The following msgpack record would be created:
     *
     * .. code-block:: json
     *
     *  {
     *    "status": 500,
     *    "message": "My error message"
     *  }
     * 
* * .google.protobuf.Struct record = 6 [(.validate.rules) = { ... } */ public com.google.protobuf.Struct.Builder getRecordBuilder() { bitField0_ |= 0x00000020; onChanged(); return getRecordFieldBuilder().getBuilder(); } /** *
     * A struct that represents the record that is sent for each log entry.
     * https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v1#entry
     * Values are rendered as strings, numbers, or boolean values as appropriate.
     * Nested JSON objects may be produced by some command operators (e.g. FILTER_STATE or DYNAMIC_METADATA).
     * See :ref:`format string<config_access_log_format_strings>` documentation for a specific command operator details.
     *
     * .. validated-code-block:: yaml
     *   :type-name: envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig
     *
     *   record:
     *     status: "%RESPONSE_CODE%"
     *     message: "%LOCAL_REPLY_BODY%"
     *
     * The following msgpack record would be created:
     *
     * .. code-block:: json
     *
     *  {
     *    "status": 500,
     *    "message": "My error message"
     *  }
     * 
* * .google.protobuf.Struct record = 6 [(.validate.rules) = { ... } */ public com.google.protobuf.StructOrBuilder getRecordOrBuilder() { if (recordBuilder_ != null) { return recordBuilder_.getMessageOrBuilder(); } else { return record_ == null ? com.google.protobuf.Struct.getDefaultInstance() : record_; } } /** *
     * A struct that represents the record that is sent for each log entry.
     * https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v1#entry
     * Values are rendered as strings, numbers, or boolean values as appropriate.
     * Nested JSON objects may be produced by some command operators (e.g. FILTER_STATE or DYNAMIC_METADATA).
     * See :ref:`format string<config_access_log_format_strings>` documentation for a specific command operator details.
     *
     * .. validated-code-block:: yaml
     *   :type-name: envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig
     *
     *   record:
     *     status: "%RESPONSE_CODE%"
     *     message: "%LOCAL_REPLY_BODY%"
     *
     * The following msgpack record would be created:
     *
     * .. code-block:: json
     *
     *  {
     *    "status": 500,
     *    "message": "My error message"
     *  }
     * 
* * .google.protobuf.Struct record = 6 [(.validate.rules) = { ... } */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getRecordFieldBuilder() { if (recordBuilder_ == null) { recordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( getRecord(), getParentForChildren(), isClean()); record_ = null; } return recordBuilder_; } private io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions retryOptions_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions, io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions.Builder, io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptionsOrBuilder> retryOptionsBuilder_; /** *
     * Optional retry, in case upstream connection has failed. If this field is not set, the default values will be applied,
     * as specified in the :ref:`RetryOptions <envoy_v3_api_msg_extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions>`
     * configuration.
     * 
* * .envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions retry_options = 7; * @return Whether the retryOptions field is set. */ public boolean hasRetryOptions() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * Optional retry, in case upstream connection has failed. If this field is not set, the default values will be applied,
     * as specified in the :ref:`RetryOptions <envoy_v3_api_msg_extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions>`
     * configuration.
     * 
* * .envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions retry_options = 7; * @return The retryOptions. */ public io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions getRetryOptions() { if (retryOptionsBuilder_ == null) { return retryOptions_ == null ? io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions.getDefaultInstance() : retryOptions_; } else { return retryOptionsBuilder_.getMessage(); } } /** *
     * Optional retry, in case upstream connection has failed. If this field is not set, the default values will be applied,
     * as specified in the :ref:`RetryOptions <envoy_v3_api_msg_extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions>`
     * configuration.
     * 
* * .envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions retry_options = 7; */ public Builder setRetryOptions(io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions value) { if (retryOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } retryOptions_ = value; } else { retryOptionsBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * Optional retry, in case upstream connection has failed. If this field is not set, the default values will be applied,
     * as specified in the :ref:`RetryOptions <envoy_v3_api_msg_extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions>`
     * configuration.
     * 
* * .envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions retry_options = 7; */ public Builder setRetryOptions( io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions.Builder builderForValue) { if (retryOptionsBuilder_ == null) { retryOptions_ = builderForValue.build(); } else { retryOptionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * Optional retry, in case upstream connection has failed. If this field is not set, the default values will be applied,
     * as specified in the :ref:`RetryOptions <envoy_v3_api_msg_extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions>`
     * configuration.
     * 
* * .envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions retry_options = 7; */ public Builder mergeRetryOptions(io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions value) { if (retryOptionsBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && retryOptions_ != null && retryOptions_ != io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions.getDefaultInstance()) { getRetryOptionsBuilder().mergeFrom(value); } else { retryOptions_ = value; } } else { retryOptionsBuilder_.mergeFrom(value); } if (retryOptions_ != null) { bitField0_ |= 0x00000040; onChanged(); } return this; } /** *
     * Optional retry, in case upstream connection has failed. If this field is not set, the default values will be applied,
     * as specified in the :ref:`RetryOptions <envoy_v3_api_msg_extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions>`
     * configuration.
     * 
* * .envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions retry_options = 7; */ public Builder clearRetryOptions() { bitField0_ = (bitField0_ & ~0x00000040); retryOptions_ = null; if (retryOptionsBuilder_ != null) { retryOptionsBuilder_.dispose(); retryOptionsBuilder_ = null; } onChanged(); return this; } /** *
     * Optional retry, in case upstream connection has failed. If this field is not set, the default values will be applied,
     * as specified in the :ref:`RetryOptions <envoy_v3_api_msg_extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions>`
     * configuration.
     * 
* * .envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions retry_options = 7; */ public io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions.Builder getRetryOptionsBuilder() { bitField0_ |= 0x00000040; onChanged(); return getRetryOptionsFieldBuilder().getBuilder(); } /** *
     * Optional retry, in case upstream connection has failed. If this field is not set, the default values will be applied,
     * as specified in the :ref:`RetryOptions <envoy_v3_api_msg_extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions>`
     * configuration.
     * 
* * .envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions retry_options = 7; */ public io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptionsOrBuilder getRetryOptionsOrBuilder() { if (retryOptionsBuilder_ != null) { return retryOptionsBuilder_.getMessageOrBuilder(); } else { return retryOptions_ == null ? io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions.getDefaultInstance() : retryOptions_; } } /** *
     * Optional retry, in case upstream connection has failed. If this field is not set, the default values will be applied,
     * as specified in the :ref:`RetryOptions <envoy_v3_api_msg_extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions>`
     * configuration.
     * 
* * .envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions retry_options = 7; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions, io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions.Builder, io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptionsOrBuilder> getRetryOptionsFieldBuilder() { if (retryOptionsBuilder_ == null) { retryOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions, io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptions.Builder, io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig.RetryOptionsOrBuilder>( getRetryOptions(), getParentForChildren(), isClean()); retryOptions_ = null; } return retryOptionsBuilder_; } private java.util.List formatters_ = java.util.Collections.emptyList(); private void ensureFormattersIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { formatters_ = new java.util.ArrayList(formatters_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder> formattersBuilder_; /** *
     * Specifies a collection of Formatter plugins that can be called from the access log configuration.
     * See the formatters extensions documentation for details.
     * [#extension-category: envoy.formatter]
     * 
* * repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 8; */ public java.util.List getFormattersList() { if (formattersBuilder_ == null) { return java.util.Collections.unmodifiableList(formatters_); } else { return formattersBuilder_.getMessageList(); } } /** *
     * Specifies a collection of Formatter plugins that can be called from the access log configuration.
     * See the formatters extensions documentation for details.
     * [#extension-category: envoy.formatter]
     * 
* * repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 8; */ public int getFormattersCount() { if (formattersBuilder_ == null) { return formatters_.size(); } else { return formattersBuilder_.getCount(); } } /** *
     * Specifies a collection of Formatter plugins that can be called from the access log configuration.
     * See the formatters extensions documentation for details.
     * [#extension-category: envoy.formatter]
     * 
* * repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 8; */ public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig getFormatters(int index) { if (formattersBuilder_ == null) { return formatters_.get(index); } else { return formattersBuilder_.getMessage(index); } } /** *
     * Specifies a collection of Formatter plugins that can be called from the access log configuration.
     * See the formatters extensions documentation for details.
     * [#extension-category: envoy.formatter]
     * 
* * repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 8; */ public Builder setFormatters( int index, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig value) { if (formattersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFormattersIsMutable(); formatters_.set(index, value); onChanged(); } else { formattersBuilder_.setMessage(index, value); } return this; } /** *
     * Specifies a collection of Formatter plugins that can be called from the access log configuration.
     * See the formatters extensions documentation for details.
     * [#extension-category: envoy.formatter]
     * 
* * repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 8; */ public Builder setFormatters( int index, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder builderForValue) { if (formattersBuilder_ == null) { ensureFormattersIsMutable(); formatters_.set(index, builderForValue.build()); onChanged(); } else { formattersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Specifies a collection of Formatter plugins that can be called from the access log configuration.
     * See the formatters extensions documentation for details.
     * [#extension-category: envoy.formatter]
     * 
* * repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 8; */ public Builder addFormatters(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig value) { if (formattersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFormattersIsMutable(); formatters_.add(value); onChanged(); } else { formattersBuilder_.addMessage(value); } return this; } /** *
     * Specifies a collection of Formatter plugins that can be called from the access log configuration.
     * See the formatters extensions documentation for details.
     * [#extension-category: envoy.formatter]
     * 
* * repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 8; */ public Builder addFormatters( int index, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig value) { if (formattersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFormattersIsMutable(); formatters_.add(index, value); onChanged(); } else { formattersBuilder_.addMessage(index, value); } return this; } /** *
     * Specifies a collection of Formatter plugins that can be called from the access log configuration.
     * See the formatters extensions documentation for details.
     * [#extension-category: envoy.formatter]
     * 
* * repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 8; */ public Builder addFormatters( io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder builderForValue) { if (formattersBuilder_ == null) { ensureFormattersIsMutable(); formatters_.add(builderForValue.build()); onChanged(); } else { formattersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Specifies a collection of Formatter plugins that can be called from the access log configuration.
     * See the formatters extensions documentation for details.
     * [#extension-category: envoy.formatter]
     * 
* * repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 8; */ public Builder addFormatters( int index, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder builderForValue) { if (formattersBuilder_ == null) { ensureFormattersIsMutable(); formatters_.add(index, builderForValue.build()); onChanged(); } else { formattersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Specifies a collection of Formatter plugins that can be called from the access log configuration.
     * See the formatters extensions documentation for details.
     * [#extension-category: envoy.formatter]
     * 
* * repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 8; */ public Builder addAllFormatters( java.lang.Iterable values) { if (formattersBuilder_ == null) { ensureFormattersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, formatters_); onChanged(); } else { formattersBuilder_.addAllMessages(values); } return this; } /** *
     * Specifies a collection of Formatter plugins that can be called from the access log configuration.
     * See the formatters extensions documentation for details.
     * [#extension-category: envoy.formatter]
     * 
* * repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 8; */ public Builder clearFormatters() { if (formattersBuilder_ == null) { formatters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { formattersBuilder_.clear(); } return this; } /** *
     * Specifies a collection of Formatter plugins that can be called from the access log configuration.
     * See the formatters extensions documentation for details.
     * [#extension-category: envoy.formatter]
     * 
* * repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 8; */ public Builder removeFormatters(int index) { if (formattersBuilder_ == null) { ensureFormattersIsMutable(); formatters_.remove(index); onChanged(); } else { formattersBuilder_.remove(index); } return this; } /** *
     * Specifies a collection of Formatter plugins that can be called from the access log configuration.
     * See the formatters extensions documentation for details.
     * [#extension-category: envoy.formatter]
     * 
* * repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 8; */ public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder getFormattersBuilder( int index) { return getFormattersFieldBuilder().getBuilder(index); } /** *
     * Specifies a collection of Formatter plugins that can be called from the access log configuration.
     * See the formatters extensions documentation for details.
     * [#extension-category: envoy.formatter]
     * 
* * repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 8; */ public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getFormattersOrBuilder( int index) { if (formattersBuilder_ == null) { return formatters_.get(index); } else { return formattersBuilder_.getMessageOrBuilder(index); } } /** *
     * Specifies a collection of Formatter plugins that can be called from the access log configuration.
     * See the formatters extensions documentation for details.
     * [#extension-category: envoy.formatter]
     * 
* * repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 8; */ public java.util.List getFormattersOrBuilderList() { if (formattersBuilder_ != null) { return formattersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(formatters_); } } /** *
     * Specifies a collection of Formatter plugins that can be called from the access log configuration.
     * See the formatters extensions documentation for details.
     * [#extension-category: envoy.formatter]
     * 
* * repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 8; */ public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder addFormattersBuilder() { return getFormattersFieldBuilder().addBuilder( io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance()); } /** *
     * Specifies a collection of Formatter plugins that can be called from the access log configuration.
     * See the formatters extensions documentation for details.
     * [#extension-category: envoy.formatter]
     * 
* * repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 8; */ public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder addFormattersBuilder( int index) { return getFormattersFieldBuilder().addBuilder( index, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance()); } /** *
     * Specifies a collection of Formatter plugins that can be called from the access log configuration.
     * See the formatters extensions documentation for details.
     * [#extension-category: envoy.formatter]
     * 
* * repeated .envoy.config.core.v3.TypedExtensionConfig formatters = 8; */ public java.util.List getFormattersBuilderList() { return getFormattersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder> getFormattersFieldBuilder() { if (formattersBuilder_ == null) { formattersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder>( formatters_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); formatters_ = null; } return formattersBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig) } // @@protoc_insertion_point(class_scope:envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig) private static final io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig(); } public static io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FluentdAccessLogConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.envoyproxy.envoy.extensions.access_loggers.fluentd.v3.FluentdAccessLogConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy