io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/data/accesslog/v3alpha/accesslog.proto
package io.envoyproxy.envoy.data.accesslog.v3alpha;
/**
*
* Flags indicating occurrences during request/response processing.
*
*
* Protobuf type {@code envoy.data.accesslog.v3alpha.ResponseFlags}
*/
public final class ResponseFlags extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.data.accesslog.v3alpha.ResponseFlags)
ResponseFlagsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResponseFlags.newBuilder() to construct.
private ResponseFlags(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResponseFlags() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResponseFlags();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResponseFlags(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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 8: {
failedLocalHealthcheck_ = input.readBool();
break;
}
case 16: {
noHealthyUpstream_ = input.readBool();
break;
}
case 24: {
upstreamRequestTimeout_ = input.readBool();
break;
}
case 32: {
localReset_ = input.readBool();
break;
}
case 40: {
upstreamRemoteReset_ = input.readBool();
break;
}
case 48: {
upstreamConnectionFailure_ = input.readBool();
break;
}
case 56: {
upstreamConnectionTermination_ = input.readBool();
break;
}
case 64: {
upstreamOverflow_ = input.readBool();
break;
}
case 72: {
noRouteFound_ = input.readBool();
break;
}
case 80: {
delayInjected_ = input.readBool();
break;
}
case 88: {
faultInjected_ = input.readBool();
break;
}
case 96: {
rateLimited_ = input.readBool();
break;
}
case 106: {
io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.Builder subBuilder = null;
if (unauthorizedDetails_ != null) {
subBuilder = unauthorizedDetails_.toBuilder();
}
unauthorizedDetails_ = input.readMessage(io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(unauthorizedDetails_);
unauthorizedDetails_ = subBuilder.buildPartial();
}
break;
}
case 112: {
rateLimitServiceError_ = input.readBool();
break;
}
case 120: {
downstreamConnectionTermination_ = input.readBool();
break;
}
case 128: {
upstreamRetryLimitExceeded_ = input.readBool();
break;
}
case 136: {
streamIdleTimeout_ = input.readBool();
break;
}
case 144: {
invalidEnvoyRequestHeaders_ = input.readBool();
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.accesslog.v3alpha.AccesslogProto.internal_static_envoy_data_accesslog_v3alpha_ResponseFlags_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.accesslog.v3alpha.AccesslogProto.internal_static_envoy_data_accesslog_v3alpha_ResponseFlags_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.class, io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Builder.class);
}
public interface UnauthorizedOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized)
com.google.protobuf.MessageOrBuilder {
/**
* .envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.Reason reason = 1;
*/
int getReasonValue();
/**
* .envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.Reason reason = 1;
*/
io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.Reason getReason();
}
/**
* Protobuf type {@code envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized}
*/
public static final class Unauthorized extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized)
UnauthorizedOrBuilder {
private static final long serialVersionUID = 0L;
// Use Unauthorized.newBuilder() to construct.
private Unauthorized(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Unauthorized() {
reason_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Unauthorized();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Unauthorized(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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 8: {
int rawValue = input.readEnum();
reason_ = rawValue;
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.accesslog.v3alpha.AccesslogProto.internal_static_envoy_data_accesslog_v3alpha_ResponseFlags_Unauthorized_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.accesslog.v3alpha.AccesslogProto.internal_static_envoy_data_accesslog_v3alpha_ResponseFlags_Unauthorized_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.class, io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.Builder.class);
}
/**
*
* Reasons why the request was unauthorized
*
*
* Protobuf enum {@code envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.Reason}
*/
public enum Reason
implements com.google.protobuf.ProtocolMessageEnum {
/**
* REASON_UNSPECIFIED = 0;
*/
REASON_UNSPECIFIED(0),
/**
*
* The request was denied by the external authorization service.
*
*
* EXTERNAL_SERVICE = 1;
*/
EXTERNAL_SERVICE(1),
UNRECOGNIZED(-1),
;
/**
* REASON_UNSPECIFIED = 0;
*/
public static final int REASON_UNSPECIFIED_VALUE = 0;
/**
*
* The request was denied by the external authorization service.
*
*
* EXTERNAL_SERVICE = 1;
*/
public static final int EXTERNAL_SERVICE_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Reason valueOf(int value) {
return forNumber(value);
}
public static Reason forNumber(int value) {
switch (value) {
case 0: return REASON_UNSPECIFIED;
case 1: return EXTERNAL_SERVICE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Reason> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Reason findValueByNumber(int number) {
return Reason.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.getDescriptor().getEnumTypes().get(0);
}
private static final Reason[] VALUES = values();
public static Reason valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Reason(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.Reason)
}
public static final int REASON_FIELD_NUMBER = 1;
private int reason_;
/**
* .envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.Reason reason = 1;
*/
public int getReasonValue() {
return reason_;
}
/**
* .envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.Reason reason = 1;
*/
public io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.Reason getReason() {
@SuppressWarnings("deprecation")
io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.Reason result = io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.Reason.valueOf(reason_);
return result == null ? io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.Reason.UNRECOGNIZED : result;
}
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 (reason_ != io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.Reason.REASON_UNSPECIFIED.getNumber()) {
output.writeEnum(1, reason_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (reason_ != io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.Reason.REASON_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, reason_);
}
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.data.accesslog.v3alpha.ResponseFlags.Unauthorized)) {
return super.equals(obj);
}
io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized other = (io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized) obj;
if (reason_ != other.reason_) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + REASON_FIELD_NUMBER;
hash = (53 * hash) + reason_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized 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.data.accesslog.v3alpha.ResponseFlags.Unauthorized parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized 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.data.accesslog.v3alpha.ResponseFlags.Unauthorized parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized 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.data.accesslog.v3alpha.ResponseFlags.Unauthorized parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized 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.data.accesslog.v3alpha.ResponseFlags.Unauthorized parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized 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.data.accesslog.v3alpha.ResponseFlags.Unauthorized prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized)
io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.UnauthorizedOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.accesslog.v3alpha.AccesslogProto.internal_static_envoy_data_accesslog_v3alpha_ResponseFlags_Unauthorized_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.accesslog.v3alpha.AccesslogProto.internal_static_envoy_data_accesslog_v3alpha_ResponseFlags_Unauthorized_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.class, io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.Builder.class);
}
// Construct using io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.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();
reason_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.data.accesslog.v3alpha.AccesslogProto.internal_static_envoy_data_accesslog_v3alpha_ResponseFlags_Unauthorized_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized getDefaultInstanceForType() {
return io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized build() {
io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized buildPartial() {
io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized result = new io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized(this);
result.reason_ = reason_;
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.data.accesslog.v3alpha.ResponseFlags.Unauthorized) {
return mergeFrom((io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized other) {
if (other == io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.getDefaultInstance()) return this;
if (other.reason_ != 0) {
setReasonValue(other.getReasonValue());
}
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.data.accesslog.v3alpha.ResponseFlags.Unauthorized parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int reason_ = 0;
/**
* .envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.Reason reason = 1;
*/
public int getReasonValue() {
return reason_;
}
/**
* .envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.Reason reason = 1;
*/
public Builder setReasonValue(int value) {
reason_ = value;
onChanged();
return this;
}
/**
* .envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.Reason reason = 1;
*/
public io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.Reason getReason() {
@SuppressWarnings("deprecation")
io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.Reason result = io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.Reason.valueOf(reason_);
return result == null ? io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.Reason.UNRECOGNIZED : result;
}
/**
* .envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.Reason reason = 1;
*/
public Builder setReason(io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.Reason value) {
if (value == null) {
throw new NullPointerException();
}
reason_ = value.getNumber();
onChanged();
return this;
}
/**
* .envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.Reason reason = 1;
*/
public Builder clearReason() {
reason_ = 0;
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.data.accesslog.v3alpha.ResponseFlags.Unauthorized)
}
// @@protoc_insertion_point(class_scope:envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized)
private static final io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized();
}
public static io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Unauthorized parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Unauthorized(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.data.accesslog.v3alpha.ResponseFlags.Unauthorized getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int FAILED_LOCAL_HEALTHCHECK_FIELD_NUMBER = 1;
private boolean failedLocalHealthcheck_;
/**
*
* Indicates local server healthcheck failed.
*
*
* bool failed_local_healthcheck = 1;
*/
public boolean getFailedLocalHealthcheck() {
return failedLocalHealthcheck_;
}
public static final int NO_HEALTHY_UPSTREAM_FIELD_NUMBER = 2;
private boolean noHealthyUpstream_;
/**
*
* Indicates there was no healthy upstream.
*
*
* bool no_healthy_upstream = 2;
*/
public boolean getNoHealthyUpstream() {
return noHealthyUpstream_;
}
public static final int UPSTREAM_REQUEST_TIMEOUT_FIELD_NUMBER = 3;
private boolean upstreamRequestTimeout_;
/**
*
* Indicates an there was an upstream request timeout.
*
*
* bool upstream_request_timeout = 3;
*/
public boolean getUpstreamRequestTimeout() {
return upstreamRequestTimeout_;
}
public static final int LOCAL_RESET_FIELD_NUMBER = 4;
private boolean localReset_;
/**
*
* Indicates local codec level reset was sent on the stream.
*
*
* bool local_reset = 4;
*/
public boolean getLocalReset() {
return localReset_;
}
public static final int UPSTREAM_REMOTE_RESET_FIELD_NUMBER = 5;
private boolean upstreamRemoteReset_;
/**
*
* Indicates remote codec level reset was received on the stream.
*
*
* bool upstream_remote_reset = 5;
*/
public boolean getUpstreamRemoteReset() {
return upstreamRemoteReset_;
}
public static final int UPSTREAM_CONNECTION_FAILURE_FIELD_NUMBER = 6;
private boolean upstreamConnectionFailure_;
/**
*
* Indicates there was a local reset by a connection pool due to an initial connection failure.
*
*
* bool upstream_connection_failure = 6;
*/
public boolean getUpstreamConnectionFailure() {
return upstreamConnectionFailure_;
}
public static final int UPSTREAM_CONNECTION_TERMINATION_FIELD_NUMBER = 7;
private boolean upstreamConnectionTermination_;
/**
*
* Indicates the stream was reset due to an upstream connection termination.
*
*
* bool upstream_connection_termination = 7;
*/
public boolean getUpstreamConnectionTermination() {
return upstreamConnectionTermination_;
}
public static final int UPSTREAM_OVERFLOW_FIELD_NUMBER = 8;
private boolean upstreamOverflow_;
/**
*
* Indicates the stream was reset because of a resource overflow.
*
*
* bool upstream_overflow = 8;
*/
public boolean getUpstreamOverflow() {
return upstreamOverflow_;
}
public static final int NO_ROUTE_FOUND_FIELD_NUMBER = 9;
private boolean noRouteFound_;
/**
*
* Indicates no route was found for the request.
*
*
* bool no_route_found = 9;
*/
public boolean getNoRouteFound() {
return noRouteFound_;
}
public static final int DELAY_INJECTED_FIELD_NUMBER = 10;
private boolean delayInjected_;
/**
*
* Indicates that the request was delayed before proxying.
*
*
* bool delay_injected = 10;
*/
public boolean getDelayInjected() {
return delayInjected_;
}
public static final int FAULT_INJECTED_FIELD_NUMBER = 11;
private boolean faultInjected_;
/**
*
* Indicates that the request was aborted with an injected error code.
*
*
* bool fault_injected = 11;
*/
public boolean getFaultInjected() {
return faultInjected_;
}
public static final int RATE_LIMITED_FIELD_NUMBER = 12;
private boolean rateLimited_;
/**
*
* Indicates that the request was rate-limited locally.
*
*
* bool rate_limited = 12;
*/
public boolean getRateLimited() {
return rateLimited_;
}
public static final int UNAUTHORIZED_DETAILS_FIELD_NUMBER = 13;
private io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized unauthorizedDetails_;
/**
*
* Indicates if the request was deemed unauthorized and the reason for it.
*
*
* .envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized unauthorized_details = 13;
*/
public boolean hasUnauthorizedDetails() {
return unauthorizedDetails_ != null;
}
/**
*
* Indicates if the request was deemed unauthorized and the reason for it.
*
*
* .envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized unauthorized_details = 13;
*/
public io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized getUnauthorizedDetails() {
return unauthorizedDetails_ == null ? io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.getDefaultInstance() : unauthorizedDetails_;
}
/**
*
* Indicates if the request was deemed unauthorized and the reason for it.
*
*
* .envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized unauthorized_details = 13;
*/
public io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.UnauthorizedOrBuilder getUnauthorizedDetailsOrBuilder() {
return getUnauthorizedDetails();
}
public static final int RATE_LIMIT_SERVICE_ERROR_FIELD_NUMBER = 14;
private boolean rateLimitServiceError_;
/**
*
* Indicates that the request was rejected because there was an error in rate limit service.
*
*
* bool rate_limit_service_error = 14;
*/
public boolean getRateLimitServiceError() {
return rateLimitServiceError_;
}
public static final int DOWNSTREAM_CONNECTION_TERMINATION_FIELD_NUMBER = 15;
private boolean downstreamConnectionTermination_;
/**
*
* Indicates the stream was reset due to a downstream connection termination.
*
*
* bool downstream_connection_termination = 15;
*/
public boolean getDownstreamConnectionTermination() {
return downstreamConnectionTermination_;
}
public static final int UPSTREAM_RETRY_LIMIT_EXCEEDED_FIELD_NUMBER = 16;
private boolean upstreamRetryLimitExceeded_;
/**
*
* Indicates that the upstream retry limit was exceeded, resulting in a downstream error.
*
*
* bool upstream_retry_limit_exceeded = 16;
*/
public boolean getUpstreamRetryLimitExceeded() {
return upstreamRetryLimitExceeded_;
}
public static final int STREAM_IDLE_TIMEOUT_FIELD_NUMBER = 17;
private boolean streamIdleTimeout_;
/**
*
* Indicates that the stream idle timeout was hit, resulting in a downstream 408.
*
*
* bool stream_idle_timeout = 17;
*/
public boolean getStreamIdleTimeout() {
return streamIdleTimeout_;
}
public static final int INVALID_ENVOY_REQUEST_HEADERS_FIELD_NUMBER = 18;
private boolean invalidEnvoyRequestHeaders_;
/**
*
* Indicates that the request was rejected because an envoy request header failed strict
* validation.
*
*
* bool invalid_envoy_request_headers = 18;
*/
public boolean getInvalidEnvoyRequestHeaders() {
return invalidEnvoyRequestHeaders_;
}
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 (failedLocalHealthcheck_ != false) {
output.writeBool(1, failedLocalHealthcheck_);
}
if (noHealthyUpstream_ != false) {
output.writeBool(2, noHealthyUpstream_);
}
if (upstreamRequestTimeout_ != false) {
output.writeBool(3, upstreamRequestTimeout_);
}
if (localReset_ != false) {
output.writeBool(4, localReset_);
}
if (upstreamRemoteReset_ != false) {
output.writeBool(5, upstreamRemoteReset_);
}
if (upstreamConnectionFailure_ != false) {
output.writeBool(6, upstreamConnectionFailure_);
}
if (upstreamConnectionTermination_ != false) {
output.writeBool(7, upstreamConnectionTermination_);
}
if (upstreamOverflow_ != false) {
output.writeBool(8, upstreamOverflow_);
}
if (noRouteFound_ != false) {
output.writeBool(9, noRouteFound_);
}
if (delayInjected_ != false) {
output.writeBool(10, delayInjected_);
}
if (faultInjected_ != false) {
output.writeBool(11, faultInjected_);
}
if (rateLimited_ != false) {
output.writeBool(12, rateLimited_);
}
if (unauthorizedDetails_ != null) {
output.writeMessage(13, getUnauthorizedDetails());
}
if (rateLimitServiceError_ != false) {
output.writeBool(14, rateLimitServiceError_);
}
if (downstreamConnectionTermination_ != false) {
output.writeBool(15, downstreamConnectionTermination_);
}
if (upstreamRetryLimitExceeded_ != false) {
output.writeBool(16, upstreamRetryLimitExceeded_);
}
if (streamIdleTimeout_ != false) {
output.writeBool(17, streamIdleTimeout_);
}
if (invalidEnvoyRequestHeaders_ != false) {
output.writeBool(18, invalidEnvoyRequestHeaders_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (failedLocalHealthcheck_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, failedLocalHealthcheck_);
}
if (noHealthyUpstream_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, noHealthyUpstream_);
}
if (upstreamRequestTimeout_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, upstreamRequestTimeout_);
}
if (localReset_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, localReset_);
}
if (upstreamRemoteReset_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, upstreamRemoteReset_);
}
if (upstreamConnectionFailure_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, upstreamConnectionFailure_);
}
if (upstreamConnectionTermination_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, upstreamConnectionTermination_);
}
if (upstreamOverflow_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, upstreamOverflow_);
}
if (noRouteFound_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, noRouteFound_);
}
if (delayInjected_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(10, delayInjected_);
}
if (faultInjected_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(11, faultInjected_);
}
if (rateLimited_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(12, rateLimited_);
}
if (unauthorizedDetails_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getUnauthorizedDetails());
}
if (rateLimitServiceError_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(14, rateLimitServiceError_);
}
if (downstreamConnectionTermination_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(15, downstreamConnectionTermination_);
}
if (upstreamRetryLimitExceeded_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(16, upstreamRetryLimitExceeded_);
}
if (streamIdleTimeout_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(17, streamIdleTimeout_);
}
if (invalidEnvoyRequestHeaders_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(18, invalidEnvoyRequestHeaders_);
}
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.data.accesslog.v3alpha.ResponseFlags)) {
return super.equals(obj);
}
io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags other = (io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags) obj;
if (getFailedLocalHealthcheck()
!= other.getFailedLocalHealthcheck()) return false;
if (getNoHealthyUpstream()
!= other.getNoHealthyUpstream()) return false;
if (getUpstreamRequestTimeout()
!= other.getUpstreamRequestTimeout()) return false;
if (getLocalReset()
!= other.getLocalReset()) return false;
if (getUpstreamRemoteReset()
!= other.getUpstreamRemoteReset()) return false;
if (getUpstreamConnectionFailure()
!= other.getUpstreamConnectionFailure()) return false;
if (getUpstreamConnectionTermination()
!= other.getUpstreamConnectionTermination()) return false;
if (getUpstreamOverflow()
!= other.getUpstreamOverflow()) return false;
if (getNoRouteFound()
!= other.getNoRouteFound()) return false;
if (getDelayInjected()
!= other.getDelayInjected()) return false;
if (getFaultInjected()
!= other.getFaultInjected()) return false;
if (getRateLimited()
!= other.getRateLimited()) return false;
if (hasUnauthorizedDetails() != other.hasUnauthorizedDetails()) return false;
if (hasUnauthorizedDetails()) {
if (!getUnauthorizedDetails()
.equals(other.getUnauthorizedDetails())) return false;
}
if (getRateLimitServiceError()
!= other.getRateLimitServiceError()) return false;
if (getDownstreamConnectionTermination()
!= other.getDownstreamConnectionTermination()) return false;
if (getUpstreamRetryLimitExceeded()
!= other.getUpstreamRetryLimitExceeded()) return false;
if (getStreamIdleTimeout()
!= other.getStreamIdleTimeout()) return false;
if (getInvalidEnvoyRequestHeaders()
!= other.getInvalidEnvoyRequestHeaders()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + FAILED_LOCAL_HEALTHCHECK_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFailedLocalHealthcheck());
hash = (37 * hash) + NO_HEALTHY_UPSTREAM_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getNoHealthyUpstream());
hash = (37 * hash) + UPSTREAM_REQUEST_TIMEOUT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getUpstreamRequestTimeout());
hash = (37 * hash) + LOCAL_RESET_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getLocalReset());
hash = (37 * hash) + UPSTREAM_REMOTE_RESET_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getUpstreamRemoteReset());
hash = (37 * hash) + UPSTREAM_CONNECTION_FAILURE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getUpstreamConnectionFailure());
hash = (37 * hash) + UPSTREAM_CONNECTION_TERMINATION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getUpstreamConnectionTermination());
hash = (37 * hash) + UPSTREAM_OVERFLOW_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getUpstreamOverflow());
hash = (37 * hash) + NO_ROUTE_FOUND_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getNoRouteFound());
hash = (37 * hash) + DELAY_INJECTED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDelayInjected());
hash = (37 * hash) + FAULT_INJECTED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFaultInjected());
hash = (37 * hash) + RATE_LIMITED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getRateLimited());
if (hasUnauthorizedDetails()) {
hash = (37 * hash) + UNAUTHORIZED_DETAILS_FIELD_NUMBER;
hash = (53 * hash) + getUnauthorizedDetails().hashCode();
}
hash = (37 * hash) + RATE_LIMIT_SERVICE_ERROR_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getRateLimitServiceError());
hash = (37 * hash) + DOWNSTREAM_CONNECTION_TERMINATION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDownstreamConnectionTermination());
hash = (37 * hash) + UPSTREAM_RETRY_LIMIT_EXCEEDED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getUpstreamRetryLimitExceeded());
hash = (37 * hash) + STREAM_IDLE_TIMEOUT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getStreamIdleTimeout());
hash = (37 * hash) + INVALID_ENVOY_REQUEST_HEADERS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getInvalidEnvoyRequestHeaders());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags 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.data.accesslog.v3alpha.ResponseFlags parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags 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.data.accesslog.v3alpha.ResponseFlags parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags 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.data.accesslog.v3alpha.ResponseFlags parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags 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.data.accesslog.v3alpha.ResponseFlags parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags 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.data.accesslog.v3alpha.ResponseFlags 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;
}
/**
*
* Flags indicating occurrences during request/response processing.
*
*
* Protobuf type {@code envoy.data.accesslog.v3alpha.ResponseFlags}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.data.accesslog.v3alpha.ResponseFlags)
io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlagsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.data.accesslog.v3alpha.AccesslogProto.internal_static_envoy_data_accesslog_v3alpha_ResponseFlags_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.data.accesslog.v3alpha.AccesslogProto.internal_static_envoy_data_accesslog_v3alpha_ResponseFlags_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.class, io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Builder.class);
}
// Construct using io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.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();
failedLocalHealthcheck_ = false;
noHealthyUpstream_ = false;
upstreamRequestTimeout_ = false;
localReset_ = false;
upstreamRemoteReset_ = false;
upstreamConnectionFailure_ = false;
upstreamConnectionTermination_ = false;
upstreamOverflow_ = false;
noRouteFound_ = false;
delayInjected_ = false;
faultInjected_ = false;
rateLimited_ = false;
if (unauthorizedDetailsBuilder_ == null) {
unauthorizedDetails_ = null;
} else {
unauthorizedDetails_ = null;
unauthorizedDetailsBuilder_ = null;
}
rateLimitServiceError_ = false;
downstreamConnectionTermination_ = false;
upstreamRetryLimitExceeded_ = false;
streamIdleTimeout_ = false;
invalidEnvoyRequestHeaders_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.data.accesslog.v3alpha.AccesslogProto.internal_static_envoy_data_accesslog_v3alpha_ResponseFlags_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags getDefaultInstanceForType() {
return io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags build() {
io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags buildPartial() {
io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags result = new io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags(this);
result.failedLocalHealthcheck_ = failedLocalHealthcheck_;
result.noHealthyUpstream_ = noHealthyUpstream_;
result.upstreamRequestTimeout_ = upstreamRequestTimeout_;
result.localReset_ = localReset_;
result.upstreamRemoteReset_ = upstreamRemoteReset_;
result.upstreamConnectionFailure_ = upstreamConnectionFailure_;
result.upstreamConnectionTermination_ = upstreamConnectionTermination_;
result.upstreamOverflow_ = upstreamOverflow_;
result.noRouteFound_ = noRouteFound_;
result.delayInjected_ = delayInjected_;
result.faultInjected_ = faultInjected_;
result.rateLimited_ = rateLimited_;
if (unauthorizedDetailsBuilder_ == null) {
result.unauthorizedDetails_ = unauthorizedDetails_;
} else {
result.unauthorizedDetails_ = unauthorizedDetailsBuilder_.build();
}
result.rateLimitServiceError_ = rateLimitServiceError_;
result.downstreamConnectionTermination_ = downstreamConnectionTermination_;
result.upstreamRetryLimitExceeded_ = upstreamRetryLimitExceeded_;
result.streamIdleTimeout_ = streamIdleTimeout_;
result.invalidEnvoyRequestHeaders_ = invalidEnvoyRequestHeaders_;
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.data.accesslog.v3alpha.ResponseFlags) {
return mergeFrom((io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags other) {
if (other == io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.getDefaultInstance()) return this;
if (other.getFailedLocalHealthcheck() != false) {
setFailedLocalHealthcheck(other.getFailedLocalHealthcheck());
}
if (other.getNoHealthyUpstream() != false) {
setNoHealthyUpstream(other.getNoHealthyUpstream());
}
if (other.getUpstreamRequestTimeout() != false) {
setUpstreamRequestTimeout(other.getUpstreamRequestTimeout());
}
if (other.getLocalReset() != false) {
setLocalReset(other.getLocalReset());
}
if (other.getUpstreamRemoteReset() != false) {
setUpstreamRemoteReset(other.getUpstreamRemoteReset());
}
if (other.getUpstreamConnectionFailure() != false) {
setUpstreamConnectionFailure(other.getUpstreamConnectionFailure());
}
if (other.getUpstreamConnectionTermination() != false) {
setUpstreamConnectionTermination(other.getUpstreamConnectionTermination());
}
if (other.getUpstreamOverflow() != false) {
setUpstreamOverflow(other.getUpstreamOverflow());
}
if (other.getNoRouteFound() != false) {
setNoRouteFound(other.getNoRouteFound());
}
if (other.getDelayInjected() != false) {
setDelayInjected(other.getDelayInjected());
}
if (other.getFaultInjected() != false) {
setFaultInjected(other.getFaultInjected());
}
if (other.getRateLimited() != false) {
setRateLimited(other.getRateLimited());
}
if (other.hasUnauthorizedDetails()) {
mergeUnauthorizedDetails(other.getUnauthorizedDetails());
}
if (other.getRateLimitServiceError() != false) {
setRateLimitServiceError(other.getRateLimitServiceError());
}
if (other.getDownstreamConnectionTermination() != false) {
setDownstreamConnectionTermination(other.getDownstreamConnectionTermination());
}
if (other.getUpstreamRetryLimitExceeded() != false) {
setUpstreamRetryLimitExceeded(other.getUpstreamRetryLimitExceeded());
}
if (other.getStreamIdleTimeout() != false) {
setStreamIdleTimeout(other.getStreamIdleTimeout());
}
if (other.getInvalidEnvoyRequestHeaders() != false) {
setInvalidEnvoyRequestHeaders(other.getInvalidEnvoyRequestHeaders());
}
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.data.accesslog.v3alpha.ResponseFlags parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private boolean failedLocalHealthcheck_ ;
/**
*
* Indicates local server healthcheck failed.
*
*
* bool failed_local_healthcheck = 1;
*/
public boolean getFailedLocalHealthcheck() {
return failedLocalHealthcheck_;
}
/**
*
* Indicates local server healthcheck failed.
*
*
* bool failed_local_healthcheck = 1;
*/
public Builder setFailedLocalHealthcheck(boolean value) {
failedLocalHealthcheck_ = value;
onChanged();
return this;
}
/**
*
* Indicates local server healthcheck failed.
*
*
* bool failed_local_healthcheck = 1;
*/
public Builder clearFailedLocalHealthcheck() {
failedLocalHealthcheck_ = false;
onChanged();
return this;
}
private boolean noHealthyUpstream_ ;
/**
*
* Indicates there was no healthy upstream.
*
*
* bool no_healthy_upstream = 2;
*/
public boolean getNoHealthyUpstream() {
return noHealthyUpstream_;
}
/**
*
* Indicates there was no healthy upstream.
*
*
* bool no_healthy_upstream = 2;
*/
public Builder setNoHealthyUpstream(boolean value) {
noHealthyUpstream_ = value;
onChanged();
return this;
}
/**
*
* Indicates there was no healthy upstream.
*
*
* bool no_healthy_upstream = 2;
*/
public Builder clearNoHealthyUpstream() {
noHealthyUpstream_ = false;
onChanged();
return this;
}
private boolean upstreamRequestTimeout_ ;
/**
*
* Indicates an there was an upstream request timeout.
*
*
* bool upstream_request_timeout = 3;
*/
public boolean getUpstreamRequestTimeout() {
return upstreamRequestTimeout_;
}
/**
*
* Indicates an there was an upstream request timeout.
*
*
* bool upstream_request_timeout = 3;
*/
public Builder setUpstreamRequestTimeout(boolean value) {
upstreamRequestTimeout_ = value;
onChanged();
return this;
}
/**
*
* Indicates an there was an upstream request timeout.
*
*
* bool upstream_request_timeout = 3;
*/
public Builder clearUpstreamRequestTimeout() {
upstreamRequestTimeout_ = false;
onChanged();
return this;
}
private boolean localReset_ ;
/**
*
* Indicates local codec level reset was sent on the stream.
*
*
* bool local_reset = 4;
*/
public boolean getLocalReset() {
return localReset_;
}
/**
*
* Indicates local codec level reset was sent on the stream.
*
*
* bool local_reset = 4;
*/
public Builder setLocalReset(boolean value) {
localReset_ = value;
onChanged();
return this;
}
/**
*
* Indicates local codec level reset was sent on the stream.
*
*
* bool local_reset = 4;
*/
public Builder clearLocalReset() {
localReset_ = false;
onChanged();
return this;
}
private boolean upstreamRemoteReset_ ;
/**
*
* Indicates remote codec level reset was received on the stream.
*
*
* bool upstream_remote_reset = 5;
*/
public boolean getUpstreamRemoteReset() {
return upstreamRemoteReset_;
}
/**
*
* Indicates remote codec level reset was received on the stream.
*
*
* bool upstream_remote_reset = 5;
*/
public Builder setUpstreamRemoteReset(boolean value) {
upstreamRemoteReset_ = value;
onChanged();
return this;
}
/**
*
* Indicates remote codec level reset was received on the stream.
*
*
* bool upstream_remote_reset = 5;
*/
public Builder clearUpstreamRemoteReset() {
upstreamRemoteReset_ = false;
onChanged();
return this;
}
private boolean upstreamConnectionFailure_ ;
/**
*
* Indicates there was a local reset by a connection pool due to an initial connection failure.
*
*
* bool upstream_connection_failure = 6;
*/
public boolean getUpstreamConnectionFailure() {
return upstreamConnectionFailure_;
}
/**
*
* Indicates there was a local reset by a connection pool due to an initial connection failure.
*
*
* bool upstream_connection_failure = 6;
*/
public Builder setUpstreamConnectionFailure(boolean value) {
upstreamConnectionFailure_ = value;
onChanged();
return this;
}
/**
*
* Indicates there was a local reset by a connection pool due to an initial connection failure.
*
*
* bool upstream_connection_failure = 6;
*/
public Builder clearUpstreamConnectionFailure() {
upstreamConnectionFailure_ = false;
onChanged();
return this;
}
private boolean upstreamConnectionTermination_ ;
/**
*
* Indicates the stream was reset due to an upstream connection termination.
*
*
* bool upstream_connection_termination = 7;
*/
public boolean getUpstreamConnectionTermination() {
return upstreamConnectionTermination_;
}
/**
*
* Indicates the stream was reset due to an upstream connection termination.
*
*
* bool upstream_connection_termination = 7;
*/
public Builder setUpstreamConnectionTermination(boolean value) {
upstreamConnectionTermination_ = value;
onChanged();
return this;
}
/**
*
* Indicates the stream was reset due to an upstream connection termination.
*
*
* bool upstream_connection_termination = 7;
*/
public Builder clearUpstreamConnectionTermination() {
upstreamConnectionTermination_ = false;
onChanged();
return this;
}
private boolean upstreamOverflow_ ;
/**
*
* Indicates the stream was reset because of a resource overflow.
*
*
* bool upstream_overflow = 8;
*/
public boolean getUpstreamOverflow() {
return upstreamOverflow_;
}
/**
*
* Indicates the stream was reset because of a resource overflow.
*
*
* bool upstream_overflow = 8;
*/
public Builder setUpstreamOverflow(boolean value) {
upstreamOverflow_ = value;
onChanged();
return this;
}
/**
*
* Indicates the stream was reset because of a resource overflow.
*
*
* bool upstream_overflow = 8;
*/
public Builder clearUpstreamOverflow() {
upstreamOverflow_ = false;
onChanged();
return this;
}
private boolean noRouteFound_ ;
/**
*
* Indicates no route was found for the request.
*
*
* bool no_route_found = 9;
*/
public boolean getNoRouteFound() {
return noRouteFound_;
}
/**
*
* Indicates no route was found for the request.
*
*
* bool no_route_found = 9;
*/
public Builder setNoRouteFound(boolean value) {
noRouteFound_ = value;
onChanged();
return this;
}
/**
*
* Indicates no route was found for the request.
*
*
* bool no_route_found = 9;
*/
public Builder clearNoRouteFound() {
noRouteFound_ = false;
onChanged();
return this;
}
private boolean delayInjected_ ;
/**
*
* Indicates that the request was delayed before proxying.
*
*
* bool delay_injected = 10;
*/
public boolean getDelayInjected() {
return delayInjected_;
}
/**
*
* Indicates that the request was delayed before proxying.
*
*
* bool delay_injected = 10;
*/
public Builder setDelayInjected(boolean value) {
delayInjected_ = value;
onChanged();
return this;
}
/**
*
* Indicates that the request was delayed before proxying.
*
*
* bool delay_injected = 10;
*/
public Builder clearDelayInjected() {
delayInjected_ = false;
onChanged();
return this;
}
private boolean faultInjected_ ;
/**
*
* Indicates that the request was aborted with an injected error code.
*
*
* bool fault_injected = 11;
*/
public boolean getFaultInjected() {
return faultInjected_;
}
/**
*
* Indicates that the request was aborted with an injected error code.
*
*
* bool fault_injected = 11;
*/
public Builder setFaultInjected(boolean value) {
faultInjected_ = value;
onChanged();
return this;
}
/**
*
* Indicates that the request was aborted with an injected error code.
*
*
* bool fault_injected = 11;
*/
public Builder clearFaultInjected() {
faultInjected_ = false;
onChanged();
return this;
}
private boolean rateLimited_ ;
/**
*
* Indicates that the request was rate-limited locally.
*
*
* bool rate_limited = 12;
*/
public boolean getRateLimited() {
return rateLimited_;
}
/**
*
* Indicates that the request was rate-limited locally.
*
*
* bool rate_limited = 12;
*/
public Builder setRateLimited(boolean value) {
rateLimited_ = value;
onChanged();
return this;
}
/**
*
* Indicates that the request was rate-limited locally.
*
*
* bool rate_limited = 12;
*/
public Builder clearRateLimited() {
rateLimited_ = false;
onChanged();
return this;
}
private io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized unauthorizedDetails_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized, io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.Builder, io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.UnauthorizedOrBuilder> unauthorizedDetailsBuilder_;
/**
*
* Indicates if the request was deemed unauthorized and the reason for it.
*
*
* .envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized unauthorized_details = 13;
*/
public boolean hasUnauthorizedDetails() {
return unauthorizedDetailsBuilder_ != null || unauthorizedDetails_ != null;
}
/**
*
* Indicates if the request was deemed unauthorized and the reason for it.
*
*
* .envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized unauthorized_details = 13;
*/
public io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized getUnauthorizedDetails() {
if (unauthorizedDetailsBuilder_ == null) {
return unauthorizedDetails_ == null ? io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.getDefaultInstance() : unauthorizedDetails_;
} else {
return unauthorizedDetailsBuilder_.getMessage();
}
}
/**
*
* Indicates if the request was deemed unauthorized and the reason for it.
*
*
* .envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized unauthorized_details = 13;
*/
public Builder setUnauthorizedDetails(io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized value) {
if (unauthorizedDetailsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
unauthorizedDetails_ = value;
onChanged();
} else {
unauthorizedDetailsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Indicates if the request was deemed unauthorized and the reason for it.
*
*
* .envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized unauthorized_details = 13;
*/
public Builder setUnauthorizedDetails(
io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.Builder builderForValue) {
if (unauthorizedDetailsBuilder_ == null) {
unauthorizedDetails_ = builderForValue.build();
onChanged();
} else {
unauthorizedDetailsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Indicates if the request was deemed unauthorized and the reason for it.
*
*
* .envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized unauthorized_details = 13;
*/
public Builder mergeUnauthorizedDetails(io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized value) {
if (unauthorizedDetailsBuilder_ == null) {
if (unauthorizedDetails_ != null) {
unauthorizedDetails_ =
io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.newBuilder(unauthorizedDetails_).mergeFrom(value).buildPartial();
} else {
unauthorizedDetails_ = value;
}
onChanged();
} else {
unauthorizedDetailsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Indicates if the request was deemed unauthorized and the reason for it.
*
*
* .envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized unauthorized_details = 13;
*/
public Builder clearUnauthorizedDetails() {
if (unauthorizedDetailsBuilder_ == null) {
unauthorizedDetails_ = null;
onChanged();
} else {
unauthorizedDetails_ = null;
unauthorizedDetailsBuilder_ = null;
}
return this;
}
/**
*
* Indicates if the request was deemed unauthorized and the reason for it.
*
*
* .envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized unauthorized_details = 13;
*/
public io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.Builder getUnauthorizedDetailsBuilder() {
onChanged();
return getUnauthorizedDetailsFieldBuilder().getBuilder();
}
/**
*
* Indicates if the request was deemed unauthorized and the reason for it.
*
*
* .envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized unauthorized_details = 13;
*/
public io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.UnauthorizedOrBuilder getUnauthorizedDetailsOrBuilder() {
if (unauthorizedDetailsBuilder_ != null) {
return unauthorizedDetailsBuilder_.getMessageOrBuilder();
} else {
return unauthorizedDetails_ == null ?
io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.getDefaultInstance() : unauthorizedDetails_;
}
}
/**
*
* Indicates if the request was deemed unauthorized and the reason for it.
*
*
* .envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized unauthorized_details = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized, io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.Builder, io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.UnauthorizedOrBuilder>
getUnauthorizedDetailsFieldBuilder() {
if (unauthorizedDetailsBuilder_ == null) {
unauthorizedDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized, io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.Unauthorized.Builder, io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags.UnauthorizedOrBuilder>(
getUnauthorizedDetails(),
getParentForChildren(),
isClean());
unauthorizedDetails_ = null;
}
return unauthorizedDetailsBuilder_;
}
private boolean rateLimitServiceError_ ;
/**
*
* Indicates that the request was rejected because there was an error in rate limit service.
*
*
* bool rate_limit_service_error = 14;
*/
public boolean getRateLimitServiceError() {
return rateLimitServiceError_;
}
/**
*
* Indicates that the request was rejected because there was an error in rate limit service.
*
*
* bool rate_limit_service_error = 14;
*/
public Builder setRateLimitServiceError(boolean value) {
rateLimitServiceError_ = value;
onChanged();
return this;
}
/**
*
* Indicates that the request was rejected because there was an error in rate limit service.
*
*
* bool rate_limit_service_error = 14;
*/
public Builder clearRateLimitServiceError() {
rateLimitServiceError_ = false;
onChanged();
return this;
}
private boolean downstreamConnectionTermination_ ;
/**
*
* Indicates the stream was reset due to a downstream connection termination.
*
*
* bool downstream_connection_termination = 15;
*/
public boolean getDownstreamConnectionTermination() {
return downstreamConnectionTermination_;
}
/**
*
* Indicates the stream was reset due to a downstream connection termination.
*
*
* bool downstream_connection_termination = 15;
*/
public Builder setDownstreamConnectionTermination(boolean value) {
downstreamConnectionTermination_ = value;
onChanged();
return this;
}
/**
*
* Indicates the stream was reset due to a downstream connection termination.
*
*
* bool downstream_connection_termination = 15;
*/
public Builder clearDownstreamConnectionTermination() {
downstreamConnectionTermination_ = false;
onChanged();
return this;
}
private boolean upstreamRetryLimitExceeded_ ;
/**
*
* Indicates that the upstream retry limit was exceeded, resulting in a downstream error.
*
*
* bool upstream_retry_limit_exceeded = 16;
*/
public boolean getUpstreamRetryLimitExceeded() {
return upstreamRetryLimitExceeded_;
}
/**
*
* Indicates that the upstream retry limit was exceeded, resulting in a downstream error.
*
*
* bool upstream_retry_limit_exceeded = 16;
*/
public Builder setUpstreamRetryLimitExceeded(boolean value) {
upstreamRetryLimitExceeded_ = value;
onChanged();
return this;
}
/**
*
* Indicates that the upstream retry limit was exceeded, resulting in a downstream error.
*
*
* bool upstream_retry_limit_exceeded = 16;
*/
public Builder clearUpstreamRetryLimitExceeded() {
upstreamRetryLimitExceeded_ = false;
onChanged();
return this;
}
private boolean streamIdleTimeout_ ;
/**
*
* Indicates that the stream idle timeout was hit, resulting in a downstream 408.
*
*
* bool stream_idle_timeout = 17;
*/
public boolean getStreamIdleTimeout() {
return streamIdleTimeout_;
}
/**
*
* Indicates that the stream idle timeout was hit, resulting in a downstream 408.
*
*
* bool stream_idle_timeout = 17;
*/
public Builder setStreamIdleTimeout(boolean value) {
streamIdleTimeout_ = value;
onChanged();
return this;
}
/**
*
* Indicates that the stream idle timeout was hit, resulting in a downstream 408.
*
*
* bool stream_idle_timeout = 17;
*/
public Builder clearStreamIdleTimeout() {
streamIdleTimeout_ = false;
onChanged();
return this;
}
private boolean invalidEnvoyRequestHeaders_ ;
/**
*
* Indicates that the request was rejected because an envoy request header failed strict
* validation.
*
*
* bool invalid_envoy_request_headers = 18;
*/
public boolean getInvalidEnvoyRequestHeaders() {
return invalidEnvoyRequestHeaders_;
}
/**
*
* Indicates that the request was rejected because an envoy request header failed strict
* validation.
*
*
* bool invalid_envoy_request_headers = 18;
*/
public Builder setInvalidEnvoyRequestHeaders(boolean value) {
invalidEnvoyRequestHeaders_ = value;
onChanged();
return this;
}
/**
*
* Indicates that the request was rejected because an envoy request header failed strict
* validation.
*
*
* bool invalid_envoy_request_headers = 18;
*/
public Builder clearInvalidEnvoyRequestHeaders() {
invalidEnvoyRequestHeaders_ = false;
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.data.accesslog.v3alpha.ResponseFlags)
}
// @@protoc_insertion_point(class_scope:envoy.data.accesslog.v3alpha.ResponseFlags)
private static final io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags();
}
public static io.envoyproxy.envoy.data.accesslog.v3alpha.ResponseFlags getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResponseFlags parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ResponseFlags(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.data.accesslog.v3alpha.ResponseFlags getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}