
io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/service/health/v3/hds.proto
package io.envoyproxy.envoy.service.health.v3;
/**
*
* The cluster name and locality is provided to Envoy for the endpoints that it
* health checks to support statistics reporting, logging and debugging by the
* Envoy instance (outside of HDS). For maximum usefulness, it should match the
* same cluster structure as that provided by EDS.
*
*
* Protobuf type {@code envoy.service.health.v3.ClusterHealthCheck}
*/
public final class ClusterHealthCheck extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.service.health.v3.ClusterHealthCheck)
ClusterHealthCheckOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClusterHealthCheck.newBuilder() to construct.
private ClusterHealthCheck(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ClusterHealthCheck() {
clusterName_ = "";
healthChecks_ = java.util.Collections.emptyList();
localityEndpoints_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ClusterHealthCheck();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ClusterHealthCheck(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
clusterName_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
healthChecks_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
healthChecks_.add(
input.readMessage(io.envoyproxy.envoy.config.core.v3.HealthCheck.parser(), extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
localityEndpoints_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
localityEndpoints_.add(
input.readMessage(io.envoyproxy.envoy.service.health.v3.LocalityEndpoints.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
healthChecks_ = java.util.Collections.unmodifiableList(healthChecks_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
localityEndpoints_ = java.util.Collections.unmodifiableList(localityEndpoints_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.health.v3.HdsProto.internal_static_envoy_service_health_v3_ClusterHealthCheck_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.health.v3.HdsProto.internal_static_envoy_service_health_v3_ClusterHealthCheck_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck.class, io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck.Builder.class);
}
public static final int CLUSTER_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object clusterName_;
/**
* string cluster_name = 1;
*/
public java.lang.String getClusterName() {
java.lang.Object ref = clusterName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clusterName_ = s;
return s;
}
}
/**
* string cluster_name = 1;
*/
public com.google.protobuf.ByteString
getClusterNameBytes() {
java.lang.Object ref = clusterName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clusterName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HEALTH_CHECKS_FIELD_NUMBER = 2;
private java.util.List healthChecks_;
/**
* repeated .envoy.config.core.v3.HealthCheck health_checks = 2;
*/
public java.util.List getHealthChecksList() {
return healthChecks_;
}
/**
* repeated .envoy.config.core.v3.HealthCheck health_checks = 2;
*/
public java.util.List extends io.envoyproxy.envoy.config.core.v3.HealthCheckOrBuilder>
getHealthChecksOrBuilderList() {
return healthChecks_;
}
/**
* repeated .envoy.config.core.v3.HealthCheck health_checks = 2;
*/
public int getHealthChecksCount() {
return healthChecks_.size();
}
/**
* repeated .envoy.config.core.v3.HealthCheck health_checks = 2;
*/
public io.envoyproxy.envoy.config.core.v3.HealthCheck getHealthChecks(int index) {
return healthChecks_.get(index);
}
/**
* repeated .envoy.config.core.v3.HealthCheck health_checks = 2;
*/
public io.envoyproxy.envoy.config.core.v3.HealthCheckOrBuilder getHealthChecksOrBuilder(
int index) {
return healthChecks_.get(index);
}
public static final int LOCALITY_ENDPOINTS_FIELD_NUMBER = 3;
private java.util.List localityEndpoints_;
/**
* repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3;
*/
public java.util.List getLocalityEndpointsList() {
return localityEndpoints_;
}
/**
* repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3;
*/
public java.util.List extends io.envoyproxy.envoy.service.health.v3.LocalityEndpointsOrBuilder>
getLocalityEndpointsOrBuilderList() {
return localityEndpoints_;
}
/**
* repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3;
*/
public int getLocalityEndpointsCount() {
return localityEndpoints_.size();
}
/**
* repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3;
*/
public io.envoyproxy.envoy.service.health.v3.LocalityEndpoints getLocalityEndpoints(int index) {
return localityEndpoints_.get(index);
}
/**
* repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3;
*/
public io.envoyproxy.envoy.service.health.v3.LocalityEndpointsOrBuilder getLocalityEndpointsOrBuilder(
int index) {
return localityEndpoints_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getClusterNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterName_);
}
for (int i = 0; i < healthChecks_.size(); i++) {
output.writeMessage(2, healthChecks_.get(i));
}
for (int i = 0; i < localityEndpoints_.size(); i++) {
output.writeMessage(3, localityEndpoints_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getClusterNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterName_);
}
for (int i = 0; i < healthChecks_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, healthChecks_.get(i));
}
for (int i = 0; i < localityEndpoints_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, localityEndpoints_.get(i));
}
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.service.health.v3.ClusterHealthCheck)) {
return super.equals(obj);
}
io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck other = (io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck) obj;
if (!getClusterName()
.equals(other.getClusterName())) return false;
if (!getHealthChecksList()
.equals(other.getHealthChecksList())) return false;
if (!getLocalityEndpointsList()
.equals(other.getLocalityEndpointsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER;
hash = (53 * hash) + getClusterName().hashCode();
if (getHealthChecksCount() > 0) {
hash = (37 * hash) + HEALTH_CHECKS_FIELD_NUMBER;
hash = (53 * hash) + getHealthChecksList().hashCode();
}
if (getLocalityEndpointsCount() > 0) {
hash = (37 * hash) + LOCALITY_ENDPOINTS_FIELD_NUMBER;
hash = (53 * hash) + getLocalityEndpointsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck 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.service.health.v3.ClusterHealthCheck parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck 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.service.health.v3.ClusterHealthCheck parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck 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.service.health.v3.ClusterHealthCheck parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck 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.service.health.v3.ClusterHealthCheck parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck 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.service.health.v3.ClusterHealthCheck 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;
}
/**
*
* The cluster name and locality is provided to Envoy for the endpoints that it
* health checks to support statistics reporting, logging and debugging by the
* Envoy instance (outside of HDS). For maximum usefulness, it should match the
* same cluster structure as that provided by EDS.
*
*
* Protobuf type {@code envoy.service.health.v3.ClusterHealthCheck}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.service.health.v3.ClusterHealthCheck)
io.envoyproxy.envoy.service.health.v3.ClusterHealthCheckOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.health.v3.HdsProto.internal_static_envoy_service_health_v3_ClusterHealthCheck_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.health.v3.HdsProto.internal_static_envoy_service_health_v3_ClusterHealthCheck_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck.class, io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck.Builder.class);
}
// Construct using io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getHealthChecksFieldBuilder();
getLocalityEndpointsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
clusterName_ = "";
if (healthChecksBuilder_ == null) {
healthChecks_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
healthChecksBuilder_.clear();
}
if (localityEndpointsBuilder_ == null) {
localityEndpoints_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
localityEndpointsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.service.health.v3.HdsProto.internal_static_envoy_service_health_v3_ClusterHealthCheck_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck getDefaultInstanceForType() {
return io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck build() {
io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck buildPartial() {
io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck result = new io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck(this);
int from_bitField0_ = bitField0_;
result.clusterName_ = clusterName_;
if (healthChecksBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
healthChecks_ = java.util.Collections.unmodifiableList(healthChecks_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.healthChecks_ = healthChecks_;
} else {
result.healthChecks_ = healthChecksBuilder_.build();
}
if (localityEndpointsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
localityEndpoints_ = java.util.Collections.unmodifiableList(localityEndpoints_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.localityEndpoints_ = localityEndpoints_;
} else {
result.localityEndpoints_ = localityEndpointsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck) {
return mergeFrom((io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck other) {
if (other == io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck.getDefaultInstance()) return this;
if (!other.getClusterName().isEmpty()) {
clusterName_ = other.clusterName_;
onChanged();
}
if (healthChecksBuilder_ == null) {
if (!other.healthChecks_.isEmpty()) {
if (healthChecks_.isEmpty()) {
healthChecks_ = other.healthChecks_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureHealthChecksIsMutable();
healthChecks_.addAll(other.healthChecks_);
}
onChanged();
}
} else {
if (!other.healthChecks_.isEmpty()) {
if (healthChecksBuilder_.isEmpty()) {
healthChecksBuilder_.dispose();
healthChecksBuilder_ = null;
healthChecks_ = other.healthChecks_;
bitField0_ = (bitField0_ & ~0x00000001);
healthChecksBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getHealthChecksFieldBuilder() : null;
} else {
healthChecksBuilder_.addAllMessages(other.healthChecks_);
}
}
}
if (localityEndpointsBuilder_ == null) {
if (!other.localityEndpoints_.isEmpty()) {
if (localityEndpoints_.isEmpty()) {
localityEndpoints_ = other.localityEndpoints_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureLocalityEndpointsIsMutable();
localityEndpoints_.addAll(other.localityEndpoints_);
}
onChanged();
}
} else {
if (!other.localityEndpoints_.isEmpty()) {
if (localityEndpointsBuilder_.isEmpty()) {
localityEndpointsBuilder_.dispose();
localityEndpointsBuilder_ = null;
localityEndpoints_ = other.localityEndpoints_;
bitField0_ = (bitField0_ & ~0x00000002);
localityEndpointsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLocalityEndpointsFieldBuilder() : null;
} else {
localityEndpointsBuilder_.addAllMessages(other.localityEndpoints_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object clusterName_ = "";
/**
* string cluster_name = 1;
*/
public java.lang.String getClusterName() {
java.lang.Object ref = clusterName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clusterName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string cluster_name = 1;
*/
public com.google.protobuf.ByteString
getClusterNameBytes() {
java.lang.Object ref = clusterName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clusterName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string cluster_name = 1;
*/
public Builder setClusterName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
clusterName_ = value;
onChanged();
return this;
}
/**
* string cluster_name = 1;
*/
public Builder clearClusterName() {
clusterName_ = getDefaultInstance().getClusterName();
onChanged();
return this;
}
/**
* string cluster_name = 1;
*/
public Builder setClusterNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
clusterName_ = value;
onChanged();
return this;
}
private java.util.List healthChecks_ =
java.util.Collections.emptyList();
private void ensureHealthChecksIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
healthChecks_ = new java.util.ArrayList(healthChecks_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.HealthCheck, io.envoyproxy.envoy.config.core.v3.HealthCheck.Builder, io.envoyproxy.envoy.config.core.v3.HealthCheckOrBuilder> healthChecksBuilder_;
/**
* repeated .envoy.config.core.v3.HealthCheck health_checks = 2;
*/
public java.util.List getHealthChecksList() {
if (healthChecksBuilder_ == null) {
return java.util.Collections.unmodifiableList(healthChecks_);
} else {
return healthChecksBuilder_.getMessageList();
}
}
/**
* repeated .envoy.config.core.v3.HealthCheck health_checks = 2;
*/
public int getHealthChecksCount() {
if (healthChecksBuilder_ == null) {
return healthChecks_.size();
} else {
return healthChecksBuilder_.getCount();
}
}
/**
* repeated .envoy.config.core.v3.HealthCheck health_checks = 2;
*/
public io.envoyproxy.envoy.config.core.v3.HealthCheck getHealthChecks(int index) {
if (healthChecksBuilder_ == null) {
return healthChecks_.get(index);
} else {
return healthChecksBuilder_.getMessage(index);
}
}
/**
* repeated .envoy.config.core.v3.HealthCheck health_checks = 2;
*/
public Builder setHealthChecks(
int index, io.envoyproxy.envoy.config.core.v3.HealthCheck value) {
if (healthChecksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHealthChecksIsMutable();
healthChecks_.set(index, value);
onChanged();
} else {
healthChecksBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .envoy.config.core.v3.HealthCheck health_checks = 2;
*/
public Builder setHealthChecks(
int index, io.envoyproxy.envoy.config.core.v3.HealthCheck.Builder builderForValue) {
if (healthChecksBuilder_ == null) {
ensureHealthChecksIsMutable();
healthChecks_.set(index, builderForValue.build());
onChanged();
} else {
healthChecksBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .envoy.config.core.v3.HealthCheck health_checks = 2;
*/
public Builder addHealthChecks(io.envoyproxy.envoy.config.core.v3.HealthCheck value) {
if (healthChecksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHealthChecksIsMutable();
healthChecks_.add(value);
onChanged();
} else {
healthChecksBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .envoy.config.core.v3.HealthCheck health_checks = 2;
*/
public Builder addHealthChecks(
int index, io.envoyproxy.envoy.config.core.v3.HealthCheck value) {
if (healthChecksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHealthChecksIsMutable();
healthChecks_.add(index, value);
onChanged();
} else {
healthChecksBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .envoy.config.core.v3.HealthCheck health_checks = 2;
*/
public Builder addHealthChecks(
io.envoyproxy.envoy.config.core.v3.HealthCheck.Builder builderForValue) {
if (healthChecksBuilder_ == null) {
ensureHealthChecksIsMutable();
healthChecks_.add(builderForValue.build());
onChanged();
} else {
healthChecksBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .envoy.config.core.v3.HealthCheck health_checks = 2;
*/
public Builder addHealthChecks(
int index, io.envoyproxy.envoy.config.core.v3.HealthCheck.Builder builderForValue) {
if (healthChecksBuilder_ == null) {
ensureHealthChecksIsMutable();
healthChecks_.add(index, builderForValue.build());
onChanged();
} else {
healthChecksBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .envoy.config.core.v3.HealthCheck health_checks = 2;
*/
public Builder addAllHealthChecks(
java.lang.Iterable extends io.envoyproxy.envoy.config.core.v3.HealthCheck> values) {
if (healthChecksBuilder_ == null) {
ensureHealthChecksIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, healthChecks_);
onChanged();
} else {
healthChecksBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .envoy.config.core.v3.HealthCheck health_checks = 2;
*/
public Builder clearHealthChecks() {
if (healthChecksBuilder_ == null) {
healthChecks_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
healthChecksBuilder_.clear();
}
return this;
}
/**
* repeated .envoy.config.core.v3.HealthCheck health_checks = 2;
*/
public Builder removeHealthChecks(int index) {
if (healthChecksBuilder_ == null) {
ensureHealthChecksIsMutable();
healthChecks_.remove(index);
onChanged();
} else {
healthChecksBuilder_.remove(index);
}
return this;
}
/**
* repeated .envoy.config.core.v3.HealthCheck health_checks = 2;
*/
public io.envoyproxy.envoy.config.core.v3.HealthCheck.Builder getHealthChecksBuilder(
int index) {
return getHealthChecksFieldBuilder().getBuilder(index);
}
/**
* repeated .envoy.config.core.v3.HealthCheck health_checks = 2;
*/
public io.envoyproxy.envoy.config.core.v3.HealthCheckOrBuilder getHealthChecksOrBuilder(
int index) {
if (healthChecksBuilder_ == null) {
return healthChecks_.get(index); } else {
return healthChecksBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .envoy.config.core.v3.HealthCheck health_checks = 2;
*/
public java.util.List extends io.envoyproxy.envoy.config.core.v3.HealthCheckOrBuilder>
getHealthChecksOrBuilderList() {
if (healthChecksBuilder_ != null) {
return healthChecksBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(healthChecks_);
}
}
/**
* repeated .envoy.config.core.v3.HealthCheck health_checks = 2;
*/
public io.envoyproxy.envoy.config.core.v3.HealthCheck.Builder addHealthChecksBuilder() {
return getHealthChecksFieldBuilder().addBuilder(
io.envoyproxy.envoy.config.core.v3.HealthCheck.getDefaultInstance());
}
/**
* repeated .envoy.config.core.v3.HealthCheck health_checks = 2;
*/
public io.envoyproxy.envoy.config.core.v3.HealthCheck.Builder addHealthChecksBuilder(
int index) {
return getHealthChecksFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.config.core.v3.HealthCheck.getDefaultInstance());
}
/**
* repeated .envoy.config.core.v3.HealthCheck health_checks = 2;
*/
public java.util.List
getHealthChecksBuilderList() {
return getHealthChecksFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.HealthCheck, io.envoyproxy.envoy.config.core.v3.HealthCheck.Builder, io.envoyproxy.envoy.config.core.v3.HealthCheckOrBuilder>
getHealthChecksFieldBuilder() {
if (healthChecksBuilder_ == null) {
healthChecksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.HealthCheck, io.envoyproxy.envoy.config.core.v3.HealthCheck.Builder, io.envoyproxy.envoy.config.core.v3.HealthCheckOrBuilder>(
healthChecks_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
healthChecks_ = null;
}
return healthChecksBuilder_;
}
private java.util.List localityEndpoints_ =
java.util.Collections.emptyList();
private void ensureLocalityEndpointsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
localityEndpoints_ = new java.util.ArrayList(localityEndpoints_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.service.health.v3.LocalityEndpoints, io.envoyproxy.envoy.service.health.v3.LocalityEndpoints.Builder, io.envoyproxy.envoy.service.health.v3.LocalityEndpointsOrBuilder> localityEndpointsBuilder_;
/**
* repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3;
*/
public java.util.List getLocalityEndpointsList() {
if (localityEndpointsBuilder_ == null) {
return java.util.Collections.unmodifiableList(localityEndpoints_);
} else {
return localityEndpointsBuilder_.getMessageList();
}
}
/**
* repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3;
*/
public int getLocalityEndpointsCount() {
if (localityEndpointsBuilder_ == null) {
return localityEndpoints_.size();
} else {
return localityEndpointsBuilder_.getCount();
}
}
/**
* repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3;
*/
public io.envoyproxy.envoy.service.health.v3.LocalityEndpoints getLocalityEndpoints(int index) {
if (localityEndpointsBuilder_ == null) {
return localityEndpoints_.get(index);
} else {
return localityEndpointsBuilder_.getMessage(index);
}
}
/**
* repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3;
*/
public Builder setLocalityEndpoints(
int index, io.envoyproxy.envoy.service.health.v3.LocalityEndpoints value) {
if (localityEndpointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLocalityEndpointsIsMutable();
localityEndpoints_.set(index, value);
onChanged();
} else {
localityEndpointsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3;
*/
public Builder setLocalityEndpoints(
int index, io.envoyproxy.envoy.service.health.v3.LocalityEndpoints.Builder builderForValue) {
if (localityEndpointsBuilder_ == null) {
ensureLocalityEndpointsIsMutable();
localityEndpoints_.set(index, builderForValue.build());
onChanged();
} else {
localityEndpointsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3;
*/
public Builder addLocalityEndpoints(io.envoyproxy.envoy.service.health.v3.LocalityEndpoints value) {
if (localityEndpointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLocalityEndpointsIsMutable();
localityEndpoints_.add(value);
onChanged();
} else {
localityEndpointsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3;
*/
public Builder addLocalityEndpoints(
int index, io.envoyproxy.envoy.service.health.v3.LocalityEndpoints value) {
if (localityEndpointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLocalityEndpointsIsMutable();
localityEndpoints_.add(index, value);
onChanged();
} else {
localityEndpointsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3;
*/
public Builder addLocalityEndpoints(
io.envoyproxy.envoy.service.health.v3.LocalityEndpoints.Builder builderForValue) {
if (localityEndpointsBuilder_ == null) {
ensureLocalityEndpointsIsMutable();
localityEndpoints_.add(builderForValue.build());
onChanged();
} else {
localityEndpointsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3;
*/
public Builder addLocalityEndpoints(
int index, io.envoyproxy.envoy.service.health.v3.LocalityEndpoints.Builder builderForValue) {
if (localityEndpointsBuilder_ == null) {
ensureLocalityEndpointsIsMutable();
localityEndpoints_.add(index, builderForValue.build());
onChanged();
} else {
localityEndpointsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3;
*/
public Builder addAllLocalityEndpoints(
java.lang.Iterable extends io.envoyproxy.envoy.service.health.v3.LocalityEndpoints> values) {
if (localityEndpointsBuilder_ == null) {
ensureLocalityEndpointsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, localityEndpoints_);
onChanged();
} else {
localityEndpointsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3;
*/
public Builder clearLocalityEndpoints() {
if (localityEndpointsBuilder_ == null) {
localityEndpoints_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
localityEndpointsBuilder_.clear();
}
return this;
}
/**
* repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3;
*/
public Builder removeLocalityEndpoints(int index) {
if (localityEndpointsBuilder_ == null) {
ensureLocalityEndpointsIsMutable();
localityEndpoints_.remove(index);
onChanged();
} else {
localityEndpointsBuilder_.remove(index);
}
return this;
}
/**
* repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3;
*/
public io.envoyproxy.envoy.service.health.v3.LocalityEndpoints.Builder getLocalityEndpointsBuilder(
int index) {
return getLocalityEndpointsFieldBuilder().getBuilder(index);
}
/**
* repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3;
*/
public io.envoyproxy.envoy.service.health.v3.LocalityEndpointsOrBuilder getLocalityEndpointsOrBuilder(
int index) {
if (localityEndpointsBuilder_ == null) {
return localityEndpoints_.get(index); } else {
return localityEndpointsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3;
*/
public java.util.List extends io.envoyproxy.envoy.service.health.v3.LocalityEndpointsOrBuilder>
getLocalityEndpointsOrBuilderList() {
if (localityEndpointsBuilder_ != null) {
return localityEndpointsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(localityEndpoints_);
}
}
/**
* repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3;
*/
public io.envoyproxy.envoy.service.health.v3.LocalityEndpoints.Builder addLocalityEndpointsBuilder() {
return getLocalityEndpointsFieldBuilder().addBuilder(
io.envoyproxy.envoy.service.health.v3.LocalityEndpoints.getDefaultInstance());
}
/**
* repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3;
*/
public io.envoyproxy.envoy.service.health.v3.LocalityEndpoints.Builder addLocalityEndpointsBuilder(
int index) {
return getLocalityEndpointsFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.service.health.v3.LocalityEndpoints.getDefaultInstance());
}
/**
* repeated .envoy.service.health.v3.LocalityEndpoints locality_endpoints = 3;
*/
public java.util.List
getLocalityEndpointsBuilderList() {
return getLocalityEndpointsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.service.health.v3.LocalityEndpoints, io.envoyproxy.envoy.service.health.v3.LocalityEndpoints.Builder, io.envoyproxy.envoy.service.health.v3.LocalityEndpointsOrBuilder>
getLocalityEndpointsFieldBuilder() {
if (localityEndpointsBuilder_ == null) {
localityEndpointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.service.health.v3.LocalityEndpoints, io.envoyproxy.envoy.service.health.v3.LocalityEndpoints.Builder, io.envoyproxy.envoy.service.health.v3.LocalityEndpointsOrBuilder>(
localityEndpoints_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
localityEndpoints_ = null;
}
return localityEndpointsBuilder_;
}
@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.service.health.v3.ClusterHealthCheck)
}
// @@protoc_insertion_point(class_scope:envoy.service.health.v3.ClusterHealthCheck)
private static final io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck();
}
public static io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ClusterHealthCheck parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ClusterHealthCheck(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.envoyproxy.envoy.service.health.v3.ClusterHealthCheck getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy