All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.envoyproxy.envoy.admin.v2alpha.HostStatus Maven / Gradle / Ivy

There is a newer version: 1.0.47
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/admin/v2alpha/clusters.proto

package io.envoyproxy.envoy.admin.v2alpha;

/**
 * 
 * Current state of a particular host.
 * 
* * Protobuf type {@code envoy.admin.v2alpha.HostStatus} */ public final class HostStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.admin.v2alpha.HostStatus) HostStatusOrBuilder { private static final long serialVersionUID = 0L; // Use HostStatus.newBuilder() to construct. private HostStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HostStatus() { stats_ = java.util.Collections.emptyList(); weight_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HostStatus( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { io.envoyproxy.envoy.api.v2.core.Address.Builder subBuilder = null; if (address_ != null) { subBuilder = address_.toBuilder(); } address_ = input.readMessage(io.envoyproxy.envoy.api.v2.core.Address.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(address_); address_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { stats_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } stats_.add( input.readMessage(io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.parser(), extensionRegistry)); break; } case 26: { io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus.Builder subBuilder = null; if (healthStatus_ != null) { subBuilder = healthStatus_.toBuilder(); } healthStatus_ = input.readMessage(io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(healthStatus_); healthStatus_ = subBuilder.buildPartial(); } break; } case 34: { io.envoyproxy.envoy.type.Percent.Builder subBuilder = null; if (successRate_ != null) { subBuilder = successRate_.toBuilder(); } successRate_ = input.readMessage(io.envoyproxy.envoy.type.Percent.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(successRate_); successRate_ = subBuilder.buildPartial(); } break; } case 40: { weight_ = input.readUInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { stats_ = java.util.Collections.unmodifiableList(stats_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.admin.v2alpha.ClustersProto.internal_static_envoy_admin_v2alpha_HostStatus_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.admin.v2alpha.ClustersProto.internal_static_envoy_admin_v2alpha_HostStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.admin.v2alpha.HostStatus.class, io.envoyproxy.envoy.admin.v2alpha.HostStatus.Builder.class); } private int bitField0_; public static final int ADDRESS_FIELD_NUMBER = 1; private io.envoyproxy.envoy.api.v2.core.Address address_; /** *
   * Address of this host.
   * 
* * .envoy.api.v2.core.Address address = 1; */ public boolean hasAddress() { return address_ != null; } /** *
   * Address of this host.
   * 
* * .envoy.api.v2.core.Address address = 1; */ public io.envoyproxy.envoy.api.v2.core.Address getAddress() { return address_ == null ? io.envoyproxy.envoy.api.v2.core.Address.getDefaultInstance() : address_; } /** *
   * Address of this host.
   * 
* * .envoy.api.v2.core.Address address = 1; */ public io.envoyproxy.envoy.api.v2.core.AddressOrBuilder getAddressOrBuilder() { return getAddress(); } public static final int STATS_FIELD_NUMBER = 2; private java.util.List stats_; /** *
   * List of stats specific to this host.
   * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public java.util.List getStatsList() { return stats_; } /** *
   * List of stats specific to this host.
   * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public java.util.List getStatsOrBuilderList() { return stats_; } /** *
   * List of stats specific to this host.
   * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public int getStatsCount() { return stats_.size(); } /** *
   * List of stats specific to this host.
   * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public io.envoyproxy.envoy.admin.v2alpha.SimpleMetric getStats(int index) { return stats_.get(index); } /** *
   * List of stats specific to this host.
   * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public io.envoyproxy.envoy.admin.v2alpha.SimpleMetricOrBuilder getStatsOrBuilder( int index) { return stats_.get(index); } public static final int HEALTH_STATUS_FIELD_NUMBER = 3; private io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus healthStatus_; /** *
   * The host's current health status.
   * 
* * .envoy.admin.v2alpha.HostHealthStatus health_status = 3; */ public boolean hasHealthStatus() { return healthStatus_ != null; } /** *
   * The host's current health status.
   * 
* * .envoy.admin.v2alpha.HostHealthStatus health_status = 3; */ public io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus getHealthStatus() { return healthStatus_ == null ? io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus.getDefaultInstance() : healthStatus_; } /** *
   * The host's current health status.
   * 
* * .envoy.admin.v2alpha.HostHealthStatus health_status = 3; */ public io.envoyproxy.envoy.admin.v2alpha.HostHealthStatusOrBuilder getHealthStatusOrBuilder() { return getHealthStatus(); } public static final int SUCCESS_RATE_FIELD_NUMBER = 4; private io.envoyproxy.envoy.type.Percent successRate_; /** *
   * Request success rate for this host over the last calculated interval.
   * Note: the message will not be present if host did not have enough request volume to calculate
   * success rate or the cluster did not have enough hosts to run through success rate outlier
   * ejection.
   * 
* * .envoy.type.Percent success_rate = 4; */ public boolean hasSuccessRate() { return successRate_ != null; } /** *
   * Request success rate for this host over the last calculated interval.
   * Note: the message will not be present if host did not have enough request volume to calculate
   * success rate or the cluster did not have enough hosts to run through success rate outlier
   * ejection.
   * 
* * .envoy.type.Percent success_rate = 4; */ public io.envoyproxy.envoy.type.Percent getSuccessRate() { return successRate_ == null ? io.envoyproxy.envoy.type.Percent.getDefaultInstance() : successRate_; } /** *
   * Request success rate for this host over the last calculated interval.
   * Note: the message will not be present if host did not have enough request volume to calculate
   * success rate or the cluster did not have enough hosts to run through success rate outlier
   * ejection.
   * 
* * .envoy.type.Percent success_rate = 4; */ public io.envoyproxy.envoy.type.PercentOrBuilder getSuccessRateOrBuilder() { return getSuccessRate(); } public static final int WEIGHT_FIELD_NUMBER = 5; private int weight_; /** *
   * The host's weight. If not configured, the value defaults to 1.
   * 
* * uint32 weight = 5; */ public int getWeight() { return weight_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (address_ != null) { output.writeMessage(1, getAddress()); } for (int i = 0; i < stats_.size(); i++) { output.writeMessage(2, stats_.get(i)); } if (healthStatus_ != null) { output.writeMessage(3, getHealthStatus()); } if (successRate_ != null) { output.writeMessage(4, getSuccessRate()); } if (weight_ != 0) { output.writeUInt32(5, weight_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (address_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getAddress()); } for (int i = 0; i < stats_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, stats_.get(i)); } if (healthStatus_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getHealthStatus()); } if (successRate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getSuccessRate()); } if (weight_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, weight_); } 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.admin.v2alpha.HostStatus)) { return super.equals(obj); } io.envoyproxy.envoy.admin.v2alpha.HostStatus other = (io.envoyproxy.envoy.admin.v2alpha.HostStatus) obj; boolean result = true; result = result && (hasAddress() == other.hasAddress()); if (hasAddress()) { result = result && getAddress() .equals(other.getAddress()); } result = result && getStatsList() .equals(other.getStatsList()); result = result && (hasHealthStatus() == other.hasHealthStatus()); if (hasHealthStatus()) { result = result && getHealthStatus() .equals(other.getHealthStatus()); } result = result && (hasSuccessRate() == other.hasSuccessRate()); if (hasSuccessRate()) { result = result && getSuccessRate() .equals(other.getSuccessRate()); } result = result && (getWeight() == other.getWeight()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasAddress()) { hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); } if (getStatsCount() > 0) { hash = (37 * hash) + STATS_FIELD_NUMBER; hash = (53 * hash) + getStatsList().hashCode(); } if (hasHealthStatus()) { hash = (37 * hash) + HEALTH_STATUS_FIELD_NUMBER; hash = (53 * hash) + getHealthStatus().hashCode(); } if (hasSuccessRate()) { hash = (37 * hash) + SUCCESS_RATE_FIELD_NUMBER; hash = (53 * hash) + getSuccessRate().hashCode(); } hash = (37 * hash) + WEIGHT_FIELD_NUMBER; hash = (53 * hash) + getWeight(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.admin.v2alpha.HostStatus parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.admin.v2alpha.HostStatus 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.v2alpha.HostStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.admin.v2alpha.HostStatus 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.v2alpha.HostStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.admin.v2alpha.HostStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.admin.v2alpha.HostStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.admin.v2alpha.HostStatus 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.v2alpha.HostStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.admin.v2alpha.HostStatus 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.v2alpha.HostStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.admin.v2alpha.HostStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.envoyproxy.envoy.admin.v2alpha.HostStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
   * Current state of a particular host.
   * 
* * Protobuf type {@code envoy.admin.v2alpha.HostStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.admin.v2alpha.HostStatus) io.envoyproxy.envoy.admin.v2alpha.HostStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.admin.v2alpha.ClustersProto.internal_static_envoy_admin_v2alpha_HostStatus_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.admin.v2alpha.ClustersProto.internal_static_envoy_admin_v2alpha_HostStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.admin.v2alpha.HostStatus.class, io.envoyproxy.envoy.admin.v2alpha.HostStatus.Builder.class); } // Construct using io.envoyproxy.envoy.admin.v2alpha.HostStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getStatsFieldBuilder(); } } public Builder clear() { super.clear(); if (addressBuilder_ == null) { address_ = null; } else { address_ = null; addressBuilder_ = null; } if (statsBuilder_ == null) { stats_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { statsBuilder_.clear(); } if (healthStatusBuilder_ == null) { healthStatus_ = null; } else { healthStatus_ = null; healthStatusBuilder_ = null; } if (successRateBuilder_ == null) { successRate_ = null; } else { successRate_ = null; successRateBuilder_ = null; } weight_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.admin.v2alpha.ClustersProto.internal_static_envoy_admin_v2alpha_HostStatus_descriptor; } public io.envoyproxy.envoy.admin.v2alpha.HostStatus getDefaultInstanceForType() { return io.envoyproxy.envoy.admin.v2alpha.HostStatus.getDefaultInstance(); } public io.envoyproxy.envoy.admin.v2alpha.HostStatus build() { io.envoyproxy.envoy.admin.v2alpha.HostStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public io.envoyproxy.envoy.admin.v2alpha.HostStatus buildPartial() { io.envoyproxy.envoy.admin.v2alpha.HostStatus result = new io.envoyproxy.envoy.admin.v2alpha.HostStatus(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (addressBuilder_ == null) { result.address_ = address_; } else { result.address_ = addressBuilder_.build(); } if (statsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { stats_ = java.util.Collections.unmodifiableList(stats_); bitField0_ = (bitField0_ & ~0x00000002); } result.stats_ = stats_; } else { result.stats_ = statsBuilder_.build(); } if (healthStatusBuilder_ == null) { result.healthStatus_ = healthStatus_; } else { result.healthStatus_ = healthStatusBuilder_.build(); } if (successRateBuilder_ == null) { result.successRate_ = successRate_; } else { result.successRate_ = successRateBuilder_.build(); } result.weight_ = weight_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.envoyproxy.envoy.admin.v2alpha.HostStatus) { return mergeFrom((io.envoyproxy.envoy.admin.v2alpha.HostStatus)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.admin.v2alpha.HostStatus other) { if (other == io.envoyproxy.envoy.admin.v2alpha.HostStatus.getDefaultInstance()) return this; if (other.hasAddress()) { mergeAddress(other.getAddress()); } if (statsBuilder_ == null) { if (!other.stats_.isEmpty()) { if (stats_.isEmpty()) { stats_ = other.stats_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureStatsIsMutable(); stats_.addAll(other.stats_); } onChanged(); } } else { if (!other.stats_.isEmpty()) { if (statsBuilder_.isEmpty()) { statsBuilder_.dispose(); statsBuilder_ = null; stats_ = other.stats_; bitField0_ = (bitField0_ & ~0x00000002); statsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getStatsFieldBuilder() : null; } else { statsBuilder_.addAllMessages(other.stats_); } } } if (other.hasHealthStatus()) { mergeHealthStatus(other.getHealthStatus()); } if (other.hasSuccessRate()) { mergeSuccessRate(other.getSuccessRate()); } if (other.getWeight() != 0) { setWeight(other.getWeight()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.envoyproxy.envoy.admin.v2alpha.HostStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.admin.v2alpha.HostStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.envoyproxy.envoy.api.v2.core.Address address_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v2.core.Address, io.envoyproxy.envoy.api.v2.core.Address.Builder, io.envoyproxy.envoy.api.v2.core.AddressOrBuilder> addressBuilder_; /** *
     * Address of this host.
     * 
* * .envoy.api.v2.core.Address address = 1; */ public boolean hasAddress() { return addressBuilder_ != null || address_ != null; } /** *
     * Address of this host.
     * 
* * .envoy.api.v2.core.Address address = 1; */ public io.envoyproxy.envoy.api.v2.core.Address getAddress() { if (addressBuilder_ == null) { return address_ == null ? io.envoyproxy.envoy.api.v2.core.Address.getDefaultInstance() : address_; } else { return addressBuilder_.getMessage(); } } /** *
     * Address of this host.
     * 
* * .envoy.api.v2.core.Address address = 1; */ public Builder setAddress(io.envoyproxy.envoy.api.v2.core.Address value) { if (addressBuilder_ == null) { if (value == null) { throw new NullPointerException(); } address_ = value; onChanged(); } else { addressBuilder_.setMessage(value); } return this; } /** *
     * Address of this host.
     * 
* * .envoy.api.v2.core.Address address = 1; */ public Builder setAddress( io.envoyproxy.envoy.api.v2.core.Address.Builder builderForValue) { if (addressBuilder_ == null) { address_ = builderForValue.build(); onChanged(); } else { addressBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Address of this host.
     * 
* * .envoy.api.v2.core.Address address = 1; */ public Builder mergeAddress(io.envoyproxy.envoy.api.v2.core.Address value) { if (addressBuilder_ == null) { if (address_ != null) { address_ = io.envoyproxy.envoy.api.v2.core.Address.newBuilder(address_).mergeFrom(value).buildPartial(); } else { address_ = value; } onChanged(); } else { addressBuilder_.mergeFrom(value); } return this; } /** *
     * Address of this host.
     * 
* * .envoy.api.v2.core.Address address = 1; */ public Builder clearAddress() { if (addressBuilder_ == null) { address_ = null; onChanged(); } else { address_ = null; addressBuilder_ = null; } return this; } /** *
     * Address of this host.
     * 
* * .envoy.api.v2.core.Address address = 1; */ public io.envoyproxy.envoy.api.v2.core.Address.Builder getAddressBuilder() { onChanged(); return getAddressFieldBuilder().getBuilder(); } /** *
     * Address of this host.
     * 
* * .envoy.api.v2.core.Address address = 1; */ public io.envoyproxy.envoy.api.v2.core.AddressOrBuilder getAddressOrBuilder() { if (addressBuilder_ != null) { return addressBuilder_.getMessageOrBuilder(); } else { return address_ == null ? io.envoyproxy.envoy.api.v2.core.Address.getDefaultInstance() : address_; } } /** *
     * Address of this host.
     * 
* * .envoy.api.v2.core.Address address = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v2.core.Address, io.envoyproxy.envoy.api.v2.core.Address.Builder, io.envoyproxy.envoy.api.v2.core.AddressOrBuilder> getAddressFieldBuilder() { if (addressBuilder_ == null) { addressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v2.core.Address, io.envoyproxy.envoy.api.v2.core.Address.Builder, io.envoyproxy.envoy.api.v2.core.AddressOrBuilder>( getAddress(), getParentForChildren(), isClean()); address_ = null; } return addressBuilder_; } private java.util.List stats_ = java.util.Collections.emptyList(); private void ensureStatsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { stats_ = new java.util.ArrayList(stats_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.admin.v2alpha.SimpleMetric, io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.Builder, io.envoyproxy.envoy.admin.v2alpha.SimpleMetricOrBuilder> statsBuilder_; /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public java.util.List getStatsList() { if (statsBuilder_ == null) { return java.util.Collections.unmodifiableList(stats_); } else { return statsBuilder_.getMessageList(); } } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public int getStatsCount() { if (statsBuilder_ == null) { return stats_.size(); } else { return statsBuilder_.getCount(); } } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public io.envoyproxy.envoy.admin.v2alpha.SimpleMetric getStats(int index) { if (statsBuilder_ == null) { return stats_.get(index); } else { return statsBuilder_.getMessage(index); } } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public Builder setStats( int index, io.envoyproxy.envoy.admin.v2alpha.SimpleMetric value) { if (statsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStatsIsMutable(); stats_.set(index, value); onChanged(); } else { statsBuilder_.setMessage(index, value); } return this; } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public Builder setStats( int index, io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.Builder builderForValue) { if (statsBuilder_ == null) { ensureStatsIsMutable(); stats_.set(index, builderForValue.build()); onChanged(); } else { statsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public Builder addStats(io.envoyproxy.envoy.admin.v2alpha.SimpleMetric value) { if (statsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStatsIsMutable(); stats_.add(value); onChanged(); } else { statsBuilder_.addMessage(value); } return this; } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public Builder addStats( int index, io.envoyproxy.envoy.admin.v2alpha.SimpleMetric value) { if (statsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStatsIsMutable(); stats_.add(index, value); onChanged(); } else { statsBuilder_.addMessage(index, value); } return this; } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public Builder addStats( io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.Builder builderForValue) { if (statsBuilder_ == null) { ensureStatsIsMutable(); stats_.add(builderForValue.build()); onChanged(); } else { statsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public Builder addStats( int index, io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.Builder builderForValue) { if (statsBuilder_ == null) { ensureStatsIsMutable(); stats_.add(index, builderForValue.build()); onChanged(); } else { statsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public Builder addAllStats( java.lang.Iterable values) { if (statsBuilder_ == null) { ensureStatsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, stats_); onChanged(); } else { statsBuilder_.addAllMessages(values); } return this; } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public Builder clearStats() { if (statsBuilder_ == null) { stats_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { statsBuilder_.clear(); } return this; } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public Builder removeStats(int index) { if (statsBuilder_ == null) { ensureStatsIsMutable(); stats_.remove(index); onChanged(); } else { statsBuilder_.remove(index); } return this; } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.Builder getStatsBuilder( int index) { return getStatsFieldBuilder().getBuilder(index); } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public io.envoyproxy.envoy.admin.v2alpha.SimpleMetricOrBuilder getStatsOrBuilder( int index) { if (statsBuilder_ == null) { return stats_.get(index); } else { return statsBuilder_.getMessageOrBuilder(index); } } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public java.util.List getStatsOrBuilderList() { if (statsBuilder_ != null) { return statsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(stats_); } } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.Builder addStatsBuilder() { return getStatsFieldBuilder().addBuilder( io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.getDefaultInstance()); } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.Builder addStatsBuilder( int index) { return getStatsFieldBuilder().addBuilder( index, io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.getDefaultInstance()); } /** *
     * List of stats specific to this host.
     * 
* * repeated .envoy.admin.v2alpha.SimpleMetric stats = 2; */ public java.util.List getStatsBuilderList() { return getStatsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.admin.v2alpha.SimpleMetric, io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.Builder, io.envoyproxy.envoy.admin.v2alpha.SimpleMetricOrBuilder> getStatsFieldBuilder() { if (statsBuilder_ == null) { statsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.admin.v2alpha.SimpleMetric, io.envoyproxy.envoy.admin.v2alpha.SimpleMetric.Builder, io.envoyproxy.envoy.admin.v2alpha.SimpleMetricOrBuilder>( stats_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); stats_ = null; } return statsBuilder_; } private io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus healthStatus_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus, io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus.Builder, io.envoyproxy.envoy.admin.v2alpha.HostHealthStatusOrBuilder> healthStatusBuilder_; /** *
     * The host's current health status.
     * 
* * .envoy.admin.v2alpha.HostHealthStatus health_status = 3; */ public boolean hasHealthStatus() { return healthStatusBuilder_ != null || healthStatus_ != null; } /** *
     * The host's current health status.
     * 
* * .envoy.admin.v2alpha.HostHealthStatus health_status = 3; */ public io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus getHealthStatus() { if (healthStatusBuilder_ == null) { return healthStatus_ == null ? io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus.getDefaultInstance() : healthStatus_; } else { return healthStatusBuilder_.getMessage(); } } /** *
     * The host's current health status.
     * 
* * .envoy.admin.v2alpha.HostHealthStatus health_status = 3; */ public Builder setHealthStatus(io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus value) { if (healthStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } healthStatus_ = value; onChanged(); } else { healthStatusBuilder_.setMessage(value); } return this; } /** *
     * The host's current health status.
     * 
* * .envoy.admin.v2alpha.HostHealthStatus health_status = 3; */ public Builder setHealthStatus( io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus.Builder builderForValue) { if (healthStatusBuilder_ == null) { healthStatus_ = builderForValue.build(); onChanged(); } else { healthStatusBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The host's current health status.
     * 
* * .envoy.admin.v2alpha.HostHealthStatus health_status = 3; */ public Builder mergeHealthStatus(io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus value) { if (healthStatusBuilder_ == null) { if (healthStatus_ != null) { healthStatus_ = io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus.newBuilder(healthStatus_).mergeFrom(value).buildPartial(); } else { healthStatus_ = value; } onChanged(); } else { healthStatusBuilder_.mergeFrom(value); } return this; } /** *
     * The host's current health status.
     * 
* * .envoy.admin.v2alpha.HostHealthStatus health_status = 3; */ public Builder clearHealthStatus() { if (healthStatusBuilder_ == null) { healthStatus_ = null; onChanged(); } else { healthStatus_ = null; healthStatusBuilder_ = null; } return this; } /** *
     * The host's current health status.
     * 
* * .envoy.admin.v2alpha.HostHealthStatus health_status = 3; */ public io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus.Builder getHealthStatusBuilder() { onChanged(); return getHealthStatusFieldBuilder().getBuilder(); } /** *
     * The host's current health status.
     * 
* * .envoy.admin.v2alpha.HostHealthStatus health_status = 3; */ public io.envoyproxy.envoy.admin.v2alpha.HostHealthStatusOrBuilder getHealthStatusOrBuilder() { if (healthStatusBuilder_ != null) { return healthStatusBuilder_.getMessageOrBuilder(); } else { return healthStatus_ == null ? io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus.getDefaultInstance() : healthStatus_; } } /** *
     * The host's current health status.
     * 
* * .envoy.admin.v2alpha.HostHealthStatus health_status = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus, io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus.Builder, io.envoyproxy.envoy.admin.v2alpha.HostHealthStatusOrBuilder> getHealthStatusFieldBuilder() { if (healthStatusBuilder_ == null) { healthStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus, io.envoyproxy.envoy.admin.v2alpha.HostHealthStatus.Builder, io.envoyproxy.envoy.admin.v2alpha.HostHealthStatusOrBuilder>( getHealthStatus(), getParentForChildren(), isClean()); healthStatus_ = null; } return healthStatusBuilder_; } private io.envoyproxy.envoy.type.Percent successRate_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.Percent, io.envoyproxy.envoy.type.Percent.Builder, io.envoyproxy.envoy.type.PercentOrBuilder> successRateBuilder_; /** *
     * Request success rate for this host over the last calculated interval.
     * Note: the message will not be present if host did not have enough request volume to calculate
     * success rate or the cluster did not have enough hosts to run through success rate outlier
     * ejection.
     * 
* * .envoy.type.Percent success_rate = 4; */ public boolean hasSuccessRate() { return successRateBuilder_ != null || successRate_ != null; } /** *
     * Request success rate for this host over the last calculated interval.
     * Note: the message will not be present if host did not have enough request volume to calculate
     * success rate or the cluster did not have enough hosts to run through success rate outlier
     * ejection.
     * 
* * .envoy.type.Percent success_rate = 4; */ public io.envoyproxy.envoy.type.Percent getSuccessRate() { if (successRateBuilder_ == null) { return successRate_ == null ? io.envoyproxy.envoy.type.Percent.getDefaultInstance() : successRate_; } else { return successRateBuilder_.getMessage(); } } /** *
     * Request success rate for this host over the last calculated interval.
     * Note: the message will not be present if host did not have enough request volume to calculate
     * success rate or the cluster did not have enough hosts to run through success rate outlier
     * ejection.
     * 
* * .envoy.type.Percent success_rate = 4; */ public Builder setSuccessRate(io.envoyproxy.envoy.type.Percent value) { if (successRateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } successRate_ = value; onChanged(); } else { successRateBuilder_.setMessage(value); } return this; } /** *
     * Request success rate for this host over the last calculated interval.
     * Note: the message will not be present if host did not have enough request volume to calculate
     * success rate or the cluster did not have enough hosts to run through success rate outlier
     * ejection.
     * 
* * .envoy.type.Percent success_rate = 4; */ public Builder setSuccessRate( io.envoyproxy.envoy.type.Percent.Builder builderForValue) { if (successRateBuilder_ == null) { successRate_ = builderForValue.build(); onChanged(); } else { successRateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Request success rate for this host over the last calculated interval.
     * Note: the message will not be present if host did not have enough request volume to calculate
     * success rate or the cluster did not have enough hosts to run through success rate outlier
     * ejection.
     * 
* * .envoy.type.Percent success_rate = 4; */ public Builder mergeSuccessRate(io.envoyproxy.envoy.type.Percent value) { if (successRateBuilder_ == null) { if (successRate_ != null) { successRate_ = io.envoyproxy.envoy.type.Percent.newBuilder(successRate_).mergeFrom(value).buildPartial(); } else { successRate_ = value; } onChanged(); } else { successRateBuilder_.mergeFrom(value); } return this; } /** *
     * Request success rate for this host over the last calculated interval.
     * Note: the message will not be present if host did not have enough request volume to calculate
     * success rate or the cluster did not have enough hosts to run through success rate outlier
     * ejection.
     * 
* * .envoy.type.Percent success_rate = 4; */ public Builder clearSuccessRate() { if (successRateBuilder_ == null) { successRate_ = null; onChanged(); } else { successRate_ = null; successRateBuilder_ = null; } return this; } /** *
     * Request success rate for this host over the last calculated interval.
     * Note: the message will not be present if host did not have enough request volume to calculate
     * success rate or the cluster did not have enough hosts to run through success rate outlier
     * ejection.
     * 
* * .envoy.type.Percent success_rate = 4; */ public io.envoyproxy.envoy.type.Percent.Builder getSuccessRateBuilder() { onChanged(); return getSuccessRateFieldBuilder().getBuilder(); } /** *
     * Request success rate for this host over the last calculated interval.
     * Note: the message will not be present if host did not have enough request volume to calculate
     * success rate or the cluster did not have enough hosts to run through success rate outlier
     * ejection.
     * 
* * .envoy.type.Percent success_rate = 4; */ public io.envoyproxy.envoy.type.PercentOrBuilder getSuccessRateOrBuilder() { if (successRateBuilder_ != null) { return successRateBuilder_.getMessageOrBuilder(); } else { return successRate_ == null ? io.envoyproxy.envoy.type.Percent.getDefaultInstance() : successRate_; } } /** *
     * Request success rate for this host over the last calculated interval.
     * Note: the message will not be present if host did not have enough request volume to calculate
     * success rate or the cluster did not have enough hosts to run through success rate outlier
     * ejection.
     * 
* * .envoy.type.Percent success_rate = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.Percent, io.envoyproxy.envoy.type.Percent.Builder, io.envoyproxy.envoy.type.PercentOrBuilder> getSuccessRateFieldBuilder() { if (successRateBuilder_ == null) { successRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.Percent, io.envoyproxy.envoy.type.Percent.Builder, io.envoyproxy.envoy.type.PercentOrBuilder>( getSuccessRate(), getParentForChildren(), isClean()); successRate_ = null; } return successRateBuilder_; } private int weight_ ; /** *
     * The host's weight. If not configured, the value defaults to 1.
     * 
* * uint32 weight = 5; */ public int getWeight() { return weight_; } /** *
     * The host's weight. If not configured, the value defaults to 1.
     * 
* * uint32 weight = 5; */ public Builder setWeight(int value) { weight_ = value; onChanged(); return this; } /** *
     * The host's weight. If not configured, the value defaults to 1.
     * 
* * uint32 weight = 5; */ public Builder clearWeight() { weight_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:envoy.admin.v2alpha.HostStatus) } // @@protoc_insertion_point(class_scope:envoy.admin.v2alpha.HostStatus) private static final io.envoyproxy.envoy.admin.v2alpha.HostStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.admin.v2alpha.HostStatus(); } public static io.envoyproxy.envoy.admin.v2alpha.HostStatus getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public HostStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HostStatus(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public io.envoyproxy.envoy.admin.v2alpha.HostStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy