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

io.envoyproxy.envoy.service.health.v3.ClusterEndpointsHealth 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/service/health/v3/hds.proto

// Protobuf Java Version: 3.25.1
package io.envoyproxy.envoy.service.health.v3;

/**
 * 
 * The health status of endpoints in a cluster. The cluster name and locality
 * should match the corresponding fields in ClusterHealthCheck message.
 * 
* * Protobuf type {@code envoy.service.health.v3.ClusterEndpointsHealth} */ public final class ClusterEndpointsHealth extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.service.health.v3.ClusterEndpointsHealth) ClusterEndpointsHealthOrBuilder { private static final long serialVersionUID = 0L; // Use ClusterEndpointsHealth.newBuilder() to construct. private ClusterEndpointsHealth(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ClusterEndpointsHealth() { clusterName_ = ""; localityEndpointsHealth_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ClusterEndpointsHealth(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.health.v3.HdsProto.internal_static_envoy_service_health_v3_ClusterEndpointsHealth_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_ClusterEndpointsHealth_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.health.v3.ClusterEndpointsHealth.class, io.envoyproxy.envoy.service.health.v3.ClusterEndpointsHealth.Builder.class); } public static final int CLUSTER_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object clusterName_ = ""; /** * string cluster_name = 1; * @return The clusterName. */ @java.lang.Override 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; * @return The bytes for clusterName. */ @java.lang.Override 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 LOCALITY_ENDPOINTS_HEALTH_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List localityEndpointsHealth_; /** * repeated .envoy.service.health.v3.LocalityEndpointsHealth locality_endpoints_health = 2; */ @java.lang.Override public java.util.List getLocalityEndpointsHealthList() { return localityEndpointsHealth_; } /** * repeated .envoy.service.health.v3.LocalityEndpointsHealth locality_endpoints_health = 2; */ @java.lang.Override public java.util.List getLocalityEndpointsHealthOrBuilderList() { return localityEndpointsHealth_; } /** * repeated .envoy.service.health.v3.LocalityEndpointsHealth locality_endpoints_health = 2; */ @java.lang.Override public int getLocalityEndpointsHealthCount() { return localityEndpointsHealth_.size(); } /** * repeated .envoy.service.health.v3.LocalityEndpointsHealth locality_endpoints_health = 2; */ @java.lang.Override public io.envoyproxy.envoy.service.health.v3.LocalityEndpointsHealth getLocalityEndpointsHealth(int index) { return localityEndpointsHealth_.get(index); } /** * repeated .envoy.service.health.v3.LocalityEndpointsHealth locality_endpoints_health = 2; */ @java.lang.Override public io.envoyproxy.envoy.service.health.v3.LocalityEndpointsHealthOrBuilder getLocalityEndpointsHealthOrBuilder( int index) { return localityEndpointsHealth_.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterName_); } for (int i = 0; i < localityEndpointsHealth_.size(); i++) { output.writeMessage(2, localityEndpointsHealth_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterName_); } for (int i = 0; i < localityEndpointsHealth_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, localityEndpointsHealth_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.service.health.v3.ClusterEndpointsHealth)) { return super.equals(obj); } io.envoyproxy.envoy.service.health.v3.ClusterEndpointsHealth other = (io.envoyproxy.envoy.service.health.v3.ClusterEndpointsHealth) obj; if (!getClusterName() .equals(other.getClusterName())) return false; if (!getLocalityEndpointsHealthList() .equals(other.getLocalityEndpointsHealthList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CLUSTER_NAME_FIELD_NUMBER; hash = (53 * hash) + getClusterName().hashCode(); if (getLocalityEndpointsHealthCount() > 0) { hash = (37 * hash) + LOCALITY_ENDPOINTS_HEALTH_FIELD_NUMBER; hash = (53 * hash) + getLocalityEndpointsHealthList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.service.health.v3.ClusterEndpointsHealth parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.health.v3.ClusterEndpointsHealth 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.ClusterEndpointsHealth parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.health.v3.ClusterEndpointsHealth 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.ClusterEndpointsHealth parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.health.v3.ClusterEndpointsHealth 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.ClusterEndpointsHealth 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.ClusterEndpointsHealth 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.ClusterEndpointsHealth 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.ClusterEndpointsHealth 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.ClusterEndpointsHealth 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.ClusterEndpointsHealth 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.ClusterEndpointsHealth 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 health status of endpoints in a cluster. The cluster name and locality
   * should match the corresponding fields in ClusterHealthCheck message.
   * 
* * Protobuf type {@code envoy.service.health.v3.ClusterEndpointsHealth} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.service.health.v3.ClusterEndpointsHealth) io.envoyproxy.envoy.service.health.v3.ClusterEndpointsHealthOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.health.v3.HdsProto.internal_static_envoy_service_health_v3_ClusterEndpointsHealth_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_ClusterEndpointsHealth_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.health.v3.ClusterEndpointsHealth.class, io.envoyproxy.envoy.service.health.v3.ClusterEndpointsHealth.Builder.class); } // Construct using io.envoyproxy.envoy.service.health.v3.ClusterEndpointsHealth.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; clusterName_ = ""; if (localityEndpointsHealthBuilder_ == null) { localityEndpointsHealth_ = java.util.Collections.emptyList(); } else { localityEndpointsHealth_ = null; localityEndpointsHealthBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); 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_ClusterEndpointsHealth_descriptor; } @java.lang.Override public io.envoyproxy.envoy.service.health.v3.ClusterEndpointsHealth getDefaultInstanceForType() { return io.envoyproxy.envoy.service.health.v3.ClusterEndpointsHealth.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.service.health.v3.ClusterEndpointsHealth build() { io.envoyproxy.envoy.service.health.v3.ClusterEndpointsHealth result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.service.health.v3.ClusterEndpointsHealth buildPartial() { io.envoyproxy.envoy.service.health.v3.ClusterEndpointsHealth result = new io.envoyproxy.envoy.service.health.v3.ClusterEndpointsHealth(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.envoyproxy.envoy.service.health.v3.ClusterEndpointsHealth result) { if (localityEndpointsHealthBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { localityEndpointsHealth_ = java.util.Collections.unmodifiableList(localityEndpointsHealth_); bitField0_ = (bitField0_ & ~0x00000002); } result.localityEndpointsHealth_ = localityEndpointsHealth_; } else { result.localityEndpointsHealth_ = localityEndpointsHealthBuilder_.build(); } } private void buildPartial0(io.envoyproxy.envoy.service.health.v3.ClusterEndpointsHealth result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.clusterName_ = clusterName_; } } @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.ClusterEndpointsHealth) { return mergeFrom((io.envoyproxy.envoy.service.health.v3.ClusterEndpointsHealth)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.service.health.v3.ClusterEndpointsHealth other) { if (other == io.envoyproxy.envoy.service.health.v3.ClusterEndpointsHealth.getDefaultInstance()) return this; if (!other.getClusterName().isEmpty()) { clusterName_ = other.clusterName_; bitField0_ |= 0x00000001; onChanged(); } if (localityEndpointsHealthBuilder_ == null) { if (!other.localityEndpointsHealth_.isEmpty()) { if (localityEndpointsHealth_.isEmpty()) { localityEndpointsHealth_ = other.localityEndpointsHealth_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureLocalityEndpointsHealthIsMutable(); localityEndpointsHealth_.addAll(other.localityEndpointsHealth_); } onChanged(); } } else { if (!other.localityEndpointsHealth_.isEmpty()) { if (localityEndpointsHealthBuilder_.isEmpty()) { localityEndpointsHealthBuilder_.dispose(); localityEndpointsHealthBuilder_ = null; localityEndpointsHealth_ = other.localityEndpointsHealth_; bitField0_ = (bitField0_ & ~0x00000002); localityEndpointsHealthBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLocalityEndpointsHealthFieldBuilder() : null; } else { localityEndpointsHealthBuilder_.addAllMessages(other.localityEndpointsHealth_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { clusterName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { io.envoyproxy.envoy.service.health.v3.LocalityEndpointsHealth m = input.readMessage( io.envoyproxy.envoy.service.health.v3.LocalityEndpointsHealth.parser(), extensionRegistry); if (localityEndpointsHealthBuilder_ == null) { ensureLocalityEndpointsHealthIsMutable(); localityEndpointsHealth_.add(m); } else { localityEndpointsHealthBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object clusterName_ = ""; /** * string cluster_name = 1; * @return The clusterName. */ 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; * @return The bytes for clusterName. */ 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; * @param value The clusterName to set. * @return This builder for chaining. */ public Builder setClusterName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } clusterName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string cluster_name = 1; * @return This builder for chaining. */ public Builder clearClusterName() { clusterName_ = getDefaultInstance().getClusterName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string cluster_name = 1; * @param value The bytes for clusterName to set. * @return This builder for chaining. */ public Builder setClusterNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clusterName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List localityEndpointsHealth_ = java.util.Collections.emptyList(); private void ensureLocalityEndpointsHealthIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { localityEndpointsHealth_ = new java.util.ArrayList(localityEndpointsHealth_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.service.health.v3.LocalityEndpointsHealth, io.envoyproxy.envoy.service.health.v3.LocalityEndpointsHealth.Builder, io.envoyproxy.envoy.service.health.v3.LocalityEndpointsHealthOrBuilder> localityEndpointsHealthBuilder_; /** * repeated .envoy.service.health.v3.LocalityEndpointsHealth locality_endpoints_health = 2; */ public java.util.List getLocalityEndpointsHealthList() { if (localityEndpointsHealthBuilder_ == null) { return java.util.Collections.unmodifiableList(localityEndpointsHealth_); } else { return localityEndpointsHealthBuilder_.getMessageList(); } } /** * repeated .envoy.service.health.v3.LocalityEndpointsHealth locality_endpoints_health = 2; */ public int getLocalityEndpointsHealthCount() { if (localityEndpointsHealthBuilder_ == null) { return localityEndpointsHealth_.size(); } else { return localityEndpointsHealthBuilder_.getCount(); } } /** * repeated .envoy.service.health.v3.LocalityEndpointsHealth locality_endpoints_health = 2; */ public io.envoyproxy.envoy.service.health.v3.LocalityEndpointsHealth getLocalityEndpointsHealth(int index) { if (localityEndpointsHealthBuilder_ == null) { return localityEndpointsHealth_.get(index); } else { return localityEndpointsHealthBuilder_.getMessage(index); } } /** * repeated .envoy.service.health.v3.LocalityEndpointsHealth locality_endpoints_health = 2; */ public Builder setLocalityEndpointsHealth( int index, io.envoyproxy.envoy.service.health.v3.LocalityEndpointsHealth value) { if (localityEndpointsHealthBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocalityEndpointsHealthIsMutable(); localityEndpointsHealth_.set(index, value); onChanged(); } else { localityEndpointsHealthBuilder_.setMessage(index, value); } return this; } /** * repeated .envoy.service.health.v3.LocalityEndpointsHealth locality_endpoints_health = 2; */ public Builder setLocalityEndpointsHealth( int index, io.envoyproxy.envoy.service.health.v3.LocalityEndpointsHealth.Builder builderForValue) { if (localityEndpointsHealthBuilder_ == null) { ensureLocalityEndpointsHealthIsMutable(); localityEndpointsHealth_.set(index, builderForValue.build()); onChanged(); } else { localityEndpointsHealthBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .envoy.service.health.v3.LocalityEndpointsHealth locality_endpoints_health = 2; */ public Builder addLocalityEndpointsHealth(io.envoyproxy.envoy.service.health.v3.LocalityEndpointsHealth value) { if (localityEndpointsHealthBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocalityEndpointsHealthIsMutable(); localityEndpointsHealth_.add(value); onChanged(); } else { localityEndpointsHealthBuilder_.addMessage(value); } return this; } /** * repeated .envoy.service.health.v3.LocalityEndpointsHealth locality_endpoints_health = 2; */ public Builder addLocalityEndpointsHealth( int index, io.envoyproxy.envoy.service.health.v3.LocalityEndpointsHealth value) { if (localityEndpointsHealthBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocalityEndpointsHealthIsMutable(); localityEndpointsHealth_.add(index, value); onChanged(); } else { localityEndpointsHealthBuilder_.addMessage(index, value); } return this; } /** * repeated .envoy.service.health.v3.LocalityEndpointsHealth locality_endpoints_health = 2; */ public Builder addLocalityEndpointsHealth( io.envoyproxy.envoy.service.health.v3.LocalityEndpointsHealth.Builder builderForValue) { if (localityEndpointsHealthBuilder_ == null) { ensureLocalityEndpointsHealthIsMutable(); localityEndpointsHealth_.add(builderForValue.build()); onChanged(); } else { localityEndpointsHealthBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .envoy.service.health.v3.LocalityEndpointsHealth locality_endpoints_health = 2; */ public Builder addLocalityEndpointsHealth( int index, io.envoyproxy.envoy.service.health.v3.LocalityEndpointsHealth.Builder builderForValue) { if (localityEndpointsHealthBuilder_ == null) { ensureLocalityEndpointsHealthIsMutable(); localityEndpointsHealth_.add(index, builderForValue.build()); onChanged(); } else { localityEndpointsHealthBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .envoy.service.health.v3.LocalityEndpointsHealth locality_endpoints_health = 2; */ public Builder addAllLocalityEndpointsHealth( java.lang.Iterable values) { if (localityEndpointsHealthBuilder_ == null) { ensureLocalityEndpointsHealthIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, localityEndpointsHealth_); onChanged(); } else { localityEndpointsHealthBuilder_.addAllMessages(values); } return this; } /** * repeated .envoy.service.health.v3.LocalityEndpointsHealth locality_endpoints_health = 2; */ public Builder clearLocalityEndpointsHealth() { if (localityEndpointsHealthBuilder_ == null) { localityEndpointsHealth_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { localityEndpointsHealthBuilder_.clear(); } return this; } /** * repeated .envoy.service.health.v3.LocalityEndpointsHealth locality_endpoints_health = 2; */ public Builder removeLocalityEndpointsHealth(int index) { if (localityEndpointsHealthBuilder_ == null) { ensureLocalityEndpointsHealthIsMutable(); localityEndpointsHealth_.remove(index); onChanged(); } else { localityEndpointsHealthBuilder_.remove(index); } return this; } /** * repeated .envoy.service.health.v3.LocalityEndpointsHealth locality_endpoints_health = 2; */ public io.envoyproxy.envoy.service.health.v3.LocalityEndpointsHealth.Builder getLocalityEndpointsHealthBuilder( int index) { return getLocalityEndpointsHealthFieldBuilder().getBuilder(index); } /** * repeated .envoy.service.health.v3.LocalityEndpointsHealth locality_endpoints_health = 2; */ public io.envoyproxy.envoy.service.health.v3.LocalityEndpointsHealthOrBuilder getLocalityEndpointsHealthOrBuilder( int index) { if (localityEndpointsHealthBuilder_ == null) { return localityEndpointsHealth_.get(index); } else { return localityEndpointsHealthBuilder_.getMessageOrBuilder(index); } } /** * repeated .envoy.service.health.v3.LocalityEndpointsHealth locality_endpoints_health = 2; */ public java.util.List getLocalityEndpointsHealthOrBuilderList() { if (localityEndpointsHealthBuilder_ != null) { return localityEndpointsHealthBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(localityEndpointsHealth_); } } /** * repeated .envoy.service.health.v3.LocalityEndpointsHealth locality_endpoints_health = 2; */ public io.envoyproxy.envoy.service.health.v3.LocalityEndpointsHealth.Builder addLocalityEndpointsHealthBuilder() { return getLocalityEndpointsHealthFieldBuilder().addBuilder( io.envoyproxy.envoy.service.health.v3.LocalityEndpointsHealth.getDefaultInstance()); } /** * repeated .envoy.service.health.v3.LocalityEndpointsHealth locality_endpoints_health = 2; */ public io.envoyproxy.envoy.service.health.v3.LocalityEndpointsHealth.Builder addLocalityEndpointsHealthBuilder( int index) { return getLocalityEndpointsHealthFieldBuilder().addBuilder( index, io.envoyproxy.envoy.service.health.v3.LocalityEndpointsHealth.getDefaultInstance()); } /** * repeated .envoy.service.health.v3.LocalityEndpointsHealth locality_endpoints_health = 2; */ public java.util.List getLocalityEndpointsHealthBuilderList() { return getLocalityEndpointsHealthFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.service.health.v3.LocalityEndpointsHealth, io.envoyproxy.envoy.service.health.v3.LocalityEndpointsHealth.Builder, io.envoyproxy.envoy.service.health.v3.LocalityEndpointsHealthOrBuilder> getLocalityEndpointsHealthFieldBuilder() { if (localityEndpointsHealthBuilder_ == null) { localityEndpointsHealthBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.service.health.v3.LocalityEndpointsHealth, io.envoyproxy.envoy.service.health.v3.LocalityEndpointsHealth.Builder, io.envoyproxy.envoy.service.health.v3.LocalityEndpointsHealthOrBuilder>( localityEndpointsHealth_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); localityEndpointsHealth_ = null; } return localityEndpointsHealthBuilder_; } @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.ClusterEndpointsHealth) } // @@protoc_insertion_point(class_scope:envoy.service.health.v3.ClusterEndpointsHealth) private static final io.envoyproxy.envoy.service.health.v3.ClusterEndpointsHealth DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.health.v3.ClusterEndpointsHealth(); } public static io.envoyproxy.envoy.service.health.v3.ClusterEndpointsHealth getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ClusterEndpointsHealth parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.envoyproxy.envoy.service.health.v3.ClusterEndpointsHealth getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy