
io.envoyproxy.envoy.admin.v3.HostHealthStatus Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/admin/v3/clusters.proto
// Protobuf Java Version: 3.25.1
package io.envoyproxy.envoy.admin.v3;
/**
*
* Health status for a host.
* [#next-free-field: 9]
*
*
* Protobuf type {@code envoy.admin.v3.HostHealthStatus}
*/
public final class HostHealthStatus extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.admin.v3.HostHealthStatus)
HostHealthStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use HostHealthStatus.newBuilder() to construct.
private HostHealthStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HostHealthStatus() {
edsHealthStatus_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HostHealthStatus();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.admin.v3.ClustersProto.internal_static_envoy_admin_v3_HostHealthStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v3.ClustersProto.internal_static_envoy_admin_v3_HostHealthStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v3.HostHealthStatus.class, io.envoyproxy.envoy.admin.v3.HostHealthStatus.Builder.class);
}
public static final int FAILED_ACTIVE_HEALTH_CHECK_FIELD_NUMBER = 1;
private boolean failedActiveHealthCheck_ = false;
/**
*
* The host is currently failing active health checks.
*
*
* bool failed_active_health_check = 1;
* @return The failedActiveHealthCheck.
*/
@java.lang.Override
public boolean getFailedActiveHealthCheck() {
return failedActiveHealthCheck_;
}
public static final int FAILED_OUTLIER_CHECK_FIELD_NUMBER = 2;
private boolean failedOutlierCheck_ = false;
/**
*
* The host is currently considered an outlier and has been ejected.
*
*
* bool failed_outlier_check = 2;
* @return The failedOutlierCheck.
*/
@java.lang.Override
public boolean getFailedOutlierCheck() {
return failedOutlierCheck_;
}
public static final int FAILED_ACTIVE_DEGRADED_CHECK_FIELD_NUMBER = 4;
private boolean failedActiveDegradedCheck_ = false;
/**
*
* The host is currently being marked as degraded through active health checking.
*
*
* bool failed_active_degraded_check = 4;
* @return The failedActiveDegradedCheck.
*/
@java.lang.Override
public boolean getFailedActiveDegradedCheck() {
return failedActiveDegradedCheck_;
}
public static final int PENDING_DYNAMIC_REMOVAL_FIELD_NUMBER = 5;
private boolean pendingDynamicRemoval_ = false;
/**
*
* The host has been removed from service discovery, but is being stabilized due to active
* health checking.
*
*
* bool pending_dynamic_removal = 5;
* @return The pendingDynamicRemoval.
*/
@java.lang.Override
public boolean getPendingDynamicRemoval() {
return pendingDynamicRemoval_;
}
public static final int PENDING_ACTIVE_HC_FIELD_NUMBER = 6;
private boolean pendingActiveHc_ = false;
/**
*
* The host has not yet been health checked.
*
*
* bool pending_active_hc = 6;
* @return The pendingActiveHc.
*/
@java.lang.Override
public boolean getPendingActiveHc() {
return pendingActiveHc_;
}
public static final int EXCLUDED_VIA_IMMEDIATE_HC_FAIL_FIELD_NUMBER = 7;
private boolean excludedViaImmediateHcFail_ = false;
/**
*
* The host should be excluded from panic, spillover, etc. calculations because it was explicitly
* taken out of rotation via protocol signal and is not meant to be routed to.
*
*
* bool excluded_via_immediate_hc_fail = 7;
* @return The excludedViaImmediateHcFail.
*/
@java.lang.Override
public boolean getExcludedViaImmediateHcFail() {
return excludedViaImmediateHcFail_;
}
public static final int ACTIVE_HC_TIMEOUT_FIELD_NUMBER = 8;
private boolean activeHcTimeout_ = false;
/**
*
* The host failed active HC due to timeout.
*
*
* bool active_hc_timeout = 8;
* @return The activeHcTimeout.
*/
@java.lang.Override
public boolean getActiveHcTimeout() {
return activeHcTimeout_;
}
public static final int EDS_HEALTH_STATUS_FIELD_NUMBER = 3;
private int edsHealthStatus_ = 0;
/**
*
* Health status as reported by EDS. Note: only HEALTHY and UNHEALTHY are currently supported
* here.
* [#comment:TODO(mrice32): pipe through remaining EDS health status possibilities.]
*
*
* .envoy.config.core.v3.HealthStatus eds_health_status = 3;
* @return The enum numeric value on the wire for edsHealthStatus.
*/
@java.lang.Override public int getEdsHealthStatusValue() {
return edsHealthStatus_;
}
/**
*
* Health status as reported by EDS. Note: only HEALTHY and UNHEALTHY are currently supported
* here.
* [#comment:TODO(mrice32): pipe through remaining EDS health status possibilities.]
*
*
* .envoy.config.core.v3.HealthStatus eds_health_status = 3;
* @return The edsHealthStatus.
*/
@java.lang.Override public io.envoyproxy.envoy.config.core.v3.HealthStatus getEdsHealthStatus() {
io.envoyproxy.envoy.config.core.v3.HealthStatus result = io.envoyproxy.envoy.config.core.v3.HealthStatus.forNumber(edsHealthStatus_);
return result == null ? io.envoyproxy.envoy.config.core.v3.HealthStatus.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 (failedActiveHealthCheck_ != false) {
output.writeBool(1, failedActiveHealthCheck_);
}
if (failedOutlierCheck_ != false) {
output.writeBool(2, failedOutlierCheck_);
}
if (edsHealthStatus_ != io.envoyproxy.envoy.config.core.v3.HealthStatus.UNKNOWN.getNumber()) {
output.writeEnum(3, edsHealthStatus_);
}
if (failedActiveDegradedCheck_ != false) {
output.writeBool(4, failedActiveDegradedCheck_);
}
if (pendingDynamicRemoval_ != false) {
output.writeBool(5, pendingDynamicRemoval_);
}
if (pendingActiveHc_ != false) {
output.writeBool(6, pendingActiveHc_);
}
if (excludedViaImmediateHcFail_ != false) {
output.writeBool(7, excludedViaImmediateHcFail_);
}
if (activeHcTimeout_ != false) {
output.writeBool(8, activeHcTimeout_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (failedActiveHealthCheck_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, failedActiveHealthCheck_);
}
if (failedOutlierCheck_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, failedOutlierCheck_);
}
if (edsHealthStatus_ != io.envoyproxy.envoy.config.core.v3.HealthStatus.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, edsHealthStatus_);
}
if (failedActiveDegradedCheck_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, failedActiveDegradedCheck_);
}
if (pendingDynamicRemoval_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, pendingDynamicRemoval_);
}
if (pendingActiveHc_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, pendingActiveHc_);
}
if (excludedViaImmediateHcFail_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, excludedViaImmediateHcFail_);
}
if (activeHcTimeout_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, activeHcTimeout_);
}
size += getUnknownFields().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.admin.v3.HostHealthStatus)) {
return super.equals(obj);
}
io.envoyproxy.envoy.admin.v3.HostHealthStatus other = (io.envoyproxy.envoy.admin.v3.HostHealthStatus) obj;
if (getFailedActiveHealthCheck()
!= other.getFailedActiveHealthCheck()) return false;
if (getFailedOutlierCheck()
!= other.getFailedOutlierCheck()) return false;
if (getFailedActiveDegradedCheck()
!= other.getFailedActiveDegradedCheck()) return false;
if (getPendingDynamicRemoval()
!= other.getPendingDynamicRemoval()) return false;
if (getPendingActiveHc()
!= other.getPendingActiveHc()) return false;
if (getExcludedViaImmediateHcFail()
!= other.getExcludedViaImmediateHcFail()) return false;
if (getActiveHcTimeout()
!= other.getActiveHcTimeout()) return false;
if (edsHealthStatus_ != other.edsHealthStatus_) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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_ACTIVE_HEALTH_CHECK_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFailedActiveHealthCheck());
hash = (37 * hash) + FAILED_OUTLIER_CHECK_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFailedOutlierCheck());
hash = (37 * hash) + FAILED_ACTIVE_DEGRADED_CHECK_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFailedActiveDegradedCheck());
hash = (37 * hash) + PENDING_DYNAMIC_REMOVAL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getPendingDynamicRemoval());
hash = (37 * hash) + PENDING_ACTIVE_HC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getPendingActiveHc());
hash = (37 * hash) + EXCLUDED_VIA_IMMEDIATE_HC_FAIL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getExcludedViaImmediateHcFail());
hash = (37 * hash) + ACTIVE_HC_TIMEOUT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getActiveHcTimeout());
hash = (37 * hash) + EDS_HEALTH_STATUS_FIELD_NUMBER;
hash = (53 * hash) + edsHealthStatus_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.admin.v3.HostHealthStatus parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v3.HostHealthStatus 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.admin.v3.HostHealthStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v3.HostHealthStatus 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.admin.v3.HostHealthStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v3.HostHealthStatus parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.admin.v3.HostHealthStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v3.HostHealthStatus 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.admin.v3.HostHealthStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v3.HostHealthStatus 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.admin.v3.HostHealthStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v3.HostHealthStatus 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.admin.v3.HostHealthStatus 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;
}
/**
*
* Health status for a host.
* [#next-free-field: 9]
*
*
* Protobuf type {@code envoy.admin.v3.HostHealthStatus}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.admin.v3.HostHealthStatus)
io.envoyproxy.envoy.admin.v3.HostHealthStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.admin.v3.ClustersProto.internal_static_envoy_admin_v3_HostHealthStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v3.ClustersProto.internal_static_envoy_admin_v3_HostHealthStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v3.HostHealthStatus.class, io.envoyproxy.envoy.admin.v3.HostHealthStatus.Builder.class);
}
// Construct using io.envoyproxy.envoy.admin.v3.HostHealthStatus.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
failedActiveHealthCheck_ = false;
failedOutlierCheck_ = false;
failedActiveDegradedCheck_ = false;
pendingDynamicRemoval_ = false;
pendingActiveHc_ = false;
excludedViaImmediateHcFail_ = false;
activeHcTimeout_ = false;
edsHealthStatus_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.admin.v3.ClustersProto.internal_static_envoy_admin_v3_HostHealthStatus_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.HostHealthStatus getDefaultInstanceForType() {
return io.envoyproxy.envoy.admin.v3.HostHealthStatus.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.HostHealthStatus build() {
io.envoyproxy.envoy.admin.v3.HostHealthStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.HostHealthStatus buildPartial() {
io.envoyproxy.envoy.admin.v3.HostHealthStatus result = new io.envoyproxy.envoy.admin.v3.HostHealthStatus(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.envoyproxy.envoy.admin.v3.HostHealthStatus result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.failedActiveHealthCheck_ = failedActiveHealthCheck_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.failedOutlierCheck_ = failedOutlierCheck_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.failedActiveDegradedCheck_ = failedActiveDegradedCheck_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.pendingDynamicRemoval_ = pendingDynamicRemoval_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.pendingActiveHc_ = pendingActiveHc_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.excludedViaImmediateHcFail_ = excludedViaImmediateHcFail_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.activeHcTimeout_ = activeHcTimeout_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.edsHealthStatus_ = edsHealthStatus_;
}
}
@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.admin.v3.HostHealthStatus) {
return mergeFrom((io.envoyproxy.envoy.admin.v3.HostHealthStatus)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.admin.v3.HostHealthStatus other) {
if (other == io.envoyproxy.envoy.admin.v3.HostHealthStatus.getDefaultInstance()) return this;
if (other.getFailedActiveHealthCheck() != false) {
setFailedActiveHealthCheck(other.getFailedActiveHealthCheck());
}
if (other.getFailedOutlierCheck() != false) {
setFailedOutlierCheck(other.getFailedOutlierCheck());
}
if (other.getFailedActiveDegradedCheck() != false) {
setFailedActiveDegradedCheck(other.getFailedActiveDegradedCheck());
}
if (other.getPendingDynamicRemoval() != false) {
setPendingDynamicRemoval(other.getPendingDynamicRemoval());
}
if (other.getPendingActiveHc() != false) {
setPendingActiveHc(other.getPendingActiveHc());
}
if (other.getExcludedViaImmediateHcFail() != false) {
setExcludedViaImmediateHcFail(other.getExcludedViaImmediateHcFail());
}
if (other.getActiveHcTimeout() != false) {
setActiveHcTimeout(other.getActiveHcTimeout());
}
if (other.edsHealthStatus_ != 0) {
setEdsHealthStatusValue(other.getEdsHealthStatusValue());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
failedActiveHealthCheck_ = input.readBool();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
failedOutlierCheck_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
edsHealthStatus_ = input.readEnum();
bitField0_ |= 0x00000080;
break;
} // case 24
case 32: {
failedActiveDegradedCheck_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 32
case 40: {
pendingDynamicRemoval_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 40
case 48: {
pendingActiveHc_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 48
case 56: {
excludedViaImmediateHcFail_ = input.readBool();
bitField0_ |= 0x00000020;
break;
} // case 56
case 64: {
activeHcTimeout_ = input.readBool();
bitField0_ |= 0x00000040;
break;
} // case 64
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private boolean failedActiveHealthCheck_ ;
/**
*
* The host is currently failing active health checks.
*
*
* bool failed_active_health_check = 1;
* @return The failedActiveHealthCheck.
*/
@java.lang.Override
public boolean getFailedActiveHealthCheck() {
return failedActiveHealthCheck_;
}
/**
*
* The host is currently failing active health checks.
*
*
* bool failed_active_health_check = 1;
* @param value The failedActiveHealthCheck to set.
* @return This builder for chaining.
*/
public Builder setFailedActiveHealthCheck(boolean value) {
failedActiveHealthCheck_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The host is currently failing active health checks.
*
*
* bool failed_active_health_check = 1;
* @return This builder for chaining.
*/
public Builder clearFailedActiveHealthCheck() {
bitField0_ = (bitField0_ & ~0x00000001);
failedActiveHealthCheck_ = false;
onChanged();
return this;
}
private boolean failedOutlierCheck_ ;
/**
*
* The host is currently considered an outlier and has been ejected.
*
*
* bool failed_outlier_check = 2;
* @return The failedOutlierCheck.
*/
@java.lang.Override
public boolean getFailedOutlierCheck() {
return failedOutlierCheck_;
}
/**
*
* The host is currently considered an outlier and has been ejected.
*
*
* bool failed_outlier_check = 2;
* @param value The failedOutlierCheck to set.
* @return This builder for chaining.
*/
public Builder setFailedOutlierCheck(boolean value) {
failedOutlierCheck_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The host is currently considered an outlier and has been ejected.
*
*
* bool failed_outlier_check = 2;
* @return This builder for chaining.
*/
public Builder clearFailedOutlierCheck() {
bitField0_ = (bitField0_ & ~0x00000002);
failedOutlierCheck_ = false;
onChanged();
return this;
}
private boolean failedActiveDegradedCheck_ ;
/**
*
* The host is currently being marked as degraded through active health checking.
*
*
* bool failed_active_degraded_check = 4;
* @return The failedActiveDegradedCheck.
*/
@java.lang.Override
public boolean getFailedActiveDegradedCheck() {
return failedActiveDegradedCheck_;
}
/**
*
* The host is currently being marked as degraded through active health checking.
*
*
* bool failed_active_degraded_check = 4;
* @param value The failedActiveDegradedCheck to set.
* @return This builder for chaining.
*/
public Builder setFailedActiveDegradedCheck(boolean value) {
failedActiveDegradedCheck_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The host is currently being marked as degraded through active health checking.
*
*
* bool failed_active_degraded_check = 4;
* @return This builder for chaining.
*/
public Builder clearFailedActiveDegradedCheck() {
bitField0_ = (bitField0_ & ~0x00000004);
failedActiveDegradedCheck_ = false;
onChanged();
return this;
}
private boolean pendingDynamicRemoval_ ;
/**
*
* The host has been removed from service discovery, but is being stabilized due to active
* health checking.
*
*
* bool pending_dynamic_removal = 5;
* @return The pendingDynamicRemoval.
*/
@java.lang.Override
public boolean getPendingDynamicRemoval() {
return pendingDynamicRemoval_;
}
/**
*
* The host has been removed from service discovery, but is being stabilized due to active
* health checking.
*
*
* bool pending_dynamic_removal = 5;
* @param value The pendingDynamicRemoval to set.
* @return This builder for chaining.
*/
public Builder setPendingDynamicRemoval(boolean value) {
pendingDynamicRemoval_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* The host has been removed from service discovery, but is being stabilized due to active
* health checking.
*
*
* bool pending_dynamic_removal = 5;
* @return This builder for chaining.
*/
public Builder clearPendingDynamicRemoval() {
bitField0_ = (bitField0_ & ~0x00000008);
pendingDynamicRemoval_ = false;
onChanged();
return this;
}
private boolean pendingActiveHc_ ;
/**
*
* The host has not yet been health checked.
*
*
* bool pending_active_hc = 6;
* @return The pendingActiveHc.
*/
@java.lang.Override
public boolean getPendingActiveHc() {
return pendingActiveHc_;
}
/**
*
* The host has not yet been health checked.
*
*
* bool pending_active_hc = 6;
* @param value The pendingActiveHc to set.
* @return This builder for chaining.
*/
public Builder setPendingActiveHc(boolean value) {
pendingActiveHc_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* The host has not yet been health checked.
*
*
* bool pending_active_hc = 6;
* @return This builder for chaining.
*/
public Builder clearPendingActiveHc() {
bitField0_ = (bitField0_ & ~0x00000010);
pendingActiveHc_ = false;
onChanged();
return this;
}
private boolean excludedViaImmediateHcFail_ ;
/**
*
* The host should be excluded from panic, spillover, etc. calculations because it was explicitly
* taken out of rotation via protocol signal and is not meant to be routed to.
*
*
* bool excluded_via_immediate_hc_fail = 7;
* @return The excludedViaImmediateHcFail.
*/
@java.lang.Override
public boolean getExcludedViaImmediateHcFail() {
return excludedViaImmediateHcFail_;
}
/**
*
* The host should be excluded from panic, spillover, etc. calculations because it was explicitly
* taken out of rotation via protocol signal and is not meant to be routed to.
*
*
* bool excluded_via_immediate_hc_fail = 7;
* @param value The excludedViaImmediateHcFail to set.
* @return This builder for chaining.
*/
public Builder setExcludedViaImmediateHcFail(boolean value) {
excludedViaImmediateHcFail_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* The host should be excluded from panic, spillover, etc. calculations because it was explicitly
* taken out of rotation via protocol signal and is not meant to be routed to.
*
*
* bool excluded_via_immediate_hc_fail = 7;
* @return This builder for chaining.
*/
public Builder clearExcludedViaImmediateHcFail() {
bitField0_ = (bitField0_ & ~0x00000020);
excludedViaImmediateHcFail_ = false;
onChanged();
return this;
}
private boolean activeHcTimeout_ ;
/**
*
* The host failed active HC due to timeout.
*
*
* bool active_hc_timeout = 8;
* @return The activeHcTimeout.
*/
@java.lang.Override
public boolean getActiveHcTimeout() {
return activeHcTimeout_;
}
/**
*
* The host failed active HC due to timeout.
*
*
* bool active_hc_timeout = 8;
* @param value The activeHcTimeout to set.
* @return This builder for chaining.
*/
public Builder setActiveHcTimeout(boolean value) {
activeHcTimeout_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* The host failed active HC due to timeout.
*
*
* bool active_hc_timeout = 8;
* @return This builder for chaining.
*/
public Builder clearActiveHcTimeout() {
bitField0_ = (bitField0_ & ~0x00000040);
activeHcTimeout_ = false;
onChanged();
return this;
}
private int edsHealthStatus_ = 0;
/**
*
* Health status as reported by EDS. Note: only HEALTHY and UNHEALTHY are currently supported
* here.
* [#comment:TODO(mrice32): pipe through remaining EDS health status possibilities.]
*
*
* .envoy.config.core.v3.HealthStatus eds_health_status = 3;
* @return The enum numeric value on the wire for edsHealthStatus.
*/
@java.lang.Override public int getEdsHealthStatusValue() {
return edsHealthStatus_;
}
/**
*
* Health status as reported by EDS. Note: only HEALTHY and UNHEALTHY are currently supported
* here.
* [#comment:TODO(mrice32): pipe through remaining EDS health status possibilities.]
*
*
* .envoy.config.core.v3.HealthStatus eds_health_status = 3;
* @param value The enum numeric value on the wire for edsHealthStatus to set.
* @return This builder for chaining.
*/
public Builder setEdsHealthStatusValue(int value) {
edsHealthStatus_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Health status as reported by EDS. Note: only HEALTHY and UNHEALTHY are currently supported
* here.
* [#comment:TODO(mrice32): pipe through remaining EDS health status possibilities.]
*
*
* .envoy.config.core.v3.HealthStatus eds_health_status = 3;
* @return The edsHealthStatus.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.HealthStatus getEdsHealthStatus() {
io.envoyproxy.envoy.config.core.v3.HealthStatus result = io.envoyproxy.envoy.config.core.v3.HealthStatus.forNumber(edsHealthStatus_);
return result == null ? io.envoyproxy.envoy.config.core.v3.HealthStatus.UNRECOGNIZED : result;
}
/**
*
* Health status as reported by EDS. Note: only HEALTHY and UNHEALTHY are currently supported
* here.
* [#comment:TODO(mrice32): pipe through remaining EDS health status possibilities.]
*
*
* .envoy.config.core.v3.HealthStatus eds_health_status = 3;
* @param value The edsHealthStatus to set.
* @return This builder for chaining.
*/
public Builder setEdsHealthStatus(io.envoyproxy.envoy.config.core.v3.HealthStatus value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
edsHealthStatus_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Health status as reported by EDS. Note: only HEALTHY and UNHEALTHY are currently supported
* here.
* [#comment:TODO(mrice32): pipe through remaining EDS health status possibilities.]
*
*
* .envoy.config.core.v3.HealthStatus eds_health_status = 3;
* @return This builder for chaining.
*/
public Builder clearEdsHealthStatus() {
bitField0_ = (bitField0_ & ~0x00000080);
edsHealthStatus_ = 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.admin.v3.HostHealthStatus)
}
// @@protoc_insertion_point(class_scope:envoy.admin.v3.HostHealthStatus)
private static final io.envoyproxy.envoy.admin.v3.HostHealthStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.admin.v3.HostHealthStatus();
}
public static io.envoyproxy.envoy.admin.v3.HostHealthStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public HostHealthStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.admin.v3.HostHealthStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy