Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/service/discovery/v2/hds.proto
package io.envoyproxy.envoy.service.discovery.v2;
/**
*
* 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.discovery.v2.ClusterHealthCheck}
*/
public final class ClusterHealthCheck extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.service.discovery.v2.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.api.v2.core.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.discovery.v2.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.discovery.v2.HdsProto.internal_static_envoy_service_discovery_v2_ClusterHealthCheck_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.discovery.v2.HdsProto.internal_static_envoy_service_discovery_v2_ClusterHealthCheck_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.discovery.v2.ClusterHealthCheck.class, io.envoyproxy.envoy.service.discovery.v2.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.api.v2.core.HealthCheck health_checks = 2;
*/
public java.util.List getHealthChecksList() {
return healthChecks_;
}
/**
* repeated .envoy.api.v2.core.HealthCheck health_checks = 2;
*/
public java.util.List extends io.envoyproxy.envoy.api.v2.core.HealthCheckOrBuilder>
getHealthChecksOrBuilderList() {
return healthChecks_;
}
/**
* repeated .envoy.api.v2.core.HealthCheck health_checks = 2;
*/
public int getHealthChecksCount() {
return healthChecks_.size();
}
/**
* repeated .envoy.api.v2.core.HealthCheck health_checks = 2;
*/
public io.envoyproxy.envoy.api.v2.core.HealthCheck getHealthChecks(int index) {
return healthChecks_.get(index);
}
/**
* repeated .envoy.api.v2.core.HealthCheck health_checks = 2;
*/
public io.envoyproxy.envoy.api.v2.core.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.discovery.v2.LocalityEndpoints locality_endpoints = 3;
*/
public java.util.List getLocalityEndpointsList() {
return localityEndpoints_;
}
/**
* repeated .envoy.service.discovery.v2.LocalityEndpoints locality_endpoints = 3;
*/
public java.util.List extends io.envoyproxy.envoy.service.discovery.v2.LocalityEndpointsOrBuilder>
getLocalityEndpointsOrBuilderList() {
return localityEndpoints_;
}
/**
* repeated .envoy.service.discovery.v2.LocalityEndpoints locality_endpoints = 3;
*/
public int getLocalityEndpointsCount() {
return localityEndpoints_.size();
}
/**
* repeated .envoy.service.discovery.v2.LocalityEndpoints locality_endpoints = 3;
*/
public io.envoyproxy.envoy.service.discovery.v2.LocalityEndpoints getLocalityEndpoints(int index) {
return localityEndpoints_.get(index);
}
/**
* repeated .envoy.service.discovery.v2.LocalityEndpoints locality_endpoints = 3;
*/
public io.envoyproxy.envoy.service.discovery.v2.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.discovery.v2.ClusterHealthCheck)) {
return super.equals(obj);
}
io.envoyproxy.envoy.service.discovery.v2.ClusterHealthCheck other = (io.envoyproxy.envoy.service.discovery.v2.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.discovery.v2.ClusterHealthCheck parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.discovery.v2.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.discovery.v2.ClusterHealthCheck parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.discovery.v2.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.discovery.v2.ClusterHealthCheck parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.discovery.v2.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.discovery.v2.ClusterHealthCheck parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.discovery.v2.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.discovery.v2.ClusterHealthCheck parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.discovery.v2.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.discovery.v2.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.discovery.v2.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.discovery.v2.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.
*