// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/config/accesslog/v2/als.proto
package io.envoyproxy.envoy.config.accesslog.v2;
/**
*
* Configuration for the built-in *envoy.access_loggers.http_grpc*
* :ref:`AccessLog <envoy_api_msg_config.filter.accesslog.v2.AccessLog>`. This configuration will
* populate :ref:`StreamAccessLogsMessage.http_logs
* <envoy_api_field_service.accesslog.v2.StreamAccessLogsMessage.http_logs>`.
* [#extension: envoy.access_loggers.http_grpc]
*
*
* Protobuf type {@code envoy.config.accesslog.v2.HttpGrpcAccessLogConfig}
*/
public final class HttpGrpcAccessLogConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.accesslog.v2.HttpGrpcAccessLogConfig)
HttpGrpcAccessLogConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use HttpGrpcAccessLogConfig.newBuilder() to construct.
private HttpGrpcAccessLogConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HttpGrpcAccessLogConfig() {
additionalRequestHeadersToLog_ = com.google.protobuf.LazyStringArrayList.EMPTY;
additionalResponseHeadersToLog_ = com.google.protobuf.LazyStringArrayList.EMPTY;
additionalResponseTrailersToLog_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HttpGrpcAccessLogConfig();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HttpGrpcAccessLogConfig(
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: {
io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig.Builder subBuilder = null;
if (commonConfig_ != null) {
subBuilder = commonConfig_.toBuilder();
}
commonConfig_ = input.readMessage(io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(commonConfig_);
commonConfig_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
additionalRequestHeadersToLog_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
additionalRequestHeadersToLog_.add(s);
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
additionalResponseHeadersToLog_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
additionalResponseHeadersToLog_.add(s);
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
additionalResponseTrailersToLog_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
additionalResponseTrailersToLog_.add(s);
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)) {
additionalRequestHeadersToLog_ = additionalRequestHeadersToLog_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
additionalResponseHeadersToLog_ = additionalResponseHeadersToLog_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
additionalResponseTrailersToLog_ = additionalResponseTrailersToLog_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.accesslog.v2.AlsProto.internal_static_envoy_config_accesslog_v2_HttpGrpcAccessLogConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.accesslog.v2.AlsProto.internal_static_envoy_config_accesslog_v2_HttpGrpcAccessLogConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.accesslog.v2.HttpGrpcAccessLogConfig.class, io.envoyproxy.envoy.config.accesslog.v2.HttpGrpcAccessLogConfig.Builder.class);
}
public static final int COMMON_CONFIG_FIELD_NUMBER = 1;
private io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig commonConfig_;
/**
* .envoy.config.accesslog.v2.CommonGrpcAccessLogConfig common_config = 1 [(.validate.rules) = { ... }
* @return Whether the commonConfig field is set.
*/
@java.lang.Override
public boolean hasCommonConfig() {
return commonConfig_ != null;
}
/**
* .envoy.config.accesslog.v2.CommonGrpcAccessLogConfig common_config = 1 [(.validate.rules) = { ... }
* @return The commonConfig.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig getCommonConfig() {
return commonConfig_ == null ? io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig.getDefaultInstance() : commonConfig_;
}
/**
* .envoy.config.accesslog.v2.CommonGrpcAccessLogConfig common_config = 1 [(.validate.rules) = { ... }
*/
@java.lang.Override
public io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfigOrBuilder getCommonConfigOrBuilder() {
return getCommonConfig();
}
public static final int ADDITIONAL_REQUEST_HEADERS_TO_LOG_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList additionalRequestHeadersToLog_;
/**
*
* Additional request headers to log in :ref:`HTTPRequestProperties.request_headers
* <envoy_api_field_data.accesslog.v2.HTTPRequestProperties.request_headers>`.
*
*
* repeated string additional_request_headers_to_log = 2;
* @return A list containing the additionalRequestHeadersToLog.
*/
public com.google.protobuf.ProtocolStringList
getAdditionalRequestHeadersToLogList() {
return additionalRequestHeadersToLog_;
}
/**
*
* Additional request headers to log in :ref:`HTTPRequestProperties.request_headers
* <envoy_api_field_data.accesslog.v2.HTTPRequestProperties.request_headers>`.
*
*
* repeated string additional_request_headers_to_log = 2;
* @return The count of additionalRequestHeadersToLog.
*/
public int getAdditionalRequestHeadersToLogCount() {
return additionalRequestHeadersToLog_.size();
}
/**
*
* Additional request headers to log in :ref:`HTTPRequestProperties.request_headers
* <envoy_api_field_data.accesslog.v2.HTTPRequestProperties.request_headers>`.
*
*
* repeated string additional_request_headers_to_log = 2;
* @param index The index of the element to return.
* @return The additionalRequestHeadersToLog at the given index.
*/
public java.lang.String getAdditionalRequestHeadersToLog(int index) {
return additionalRequestHeadersToLog_.get(index);
}
/**
*
* Additional request headers to log in :ref:`HTTPRequestProperties.request_headers
* <envoy_api_field_data.accesslog.v2.HTTPRequestProperties.request_headers>`.
*
*
* repeated string additional_request_headers_to_log = 2;
* @param index The index of the value to return.
* @return The bytes of the additionalRequestHeadersToLog at the given index.
*/
public com.google.protobuf.ByteString
getAdditionalRequestHeadersToLogBytes(int index) {
return additionalRequestHeadersToLog_.getByteString(index);
}
public static final int ADDITIONAL_RESPONSE_HEADERS_TO_LOG_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList additionalResponseHeadersToLog_;
/**
*
* Additional response headers to log in :ref:`HTTPResponseProperties.response_headers
* <envoy_api_field_data.accesslog.v2.HTTPResponseProperties.response_headers>`.
*
*
* repeated string additional_response_headers_to_log = 3;
* @return A list containing the additionalResponseHeadersToLog.
*/
public com.google.protobuf.ProtocolStringList
getAdditionalResponseHeadersToLogList() {
return additionalResponseHeadersToLog_;
}
/**
*
* Additional response headers to log in :ref:`HTTPResponseProperties.response_headers
* <envoy_api_field_data.accesslog.v2.HTTPResponseProperties.response_headers>`.
*
*
* repeated string additional_response_headers_to_log = 3;
* @return The count of additionalResponseHeadersToLog.
*/
public int getAdditionalResponseHeadersToLogCount() {
return additionalResponseHeadersToLog_.size();
}
/**
*
* Additional response headers to log in :ref:`HTTPResponseProperties.response_headers
* <envoy_api_field_data.accesslog.v2.HTTPResponseProperties.response_headers>`.
*
*
* repeated string additional_response_headers_to_log = 3;
* @param index The index of the element to return.
* @return The additionalResponseHeadersToLog at the given index.
*/
public java.lang.String getAdditionalResponseHeadersToLog(int index) {
return additionalResponseHeadersToLog_.get(index);
}
/**
*
* Additional response headers to log in :ref:`HTTPResponseProperties.response_headers
* <envoy_api_field_data.accesslog.v2.HTTPResponseProperties.response_headers>`.
*
*
* repeated string additional_response_headers_to_log = 3;
* @param index The index of the value to return.
* @return The bytes of the additionalResponseHeadersToLog at the given index.
*/
public com.google.protobuf.ByteString
getAdditionalResponseHeadersToLogBytes(int index) {
return additionalResponseHeadersToLog_.getByteString(index);
}
public static final int ADDITIONAL_RESPONSE_TRAILERS_TO_LOG_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList additionalResponseTrailersToLog_;
/**
*
* Additional response trailers to log in :ref:`HTTPResponseProperties.response_trailers
* <envoy_api_field_data.accesslog.v2.HTTPResponseProperties.response_trailers>`.
*
*
* repeated string additional_response_trailers_to_log = 4;
* @return A list containing the additionalResponseTrailersToLog.
*/
public com.google.protobuf.ProtocolStringList
getAdditionalResponseTrailersToLogList() {
return additionalResponseTrailersToLog_;
}
/**
*
* Additional response trailers to log in :ref:`HTTPResponseProperties.response_trailers
* <envoy_api_field_data.accesslog.v2.HTTPResponseProperties.response_trailers>`.
*
*
* repeated string additional_response_trailers_to_log = 4;
* @return The count of additionalResponseTrailersToLog.
*/
public int getAdditionalResponseTrailersToLogCount() {
return additionalResponseTrailersToLog_.size();
}
/**
*
* Additional response trailers to log in :ref:`HTTPResponseProperties.response_trailers
* <envoy_api_field_data.accesslog.v2.HTTPResponseProperties.response_trailers>`.
*
*
* repeated string additional_response_trailers_to_log = 4;
* @param index The index of the element to return.
* @return The additionalResponseTrailersToLog at the given index.
*/
public java.lang.String getAdditionalResponseTrailersToLog(int index) {
return additionalResponseTrailersToLog_.get(index);
}
/**
*
* Additional response trailers to log in :ref:`HTTPResponseProperties.response_trailers
* <envoy_api_field_data.accesslog.v2.HTTPResponseProperties.response_trailers>`.
*
*
* repeated string additional_response_trailers_to_log = 4;
* @param index The index of the value to return.
* @return The bytes of the additionalResponseTrailersToLog at the given index.
*/
public com.google.protobuf.ByteString
getAdditionalResponseTrailersToLogBytes(int index) {
return additionalResponseTrailersToLog_.getByteString(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 (commonConfig_ != null) {
output.writeMessage(1, getCommonConfig());
}
for (int i = 0; i < additionalRequestHeadersToLog_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, additionalRequestHeadersToLog_.getRaw(i));
}
for (int i = 0; i < additionalResponseHeadersToLog_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, additionalResponseHeadersToLog_.getRaw(i));
}
for (int i = 0; i < additionalResponseTrailersToLog_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, additionalResponseTrailersToLog_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (commonConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCommonConfig());
}
{
int dataSize = 0;
for (int i = 0; i < additionalRequestHeadersToLog_.size(); i++) {
dataSize += computeStringSizeNoTag(additionalRequestHeadersToLog_.getRaw(i));
}
size += dataSize;
size += 1 * getAdditionalRequestHeadersToLogList().size();
}
{
int dataSize = 0;
for (int i = 0; i < additionalResponseHeadersToLog_.size(); i++) {
dataSize += computeStringSizeNoTag(additionalResponseHeadersToLog_.getRaw(i));
}
size += dataSize;
size += 1 * getAdditionalResponseHeadersToLogList().size();
}
{
int dataSize = 0;
for (int i = 0; i < additionalResponseTrailersToLog_.size(); i++) {
dataSize += computeStringSizeNoTag(additionalResponseTrailersToLog_.getRaw(i));
}
size += dataSize;
size += 1 * getAdditionalResponseTrailersToLogList().size();
}
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.config.accesslog.v2.HttpGrpcAccessLogConfig)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.accesslog.v2.HttpGrpcAccessLogConfig other = (io.envoyproxy.envoy.config.accesslog.v2.HttpGrpcAccessLogConfig) obj;
if (hasCommonConfig() != other.hasCommonConfig()) return false;
if (hasCommonConfig()) {
if (!getCommonConfig()
.equals(other.getCommonConfig())) return false;
}
if (!getAdditionalRequestHeadersToLogList()
.equals(other.getAdditionalRequestHeadersToLogList())) return false;
if (!getAdditionalResponseHeadersToLogList()
.equals(other.getAdditionalResponseHeadersToLogList())) return false;
if (!getAdditionalResponseTrailersToLogList()
.equals(other.getAdditionalResponseTrailersToLogList())) 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();
if (hasCommonConfig()) {
hash = (37 * hash) + COMMON_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getCommonConfig().hashCode();
}
if (getAdditionalRequestHeadersToLogCount() > 0) {
hash = (37 * hash) + ADDITIONAL_REQUEST_HEADERS_TO_LOG_FIELD_NUMBER;
hash = (53 * hash) + getAdditionalRequestHeadersToLogList().hashCode();
}
if (getAdditionalResponseHeadersToLogCount() > 0) {
hash = (37 * hash) + ADDITIONAL_RESPONSE_HEADERS_TO_LOG_FIELD_NUMBER;
hash = (53 * hash) + getAdditionalResponseHeadersToLogList().hashCode();
}
if (getAdditionalResponseTrailersToLogCount() > 0) {
hash = (37 * hash) + ADDITIONAL_RESPONSE_TRAILERS_TO_LOG_FIELD_NUMBER;
hash = (53 * hash) + getAdditionalResponseTrailersToLogList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.accesslog.v2.HttpGrpcAccessLogConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.accesslog.v2.HttpGrpcAccessLogConfig 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.config.accesslog.v2.HttpGrpcAccessLogConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.accesslog.v2.HttpGrpcAccessLogConfig 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.config.accesslog.v2.HttpGrpcAccessLogConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.accesslog.v2.HttpGrpcAccessLogConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.accesslog.v2.HttpGrpcAccessLogConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.accesslog.v2.HttpGrpcAccessLogConfig 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.config.accesslog.v2.HttpGrpcAccessLogConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.accesslog.v2.HttpGrpcAccessLogConfig 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.config.accesslog.v2.HttpGrpcAccessLogConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.accesslog.v2.HttpGrpcAccessLogConfig 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.config.accesslog.v2.HttpGrpcAccessLogConfig 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 built-in *envoy.access_loggers.http_grpc*
* :ref:`AccessLog <envoy_api_msg_config.filter.accesslog.v2.AccessLog>`. This configuration will
* populate :ref:`StreamAccessLogsMessage.http_logs
* <envoy_api_field_service.accesslog.v2.StreamAccessLogsMessage.http_logs>`.
* [#extension: envoy.access_loggers.http_grpc]
*
*
* Protobuf type {@code envoy.config.accesslog.v2.HttpGrpcAccessLogConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.accesslog.v2.HttpGrpcAccessLogConfig)
io.envoyproxy.envoy.config.accesslog.v2.HttpGrpcAccessLogConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.accesslog.v2.AlsProto.internal_static_envoy_config_accesslog_v2_HttpGrpcAccessLogConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.accesslog.v2.AlsProto.internal_static_envoy_config_accesslog_v2_HttpGrpcAccessLogConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.accesslog.v2.HttpGrpcAccessLogConfig.class, io.envoyproxy.envoy.config.accesslog.v2.HttpGrpcAccessLogConfig.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.accesslog.v2.HttpGrpcAccessLogConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (commonConfigBuilder_ == null) {
commonConfig_ = null;
} else {
commonConfig_ = null;
commonConfigBuilder_ = null;
}
additionalRequestHeadersToLog_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
additionalResponseHeadersToLog_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
additionalResponseTrailersToLog_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.config.accesslog.v2.AlsProto.internal_static_envoy_config_accesslog_v2_HttpGrpcAccessLogConfig_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.accesslog.v2.HttpGrpcAccessLogConfig getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.accesslog.v2.HttpGrpcAccessLogConfig.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.accesslog.v2.HttpGrpcAccessLogConfig build() {
io.envoyproxy.envoy.config.accesslog.v2.HttpGrpcAccessLogConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.accesslog.v2.HttpGrpcAccessLogConfig buildPartial() {
io.envoyproxy.envoy.config.accesslog.v2.HttpGrpcAccessLogConfig result = new io.envoyproxy.envoy.config.accesslog.v2.HttpGrpcAccessLogConfig(this);
int from_bitField0_ = bitField0_;
if (commonConfigBuilder_ == null) {
result.commonConfig_ = commonConfig_;
} else {
result.commonConfig_ = commonConfigBuilder_.build();
}
if (((bitField0_ & 0x00000001) != 0)) {
additionalRequestHeadersToLog_ = additionalRequestHeadersToLog_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.additionalRequestHeadersToLog_ = additionalRequestHeadersToLog_;
if (((bitField0_ & 0x00000002) != 0)) {
additionalResponseHeadersToLog_ = additionalResponseHeadersToLog_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.additionalResponseHeadersToLog_ = additionalResponseHeadersToLog_;
if (((bitField0_ & 0x00000004) != 0)) {
additionalResponseTrailersToLog_ = additionalResponseTrailersToLog_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.additionalResponseTrailersToLog_ = additionalResponseTrailersToLog_;
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.config.accesslog.v2.HttpGrpcAccessLogConfig) {
return mergeFrom((io.envoyproxy.envoy.config.accesslog.v2.HttpGrpcAccessLogConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.accesslog.v2.HttpGrpcAccessLogConfig other) {
if (other == io.envoyproxy.envoy.config.accesslog.v2.HttpGrpcAccessLogConfig.getDefaultInstance()) return this;
if (other.hasCommonConfig()) {
mergeCommonConfig(other.getCommonConfig());
}
if (!other.additionalRequestHeadersToLog_.isEmpty()) {
if (additionalRequestHeadersToLog_.isEmpty()) {
additionalRequestHeadersToLog_ = other.additionalRequestHeadersToLog_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAdditionalRequestHeadersToLogIsMutable();
additionalRequestHeadersToLog_.addAll(other.additionalRequestHeadersToLog_);
}
onChanged();
}
if (!other.additionalResponseHeadersToLog_.isEmpty()) {
if (additionalResponseHeadersToLog_.isEmpty()) {
additionalResponseHeadersToLog_ = other.additionalResponseHeadersToLog_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureAdditionalResponseHeadersToLogIsMutable();
additionalResponseHeadersToLog_.addAll(other.additionalResponseHeadersToLog_);
}
onChanged();
}
if (!other.additionalResponseTrailersToLog_.isEmpty()) {
if (additionalResponseTrailersToLog_.isEmpty()) {
additionalResponseTrailersToLog_ = other.additionalResponseTrailersToLog_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureAdditionalResponseTrailersToLogIsMutable();
additionalResponseTrailersToLog_.addAll(other.additionalResponseTrailersToLog_);
}
onChanged();
}
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.config.accesslog.v2.HttpGrpcAccessLogConfig parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.config.accesslog.v2.HttpGrpcAccessLogConfig) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig commonConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig, io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig.Builder, io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfigOrBuilder> commonConfigBuilder_;
/**
* .envoy.config.accesslog.v2.CommonGrpcAccessLogConfig common_config = 1 [(.validate.rules) = { ... }
* @return Whether the commonConfig field is set.
*/
public boolean hasCommonConfig() {
return commonConfigBuilder_ != null || commonConfig_ != null;
}
/**
* .envoy.config.accesslog.v2.CommonGrpcAccessLogConfig common_config = 1 [(.validate.rules) = { ... }
* @return The commonConfig.
*/
public io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig getCommonConfig() {
if (commonConfigBuilder_ == null) {
return commonConfig_ == null ? io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig.getDefaultInstance() : commonConfig_;
} else {
return commonConfigBuilder_.getMessage();
}
}
/**
* .envoy.config.accesslog.v2.CommonGrpcAccessLogConfig common_config = 1 [(.validate.rules) = { ... }
*/
public Builder setCommonConfig(io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig value) {
if (commonConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
commonConfig_ = value;
onChanged();
} else {
commonConfigBuilder_.setMessage(value);
}
return this;
}
/**
* .envoy.config.accesslog.v2.CommonGrpcAccessLogConfig common_config = 1 [(.validate.rules) = { ... }
*/
public Builder setCommonConfig(
io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig.Builder builderForValue) {
if (commonConfigBuilder_ == null) {
commonConfig_ = builderForValue.build();
onChanged();
} else {
commonConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .envoy.config.accesslog.v2.CommonGrpcAccessLogConfig common_config = 1 [(.validate.rules) = { ... }
*/
public Builder mergeCommonConfig(io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig value) {
if (commonConfigBuilder_ == null) {
if (commonConfig_ != null) {
commonConfig_ =
io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig.newBuilder(commonConfig_).mergeFrom(value).buildPartial();
} else {
commonConfig_ = value;
}
onChanged();
} else {
commonConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
* .envoy.config.accesslog.v2.CommonGrpcAccessLogConfig common_config = 1 [(.validate.rules) = { ... }
*/
public Builder clearCommonConfig() {
if (commonConfigBuilder_ == null) {
commonConfig_ = null;
onChanged();
} else {
commonConfig_ = null;
commonConfigBuilder_ = null;
}
return this;
}
/**
* .envoy.config.accesslog.v2.CommonGrpcAccessLogConfig common_config = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig.Builder getCommonConfigBuilder() {
onChanged();
return getCommonConfigFieldBuilder().getBuilder();
}
/**
* .envoy.config.accesslog.v2.CommonGrpcAccessLogConfig common_config = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfigOrBuilder getCommonConfigOrBuilder() {
if (commonConfigBuilder_ != null) {
return commonConfigBuilder_.getMessageOrBuilder();
} else {
return commonConfig_ == null ?
io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig.getDefaultInstance() : commonConfig_;
}
}
/**
* .envoy.config.accesslog.v2.CommonGrpcAccessLogConfig common_config = 1 [(.validate.rules) = { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig, io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig.Builder, io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfigOrBuilder>
getCommonConfigFieldBuilder() {
if (commonConfigBuilder_ == null) {
commonConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig, io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfig.Builder, io.envoyproxy.envoy.config.accesslog.v2.CommonGrpcAccessLogConfigOrBuilder>(
getCommonConfig(),
getParentForChildren(),
isClean());
commonConfig_ = null;
}
return commonConfigBuilder_;
}
private com.google.protobuf.LazyStringList additionalRequestHeadersToLog_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAdditionalRequestHeadersToLogIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
additionalRequestHeadersToLog_ = new com.google.protobuf.LazyStringArrayList(additionalRequestHeadersToLog_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Additional request headers to log in :ref:`HTTPRequestProperties.request_headers
* <envoy_api_field_data.accesslog.v2.HTTPRequestProperties.request_headers>`.
*
*
* repeated string additional_request_headers_to_log = 2;
* @return A list containing the additionalRequestHeadersToLog.
*/
public com.google.protobuf.ProtocolStringList
getAdditionalRequestHeadersToLogList() {
return additionalRequestHeadersToLog_.getUnmodifiableView();
}
/**
*
* Additional request headers to log in :ref:`HTTPRequestProperties.request_headers
* <envoy_api_field_data.accesslog.v2.HTTPRequestProperties.request_headers>`.
*
*
* repeated string additional_request_headers_to_log = 2;
* @return The count of additionalRequestHeadersToLog.
*/
public int getAdditionalRequestHeadersToLogCount() {
return additionalRequestHeadersToLog_.size();
}
/**
*
* Additional request headers to log in :ref:`HTTPRequestProperties.request_headers
* <envoy_api_field_data.accesslog.v2.HTTPRequestProperties.request_headers>`.
*
*
* repeated string additional_request_headers_to_log = 2;
* @param index The index of the element to return.
* @return The additionalRequestHeadersToLog at the given index.
*/
public java.lang.String getAdditionalRequestHeadersToLog(int index) {
return additionalRequestHeadersToLog_.get(index);
}
/**
*
* Additional request headers to log in :ref:`HTTPRequestProperties.request_headers
* <envoy_api_field_data.accesslog.v2.HTTPRequestProperties.request_headers>`.
*
*
* repeated string additional_request_headers_to_log = 2;
* @param index The index of the value to return.
* @return The bytes of the additionalRequestHeadersToLog at the given index.
*/
public com.google.protobuf.ByteString
getAdditionalRequestHeadersToLogBytes(int index) {
return additionalRequestHeadersToLog_.getByteString(index);
}
/**
*
* Additional request headers to log in :ref:`HTTPRequestProperties.request_headers
* <envoy_api_field_data.accesslog.v2.HTTPRequestProperties.request_headers>`.
*
*
* repeated string additional_request_headers_to_log = 2;
* @param index The index to set the value at.
* @param value The additionalRequestHeadersToLog to set.
* @return This builder for chaining.
*/
public Builder setAdditionalRequestHeadersToLog(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionalRequestHeadersToLogIsMutable();
additionalRequestHeadersToLog_.set(index, value);
onChanged();
return this;
}
/**
*
* Additional request headers to log in :ref:`HTTPRequestProperties.request_headers
* <envoy_api_field_data.accesslog.v2.HTTPRequestProperties.request_headers>`.
*
*
* repeated string additional_request_headers_to_log = 2;
* @param value The additionalRequestHeadersToLog to add.
* @return This builder for chaining.
*/
public Builder addAdditionalRequestHeadersToLog(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionalRequestHeadersToLogIsMutable();
additionalRequestHeadersToLog_.add(value);
onChanged();
return this;
}
/**
*
* Additional request headers to log in :ref:`HTTPRequestProperties.request_headers
* <envoy_api_field_data.accesslog.v2.HTTPRequestProperties.request_headers>`.
*
*
* repeated string additional_request_headers_to_log = 2;
* @param values The additionalRequestHeadersToLog to add.
* @return This builder for chaining.
*/
public Builder addAllAdditionalRequestHeadersToLog(
java.lang.Iterable values) {
ensureAdditionalRequestHeadersToLogIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, additionalRequestHeadersToLog_);
onChanged();
return this;
}
/**
*
* Additional request headers to log in :ref:`HTTPRequestProperties.request_headers
* <envoy_api_field_data.accesslog.v2.HTTPRequestProperties.request_headers>`.
*
*
* repeated string additional_request_headers_to_log = 2;
* @return This builder for chaining.
*/
public Builder clearAdditionalRequestHeadersToLog() {
additionalRequestHeadersToLog_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Additional request headers to log in :ref:`HTTPRequestProperties.request_headers
* <envoy_api_field_data.accesslog.v2.HTTPRequestProperties.request_headers>`.
*
*
* repeated string additional_request_headers_to_log = 2;
* @param value The bytes of the additionalRequestHeadersToLog to add.
* @return This builder for chaining.
*/
public Builder addAdditionalRequestHeadersToLogBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureAdditionalRequestHeadersToLogIsMutable();
additionalRequestHeadersToLog_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList additionalResponseHeadersToLog_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAdditionalResponseHeadersToLogIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
additionalResponseHeadersToLog_ = new com.google.protobuf.LazyStringArrayList(additionalResponseHeadersToLog_);
bitField0_ |= 0x00000002;
}
}
/**
*
* Additional response headers to log in :ref:`HTTPResponseProperties.response_headers
* <envoy_api_field_data.accesslog.v2.HTTPResponseProperties.response_headers>`.
*
*
* repeated string additional_response_headers_to_log = 3;
* @return A list containing the additionalResponseHeadersToLog.
*/
public com.google.protobuf.ProtocolStringList
getAdditionalResponseHeadersToLogList() {
return additionalResponseHeadersToLog_.getUnmodifiableView();
}
/**
*
* Additional response headers to log in :ref:`HTTPResponseProperties.response_headers
* <envoy_api_field_data.accesslog.v2.HTTPResponseProperties.response_headers>`.
*
*
* repeated string additional_response_headers_to_log = 3;
* @return The count of additionalResponseHeadersToLog.
*/
public int getAdditionalResponseHeadersToLogCount() {
return additionalResponseHeadersToLog_.size();
}
/**
*
* Additional response headers to log in :ref:`HTTPResponseProperties.response_headers
* <envoy_api_field_data.accesslog.v2.HTTPResponseProperties.response_headers>`.
*
*
* repeated string additional_response_headers_to_log = 3;
* @param index The index of the element to return.
* @return The additionalResponseHeadersToLog at the given index.
*/
public java.lang.String getAdditionalResponseHeadersToLog(int index) {
return additionalResponseHeadersToLog_.get(index);
}
/**
*
* Additional response headers to log in :ref:`HTTPResponseProperties.response_headers
* <envoy_api_field_data.accesslog.v2.HTTPResponseProperties.response_headers>`.
*
*
* repeated string additional_response_headers_to_log = 3;
* @param index The index of the value to return.
* @return The bytes of the additionalResponseHeadersToLog at the given index.
*/
public com.google.protobuf.ByteString
getAdditionalResponseHeadersToLogBytes(int index) {
return additionalResponseHeadersToLog_.getByteString(index);
}
/**
*
* Additional response headers to log in :ref:`HTTPResponseProperties.response_headers
* <envoy_api_field_data.accesslog.v2.HTTPResponseProperties.response_headers>`.
*
*
* repeated string additional_response_headers_to_log = 3;
* @param index The index to set the value at.
* @param value The additionalResponseHeadersToLog to set.
* @return This builder for chaining.
*/
public Builder setAdditionalResponseHeadersToLog(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionalResponseHeadersToLogIsMutable();
additionalResponseHeadersToLog_.set(index, value);
onChanged();
return this;
}
/**
*
* Additional response headers to log in :ref:`HTTPResponseProperties.response_headers
* <envoy_api_field_data.accesslog.v2.HTTPResponseProperties.response_headers>`.
*
*
* repeated string additional_response_headers_to_log = 3;
* @param value The additionalResponseHeadersToLog to add.
* @return This builder for chaining.
*/
public Builder addAdditionalResponseHeadersToLog(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionalResponseHeadersToLogIsMutable();
additionalResponseHeadersToLog_.add(value);
onChanged();
return this;
}
/**
*
* Additional response headers to log in :ref:`HTTPResponseProperties.response_headers
* <envoy_api_field_data.accesslog.v2.HTTPResponseProperties.response_headers>`.
*
*
* repeated string additional_response_headers_to_log = 3;
* @param values The additionalResponseHeadersToLog to add.
* @return This builder for chaining.
*/
public Builder addAllAdditionalResponseHeadersToLog(
java.lang.Iterable values) {
ensureAdditionalResponseHeadersToLogIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, additionalResponseHeadersToLog_);
onChanged();
return this;
}
/**
*
* Additional response headers to log in :ref:`HTTPResponseProperties.response_headers
* <envoy_api_field_data.accesslog.v2.HTTPResponseProperties.response_headers>`.
*
*
* repeated string additional_response_headers_to_log = 3;
* @return This builder for chaining.
*/
public Builder clearAdditionalResponseHeadersToLog() {
additionalResponseHeadersToLog_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Additional response headers to log in :ref:`HTTPResponseProperties.response_headers
* <envoy_api_field_data.accesslog.v2.HTTPResponseProperties.response_headers>`.
*
*
* repeated string additional_response_headers_to_log = 3;
* @param value The bytes of the additionalResponseHeadersToLog to add.
* @return This builder for chaining.
*/
public Builder addAdditionalResponseHeadersToLogBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureAdditionalResponseHeadersToLogIsMutable();
additionalResponseHeadersToLog_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList additionalResponseTrailersToLog_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAdditionalResponseTrailersToLogIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
additionalResponseTrailersToLog_ = new com.google.protobuf.LazyStringArrayList(additionalResponseTrailersToLog_);
bitField0_ |= 0x00000004;
}
}
/**
*
* Additional response trailers to log in :ref:`HTTPResponseProperties.response_trailers
* <envoy_api_field_data.accesslog.v2.HTTPResponseProperties.response_trailers>`.
*
*
* repeated string additional_response_trailers_to_log = 4;
* @return A list containing the additionalResponseTrailersToLog.
*/
public com.google.protobuf.ProtocolStringList
getAdditionalResponseTrailersToLogList() {
return additionalResponseTrailersToLog_.getUnmodifiableView();
}
/**
*
* Additional response trailers to log in :ref:`HTTPResponseProperties.response_trailers
* <envoy_api_field_data.accesslog.v2.HTTPResponseProperties.response_trailers>`.
*
*
* repeated string additional_response_trailers_to_log = 4;
* @return The count of additionalResponseTrailersToLog.
*/
public int getAdditionalResponseTrailersToLogCount() {
return additionalResponseTrailersToLog_.size();
}
/**
*
* Additional response trailers to log in :ref:`HTTPResponseProperties.response_trailers
* <envoy_api_field_data.accesslog.v2.HTTPResponseProperties.response_trailers>`.
*
*
* repeated string additional_response_trailers_to_log = 4;
* @param index The index of the element to return.
* @return The additionalResponseTrailersToLog at the given index.
*/
public java.lang.String getAdditionalResponseTrailersToLog(int index) {
return additionalResponseTrailersToLog_.get(index);
}
/**
*
* Additional response trailers to log in :ref:`HTTPResponseProperties.response_trailers
* <envoy_api_field_data.accesslog.v2.HTTPResponseProperties.response_trailers>`.
*
*
* repeated string additional_response_trailers_to_log = 4;
* @param index The index of the value to return.
* @return The bytes of the additionalResponseTrailersToLog at the given index.
*/
public com.google.protobuf.ByteString
getAdditionalResponseTrailersToLogBytes(int index) {
return additionalResponseTrailersToLog_.getByteString(index);
}
/**
*
* Additional response trailers to log in :ref:`HTTPResponseProperties.response_trailers
* <envoy_api_field_data.accesslog.v2.HTTPResponseProperties.response_trailers>`.
*
*
* repeated string additional_response_trailers_to_log = 4;
* @param index The index to set the value at.
* @param value The additionalResponseTrailersToLog to set.
* @return This builder for chaining.
*/
public Builder setAdditionalResponseTrailersToLog(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionalResponseTrailersToLogIsMutable();
additionalResponseTrailersToLog_.set(index, value);
onChanged();
return this;
}
/**
*
* Additional response trailers to log in :ref:`HTTPResponseProperties.response_trailers
* <envoy_api_field_data.accesslog.v2.HTTPResponseProperties.response_trailers>`.
*
*
* repeated string additional_response_trailers_to_log = 4;
* @param value The additionalResponseTrailersToLog to add.
* @return This builder for chaining.
*/
public Builder addAdditionalResponseTrailersToLog(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionalResponseTrailersToLogIsMutable();
additionalResponseTrailersToLog_.add(value);
onChanged();
return this;
}
/**
*
* Additional response trailers to log in :ref:`HTTPResponseProperties.response_trailers
* <envoy_api_field_data.accesslog.v2.HTTPResponseProperties.response_trailers>`.
*
*
* repeated string additional_response_trailers_to_log = 4;
* @param values The additionalResponseTrailersToLog to add.
* @return This builder for chaining.
*/
public Builder addAllAdditionalResponseTrailersToLog(
java.lang.Iterable values) {
ensureAdditionalResponseTrailersToLogIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, additionalResponseTrailersToLog_);
onChanged();
return this;
}
/**
*
* Additional response trailers to log in :ref:`HTTPResponseProperties.response_trailers
* <envoy_api_field_data.accesslog.v2.HTTPResponseProperties.response_trailers>`.
*
*
* repeated string additional_response_trailers_to_log = 4;
* @return This builder for chaining.
*/
public Builder clearAdditionalResponseTrailersToLog() {
additionalResponseTrailersToLog_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Additional response trailers to log in :ref:`HTTPResponseProperties.response_trailers
* <envoy_api_field_data.accesslog.v2.HTTPResponseProperties.response_trailers>`.
*
*
* repeated string additional_response_trailers_to_log = 4;
* @param value The bytes of the additionalResponseTrailersToLog to add.
* @return This builder for chaining.
*/
public Builder addAdditionalResponseTrailersToLogBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureAdditionalResponseTrailersToLogIsMutable();
additionalResponseTrailersToLog_.add(value);
onChanged();
return this;
}
@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.config.accesslog.v2.HttpGrpcAccessLogConfig)
}
// @@protoc_insertion_point(class_scope:envoy.config.accesslog.v2.HttpGrpcAccessLogConfig)
private static final io.envoyproxy.envoy.config.accesslog.v2.HttpGrpcAccessLogConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.accesslog.v2.HttpGrpcAccessLogConfig();
}
public static io.envoyproxy.envoy.config.accesslog.v2.HttpGrpcAccessLogConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public HttpGrpcAccessLogConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HttpGrpcAccessLogConfig(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.config.accesslog.v2.HttpGrpcAccessLogConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}