Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// 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.http_grpc_access_log*
* :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>`.
*
*
* 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 (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) = { ... }
*/
public boolean hasCommonConfig() {
return commonConfig_ != null;
}
/**
* .envoy.config.accesslog.v2.CommonGrpcAccessLogConfig common_config = 1 [(.validate.rules) = { ... }
*/
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) = { ... }
*/
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>`.
*
* 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;
*/
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.http_grpc_access_log*
* :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>`.
*