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

io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig Maven / Gradle / Ivy

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

package io.envoyproxy.envoy.extensions.access_loggers.grpc.v3;

/**
 * 
 * Common configuration for gRPC access logs.
 * [#next-free-field: 9]
 * 
* * Protobuf type {@code envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig} */ public final class CommonGrpcAccessLogConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig) CommonGrpcAccessLogConfigOrBuilder { private static final long serialVersionUID = 0L; // Use CommonGrpcAccessLogConfig.newBuilder() to construct. private CommonGrpcAccessLogConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CommonGrpcAccessLogConfig() { logName_ = ""; transportApiVersion_ = 0; filterStateObjectsToLog_ = com.google.protobuf.LazyStringArrayList.EMPTY; customTags_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CommonGrpcAccessLogConfig(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CommonGrpcAccessLogConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); logName_ = s; break; } case 18: { io.envoyproxy.envoy.config.core.v3.GrpcService.Builder subBuilder = null; if (grpcService_ != null) { subBuilder = grpcService_.toBuilder(); } grpcService_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.GrpcService.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(grpcService_); grpcService_ = subBuilder.buildPartial(); } break; } case 26: { com.google.protobuf.Duration.Builder subBuilder = null; if (bufferFlushInterval_ != null) { subBuilder = bufferFlushInterval_.toBuilder(); } bufferFlushInterval_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(bufferFlushInterval_); bufferFlushInterval_ = subBuilder.buildPartial(); } break; } case 34: { com.google.protobuf.UInt32Value.Builder subBuilder = null; if (bufferSizeBytes_ != null) { subBuilder = bufferSizeBytes_.toBuilder(); } bufferSizeBytes_ = input.readMessage(com.google.protobuf.UInt32Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(bufferSizeBytes_); bufferSizeBytes_ = subBuilder.buildPartial(); } break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { filterStateObjectsToLog_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } filterStateObjectsToLog_.add(s); break; } case 48: { int rawValue = input.readEnum(); transportApiVersion_ = rawValue; break; } case 58: { io.envoyproxy.envoy.config.core.v3.RetryPolicy.Builder subBuilder = null; if (grpcStreamRetryPolicy_ != null) { subBuilder = grpcStreamRetryPolicy_.toBuilder(); } grpcStreamRetryPolicy_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.RetryPolicy.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(grpcStreamRetryPolicy_); grpcStreamRetryPolicy_ = subBuilder.buildPartial(); } break; } case 66: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { customTags_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } customTags_.add( input.readMessage(io.envoyproxy.envoy.type.tracing.v3.CustomTag.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { filterStateObjectsToLog_ = filterStateObjectsToLog_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000002) != 0)) { customTags_ = java.util.Collections.unmodifiableList(customTags_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.AlsProto.internal_static_envoy_extensions_access_loggers_grpc_v3_CommonGrpcAccessLogConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.AlsProto.internal_static_envoy_extensions_access_loggers_grpc_v3_CommonGrpcAccessLogConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig.class, io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig.Builder.class); } public static final int LOG_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object logName_; /** *
   * The friendly name of the access log to be returned in :ref:`StreamAccessLogsMessage.Identifier
   * <envoy_v3_api_msg_service.accesslog.v3.StreamAccessLogsMessage.Identifier>`. This allows the
   * access log server to differentiate between different access logs coming from the same Envoy.
   * 
* * string log_name = 1 [(.validate.rules) = { ... } * @return The logName. */ @java.lang.Override public java.lang.String getLogName() { java.lang.Object ref = logName_; 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(); logName_ = s; return s; } } /** *
   * The friendly name of the access log to be returned in :ref:`StreamAccessLogsMessage.Identifier
   * <envoy_v3_api_msg_service.accesslog.v3.StreamAccessLogsMessage.Identifier>`. This allows the
   * access log server to differentiate between different access logs coming from the same Envoy.
   * 
* * string log_name = 1 [(.validate.rules) = { ... } * @return The bytes for logName. */ @java.lang.Override public com.google.protobuf.ByteString getLogNameBytes() { java.lang.Object ref = logName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); logName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GRPC_SERVICE_FIELD_NUMBER = 2; private io.envoyproxy.envoy.config.core.v3.GrpcService grpcService_; /** *
   * The gRPC service for the access log service.
   * 
* * .envoy.config.core.v3.GrpcService grpc_service = 2 [(.validate.rules) = { ... } * @return Whether the grpcService field is set. */ @java.lang.Override public boolean hasGrpcService() { return grpcService_ != null; } /** *
   * The gRPC service for the access log service.
   * 
* * .envoy.config.core.v3.GrpcService grpc_service = 2 [(.validate.rules) = { ... } * @return The grpcService. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.GrpcService getGrpcService() { return grpcService_ == null ? io.envoyproxy.envoy.config.core.v3.GrpcService.getDefaultInstance() : grpcService_; } /** *
   * The gRPC service for the access log service.
   * 
* * .envoy.config.core.v3.GrpcService grpc_service = 2 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.GrpcServiceOrBuilder getGrpcServiceOrBuilder() { return getGrpcService(); } public static final int TRANSPORT_API_VERSION_FIELD_NUMBER = 6; private int transportApiVersion_; /** *
   * API version for access logs service transport protocol. This describes the access logs service
   * gRPC endpoint and version of messages used on the wire.
   * 
* * .envoy.config.core.v3.ApiVersion transport_api_version = 6 [(.validate.rules) = { ... } * @return The enum numeric value on the wire for transportApiVersion. */ @java.lang.Override public int getTransportApiVersionValue() { return transportApiVersion_; } /** *
   * API version for access logs service transport protocol. This describes the access logs service
   * gRPC endpoint and version of messages used on the wire.
   * 
* * .envoy.config.core.v3.ApiVersion transport_api_version = 6 [(.validate.rules) = { ... } * @return The transportApiVersion. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.ApiVersion getTransportApiVersion() { @SuppressWarnings("deprecation") io.envoyproxy.envoy.config.core.v3.ApiVersion result = io.envoyproxy.envoy.config.core.v3.ApiVersion.valueOf(transportApiVersion_); return result == null ? io.envoyproxy.envoy.config.core.v3.ApiVersion.UNRECOGNIZED : result; } public static final int BUFFER_FLUSH_INTERVAL_FIELD_NUMBER = 3; private com.google.protobuf.Duration bufferFlushInterval_; /** *
   * Interval for flushing access logs to the gRPC stream. Logger will flush requests every time
   * this interval is elapsed, or when batch size limit is hit, whichever comes first. Defaults to
   * 1 second.
   * 
* * .google.protobuf.Duration buffer_flush_interval = 3 [(.validate.rules) = { ... } * @return Whether the bufferFlushInterval field is set. */ @java.lang.Override public boolean hasBufferFlushInterval() { return bufferFlushInterval_ != null; } /** *
   * Interval for flushing access logs to the gRPC stream. Logger will flush requests every time
   * this interval is elapsed, or when batch size limit is hit, whichever comes first. Defaults to
   * 1 second.
   * 
* * .google.protobuf.Duration buffer_flush_interval = 3 [(.validate.rules) = { ... } * @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 gRPC stream. Logger will flush requests every time
   * this interval is elapsed, or when batch size limit is hit, whichever comes first. Defaults to
   * 1 second.
   * 
* * .google.protobuf.Duration buffer_flush_interval = 3 [(.validate.rules) = { ... } */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getBufferFlushIntervalOrBuilder() { return getBufferFlushInterval(); } public static final int BUFFER_SIZE_BYTES_FIELD_NUMBER = 4; private com.google.protobuf.UInt32Value bufferSizeBytes_; /** *
   * Soft size limit in bytes for access log entries buffer. Logger will buffer requests until
   * this limit it hit, or every time flush interval is elapsed, whichever comes first. Setting it
   * to zero effectively disables the batching. Defaults to 16384.
   * 
* * .google.protobuf.UInt32Value buffer_size_bytes = 4; * @return Whether the bufferSizeBytes field is set. */ @java.lang.Override public boolean hasBufferSizeBytes() { return bufferSizeBytes_ != null; } /** *
   * Soft size limit in bytes for access log entries buffer. Logger will buffer requests until
   * this limit it hit, or every time flush interval is elapsed, whichever comes first. Setting it
   * to zero effectively disables the batching. Defaults to 16384.
   * 
* * .google.protobuf.UInt32Value buffer_size_bytes = 4; * @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. Logger will buffer requests until
   * this limit it hit, or every time flush interval is elapsed, whichever comes first. Setting it
   * to zero effectively disables the batching. Defaults to 16384.
   * 
* * .google.protobuf.UInt32Value buffer_size_bytes = 4; */ @java.lang.Override public com.google.protobuf.UInt32ValueOrBuilder getBufferSizeBytesOrBuilder() { return getBufferSizeBytes(); } public static final int FILTER_STATE_OBJECTS_TO_LOG_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList filterStateObjectsToLog_; /** *
   * Additional filter state objects to log in :ref:`filter_state_objects
   * <envoy_v3_api_field_data.accesslog.v3.AccessLogCommon.filter_state_objects>`.
   * Logger will call ``FilterState::Object::serializeAsProto`` to serialize the filter state object.
   * 
* * repeated string filter_state_objects_to_log = 5; * @return A list containing the filterStateObjectsToLog. */ public com.google.protobuf.ProtocolStringList getFilterStateObjectsToLogList() { return filterStateObjectsToLog_; } /** *
   * Additional filter state objects to log in :ref:`filter_state_objects
   * <envoy_v3_api_field_data.accesslog.v3.AccessLogCommon.filter_state_objects>`.
   * Logger will call ``FilterState::Object::serializeAsProto`` to serialize the filter state object.
   * 
* * repeated string filter_state_objects_to_log = 5; * @return The count of filterStateObjectsToLog. */ public int getFilterStateObjectsToLogCount() { return filterStateObjectsToLog_.size(); } /** *
   * Additional filter state objects to log in :ref:`filter_state_objects
   * <envoy_v3_api_field_data.accesslog.v3.AccessLogCommon.filter_state_objects>`.
   * Logger will call ``FilterState::Object::serializeAsProto`` to serialize the filter state object.
   * 
* * repeated string filter_state_objects_to_log = 5; * @param index The index of the element to return. * @return The filterStateObjectsToLog at the given index. */ public java.lang.String getFilterStateObjectsToLog(int index) { return filterStateObjectsToLog_.get(index); } /** *
   * Additional filter state objects to log in :ref:`filter_state_objects
   * <envoy_v3_api_field_data.accesslog.v3.AccessLogCommon.filter_state_objects>`.
   * Logger will call ``FilterState::Object::serializeAsProto`` to serialize the filter state object.
   * 
* * repeated string filter_state_objects_to_log = 5; * @param index The index of the value to return. * @return The bytes of the filterStateObjectsToLog at the given index. */ public com.google.protobuf.ByteString getFilterStateObjectsToLogBytes(int index) { return filterStateObjectsToLog_.getByteString(index); } public static final int GRPC_STREAM_RETRY_POLICY_FIELD_NUMBER = 7; private io.envoyproxy.envoy.config.core.v3.RetryPolicy grpcStreamRetryPolicy_; /** *
   * Sets the retry policy when the establishment of a gRPC stream fails.
   * If the stream succeeds at least once in establishing itself,
   * no retry will be performed no matter what gRPC status is received.
   * Note that only :ref:`num_retries <envoy_v3_api_field_config.core.v3.RetryPolicy.num_retries>`
   * will be used in this configuration. This feature is used only when you are using
   * :ref:`Envoy gRPC client <envoy_v3_api_field_config.core.v3.GrpcService.envoy_grpc>`.
   * 
* * .envoy.config.core.v3.RetryPolicy grpc_stream_retry_policy = 7; * @return Whether the grpcStreamRetryPolicy field is set. */ @java.lang.Override public boolean hasGrpcStreamRetryPolicy() { return grpcStreamRetryPolicy_ != null; } /** *
   * Sets the retry policy when the establishment of a gRPC stream fails.
   * If the stream succeeds at least once in establishing itself,
   * no retry will be performed no matter what gRPC status is received.
   * Note that only :ref:`num_retries <envoy_v3_api_field_config.core.v3.RetryPolicy.num_retries>`
   * will be used in this configuration. This feature is used only when you are using
   * :ref:`Envoy gRPC client <envoy_v3_api_field_config.core.v3.GrpcService.envoy_grpc>`.
   * 
* * .envoy.config.core.v3.RetryPolicy grpc_stream_retry_policy = 7; * @return The grpcStreamRetryPolicy. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.RetryPolicy getGrpcStreamRetryPolicy() { return grpcStreamRetryPolicy_ == null ? io.envoyproxy.envoy.config.core.v3.RetryPolicy.getDefaultInstance() : grpcStreamRetryPolicy_; } /** *
   * Sets the retry policy when the establishment of a gRPC stream fails.
   * If the stream succeeds at least once in establishing itself,
   * no retry will be performed no matter what gRPC status is received.
   * Note that only :ref:`num_retries <envoy_v3_api_field_config.core.v3.RetryPolicy.num_retries>`
   * will be used in this configuration. This feature is used only when you are using
   * :ref:`Envoy gRPC client <envoy_v3_api_field_config.core.v3.GrpcService.envoy_grpc>`.
   * 
* * .envoy.config.core.v3.RetryPolicy grpc_stream_retry_policy = 7; */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.RetryPolicyOrBuilder getGrpcStreamRetryPolicyOrBuilder() { return getGrpcStreamRetryPolicy(); } public static final int CUSTOM_TAGS_FIELD_NUMBER = 8; private java.util.List customTags_; /** *
   * A list of custom tags with unique tag name to create tags for the logs.
   * 
* * repeated .envoy.type.tracing.v3.CustomTag custom_tags = 8; */ @java.lang.Override public java.util.List getCustomTagsList() { return customTags_; } /** *
   * A list of custom tags with unique tag name to create tags for the logs.
   * 
* * repeated .envoy.type.tracing.v3.CustomTag custom_tags = 8; */ @java.lang.Override public java.util.List getCustomTagsOrBuilderList() { return customTags_; } /** *
   * A list of custom tags with unique tag name to create tags for the logs.
   * 
* * repeated .envoy.type.tracing.v3.CustomTag custom_tags = 8; */ @java.lang.Override public int getCustomTagsCount() { return customTags_.size(); } /** *
   * A list of custom tags with unique tag name to create tags for the logs.
   * 
* * repeated .envoy.type.tracing.v3.CustomTag custom_tags = 8; */ @java.lang.Override public io.envoyproxy.envoy.type.tracing.v3.CustomTag getCustomTags(int index) { return customTags_.get(index); } /** *
   * A list of custom tags with unique tag name to create tags for the logs.
   * 
* * repeated .envoy.type.tracing.v3.CustomTag custom_tags = 8; */ @java.lang.Override public io.envoyproxy.envoy.type.tracing.v3.CustomTagOrBuilder getCustomTagsOrBuilder( int index) { return customTags_.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(logName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, logName_); } if (grpcService_ != null) { output.writeMessage(2, getGrpcService()); } if (bufferFlushInterval_ != null) { output.writeMessage(3, getBufferFlushInterval()); } if (bufferSizeBytes_ != null) { output.writeMessage(4, getBufferSizeBytes()); } for (int i = 0; i < filterStateObjectsToLog_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filterStateObjectsToLog_.getRaw(i)); } if (transportApiVersion_ != io.envoyproxy.envoy.config.core.v3.ApiVersion.AUTO.getNumber()) { output.writeEnum(6, transportApiVersion_); } if (grpcStreamRetryPolicy_ != null) { output.writeMessage(7, getGrpcStreamRetryPolicy()); } for (int i = 0; i < customTags_.size(); i++) { output.writeMessage(8, customTags_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, logName_); } if (grpcService_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getGrpcService()); } if (bufferFlushInterval_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getBufferFlushInterval()); } if (bufferSizeBytes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getBufferSizeBytes()); } { int dataSize = 0; for (int i = 0; i < filterStateObjectsToLog_.size(); i++) { dataSize += computeStringSizeNoTag(filterStateObjectsToLog_.getRaw(i)); } size += dataSize; size += 1 * getFilterStateObjectsToLogList().size(); } if (transportApiVersion_ != io.envoyproxy.envoy.config.core.v3.ApiVersion.AUTO.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, transportApiVersion_); } if (grpcStreamRetryPolicy_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getGrpcStreamRetryPolicy()); } for (int i = 0; i < customTags_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, customTags_.get(i)); } size += unknownFields.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.grpc.v3.CommonGrpcAccessLogConfig)) { return super.equals(obj); } io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig other = (io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig) obj; if (!getLogName() .equals(other.getLogName())) return false; if (hasGrpcService() != other.hasGrpcService()) return false; if (hasGrpcService()) { if (!getGrpcService() .equals(other.getGrpcService())) return false; } if (transportApiVersion_ != other.transportApiVersion_) 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 (!getFilterStateObjectsToLogList() .equals(other.getFilterStateObjectsToLogList())) return false; if (hasGrpcStreamRetryPolicy() != other.hasGrpcStreamRetryPolicy()) return false; if (hasGrpcStreamRetryPolicy()) { if (!getGrpcStreamRetryPolicy() .equals(other.getGrpcStreamRetryPolicy())) return false; } if (!getCustomTagsList() .equals(other.getCustomTagsList())) return false; if (!unknownFields.equals(other.unknownFields)) 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) + LOG_NAME_FIELD_NUMBER; hash = (53 * hash) + getLogName().hashCode(); if (hasGrpcService()) { hash = (37 * hash) + GRPC_SERVICE_FIELD_NUMBER; hash = (53 * hash) + getGrpcService().hashCode(); } hash = (37 * hash) + TRANSPORT_API_VERSION_FIELD_NUMBER; hash = (53 * hash) + transportApiVersion_; 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 (getFilterStateObjectsToLogCount() > 0) { hash = (37 * hash) + FILTER_STATE_OBJECTS_TO_LOG_FIELD_NUMBER; hash = (53 * hash) + getFilterStateObjectsToLogList().hashCode(); } if (hasGrpcStreamRetryPolicy()) { hash = (37 * hash) + GRPC_STREAM_RETRY_POLICY_FIELD_NUMBER; hash = (53 * hash) + getGrpcStreamRetryPolicy().hashCode(); } if (getCustomTagsCount() > 0) { hash = (37 * hash) + CUSTOM_TAGS_FIELD_NUMBER; hash = (53 * hash) + getCustomTagsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig 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.grpc.v3.CommonGrpcAccessLogConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig 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.grpc.v3.CommonGrpcAccessLogConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig 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.grpc.v3.CommonGrpcAccessLogConfig 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.grpc.v3.CommonGrpcAccessLogConfig 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.grpc.v3.CommonGrpcAccessLogConfig 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.grpc.v3.CommonGrpcAccessLogConfig 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.grpc.v3.CommonGrpcAccessLogConfig 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.grpc.v3.CommonGrpcAccessLogConfig 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.grpc.v3.CommonGrpcAccessLogConfig 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; } /** *
   * Common configuration for gRPC access logs.
   * [#next-free-field: 9]
   * 
* * Protobuf type {@code envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig) io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.AlsProto.internal_static_envoy_extensions_access_loggers_grpc_v3_CommonGrpcAccessLogConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.AlsProto.internal_static_envoy_extensions_access_loggers_grpc_v3_CommonGrpcAccessLogConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig.class, io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig.Builder.class); } // Construct using io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCustomTagsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); logName_ = ""; if (grpcServiceBuilder_ == null) { grpcService_ = null; } else { grpcService_ = null; grpcServiceBuilder_ = null; } transportApiVersion_ = 0; if (bufferFlushIntervalBuilder_ == null) { bufferFlushInterval_ = null; } else { bufferFlushInterval_ = null; bufferFlushIntervalBuilder_ = null; } if (bufferSizeBytesBuilder_ == null) { bufferSizeBytes_ = null; } else { bufferSizeBytes_ = null; bufferSizeBytesBuilder_ = null; } filterStateObjectsToLog_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); if (grpcStreamRetryPolicyBuilder_ == null) { grpcStreamRetryPolicy_ = null; } else { grpcStreamRetryPolicy_ = null; grpcStreamRetryPolicyBuilder_ = null; } if (customTagsBuilder_ == null) { customTags_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { customTagsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.AlsProto.internal_static_envoy_extensions_access_loggers_grpc_v3_CommonGrpcAccessLogConfig_descriptor; } @java.lang.Override public io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig getDefaultInstanceForType() { return io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig build() { io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig buildPartial() { io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig result = new io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig(this); int from_bitField0_ = bitField0_; result.logName_ = logName_; if (grpcServiceBuilder_ == null) { result.grpcService_ = grpcService_; } else { result.grpcService_ = grpcServiceBuilder_.build(); } result.transportApiVersion_ = transportApiVersion_; if (bufferFlushIntervalBuilder_ == null) { result.bufferFlushInterval_ = bufferFlushInterval_; } else { result.bufferFlushInterval_ = bufferFlushIntervalBuilder_.build(); } if (bufferSizeBytesBuilder_ == null) { result.bufferSizeBytes_ = bufferSizeBytes_; } else { result.bufferSizeBytes_ = bufferSizeBytesBuilder_.build(); } if (((bitField0_ & 0x00000001) != 0)) { filterStateObjectsToLog_ = filterStateObjectsToLog_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.filterStateObjectsToLog_ = filterStateObjectsToLog_; if (grpcStreamRetryPolicyBuilder_ == null) { result.grpcStreamRetryPolicy_ = grpcStreamRetryPolicy_; } else { result.grpcStreamRetryPolicy_ = grpcStreamRetryPolicyBuilder_.build(); } if (customTagsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { customTags_ = java.util.Collections.unmodifiableList(customTags_); bitField0_ = (bitField0_ & ~0x00000002); } result.customTags_ = customTags_; } else { result.customTags_ = customTagsBuilder_.build(); } onBuilt(); return result; } @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.grpc.v3.CommonGrpcAccessLogConfig) { return mergeFrom((io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig other) { if (other == io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig.getDefaultInstance()) return this; if (!other.getLogName().isEmpty()) { logName_ = other.logName_; onChanged(); } if (other.hasGrpcService()) { mergeGrpcService(other.getGrpcService()); } if (other.transportApiVersion_ != 0) { setTransportApiVersionValue(other.getTransportApiVersionValue()); } if (other.hasBufferFlushInterval()) { mergeBufferFlushInterval(other.getBufferFlushInterval()); } if (other.hasBufferSizeBytes()) { mergeBufferSizeBytes(other.getBufferSizeBytes()); } if (!other.filterStateObjectsToLog_.isEmpty()) { if (filterStateObjectsToLog_.isEmpty()) { filterStateObjectsToLog_ = other.filterStateObjectsToLog_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFilterStateObjectsToLogIsMutable(); filterStateObjectsToLog_.addAll(other.filterStateObjectsToLog_); } onChanged(); } if (other.hasGrpcStreamRetryPolicy()) { mergeGrpcStreamRetryPolicy(other.getGrpcStreamRetryPolicy()); } if (customTagsBuilder_ == null) { if (!other.customTags_.isEmpty()) { if (customTags_.isEmpty()) { customTags_ = other.customTags_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureCustomTagsIsMutable(); customTags_.addAll(other.customTags_); } onChanged(); } } else { if (!other.customTags_.isEmpty()) { if (customTagsBuilder_.isEmpty()) { customTagsBuilder_.dispose(); customTagsBuilder_ = null; customTags_ = other.customTags_; bitField0_ = (bitField0_ & ~0x00000002); customTagsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCustomTagsFieldBuilder() : null; } else { customTagsBuilder_.addAllMessages(other.customTags_); } } } this.mergeUnknownFields(other.unknownFields); 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 { io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object logName_ = ""; /** *
     * The friendly name of the access log to be returned in :ref:`StreamAccessLogsMessage.Identifier
     * <envoy_v3_api_msg_service.accesslog.v3.StreamAccessLogsMessage.Identifier>`. This allows the
     * access log server to differentiate between different access logs coming from the same Envoy.
     * 
* * string log_name = 1 [(.validate.rules) = { ... } * @return The logName. */ public java.lang.String getLogName() { java.lang.Object ref = logName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The friendly name of the access log to be returned in :ref:`StreamAccessLogsMessage.Identifier
     * <envoy_v3_api_msg_service.accesslog.v3.StreamAccessLogsMessage.Identifier>`. This allows the
     * access log server to differentiate between different access logs coming from the same Envoy.
     * 
* * string log_name = 1 [(.validate.rules) = { ... } * @return The bytes for logName. */ public com.google.protobuf.ByteString getLogNameBytes() { java.lang.Object ref = logName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); logName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The friendly name of the access log to be returned in :ref:`StreamAccessLogsMessage.Identifier
     * <envoy_v3_api_msg_service.accesslog.v3.StreamAccessLogsMessage.Identifier>`. This allows the
     * access log server to differentiate between different access logs coming from the same Envoy.
     * 
* * string log_name = 1 [(.validate.rules) = { ... } * @param value The logName to set. * @return This builder for chaining. */ public Builder setLogName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } logName_ = value; onChanged(); return this; } /** *
     * The friendly name of the access log to be returned in :ref:`StreamAccessLogsMessage.Identifier
     * <envoy_v3_api_msg_service.accesslog.v3.StreamAccessLogsMessage.Identifier>`. This allows the
     * access log server to differentiate between different access logs coming from the same Envoy.
     * 
* * string log_name = 1 [(.validate.rules) = { ... } * @return This builder for chaining. */ public Builder clearLogName() { logName_ = getDefaultInstance().getLogName(); onChanged(); return this; } /** *
     * The friendly name of the access log to be returned in :ref:`StreamAccessLogsMessage.Identifier
     * <envoy_v3_api_msg_service.accesslog.v3.StreamAccessLogsMessage.Identifier>`. This allows the
     * access log server to differentiate between different access logs coming from the same Envoy.
     * 
* * string log_name = 1 [(.validate.rules) = { ... } * @param value The bytes for logName to set. * @return This builder for chaining. */ public Builder setLogNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); logName_ = value; onChanged(); return this; } private io.envoyproxy.envoy.config.core.v3.GrpcService grpcService_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.GrpcService, io.envoyproxy.envoy.config.core.v3.GrpcService.Builder, io.envoyproxy.envoy.config.core.v3.GrpcServiceOrBuilder> grpcServiceBuilder_; /** *
     * The gRPC service for the access log service.
     * 
* * .envoy.config.core.v3.GrpcService grpc_service = 2 [(.validate.rules) = { ... } * @return Whether the grpcService field is set. */ public boolean hasGrpcService() { return grpcServiceBuilder_ != null || grpcService_ != null; } /** *
     * The gRPC service for the access log service.
     * 
* * .envoy.config.core.v3.GrpcService grpc_service = 2 [(.validate.rules) = { ... } * @return The grpcService. */ public io.envoyproxy.envoy.config.core.v3.GrpcService getGrpcService() { if (grpcServiceBuilder_ == null) { return grpcService_ == null ? io.envoyproxy.envoy.config.core.v3.GrpcService.getDefaultInstance() : grpcService_; } else { return grpcServiceBuilder_.getMessage(); } } /** *
     * The gRPC service for the access log service.
     * 
* * .envoy.config.core.v3.GrpcService grpc_service = 2 [(.validate.rules) = { ... } */ public Builder setGrpcService(io.envoyproxy.envoy.config.core.v3.GrpcService value) { if (grpcServiceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } grpcService_ = value; onChanged(); } else { grpcServiceBuilder_.setMessage(value); } return this; } /** *
     * The gRPC service for the access log service.
     * 
* * .envoy.config.core.v3.GrpcService grpc_service = 2 [(.validate.rules) = { ... } */ public Builder setGrpcService( io.envoyproxy.envoy.config.core.v3.GrpcService.Builder builderForValue) { if (grpcServiceBuilder_ == null) { grpcService_ = builderForValue.build(); onChanged(); } else { grpcServiceBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The gRPC service for the access log service.
     * 
* * .envoy.config.core.v3.GrpcService grpc_service = 2 [(.validate.rules) = { ... } */ public Builder mergeGrpcService(io.envoyproxy.envoy.config.core.v3.GrpcService value) { if (grpcServiceBuilder_ == null) { if (grpcService_ != null) { grpcService_ = io.envoyproxy.envoy.config.core.v3.GrpcService.newBuilder(grpcService_).mergeFrom(value).buildPartial(); } else { grpcService_ = value; } onChanged(); } else { grpcServiceBuilder_.mergeFrom(value); } return this; } /** *
     * The gRPC service for the access log service.
     * 
* * .envoy.config.core.v3.GrpcService grpc_service = 2 [(.validate.rules) = { ... } */ public Builder clearGrpcService() { if (grpcServiceBuilder_ == null) { grpcService_ = null; onChanged(); } else { grpcService_ = null; grpcServiceBuilder_ = null; } return this; } /** *
     * The gRPC service for the access log service.
     * 
* * .envoy.config.core.v3.GrpcService grpc_service = 2 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.core.v3.GrpcService.Builder getGrpcServiceBuilder() { onChanged(); return getGrpcServiceFieldBuilder().getBuilder(); } /** *
     * The gRPC service for the access log service.
     * 
* * .envoy.config.core.v3.GrpcService grpc_service = 2 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.core.v3.GrpcServiceOrBuilder getGrpcServiceOrBuilder() { if (grpcServiceBuilder_ != null) { return grpcServiceBuilder_.getMessageOrBuilder(); } else { return grpcService_ == null ? io.envoyproxy.envoy.config.core.v3.GrpcService.getDefaultInstance() : grpcService_; } } /** *
     * The gRPC service for the access log service.
     * 
* * .envoy.config.core.v3.GrpcService grpc_service = 2 [(.validate.rules) = { ... } */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.GrpcService, io.envoyproxy.envoy.config.core.v3.GrpcService.Builder, io.envoyproxy.envoy.config.core.v3.GrpcServiceOrBuilder> getGrpcServiceFieldBuilder() { if (grpcServiceBuilder_ == null) { grpcServiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.GrpcService, io.envoyproxy.envoy.config.core.v3.GrpcService.Builder, io.envoyproxy.envoy.config.core.v3.GrpcServiceOrBuilder>( getGrpcService(), getParentForChildren(), isClean()); grpcService_ = null; } return grpcServiceBuilder_; } private int transportApiVersion_ = 0; /** *
     * API version for access logs service transport protocol. This describes the access logs service
     * gRPC endpoint and version of messages used on the wire.
     * 
* * .envoy.config.core.v3.ApiVersion transport_api_version = 6 [(.validate.rules) = { ... } * @return The enum numeric value on the wire for transportApiVersion. */ @java.lang.Override public int getTransportApiVersionValue() { return transportApiVersion_; } /** *
     * API version for access logs service transport protocol. This describes the access logs service
     * gRPC endpoint and version of messages used on the wire.
     * 
* * .envoy.config.core.v3.ApiVersion transport_api_version = 6 [(.validate.rules) = { ... } * @param value The enum numeric value on the wire for transportApiVersion to set. * @return This builder for chaining. */ public Builder setTransportApiVersionValue(int value) { transportApiVersion_ = value; onChanged(); return this; } /** *
     * API version for access logs service transport protocol. This describes the access logs service
     * gRPC endpoint and version of messages used on the wire.
     * 
* * .envoy.config.core.v3.ApiVersion transport_api_version = 6 [(.validate.rules) = { ... } * @return The transportApiVersion. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.ApiVersion getTransportApiVersion() { @SuppressWarnings("deprecation") io.envoyproxy.envoy.config.core.v3.ApiVersion result = io.envoyproxy.envoy.config.core.v3.ApiVersion.valueOf(transportApiVersion_); return result == null ? io.envoyproxy.envoy.config.core.v3.ApiVersion.UNRECOGNIZED : result; } /** *
     * API version for access logs service transport protocol. This describes the access logs service
     * gRPC endpoint and version of messages used on the wire.
     * 
* * .envoy.config.core.v3.ApiVersion transport_api_version = 6 [(.validate.rules) = { ... } * @param value The transportApiVersion to set. * @return This builder for chaining. */ public Builder setTransportApiVersion(io.envoyproxy.envoy.config.core.v3.ApiVersion value) { if (value == null) { throw new NullPointerException(); } transportApiVersion_ = value.getNumber(); onChanged(); return this; } /** *
     * API version for access logs service transport protocol. This describes the access logs service
     * gRPC endpoint and version of messages used on the wire.
     * 
* * .envoy.config.core.v3.ApiVersion transport_api_version = 6 [(.validate.rules) = { ... } * @return This builder for chaining. */ public Builder clearTransportApiVersion() { transportApiVersion_ = 0; 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 gRPC stream. Logger will flush requests every time
     * this interval is elapsed, or when batch size limit is hit, whichever comes first. Defaults to
     * 1 second.
     * 
* * .google.protobuf.Duration buffer_flush_interval = 3 [(.validate.rules) = { ... } * @return Whether the bufferFlushInterval field is set. */ public boolean hasBufferFlushInterval() { return bufferFlushIntervalBuilder_ != null || bufferFlushInterval_ != null; } /** *
     * Interval for flushing access logs to the gRPC stream. Logger will flush requests every time
     * this interval is elapsed, or when batch size limit is hit, whichever comes first. Defaults to
     * 1 second.
     * 
* * .google.protobuf.Duration buffer_flush_interval = 3 [(.validate.rules) = { ... } * @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 gRPC stream. Logger will flush requests every time
     * this interval is elapsed, or when batch size limit is hit, whichever comes first. Defaults to
     * 1 second.
     * 
* * .google.protobuf.Duration buffer_flush_interval = 3 [(.validate.rules) = { ... } */ public Builder setBufferFlushInterval(com.google.protobuf.Duration value) { if (bufferFlushIntervalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } bufferFlushInterval_ = value; onChanged(); } else { bufferFlushIntervalBuilder_.setMessage(value); } return this; } /** *
     * Interval for flushing access logs to the gRPC stream. Logger will flush requests every time
     * this interval is elapsed, or when batch size limit is hit, whichever comes first. Defaults to
     * 1 second.
     * 
* * .google.protobuf.Duration buffer_flush_interval = 3 [(.validate.rules) = { ... } */ public Builder setBufferFlushInterval( com.google.protobuf.Duration.Builder builderForValue) { if (bufferFlushIntervalBuilder_ == null) { bufferFlushInterval_ = builderForValue.build(); onChanged(); } else { bufferFlushIntervalBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Interval for flushing access logs to the gRPC stream. Logger will flush requests every time
     * this interval is elapsed, or when batch size limit is hit, whichever comes first. Defaults to
     * 1 second.
     * 
* * .google.protobuf.Duration buffer_flush_interval = 3 [(.validate.rules) = { ... } */ public Builder mergeBufferFlushInterval(com.google.protobuf.Duration value) { if (bufferFlushIntervalBuilder_ == null) { if (bufferFlushInterval_ != null) { bufferFlushInterval_ = com.google.protobuf.Duration.newBuilder(bufferFlushInterval_).mergeFrom(value).buildPartial(); } else { bufferFlushInterval_ = value; } onChanged(); } else { bufferFlushIntervalBuilder_.mergeFrom(value); } return this; } /** *
     * Interval for flushing access logs to the gRPC stream. Logger will flush requests every time
     * this interval is elapsed, or when batch size limit is hit, whichever comes first. Defaults to
     * 1 second.
     * 
* * .google.protobuf.Duration buffer_flush_interval = 3 [(.validate.rules) = { ... } */ public Builder clearBufferFlushInterval() { if (bufferFlushIntervalBuilder_ == null) { bufferFlushInterval_ = null; onChanged(); } else { bufferFlushInterval_ = null; bufferFlushIntervalBuilder_ = null; } return this; } /** *
     * Interval for flushing access logs to the gRPC stream. Logger will flush requests every time
     * this interval is elapsed, or when batch size limit is hit, whichever comes first. Defaults to
     * 1 second.
     * 
* * .google.protobuf.Duration buffer_flush_interval = 3 [(.validate.rules) = { ... } */ public com.google.protobuf.Duration.Builder getBufferFlushIntervalBuilder() { onChanged(); return getBufferFlushIntervalFieldBuilder().getBuilder(); } /** *
     * Interval for flushing access logs to the gRPC stream. Logger will flush requests every time
     * this interval is elapsed, or when batch size limit is hit, whichever comes first. Defaults to
     * 1 second.
     * 
* * .google.protobuf.Duration buffer_flush_interval = 3 [(.validate.rules) = { ... } */ 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 gRPC stream. Logger will flush requests every time
     * this interval is elapsed, or when batch size limit is hit, whichever comes first. Defaults to
     * 1 second.
     * 
* * .google.protobuf.Duration buffer_flush_interval = 3 [(.validate.rules) = { ... } */ 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. Logger will buffer requests until
     * this limit it hit, or every time flush interval is elapsed, whichever comes first. Setting it
     * to zero effectively disables the batching. Defaults to 16384.
     * 
* * .google.protobuf.UInt32Value buffer_size_bytes = 4; * @return Whether the bufferSizeBytes field is set. */ public boolean hasBufferSizeBytes() { return bufferSizeBytesBuilder_ != null || bufferSizeBytes_ != null; } /** *
     * Soft size limit in bytes for access log entries buffer. Logger will buffer requests until
     * this limit it hit, or every time flush interval is elapsed, whichever comes first. Setting it
     * to zero effectively disables the batching. Defaults to 16384.
     * 
* * .google.protobuf.UInt32Value buffer_size_bytes = 4; * @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. Logger will buffer requests until
     * this limit it hit, or every time flush interval is elapsed, whichever comes first. Setting it
     * to zero effectively disables the batching. Defaults to 16384.
     * 
* * .google.protobuf.UInt32Value buffer_size_bytes = 4; */ public Builder setBufferSizeBytes(com.google.protobuf.UInt32Value value) { if (bufferSizeBytesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } bufferSizeBytes_ = value; onChanged(); } else { bufferSizeBytesBuilder_.setMessage(value); } return this; } /** *
     * Soft size limit in bytes for access log entries buffer. Logger will buffer requests until
     * this limit it hit, or every time flush interval is elapsed, whichever comes first. Setting it
     * to zero effectively disables the batching. Defaults to 16384.
     * 
* * .google.protobuf.UInt32Value buffer_size_bytes = 4; */ public Builder setBufferSizeBytes( com.google.protobuf.UInt32Value.Builder builderForValue) { if (bufferSizeBytesBuilder_ == null) { bufferSizeBytes_ = builderForValue.build(); onChanged(); } else { bufferSizeBytesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Soft size limit in bytes for access log entries buffer. Logger will buffer requests until
     * this limit it hit, or every time flush interval is elapsed, whichever comes first. Setting it
     * to zero effectively disables the batching. Defaults to 16384.
     * 
* * .google.protobuf.UInt32Value buffer_size_bytes = 4; */ public Builder mergeBufferSizeBytes(com.google.protobuf.UInt32Value value) { if (bufferSizeBytesBuilder_ == null) { if (bufferSizeBytes_ != null) { bufferSizeBytes_ = com.google.protobuf.UInt32Value.newBuilder(bufferSizeBytes_).mergeFrom(value).buildPartial(); } else { bufferSizeBytes_ = value; } onChanged(); } else { bufferSizeBytesBuilder_.mergeFrom(value); } return this; } /** *
     * Soft size limit in bytes for access log entries buffer. Logger will buffer requests until
     * this limit it hit, or every time flush interval is elapsed, whichever comes first. Setting it
     * to zero effectively disables the batching. Defaults to 16384.
     * 
* * .google.protobuf.UInt32Value buffer_size_bytes = 4; */ public Builder clearBufferSizeBytes() { if (bufferSizeBytesBuilder_ == null) { bufferSizeBytes_ = null; onChanged(); } else { bufferSizeBytes_ = null; bufferSizeBytesBuilder_ = null; } return this; } /** *
     * Soft size limit in bytes for access log entries buffer. Logger will buffer requests until
     * this limit it hit, or every time flush interval is elapsed, whichever comes first. Setting it
     * to zero effectively disables the batching. Defaults to 16384.
     * 
* * .google.protobuf.UInt32Value buffer_size_bytes = 4; */ public com.google.protobuf.UInt32Value.Builder getBufferSizeBytesBuilder() { onChanged(); return getBufferSizeBytesFieldBuilder().getBuilder(); } /** *
     * Soft size limit in bytes for access log entries buffer. Logger will buffer requests until
     * this limit it hit, or every time flush interval is elapsed, whichever comes first. Setting it
     * to zero effectively disables the batching. Defaults to 16384.
     * 
* * .google.protobuf.UInt32Value buffer_size_bytes = 4; */ 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. Logger will buffer requests until
     * this limit it hit, or every time flush interval is elapsed, whichever comes first. Setting it
     * to zero effectively disables the batching. Defaults to 16384.
     * 
* * .google.protobuf.UInt32Value buffer_size_bytes = 4; */ 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.LazyStringList filterStateObjectsToLog_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureFilterStateObjectsToLogIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { filterStateObjectsToLog_ = new com.google.protobuf.LazyStringArrayList(filterStateObjectsToLog_); bitField0_ |= 0x00000001; } } /** *
     * Additional filter state objects to log in :ref:`filter_state_objects
     * <envoy_v3_api_field_data.accesslog.v3.AccessLogCommon.filter_state_objects>`.
     * Logger will call ``FilterState::Object::serializeAsProto`` to serialize the filter state object.
     * 
* * repeated string filter_state_objects_to_log = 5; * @return A list containing the filterStateObjectsToLog. */ public com.google.protobuf.ProtocolStringList getFilterStateObjectsToLogList() { return filterStateObjectsToLog_.getUnmodifiableView(); } /** *
     * Additional filter state objects to log in :ref:`filter_state_objects
     * <envoy_v3_api_field_data.accesslog.v3.AccessLogCommon.filter_state_objects>`.
     * Logger will call ``FilterState::Object::serializeAsProto`` to serialize the filter state object.
     * 
* * repeated string filter_state_objects_to_log = 5; * @return The count of filterStateObjectsToLog. */ public int getFilterStateObjectsToLogCount() { return filterStateObjectsToLog_.size(); } /** *
     * Additional filter state objects to log in :ref:`filter_state_objects
     * <envoy_v3_api_field_data.accesslog.v3.AccessLogCommon.filter_state_objects>`.
     * Logger will call ``FilterState::Object::serializeAsProto`` to serialize the filter state object.
     * 
* * repeated string filter_state_objects_to_log = 5; * @param index The index of the element to return. * @return The filterStateObjectsToLog at the given index. */ public java.lang.String getFilterStateObjectsToLog(int index) { return filterStateObjectsToLog_.get(index); } /** *
     * Additional filter state objects to log in :ref:`filter_state_objects
     * <envoy_v3_api_field_data.accesslog.v3.AccessLogCommon.filter_state_objects>`.
     * Logger will call ``FilterState::Object::serializeAsProto`` to serialize the filter state object.
     * 
* * repeated string filter_state_objects_to_log = 5; * @param index The index of the value to return. * @return The bytes of the filterStateObjectsToLog at the given index. */ public com.google.protobuf.ByteString getFilterStateObjectsToLogBytes(int index) { return filterStateObjectsToLog_.getByteString(index); } /** *
     * Additional filter state objects to log in :ref:`filter_state_objects
     * <envoy_v3_api_field_data.accesslog.v3.AccessLogCommon.filter_state_objects>`.
     * Logger will call ``FilterState::Object::serializeAsProto`` to serialize the filter state object.
     * 
* * repeated string filter_state_objects_to_log = 5; * @param index The index to set the value at. * @param value The filterStateObjectsToLog to set. * @return This builder for chaining. */ public Builder setFilterStateObjectsToLog( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureFilterStateObjectsToLogIsMutable(); filterStateObjectsToLog_.set(index, value); onChanged(); return this; } /** *
     * Additional filter state objects to log in :ref:`filter_state_objects
     * <envoy_v3_api_field_data.accesslog.v3.AccessLogCommon.filter_state_objects>`.
     * Logger will call ``FilterState::Object::serializeAsProto`` to serialize the filter state object.
     * 
* * repeated string filter_state_objects_to_log = 5; * @param value The filterStateObjectsToLog to add. * @return This builder for chaining. */ public Builder addFilterStateObjectsToLog( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureFilterStateObjectsToLogIsMutable(); filterStateObjectsToLog_.add(value); onChanged(); return this; } /** *
     * Additional filter state objects to log in :ref:`filter_state_objects
     * <envoy_v3_api_field_data.accesslog.v3.AccessLogCommon.filter_state_objects>`.
     * Logger will call ``FilterState::Object::serializeAsProto`` to serialize the filter state object.
     * 
* * repeated string filter_state_objects_to_log = 5; * @param values The filterStateObjectsToLog to add. * @return This builder for chaining. */ public Builder addAllFilterStateObjectsToLog( java.lang.Iterable values) { ensureFilterStateObjectsToLogIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, filterStateObjectsToLog_); onChanged(); return this; } /** *
     * Additional filter state objects to log in :ref:`filter_state_objects
     * <envoy_v3_api_field_data.accesslog.v3.AccessLogCommon.filter_state_objects>`.
     * Logger will call ``FilterState::Object::serializeAsProto`` to serialize the filter state object.
     * 
* * repeated string filter_state_objects_to_log = 5; * @return This builder for chaining. */ public Builder clearFilterStateObjectsToLog() { filterStateObjectsToLog_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Additional filter state objects to log in :ref:`filter_state_objects
     * <envoy_v3_api_field_data.accesslog.v3.AccessLogCommon.filter_state_objects>`.
     * Logger will call ``FilterState::Object::serializeAsProto`` to serialize the filter state object.
     * 
* * repeated string filter_state_objects_to_log = 5; * @param value The bytes of the filterStateObjectsToLog to add. * @return This builder for chaining. */ public Builder addFilterStateObjectsToLogBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureFilterStateObjectsToLogIsMutable(); filterStateObjectsToLog_.add(value); onChanged(); return this; } private io.envoyproxy.envoy.config.core.v3.RetryPolicy grpcStreamRetryPolicy_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.RetryPolicy, io.envoyproxy.envoy.config.core.v3.RetryPolicy.Builder, io.envoyproxy.envoy.config.core.v3.RetryPolicyOrBuilder> grpcStreamRetryPolicyBuilder_; /** *
     * Sets the retry policy when the establishment of a gRPC stream fails.
     * If the stream succeeds at least once in establishing itself,
     * no retry will be performed no matter what gRPC status is received.
     * Note that only :ref:`num_retries <envoy_v3_api_field_config.core.v3.RetryPolicy.num_retries>`
     * will be used in this configuration. This feature is used only when you are using
     * :ref:`Envoy gRPC client <envoy_v3_api_field_config.core.v3.GrpcService.envoy_grpc>`.
     * 
* * .envoy.config.core.v3.RetryPolicy grpc_stream_retry_policy = 7; * @return Whether the grpcStreamRetryPolicy field is set. */ public boolean hasGrpcStreamRetryPolicy() { return grpcStreamRetryPolicyBuilder_ != null || grpcStreamRetryPolicy_ != null; } /** *
     * Sets the retry policy when the establishment of a gRPC stream fails.
     * If the stream succeeds at least once in establishing itself,
     * no retry will be performed no matter what gRPC status is received.
     * Note that only :ref:`num_retries <envoy_v3_api_field_config.core.v3.RetryPolicy.num_retries>`
     * will be used in this configuration. This feature is used only when you are using
     * :ref:`Envoy gRPC client <envoy_v3_api_field_config.core.v3.GrpcService.envoy_grpc>`.
     * 
* * .envoy.config.core.v3.RetryPolicy grpc_stream_retry_policy = 7; * @return The grpcStreamRetryPolicy. */ public io.envoyproxy.envoy.config.core.v3.RetryPolicy getGrpcStreamRetryPolicy() { if (grpcStreamRetryPolicyBuilder_ == null) { return grpcStreamRetryPolicy_ == null ? io.envoyproxy.envoy.config.core.v3.RetryPolicy.getDefaultInstance() : grpcStreamRetryPolicy_; } else { return grpcStreamRetryPolicyBuilder_.getMessage(); } } /** *
     * Sets the retry policy when the establishment of a gRPC stream fails.
     * If the stream succeeds at least once in establishing itself,
     * no retry will be performed no matter what gRPC status is received.
     * Note that only :ref:`num_retries <envoy_v3_api_field_config.core.v3.RetryPolicy.num_retries>`
     * will be used in this configuration. This feature is used only when you are using
     * :ref:`Envoy gRPC client <envoy_v3_api_field_config.core.v3.GrpcService.envoy_grpc>`.
     * 
* * .envoy.config.core.v3.RetryPolicy grpc_stream_retry_policy = 7; */ public Builder setGrpcStreamRetryPolicy(io.envoyproxy.envoy.config.core.v3.RetryPolicy value) { if (grpcStreamRetryPolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } grpcStreamRetryPolicy_ = value; onChanged(); } else { grpcStreamRetryPolicyBuilder_.setMessage(value); } return this; } /** *
     * Sets the retry policy when the establishment of a gRPC stream fails.
     * If the stream succeeds at least once in establishing itself,
     * no retry will be performed no matter what gRPC status is received.
     * Note that only :ref:`num_retries <envoy_v3_api_field_config.core.v3.RetryPolicy.num_retries>`
     * will be used in this configuration. This feature is used only when you are using
     * :ref:`Envoy gRPC client <envoy_v3_api_field_config.core.v3.GrpcService.envoy_grpc>`.
     * 
* * .envoy.config.core.v3.RetryPolicy grpc_stream_retry_policy = 7; */ public Builder setGrpcStreamRetryPolicy( io.envoyproxy.envoy.config.core.v3.RetryPolicy.Builder builderForValue) { if (grpcStreamRetryPolicyBuilder_ == null) { grpcStreamRetryPolicy_ = builderForValue.build(); onChanged(); } else { grpcStreamRetryPolicyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Sets the retry policy when the establishment of a gRPC stream fails.
     * If the stream succeeds at least once in establishing itself,
     * no retry will be performed no matter what gRPC status is received.
     * Note that only :ref:`num_retries <envoy_v3_api_field_config.core.v3.RetryPolicy.num_retries>`
     * will be used in this configuration. This feature is used only when you are using
     * :ref:`Envoy gRPC client <envoy_v3_api_field_config.core.v3.GrpcService.envoy_grpc>`.
     * 
* * .envoy.config.core.v3.RetryPolicy grpc_stream_retry_policy = 7; */ public Builder mergeGrpcStreamRetryPolicy(io.envoyproxy.envoy.config.core.v3.RetryPolicy value) { if (grpcStreamRetryPolicyBuilder_ == null) { if (grpcStreamRetryPolicy_ != null) { grpcStreamRetryPolicy_ = io.envoyproxy.envoy.config.core.v3.RetryPolicy.newBuilder(grpcStreamRetryPolicy_).mergeFrom(value).buildPartial(); } else { grpcStreamRetryPolicy_ = value; } onChanged(); } else { grpcStreamRetryPolicyBuilder_.mergeFrom(value); } return this; } /** *
     * Sets the retry policy when the establishment of a gRPC stream fails.
     * If the stream succeeds at least once in establishing itself,
     * no retry will be performed no matter what gRPC status is received.
     * Note that only :ref:`num_retries <envoy_v3_api_field_config.core.v3.RetryPolicy.num_retries>`
     * will be used in this configuration. This feature is used only when you are using
     * :ref:`Envoy gRPC client <envoy_v3_api_field_config.core.v3.GrpcService.envoy_grpc>`.
     * 
* * .envoy.config.core.v3.RetryPolicy grpc_stream_retry_policy = 7; */ public Builder clearGrpcStreamRetryPolicy() { if (grpcStreamRetryPolicyBuilder_ == null) { grpcStreamRetryPolicy_ = null; onChanged(); } else { grpcStreamRetryPolicy_ = null; grpcStreamRetryPolicyBuilder_ = null; } return this; } /** *
     * Sets the retry policy when the establishment of a gRPC stream fails.
     * If the stream succeeds at least once in establishing itself,
     * no retry will be performed no matter what gRPC status is received.
     * Note that only :ref:`num_retries <envoy_v3_api_field_config.core.v3.RetryPolicy.num_retries>`
     * will be used in this configuration. This feature is used only when you are using
     * :ref:`Envoy gRPC client <envoy_v3_api_field_config.core.v3.GrpcService.envoy_grpc>`.
     * 
* * .envoy.config.core.v3.RetryPolicy grpc_stream_retry_policy = 7; */ public io.envoyproxy.envoy.config.core.v3.RetryPolicy.Builder getGrpcStreamRetryPolicyBuilder() { onChanged(); return getGrpcStreamRetryPolicyFieldBuilder().getBuilder(); } /** *
     * Sets the retry policy when the establishment of a gRPC stream fails.
     * If the stream succeeds at least once in establishing itself,
     * no retry will be performed no matter what gRPC status is received.
     * Note that only :ref:`num_retries <envoy_v3_api_field_config.core.v3.RetryPolicy.num_retries>`
     * will be used in this configuration. This feature is used only when you are using
     * :ref:`Envoy gRPC client <envoy_v3_api_field_config.core.v3.GrpcService.envoy_grpc>`.
     * 
* * .envoy.config.core.v3.RetryPolicy grpc_stream_retry_policy = 7; */ public io.envoyproxy.envoy.config.core.v3.RetryPolicyOrBuilder getGrpcStreamRetryPolicyOrBuilder() { if (grpcStreamRetryPolicyBuilder_ != null) { return grpcStreamRetryPolicyBuilder_.getMessageOrBuilder(); } else { return grpcStreamRetryPolicy_ == null ? io.envoyproxy.envoy.config.core.v3.RetryPolicy.getDefaultInstance() : grpcStreamRetryPolicy_; } } /** *
     * Sets the retry policy when the establishment of a gRPC stream fails.
     * If the stream succeeds at least once in establishing itself,
     * no retry will be performed no matter what gRPC status is received.
     * Note that only :ref:`num_retries <envoy_v3_api_field_config.core.v3.RetryPolicy.num_retries>`
     * will be used in this configuration. This feature is used only when you are using
     * :ref:`Envoy gRPC client <envoy_v3_api_field_config.core.v3.GrpcService.envoy_grpc>`.
     * 
* * .envoy.config.core.v3.RetryPolicy grpc_stream_retry_policy = 7; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.RetryPolicy, io.envoyproxy.envoy.config.core.v3.RetryPolicy.Builder, io.envoyproxy.envoy.config.core.v3.RetryPolicyOrBuilder> getGrpcStreamRetryPolicyFieldBuilder() { if (grpcStreamRetryPolicyBuilder_ == null) { grpcStreamRetryPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.RetryPolicy, io.envoyproxy.envoy.config.core.v3.RetryPolicy.Builder, io.envoyproxy.envoy.config.core.v3.RetryPolicyOrBuilder>( getGrpcStreamRetryPolicy(), getParentForChildren(), isClean()); grpcStreamRetryPolicy_ = null; } return grpcStreamRetryPolicyBuilder_; } private java.util.List customTags_ = java.util.Collections.emptyList(); private void ensureCustomTagsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { customTags_ = new java.util.ArrayList(customTags_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.type.tracing.v3.CustomTag, io.envoyproxy.envoy.type.tracing.v3.CustomTag.Builder, io.envoyproxy.envoy.type.tracing.v3.CustomTagOrBuilder> customTagsBuilder_; /** *
     * A list of custom tags with unique tag name to create tags for the logs.
     * 
* * repeated .envoy.type.tracing.v3.CustomTag custom_tags = 8; */ public java.util.List getCustomTagsList() { if (customTagsBuilder_ == null) { return java.util.Collections.unmodifiableList(customTags_); } else { return customTagsBuilder_.getMessageList(); } } /** *
     * A list of custom tags with unique tag name to create tags for the logs.
     * 
* * repeated .envoy.type.tracing.v3.CustomTag custom_tags = 8; */ public int getCustomTagsCount() { if (customTagsBuilder_ == null) { return customTags_.size(); } else { return customTagsBuilder_.getCount(); } } /** *
     * A list of custom tags with unique tag name to create tags for the logs.
     * 
* * repeated .envoy.type.tracing.v3.CustomTag custom_tags = 8; */ public io.envoyproxy.envoy.type.tracing.v3.CustomTag getCustomTags(int index) { if (customTagsBuilder_ == null) { return customTags_.get(index); } else { return customTagsBuilder_.getMessage(index); } } /** *
     * A list of custom tags with unique tag name to create tags for the logs.
     * 
* * repeated .envoy.type.tracing.v3.CustomTag custom_tags = 8; */ public Builder setCustomTags( int index, io.envoyproxy.envoy.type.tracing.v3.CustomTag value) { if (customTagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCustomTagsIsMutable(); customTags_.set(index, value); onChanged(); } else { customTagsBuilder_.setMessage(index, value); } return this; } /** *
     * A list of custom tags with unique tag name to create tags for the logs.
     * 
* * repeated .envoy.type.tracing.v3.CustomTag custom_tags = 8; */ public Builder setCustomTags( int index, io.envoyproxy.envoy.type.tracing.v3.CustomTag.Builder builderForValue) { if (customTagsBuilder_ == null) { ensureCustomTagsIsMutable(); customTags_.set(index, builderForValue.build()); onChanged(); } else { customTagsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * A list of custom tags with unique tag name to create tags for the logs.
     * 
* * repeated .envoy.type.tracing.v3.CustomTag custom_tags = 8; */ public Builder addCustomTags(io.envoyproxy.envoy.type.tracing.v3.CustomTag value) { if (customTagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCustomTagsIsMutable(); customTags_.add(value); onChanged(); } else { customTagsBuilder_.addMessage(value); } return this; } /** *
     * A list of custom tags with unique tag name to create tags for the logs.
     * 
* * repeated .envoy.type.tracing.v3.CustomTag custom_tags = 8; */ public Builder addCustomTags( int index, io.envoyproxy.envoy.type.tracing.v3.CustomTag value) { if (customTagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCustomTagsIsMutable(); customTags_.add(index, value); onChanged(); } else { customTagsBuilder_.addMessage(index, value); } return this; } /** *
     * A list of custom tags with unique tag name to create tags for the logs.
     * 
* * repeated .envoy.type.tracing.v3.CustomTag custom_tags = 8; */ public Builder addCustomTags( io.envoyproxy.envoy.type.tracing.v3.CustomTag.Builder builderForValue) { if (customTagsBuilder_ == null) { ensureCustomTagsIsMutable(); customTags_.add(builderForValue.build()); onChanged(); } else { customTagsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * A list of custom tags with unique tag name to create tags for the logs.
     * 
* * repeated .envoy.type.tracing.v3.CustomTag custom_tags = 8; */ public Builder addCustomTags( int index, io.envoyproxy.envoy.type.tracing.v3.CustomTag.Builder builderForValue) { if (customTagsBuilder_ == null) { ensureCustomTagsIsMutable(); customTags_.add(index, builderForValue.build()); onChanged(); } else { customTagsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * A list of custom tags with unique tag name to create tags for the logs.
     * 
* * repeated .envoy.type.tracing.v3.CustomTag custom_tags = 8; */ public Builder addAllCustomTags( java.lang.Iterable values) { if (customTagsBuilder_ == null) { ensureCustomTagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, customTags_); onChanged(); } else { customTagsBuilder_.addAllMessages(values); } return this; } /** *
     * A list of custom tags with unique tag name to create tags for the logs.
     * 
* * repeated .envoy.type.tracing.v3.CustomTag custom_tags = 8; */ public Builder clearCustomTags() { if (customTagsBuilder_ == null) { customTags_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { customTagsBuilder_.clear(); } return this; } /** *
     * A list of custom tags with unique tag name to create tags for the logs.
     * 
* * repeated .envoy.type.tracing.v3.CustomTag custom_tags = 8; */ public Builder removeCustomTags(int index) { if (customTagsBuilder_ == null) { ensureCustomTagsIsMutable(); customTags_.remove(index); onChanged(); } else { customTagsBuilder_.remove(index); } return this; } /** *
     * A list of custom tags with unique tag name to create tags for the logs.
     * 
* * repeated .envoy.type.tracing.v3.CustomTag custom_tags = 8; */ public io.envoyproxy.envoy.type.tracing.v3.CustomTag.Builder getCustomTagsBuilder( int index) { return getCustomTagsFieldBuilder().getBuilder(index); } /** *
     * A list of custom tags with unique tag name to create tags for the logs.
     * 
* * repeated .envoy.type.tracing.v3.CustomTag custom_tags = 8; */ public io.envoyproxy.envoy.type.tracing.v3.CustomTagOrBuilder getCustomTagsOrBuilder( int index) { if (customTagsBuilder_ == null) { return customTags_.get(index); } else { return customTagsBuilder_.getMessageOrBuilder(index); } } /** *
     * A list of custom tags with unique tag name to create tags for the logs.
     * 
* * repeated .envoy.type.tracing.v3.CustomTag custom_tags = 8; */ public java.util.List getCustomTagsOrBuilderList() { if (customTagsBuilder_ != null) { return customTagsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(customTags_); } } /** *
     * A list of custom tags with unique tag name to create tags for the logs.
     * 
* * repeated .envoy.type.tracing.v3.CustomTag custom_tags = 8; */ public io.envoyproxy.envoy.type.tracing.v3.CustomTag.Builder addCustomTagsBuilder() { return getCustomTagsFieldBuilder().addBuilder( io.envoyproxy.envoy.type.tracing.v3.CustomTag.getDefaultInstance()); } /** *
     * A list of custom tags with unique tag name to create tags for the logs.
     * 
* * repeated .envoy.type.tracing.v3.CustomTag custom_tags = 8; */ public io.envoyproxy.envoy.type.tracing.v3.CustomTag.Builder addCustomTagsBuilder( int index) { return getCustomTagsFieldBuilder().addBuilder( index, io.envoyproxy.envoy.type.tracing.v3.CustomTag.getDefaultInstance()); } /** *
     * A list of custom tags with unique tag name to create tags for the logs.
     * 
* * repeated .envoy.type.tracing.v3.CustomTag custom_tags = 8; */ public java.util.List getCustomTagsBuilderList() { return getCustomTagsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.type.tracing.v3.CustomTag, io.envoyproxy.envoy.type.tracing.v3.CustomTag.Builder, io.envoyproxy.envoy.type.tracing.v3.CustomTagOrBuilder> getCustomTagsFieldBuilder() { if (customTagsBuilder_ == null) { customTagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.type.tracing.v3.CustomTag, io.envoyproxy.envoy.type.tracing.v3.CustomTag.Builder, io.envoyproxy.envoy.type.tracing.v3.CustomTagOrBuilder>( customTags_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); customTags_ = null; } return customTagsBuilder_; } @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.grpc.v3.CommonGrpcAccessLogConfig) } // @@protoc_insertion_point(class_scope:envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig) private static final io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig(); } public static io.envoyproxy.envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CommonGrpcAccessLogConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CommonGrpcAccessLogConfig(input, extensionRegistry); } }; 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.grpc.v3.CommonGrpcAccessLogConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy