Class HostHealthStatus.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<HostHealthStatus.Builder>
-
- io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,HostHealthStatusOrBuilder,Cloneable
- Enclosing class:
- HostHealthStatus
public static final class HostHealthStatus.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<HostHealthStatus.Builder> implements HostHealthStatusOrBuilder
Health status for a host. [#next-free-field: 7]
Protobuf typeenvoy.admin.v2alpha.HostHealthStatus
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HostHealthStatus.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)HostHealthStatusbuild()HostHealthStatusbuildPartial()HostHealthStatus.Builderclear()HostHealthStatus.BuilderclearEdsHealthStatus()Health status as reported by EDS.HostHealthStatus.BuilderclearFailedActiveDegradedCheck()The host is currently being marked as degraded through active health checking.HostHealthStatus.BuilderclearFailedActiveHealthCheck()The host is currently failing active health checks.HostHealthStatus.BuilderclearFailedOutlierCheck()The host is currently considered an outlier and has been ejected.HostHealthStatus.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)HostHealthStatus.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)HostHealthStatus.BuilderclearPendingActiveHc()The host has not yet been health checked.HostHealthStatus.BuilderclearPendingDynamicRemoval()The host has been removed from service discovery, but is being stabilized due to active health checking.HostHealthStatus.Builderclone()HostHealthStatusgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()HealthStatusgetEdsHealthStatus()Health status as reported by EDS.intgetEdsHealthStatusValue()Health status as reported by EDS.booleangetFailedActiveDegradedCheck()The host is currently being marked as degraded through active health checking.booleangetFailedActiveHealthCheck()The host is currently failing active health checks.booleangetFailedOutlierCheck()The host is currently considered an outlier and has been ejected.booleangetPendingActiveHc()The host has not yet been health checked.booleangetPendingDynamicRemoval()The host has been removed from service discovery, but is being stabilized due to active health checking.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()HostHealthStatus.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)HostHealthStatus.BuildermergeFrom(com.google.protobuf.Message other)HostHealthStatus.BuildermergeFrom(HostHealthStatus other)HostHealthStatus.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)HostHealthStatus.BuildersetEdsHealthStatus(HealthStatus value)Health status as reported by EDS.HostHealthStatus.BuildersetEdsHealthStatusValue(int value)Health status as reported by EDS.HostHealthStatus.BuildersetFailedActiveDegradedCheck(boolean value)The host is currently being marked as degraded through active health checking.HostHealthStatus.BuildersetFailedActiveHealthCheck(boolean value)The host is currently failing active health checks.HostHealthStatus.BuildersetFailedOutlierCheck(boolean value)The host is currently considered an outlier and has been ejected.HostHealthStatus.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)HostHealthStatus.BuildersetPendingActiveHc(boolean value)The host has not yet been health checked.HostHealthStatus.BuildersetPendingDynamicRemoval(boolean value)The host has been removed from service discovery, but is being stabilized due to active health checking.HostHealthStatus.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)HostHealthStatus.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<HostHealthStatus.Builder>
-
clear
public HostHealthStatus.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<HostHealthStatus.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<HostHealthStatus.Builder>
-
getDefaultInstanceForType
public HostHealthStatus getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public HostHealthStatus build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public HostHealthStatus buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public HostHealthStatus.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<HostHealthStatus.Builder>
-
setField
public HostHealthStatus.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HostHealthStatus.Builder>
-
clearField
public HostHealthStatus.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HostHealthStatus.Builder>
-
clearOneof
public HostHealthStatus.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<HostHealthStatus.Builder>
-
setRepeatedField
public HostHealthStatus.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HostHealthStatus.Builder>
-
addRepeatedField
public HostHealthStatus.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HostHealthStatus.Builder>
-
mergeFrom
public HostHealthStatus.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HostHealthStatus.Builder>
-
mergeFrom
public HostHealthStatus.Builder mergeFrom(HostHealthStatus other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<HostHealthStatus.Builder>
-
mergeFrom
public HostHealthStatus.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HostHealthStatus.Builder>- Throws:
IOException
-
getFailedActiveHealthCheck
public boolean getFailedActiveHealthCheck()
The host is currently failing active health checks.
bool failed_active_health_check = 1;- Specified by:
getFailedActiveHealthCheckin interfaceHostHealthStatusOrBuilder- Returns:
- The failedActiveHealthCheck.
-
setFailedActiveHealthCheck
public HostHealthStatus.Builder setFailedActiveHealthCheck(boolean value)
The host is currently failing active health checks.
bool failed_active_health_check = 1;- Parameters:
value- The failedActiveHealthCheck to set.- Returns:
- This builder for chaining.
-
clearFailedActiveHealthCheck
public HostHealthStatus.Builder clearFailedActiveHealthCheck()
The host is currently failing active health checks.
bool failed_active_health_check = 1;- Returns:
- This builder for chaining.
-
getFailedOutlierCheck
public boolean getFailedOutlierCheck()
The host is currently considered an outlier and has been ejected.
bool failed_outlier_check = 2;- Specified by:
getFailedOutlierCheckin interfaceHostHealthStatusOrBuilder- Returns:
- The failedOutlierCheck.
-
setFailedOutlierCheck
public HostHealthStatus.Builder setFailedOutlierCheck(boolean value)
The host is currently considered an outlier and has been ejected.
bool failed_outlier_check = 2;- Parameters:
value- The failedOutlierCheck to set.- Returns:
- This builder for chaining.
-
clearFailedOutlierCheck
public HostHealthStatus.Builder clearFailedOutlierCheck()
The host is currently considered an outlier and has been ejected.
bool failed_outlier_check = 2;- Returns:
- This builder for chaining.
-
getFailedActiveDegradedCheck
public boolean getFailedActiveDegradedCheck()
The host is currently being marked as degraded through active health checking.
bool failed_active_degraded_check = 4;- Specified by:
getFailedActiveDegradedCheckin interfaceHostHealthStatusOrBuilder- Returns:
- The failedActiveDegradedCheck.
-
setFailedActiveDegradedCheck
public HostHealthStatus.Builder setFailedActiveDegradedCheck(boolean value)
The host is currently being marked as degraded through active health checking.
bool failed_active_degraded_check = 4;- Parameters:
value- The failedActiveDegradedCheck to set.- Returns:
- This builder for chaining.
-
clearFailedActiveDegradedCheck
public HostHealthStatus.Builder clearFailedActiveDegradedCheck()
The host is currently being marked as degraded through active health checking.
bool failed_active_degraded_check = 4;- Returns:
- This builder for chaining.
-
getPendingDynamicRemoval
public boolean getPendingDynamicRemoval()
The host has been removed from service discovery, but is being stabilized due to active health checking.
bool pending_dynamic_removal = 5;- Specified by:
getPendingDynamicRemovalin interfaceHostHealthStatusOrBuilder- Returns:
- The pendingDynamicRemoval.
-
setPendingDynamicRemoval
public HostHealthStatus.Builder setPendingDynamicRemoval(boolean value)
The host has been removed from service discovery, but is being stabilized due to active health checking.
bool pending_dynamic_removal = 5;- Parameters:
value- The pendingDynamicRemoval to set.- Returns:
- This builder for chaining.
-
clearPendingDynamicRemoval
public HostHealthStatus.Builder clearPendingDynamicRemoval()
The host has been removed from service discovery, but is being stabilized due to active health checking.
bool pending_dynamic_removal = 5;- Returns:
- This builder for chaining.
-
getPendingActiveHc
public boolean getPendingActiveHc()
The host has not yet been health checked.
bool pending_active_hc = 6;- Specified by:
getPendingActiveHcin interfaceHostHealthStatusOrBuilder- Returns:
- The pendingActiveHc.
-
setPendingActiveHc
public HostHealthStatus.Builder setPendingActiveHc(boolean value)
The host has not yet been health checked.
bool pending_active_hc = 6;- Parameters:
value- The pendingActiveHc to set.- Returns:
- This builder for chaining.
-
clearPendingActiveHc
public HostHealthStatus.Builder clearPendingActiveHc()
The host has not yet been health checked.
bool pending_active_hc = 6;- Returns:
- This builder for chaining.
-
getEdsHealthStatusValue
public int getEdsHealthStatusValue()
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.api.v2.core.HealthStatus eds_health_status = 3;- Specified by:
getEdsHealthStatusValuein interfaceHostHealthStatusOrBuilder- Returns:
- The enum numeric value on the wire for edsHealthStatus.
-
setEdsHealthStatusValue
public HostHealthStatus.Builder setEdsHealthStatusValue(int value)
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.api.v2.core.HealthStatus eds_health_status = 3;- Parameters:
value- The enum numeric value on the wire for edsHealthStatus to set.- Returns:
- This builder for chaining.
-
getEdsHealthStatus
public HealthStatus getEdsHealthStatus()
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.api.v2.core.HealthStatus eds_health_status = 3;- Specified by:
getEdsHealthStatusin interfaceHostHealthStatusOrBuilder- Returns:
- The edsHealthStatus.
-
setEdsHealthStatus
public HostHealthStatus.Builder setEdsHealthStatus(HealthStatus value)
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.api.v2.core.HealthStatus eds_health_status = 3;- Parameters:
value- The edsHealthStatus to set.- Returns:
- This builder for chaining.
-
clearEdsHealthStatus
public HostHealthStatus.Builder clearEdsHealthStatus()
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.api.v2.core.HealthStatus eds_health_status = 3;- Returns:
- This builder for chaining.
-
setUnknownFields
public final HostHealthStatus.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<HostHealthStatus.Builder>
-
mergeUnknownFields
public final HostHealthStatus.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<HostHealthStatus.Builder>
-
-