// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/config/accesslog/v3alpha/als.proto
package io.envoyproxy.envoy.config.accesslog.v3alpha;
/**
*
* Configuration for the built-in *envoy.http_grpc_access_log*
* :ref:`AccessLog <envoy_api_msg_config.filter.accesslog.v3alpha.AccessLog>`. This configuration
* will populate :ref:`StreamAccessLogsMessage.http_logs
* <envoy_api_field_service.accesslog.v3alpha.StreamAccessLogsMessage.http_logs>`.
*
*
* Protobuf type {@code envoy.config.accesslog.v3alpha.HttpGrpcAccessLogConfig}
*/
public final class HttpGrpcAccessLogConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.accesslog.v3alpha.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.v3alpha.CommonGrpcAccessLogConfig.Builder subBuilder = null;
if (commonConfig_ != null) {
subBuilder = commonConfig_.toBuilder();
}
commonConfig_ = input.readMessage(io.envoyproxy.envoy.config.accesslog.v3alpha.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 (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.v3alpha.AlsProto.internal_static_envoy_config_accesslog_v3alpha_HttpGrpcAccessLogConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.accesslog.v3alpha.AlsProto.internal_static_envoy_config_accesslog_v3alpha_HttpGrpcAccessLogConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.accesslog.v3alpha.HttpGrpcAccessLogConfig.class, io.envoyproxy.envoy.config.accesslog.v3alpha.HttpGrpcAccessLogConfig.Builder.class);
}
public static final int COMMON_CONFIG_FIELD_NUMBER = 1;
private io.envoyproxy.envoy.config.accesslog.v3alpha.CommonGrpcAccessLogConfig commonConfig_;
/**
* .envoy.config.accesslog.v3alpha.CommonGrpcAccessLogConfig common_config = 1 [(.validate.rules) = { ... }
*/
public boolean hasCommonConfig() {
return commonConfig_ != null;
}
/**
* .envoy.config.accesslog.v3alpha.CommonGrpcAccessLogConfig common_config = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.config.accesslog.v3alpha.CommonGrpcAccessLogConfig getCommonConfig() {
return commonConfig_ == null ? io.envoyproxy.envoy.config.accesslog.v3alpha.CommonGrpcAccessLogConfig.getDefaultInstance() : commonConfig_;
}
/**
* .envoy.config.accesslog.v3alpha.CommonGrpcAccessLogConfig common_config = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.config.accesslog.v3alpha.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.v3alpha.HTTPRequestProperties.request_headers>`.
*
*
* repeated string additional_request_headers_to_log = 2;
*/
public com.google.protobuf.ProtocolStringList
getAdditionalRequestHeadersToLogList() {
return additionalRequestHeadersToLog_;
}
/**
*
* Additional request headers to log in :ref:`HTTPRequestProperties.request_headers
* <envoy_api_field_data.accesslog.v3alpha.HTTPRequestProperties.request_headers>`.
*
*
* repeated string additional_request_headers_to_log = 2;
*/
public int getAdditionalRequestHeadersToLogCount() {
return additionalRequestHeadersToLog_.size();
}
/**
*
* Additional request headers to log in :ref:`HTTPRequestProperties.request_headers
* <envoy_api_field_data.accesslog.v3alpha.HTTPRequestProperties.request_headers>`.
*
*
* repeated string additional_request_headers_to_log = 2;
*/
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.v3alpha.HTTPRequestProperties.request_headers>`.
*
*
* repeated string additional_request_headers_to_log = 2;
*/
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.v3alpha.HTTPResponseProperties.response_headers>`.
*
*
* repeated string additional_response_headers_to_log = 3;
*/
public com.google.protobuf.ProtocolStringList
getAdditionalResponseHeadersToLogList() {
return additionalResponseHeadersToLog_;
}
/**
*
* Additional response headers to log in :ref:`HTTPResponseProperties.response_headers
* <envoy_api_field_data.accesslog.v3alpha.HTTPResponseProperties.response_headers>`.
*
*
* repeated string additional_response_headers_to_log = 3;
*/
public int getAdditionalResponseHeadersToLogCount() {
return additionalResponseHeadersToLog_.size();
}
/**
*
* Additional response headers to log in :ref:`HTTPResponseProperties.response_headers
* <envoy_api_field_data.accesslog.v3alpha.HTTPResponseProperties.response_headers>`.
*
*
* repeated string additional_response_headers_to_log = 3;
*/
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.v3alpha.HTTPResponseProperties.response_headers>`.
*
*
* repeated string additional_response_headers_to_log = 3;
*/
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.v3alpha.HTTPResponseProperties.response_trailers>`.
*
*
* repeated string additional_response_trailers_to_log = 4;
*/
public com.google.protobuf.ProtocolStringList
getAdditionalResponseTrailersToLogList() {
return additionalResponseTrailersToLog_;
}
/**
*
* Additional response trailers to log in :ref:`HTTPResponseProperties.response_trailers
* <envoy_api_field_data.accesslog.v3alpha.HTTPResponseProperties.response_trailers>`.
*
*
* repeated string additional_response_trailers_to_log = 4;
*/
public int getAdditionalResponseTrailersToLogCount() {
return additionalResponseTrailersToLog_.size();
}
/**
*
* Additional response trailers to log in :ref:`HTTPResponseProperties.response_trailers
* <envoy_api_field_data.accesslog.v3alpha.HTTPResponseProperties.response_trailers>`.
*
*
* repeated string additional_response_trailers_to_log = 4;
*/
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.v3alpha.HTTPResponseProperties.response_trailers>`.
*
*
* repeated string additional_response_trailers_to_log = 4;
*/
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.v3alpha.HttpGrpcAccessLogConfig)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.accesslog.v3alpha.HttpGrpcAccessLogConfig other = (io.envoyproxy.envoy.config.accesslog.v3alpha.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.v3alpha.HttpGrpcAccessLogConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.accesslog.v3alpha.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.v3alpha.HttpGrpcAccessLogConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.accesslog.v3alpha.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.v3alpha.HttpGrpcAccessLogConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.accesslog.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.v3alpha.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.http_grpc_access_log*
* :ref:`AccessLog <envoy_api_msg_config.filter.accesslog.v3alpha.AccessLog>`. This configuration
* will populate :ref:`StreamAccessLogsMessage.http_logs
* <envoy_api_field_service.accesslog.v3alpha.StreamAccessLogsMessage.http_logs>`.
*
*
* Protobuf type {@code envoy.config.accesslog.v3alpha.HttpGrpcAccessLogConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.accesslog.v3alpha.HttpGrpcAccessLogConfig)
io.envoyproxy.envoy.config.accesslog.v3alpha.HttpGrpcAccessLogConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.accesslog.v3alpha.AlsProto.internal_static_envoy_config_accesslog_v3alpha_HttpGrpcAccessLogConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.accesslog.v3alpha.AlsProto.internal_static_envoy_config_accesslog_v3alpha_HttpGrpcAccessLogConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.accesslog.v3alpha.HttpGrpcAccessLogConfig.class, io.envoyproxy.envoy.config.accesslog.v3alpha.HttpGrpcAccessLogConfig.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.accesslog.v3alpha.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.v3alpha.AlsProto.internal_static_envoy_config_accesslog_v3alpha_HttpGrpcAccessLogConfig_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.accesslog.v3alpha.HttpGrpcAccessLogConfig getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.accesslog.v3alpha.HttpGrpcAccessLogConfig.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.accesslog.v3alpha.HttpGrpcAccessLogConfig build() {
io.envoyproxy.envoy.config.accesslog.v3alpha.HttpGrpcAccessLogConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.accesslog.v3alpha.HttpGrpcAccessLogConfig buildPartial() {
io.envoyproxy.envoy.config.accesslog.v3alpha.HttpGrpcAccessLogConfig result = new io.envoyproxy.envoy.config.accesslog.v3alpha.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.v3alpha.HttpGrpcAccessLogConfig) {
return mergeFrom((io.envoyproxy.envoy.config.accesslog.v3alpha.HttpGrpcAccessLogConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.accesslog.v3alpha.HttpGrpcAccessLogConfig other) {
if (other == io.envoyproxy.envoy.config.accesslog.v3alpha.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.v3alpha.HttpGrpcAccessLogConfig parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.config.accesslog.v3alpha.HttpGrpcAccessLogConfig) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.envoyproxy.envoy.config.accesslog.v3alpha.CommonGrpcAccessLogConfig commonConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.accesslog.v3alpha.CommonGrpcAccessLogConfig, io.envoyproxy.envoy.config.accesslog.v3alpha.CommonGrpcAccessLogConfig.Builder, io.envoyproxy.envoy.config.accesslog.v3alpha.CommonGrpcAccessLogConfigOrBuilder> commonConfigBuilder_;
/**
* .envoy.config.accesslog.v3alpha.CommonGrpcAccessLogConfig common_config = 1 [(.validate.rules) = { ... }
*/
public boolean hasCommonConfig() {
return commonConfigBuilder_ != null || commonConfig_ != null;
}
/**
* .envoy.config.accesslog.v3alpha.CommonGrpcAccessLogConfig common_config = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.config.accesslog.v3alpha.CommonGrpcAccessLogConfig getCommonConfig() {
if (commonConfigBuilder_ == null) {
return commonConfig_ == null ? io.envoyproxy.envoy.config.accesslog.v3alpha.CommonGrpcAccessLogConfig.getDefaultInstance() : commonConfig_;
} else {
return commonConfigBuilder_.getMessage();
}
}
/**
* .envoy.config.accesslog.v3alpha.CommonGrpcAccessLogConfig common_config = 1 [(.validate.rules) = { ... }
*/
public Builder setCommonConfig(io.envoyproxy.envoy.config.accesslog.v3alpha.CommonGrpcAccessLogConfig value) {
if (commonConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
commonConfig_ = value;
onChanged();
} else {
commonConfigBuilder_.setMessage(value);
}
return this;
}
/**
* .envoy.config.accesslog.v3alpha.CommonGrpcAccessLogConfig common_config = 1 [(.validate.rules) = { ... }
*/
public Builder setCommonConfig(
io.envoyproxy.envoy.config.accesslog.v3alpha.CommonGrpcAccessLogConfig.Builder builderForValue) {
if (commonConfigBuilder_ == null) {
commonConfig_ = builderForValue.build();
onChanged();
} else {
commonConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .envoy.config.accesslog.v3alpha.CommonGrpcAccessLogConfig common_config = 1 [(.validate.rules) = { ... }
*/
public Builder mergeCommonConfig(io.envoyproxy.envoy.config.accesslog.v3alpha.CommonGrpcAccessLogConfig value) {
if (commonConfigBuilder_ == null) {
if (commonConfig_ != null) {
commonConfig_ =
io.envoyproxy.envoy.config.accesslog.v3alpha.CommonGrpcAccessLogConfig.newBuilder(commonConfig_).mergeFrom(value).buildPartial();
} else {
commonConfig_ = value;
}
onChanged();
} else {
commonConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
* .envoy.config.accesslog.v3alpha.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.v3alpha.CommonGrpcAccessLogConfig common_config = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.config.accesslog.v3alpha.CommonGrpcAccessLogConfig.Builder getCommonConfigBuilder() {
onChanged();
return getCommonConfigFieldBuilder().getBuilder();
}
/**
* .envoy.config.accesslog.v3alpha.CommonGrpcAccessLogConfig common_config = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.config.accesslog.v3alpha.CommonGrpcAccessLogConfigOrBuilder getCommonConfigOrBuilder() {
if (commonConfigBuilder_ != null) {
return commonConfigBuilder_.getMessageOrBuilder();
} else {
return commonConfig_ == null ?
io.envoyproxy.envoy.config.accesslog.v3alpha.CommonGrpcAccessLogConfig.getDefaultInstance() : commonConfig_;
}
}
/**
* .envoy.config.accesslog.v3alpha.CommonGrpcAccessLogConfig common_config = 1 [(.validate.rules) = { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.accesslog.v3alpha.CommonGrpcAccessLogConfig, io.envoyproxy.envoy.config.accesslog.v3alpha.CommonGrpcAccessLogConfig.Builder, io.envoyproxy.envoy.config.accesslog.v3alpha.CommonGrpcAccessLogConfigOrBuilder>
getCommonConfigFieldBuilder() {
if (commonConfigBuilder_ == null) {
commonConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.accesslog.v3alpha.CommonGrpcAccessLogConfig, io.envoyproxy.envoy.config.accesslog.v3alpha.CommonGrpcAccessLogConfig.Builder, io.envoyproxy.envoy.config.accesslog.v3alpha.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.v3alpha.HTTPRequestProperties.request_headers>`.
*
*
* repeated string additional_request_headers_to_log = 2;
*/
public com.google.protobuf.ProtocolStringList
getAdditionalRequestHeadersToLogList() {
return additionalRequestHeadersToLog_.getUnmodifiableView();
}
/**
*
* Additional request headers to log in :ref:`HTTPRequestProperties.request_headers
* <envoy_api_field_data.accesslog.v3alpha.HTTPRequestProperties.request_headers>`.
*
*
* repeated string additional_request_headers_to_log = 2;
*/
public int getAdditionalRequestHeadersToLogCount() {
return additionalRequestHeadersToLog_.size();
}
/**
*
* Additional request headers to log in :ref:`HTTPRequestProperties.request_headers
* <envoy_api_field_data.accesslog.v3alpha.HTTPRequestProperties.request_headers>`.
*
*
* repeated string additional_request_headers_to_log = 2;
*/
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.v3alpha.HTTPRequestProperties.request_headers>`.
*
*
* repeated string additional_request_headers_to_log = 2;
*/
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.v3alpha.HTTPRequestProperties.request_headers>`.
*
*
* repeated string additional_request_headers_to_log = 2;
*/
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.v3alpha.HTTPRequestProperties.request_headers>`.
*
*
* repeated string additional_request_headers_to_log = 2;
*/
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.v3alpha.HTTPRequestProperties.request_headers>`.
*
*
* repeated string additional_request_headers_to_log = 2;
*/
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.v3alpha.HTTPRequestProperties.request_headers>`.
*
*
* repeated string additional_request_headers_to_log = 2;
*/
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.v3alpha.HTTPRequestProperties.request_headers>`.
*
*
* repeated string additional_request_headers_to_log = 2;
*/
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.v3alpha.HTTPResponseProperties.response_headers>`.
*
*
* repeated string additional_response_headers_to_log = 3;
*/
public com.google.protobuf.ProtocolStringList
getAdditionalResponseHeadersToLogList() {
return additionalResponseHeadersToLog_.getUnmodifiableView();
}
/**
*
* Additional response headers to log in :ref:`HTTPResponseProperties.response_headers
* <envoy_api_field_data.accesslog.v3alpha.HTTPResponseProperties.response_headers>`.
*
*
* repeated string additional_response_headers_to_log = 3;
*/
public int getAdditionalResponseHeadersToLogCount() {
return additionalResponseHeadersToLog_.size();
}
/**
*
* Additional response headers to log in :ref:`HTTPResponseProperties.response_headers
* <envoy_api_field_data.accesslog.v3alpha.HTTPResponseProperties.response_headers>`.
*
*
* repeated string additional_response_headers_to_log = 3;
*/
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.v3alpha.HTTPResponseProperties.response_headers>`.
*
*
* repeated string additional_response_headers_to_log = 3;
*/
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.v3alpha.HTTPResponseProperties.response_headers>`.
*
*
* repeated string additional_response_headers_to_log = 3;
*/
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.v3alpha.HTTPResponseProperties.response_headers>`.
*
*
* repeated string additional_response_headers_to_log = 3;
*/
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.v3alpha.HTTPResponseProperties.response_headers>`.
*
*
* repeated string additional_response_headers_to_log = 3;
*/
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.v3alpha.HTTPResponseProperties.response_headers>`.
*
*
* repeated string additional_response_headers_to_log = 3;
*/
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.v3alpha.HTTPResponseProperties.response_headers>`.
*
*
* repeated string additional_response_headers_to_log = 3;
*/
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.v3alpha.HTTPResponseProperties.response_trailers>`.
*
*
* repeated string additional_response_trailers_to_log = 4;
*/
public com.google.protobuf.ProtocolStringList
getAdditionalResponseTrailersToLogList() {
return additionalResponseTrailersToLog_.getUnmodifiableView();
}
/**
*
* Additional response trailers to log in :ref:`HTTPResponseProperties.response_trailers
* <envoy_api_field_data.accesslog.v3alpha.HTTPResponseProperties.response_trailers>`.
*
*
* repeated string additional_response_trailers_to_log = 4;
*/
public int getAdditionalResponseTrailersToLogCount() {
return additionalResponseTrailersToLog_.size();
}
/**
*
* Additional response trailers to log in :ref:`HTTPResponseProperties.response_trailers
* <envoy_api_field_data.accesslog.v3alpha.HTTPResponseProperties.response_trailers>`.
*
*
* repeated string additional_response_trailers_to_log = 4;
*/
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.v3alpha.HTTPResponseProperties.response_trailers>`.
*
*
* repeated string additional_response_trailers_to_log = 4;
*/
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.v3alpha.HTTPResponseProperties.response_trailers>`.
*
*
* repeated string additional_response_trailers_to_log = 4;
*/
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.v3alpha.HTTPResponseProperties.response_trailers>`.
*
*
* repeated string additional_response_trailers_to_log = 4;
*/
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.v3alpha.HTTPResponseProperties.response_trailers>`.
*
*
* repeated string additional_response_trailers_to_log = 4;
*/
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.v3alpha.HTTPResponseProperties.response_trailers>`.
*
*
* repeated string additional_response_trailers_to_log = 4;
*/
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.v3alpha.HTTPResponseProperties.response_trailers>`.
*
*
* repeated string additional_response_trailers_to_log = 4;
*/
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.v3alpha.HttpGrpcAccessLogConfig)
}
// @@protoc_insertion_point(class_scope:envoy.config.accesslog.v3alpha.HttpGrpcAccessLogConfig)
private static final io.envoyproxy.envoy.config.accesslog.v3alpha.HttpGrpcAccessLogConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.accesslog.v3alpha.HttpGrpcAccessLogConfig();
}
public static io.envoyproxy.envoy.config.accesslog.v3alpha.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.v3alpha.HttpGrpcAccessLogConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}