io.envoyproxy.envoy.config.endpoint.v3.Endpoint Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/config/endpoint/v3/endpoint_components.proto
// Protobuf Java Version: 3.25.5
package io.envoyproxy.envoy.config.endpoint.v3;
/**
*
* Upstream host identifier.
*
*
* Protobuf type {@code envoy.config.endpoint.v3.Endpoint}
*/
public final class Endpoint extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.endpoint.v3.Endpoint)
EndpointOrBuilder {
private static final long serialVersionUID = 0L;
// Use Endpoint.newBuilder() to construct.
private Endpoint(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Endpoint() {
hostname_ = "";
additionalAddresses_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Endpoint();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.endpoint.v3.EndpointComponentsProto.internal_static_envoy_config_endpoint_v3_Endpoint_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.endpoint.v3.EndpointComponentsProto.internal_static_envoy_config_endpoint_v3_Endpoint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.endpoint.v3.Endpoint.class, io.envoyproxy.envoy.config.endpoint.v3.Endpoint.Builder.class);
}
public interface HealthCheckConfigOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.config.endpoint.v3.Endpoint.HealthCheckConfig)
com.google.protobuf.MessageOrBuilder {
/**
*
* Optional alternative health check port value.
*
* By default the health check address port of an upstream host is the same
* as the host's serving address port. This provides an alternative health
* check port. Setting this with a non-zero value allows an upstream host
* to have different health check address port.
*
*
* uint32 port_value = 1 [(.validate.rules) = { ... }
* @return The portValue.
*/
int getPortValue();
/**
*
* By default, the host header for L7 health checks is controlled by cluster level configuration
* (see: :ref:`host <envoy_v3_api_field_config.core.v3.HealthCheck.HttpHealthCheck.host>` and
* :ref:`authority <envoy_v3_api_field_config.core.v3.HealthCheck.GrpcHealthCheck.authority>`). Setting this
* to a non-empty value allows overriding the cluster level configuration for a specific
* endpoint.
*
*
* string hostname = 2;
* @return The hostname.
*/
java.lang.String getHostname();
/**
*
* By default, the host header for L7 health checks is controlled by cluster level configuration
* (see: :ref:`host <envoy_v3_api_field_config.core.v3.HealthCheck.HttpHealthCheck.host>` and
* :ref:`authority <envoy_v3_api_field_config.core.v3.HealthCheck.GrpcHealthCheck.authority>`). Setting this
* to a non-empty value allows overriding the cluster level configuration for a specific
* endpoint.
*
*
* string hostname = 2;
* @return The bytes for hostname.
*/
com.google.protobuf.ByteString
getHostnameBytes();
/**
*
* Optional alternative health check host address.
*
* .. attention::
*
* The form of the health check host address is expected to be a direct IP address.
*
*
* .envoy.config.core.v3.Address address = 3;
* @return Whether the address field is set.
*/
boolean hasAddress();
/**
*
* Optional alternative health check host address.
*
* .. attention::
*
* The form of the health check host address is expected to be a direct IP address.
*
*
* .envoy.config.core.v3.Address address = 3;
* @return The address.
*/
io.envoyproxy.envoy.config.core.v3.Address getAddress();
/**
*
* Optional alternative health check host address.
*
* .. attention::
*
* The form of the health check host address is expected to be a direct IP address.
*
*
* .envoy.config.core.v3.Address address = 3;
*/
io.envoyproxy.envoy.config.core.v3.AddressOrBuilder getAddressOrBuilder();
/**
*
* Optional flag to control if perform active health check for this endpoint.
* Active health check is enabled by default if there is a health checker.
*
*
* bool disable_active_health_check = 4;
* @return The disableActiveHealthCheck.
*/
boolean getDisableActiveHealthCheck();
}
/**
*
* The optional health check configuration.
*
*
* Protobuf type {@code envoy.config.endpoint.v3.Endpoint.HealthCheckConfig}
*/
public static final class HealthCheckConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.endpoint.v3.Endpoint.HealthCheckConfig)
HealthCheckConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use HealthCheckConfig.newBuilder() to construct.
private HealthCheckConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HealthCheckConfig() {
hostname_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HealthCheckConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.endpoint.v3.EndpointComponentsProto.internal_static_envoy_config_endpoint_v3_Endpoint_HealthCheckConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.endpoint.v3.EndpointComponentsProto.internal_static_envoy_config_endpoint_v3_Endpoint_HealthCheckConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig.class, io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig.Builder.class);
}
private int bitField0_;
public static final int PORT_VALUE_FIELD_NUMBER = 1;
private int portValue_ = 0;
/**
*
* Optional alternative health check port value.
*
* By default the health check address port of an upstream host is the same
* as the host's serving address port. This provides an alternative health
* check port. Setting this with a non-zero value allows an upstream host
* to have different health check address port.
*
*
* uint32 port_value = 1 [(.validate.rules) = { ... }
* @return The portValue.
*/
@java.lang.Override
public int getPortValue() {
return portValue_;
}
public static final int HOSTNAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object hostname_ = "";
/**
*
* By default, the host header for L7 health checks is controlled by cluster level configuration
* (see: :ref:`host <envoy_v3_api_field_config.core.v3.HealthCheck.HttpHealthCheck.host>` and
* :ref:`authority <envoy_v3_api_field_config.core.v3.HealthCheck.GrpcHealthCheck.authority>`). Setting this
* to a non-empty value allows overriding the cluster level configuration for a specific
* endpoint.
*
*
* string hostname = 2;
* @return The hostname.
*/
@java.lang.Override
public java.lang.String getHostname() {
java.lang.Object ref = hostname_;
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();
hostname_ = s;
return s;
}
}
/**
*
* By default, the host header for L7 health checks is controlled by cluster level configuration
* (see: :ref:`host <envoy_v3_api_field_config.core.v3.HealthCheck.HttpHealthCheck.host>` and
* :ref:`authority <envoy_v3_api_field_config.core.v3.HealthCheck.GrpcHealthCheck.authority>`). Setting this
* to a non-empty value allows overriding the cluster level configuration for a specific
* endpoint.
*
*
* string hostname = 2;
* @return The bytes for hostname.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHostnameBytes() {
java.lang.Object ref = hostname_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ADDRESS_FIELD_NUMBER = 3;
private io.envoyproxy.envoy.config.core.v3.Address address_;
/**
*
* Optional alternative health check host address.
*
* .. attention::
*
* The form of the health check host address is expected to be a direct IP address.
*
*
* .envoy.config.core.v3.Address address = 3;
* @return Whether the address field is set.
*/
@java.lang.Override
public boolean hasAddress() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Optional alternative health check host address.
*
* .. attention::
*
* The form of the health check host address is expected to be a direct IP address.
*
*
* .envoy.config.core.v3.Address address = 3;
* @return The address.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.Address getAddress() {
return address_ == null ? io.envoyproxy.envoy.config.core.v3.Address.getDefaultInstance() : address_;
}
/**
*
* Optional alternative health check host address.
*
* .. attention::
*
* The form of the health check host address is expected to be a direct IP address.
*
*
* .envoy.config.core.v3.Address address = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.AddressOrBuilder getAddressOrBuilder() {
return address_ == null ? io.envoyproxy.envoy.config.core.v3.Address.getDefaultInstance() : address_;
}
public static final int DISABLE_ACTIVE_HEALTH_CHECK_FIELD_NUMBER = 4;
private boolean disableActiveHealthCheck_ = false;
/**
*
* Optional flag to control if perform active health check for this endpoint.
* Active health check is enabled by default if there is a health checker.
*
*
* bool disable_active_health_check = 4;
* @return The disableActiveHealthCheck.
*/
@java.lang.Override
public boolean getDisableActiveHealthCheck() {
return disableActiveHealthCheck_;
}
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 (portValue_ != 0) {
output.writeUInt32(1, portValue_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, hostname_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getAddress());
}
if (disableActiveHealthCheck_ != false) {
output.writeBool(4, disableActiveHealthCheck_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (portValue_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, portValue_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hostname_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getAddress());
}
if (disableActiveHealthCheck_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, disableActiveHealthCheck_);
}
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.config.endpoint.v3.Endpoint.HealthCheckConfig)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig other = (io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig) obj;
if (getPortValue()
!= other.getPortValue()) return false;
if (!getHostname()
.equals(other.getHostname())) return false;
if (hasAddress() != other.hasAddress()) return false;
if (hasAddress()) {
if (!getAddress()
.equals(other.getAddress())) return false;
}
if (getDisableActiveHealthCheck()
!= other.getDisableActiveHealthCheck()) 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) + PORT_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getPortValue();
hash = (37 * hash) + HOSTNAME_FIELD_NUMBER;
hash = (53 * hash) + getHostname().hashCode();
if (hasAddress()) {
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
}
hash = (37 * hash) + DISABLE_ACTIVE_HEALTH_CHECK_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDisableActiveHealthCheck());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig 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.config.endpoint.v3.Endpoint.HealthCheckConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig 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.config.endpoint.v3.Endpoint.HealthCheckConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig 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.config.endpoint.v3.Endpoint.HealthCheckConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig 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.config.endpoint.v3.Endpoint.HealthCheckConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig 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.config.endpoint.v3.Endpoint.HealthCheckConfig 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 optional health check configuration.
*
*
* Protobuf type {@code envoy.config.endpoint.v3.Endpoint.HealthCheckConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.endpoint.v3.Endpoint.HealthCheckConfig)
io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.endpoint.v3.EndpointComponentsProto.internal_static_envoy_config_endpoint_v3_Endpoint_HealthCheckConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.endpoint.v3.EndpointComponentsProto.internal_static_envoy_config_endpoint_v3_Endpoint_HealthCheckConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig.class, io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAddressFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
portValue_ = 0;
hostname_ = "";
address_ = null;
if (addressBuilder_ != null) {
addressBuilder_.dispose();
addressBuilder_ = null;
}
disableActiveHealthCheck_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.config.endpoint.v3.EndpointComponentsProto.internal_static_envoy_config_endpoint_v3_Endpoint_HealthCheckConfig_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig build() {
io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig buildPartial() {
io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig result = new io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.portValue_ = portValue_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.hostname_ = hostname_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.address_ = addressBuilder_ == null
? address_
: addressBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.disableActiveHealthCheck_ = disableActiveHealthCheck_;
}
result.bitField0_ |= to_bitField0_;
}
@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.config.endpoint.v3.Endpoint.HealthCheckConfig) {
return mergeFrom((io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig other) {
if (other == io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig.getDefaultInstance()) return this;
if (other.getPortValue() != 0) {
setPortValue(other.getPortValue());
}
if (!other.getHostname().isEmpty()) {
hostname_ = other.hostname_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasAddress()) {
mergeAddress(other.getAddress());
}
if (other.getDisableActiveHealthCheck() != false) {
setDisableActiveHealthCheck(other.getDisableActiveHealthCheck());
}
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 8: {
portValue_ = input.readUInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
hostname_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getAddressFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
disableActiveHealthCheck_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 32
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 int portValue_ ;
/**
*
* Optional alternative health check port value.
*
* By default the health check address port of an upstream host is the same
* as the host's serving address port. This provides an alternative health
* check port. Setting this with a non-zero value allows an upstream host
* to have different health check address port.
*
*
* uint32 port_value = 1 [(.validate.rules) = { ... }
* @return The portValue.
*/
@java.lang.Override
public int getPortValue() {
return portValue_;
}
/**
*
* Optional alternative health check port value.
*
* By default the health check address port of an upstream host is the same
* as the host's serving address port. This provides an alternative health
* check port. Setting this with a non-zero value allows an upstream host
* to have different health check address port.
*
*
* uint32 port_value = 1 [(.validate.rules) = { ... }
* @param value The portValue to set.
* @return This builder for chaining.
*/
public Builder setPortValue(int value) {
portValue_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Optional alternative health check port value.
*
* By default the health check address port of an upstream host is the same
* as the host's serving address port. This provides an alternative health
* check port. Setting this with a non-zero value allows an upstream host
* to have different health check address port.
*
*
* uint32 port_value = 1 [(.validate.rules) = { ... }
* @return This builder for chaining.
*/
public Builder clearPortValue() {
bitField0_ = (bitField0_ & ~0x00000001);
portValue_ = 0;
onChanged();
return this;
}
private java.lang.Object hostname_ = "";
/**
*
* By default, the host header for L7 health checks is controlled by cluster level configuration
* (see: :ref:`host <envoy_v3_api_field_config.core.v3.HealthCheck.HttpHealthCheck.host>` and
* :ref:`authority <envoy_v3_api_field_config.core.v3.HealthCheck.GrpcHealthCheck.authority>`). Setting this
* to a non-empty value allows overriding the cluster level configuration for a specific
* endpoint.
*
*
* string hostname = 2;
* @return The hostname.
*/
public java.lang.String getHostname() {
java.lang.Object ref = hostname_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostname_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* By default, the host header for L7 health checks is controlled by cluster level configuration
* (see: :ref:`host <envoy_v3_api_field_config.core.v3.HealthCheck.HttpHealthCheck.host>` and
* :ref:`authority <envoy_v3_api_field_config.core.v3.HealthCheck.GrpcHealthCheck.authority>`). Setting this
* to a non-empty value allows overriding the cluster level configuration for a specific
* endpoint.
*
*
* string hostname = 2;
* @return The bytes for hostname.
*/
public com.google.protobuf.ByteString
getHostnameBytes() {
java.lang.Object ref = hostname_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* By default, the host header for L7 health checks is controlled by cluster level configuration
* (see: :ref:`host <envoy_v3_api_field_config.core.v3.HealthCheck.HttpHealthCheck.host>` and
* :ref:`authority <envoy_v3_api_field_config.core.v3.HealthCheck.GrpcHealthCheck.authority>`). Setting this
* to a non-empty value allows overriding the cluster level configuration for a specific
* endpoint.
*
*
* string hostname = 2;
* @param value The hostname to set.
* @return This builder for chaining.
*/
public Builder setHostname(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
hostname_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* By default, the host header for L7 health checks is controlled by cluster level configuration
* (see: :ref:`host <envoy_v3_api_field_config.core.v3.HealthCheck.HttpHealthCheck.host>` and
* :ref:`authority <envoy_v3_api_field_config.core.v3.HealthCheck.GrpcHealthCheck.authority>`). Setting this
* to a non-empty value allows overriding the cluster level configuration for a specific
* endpoint.
*
*
* string hostname = 2;
* @return This builder for chaining.
*/
public Builder clearHostname() {
hostname_ = getDefaultInstance().getHostname();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* By default, the host header for L7 health checks is controlled by cluster level configuration
* (see: :ref:`host <envoy_v3_api_field_config.core.v3.HealthCheck.HttpHealthCheck.host>` and
* :ref:`authority <envoy_v3_api_field_config.core.v3.HealthCheck.GrpcHealthCheck.authority>`). Setting this
* to a non-empty value allows overriding the cluster level configuration for a specific
* endpoint.
*
*
* string hostname = 2;
* @param value The bytes for hostname to set.
* @return This builder for chaining.
*/
public Builder setHostnameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
hostname_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private io.envoyproxy.envoy.config.core.v3.Address address_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.Address, io.envoyproxy.envoy.config.core.v3.Address.Builder, io.envoyproxy.envoy.config.core.v3.AddressOrBuilder> addressBuilder_;
/**
*
* Optional alternative health check host address.
*
* .. attention::
*
* The form of the health check host address is expected to be a direct IP address.
*
*
* .envoy.config.core.v3.Address address = 3;
* @return Whether the address field is set.
*/
public boolean hasAddress() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Optional alternative health check host address.
*
* .. attention::
*
* The form of the health check host address is expected to be a direct IP address.
*
*
* .envoy.config.core.v3.Address address = 3;
* @return The address.
*/
public io.envoyproxy.envoy.config.core.v3.Address getAddress() {
if (addressBuilder_ == null) {
return address_ == null ? io.envoyproxy.envoy.config.core.v3.Address.getDefaultInstance() : address_;
} else {
return addressBuilder_.getMessage();
}
}
/**
*
* Optional alternative health check host address.
*
* .. attention::
*
* The form of the health check host address is expected to be a direct IP address.
*
*
* .envoy.config.core.v3.Address address = 3;
*/
public Builder setAddress(io.envoyproxy.envoy.config.core.v3.Address value) {
if (addressBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
} else {
addressBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Optional alternative health check host address.
*
* .. attention::
*
* The form of the health check host address is expected to be a direct IP address.
*
*
* .envoy.config.core.v3.Address address = 3;
*/
public Builder setAddress(
io.envoyproxy.envoy.config.core.v3.Address.Builder builderForValue) {
if (addressBuilder_ == null) {
address_ = builderForValue.build();
} else {
addressBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Optional alternative health check host address.
*
* .. attention::
*
* The form of the health check host address is expected to be a direct IP address.
*
*
* .envoy.config.core.v3.Address address = 3;
*/
public Builder mergeAddress(io.envoyproxy.envoy.config.core.v3.Address value) {
if (addressBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
address_ != null &&
address_ != io.envoyproxy.envoy.config.core.v3.Address.getDefaultInstance()) {
getAddressBuilder().mergeFrom(value);
} else {
address_ = value;
}
} else {
addressBuilder_.mergeFrom(value);
}
if (address_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
* Optional alternative health check host address.
*
* .. attention::
*
* The form of the health check host address is expected to be a direct IP address.
*
*
* .envoy.config.core.v3.Address address = 3;
*/
public Builder clearAddress() {
bitField0_ = (bitField0_ & ~0x00000004);
address_ = null;
if (addressBuilder_ != null) {
addressBuilder_.dispose();
addressBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Optional alternative health check host address.
*
* .. attention::
*
* The form of the health check host address is expected to be a direct IP address.
*
*
* .envoy.config.core.v3.Address address = 3;
*/
public io.envoyproxy.envoy.config.core.v3.Address.Builder getAddressBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getAddressFieldBuilder().getBuilder();
}
/**
*
* Optional alternative health check host address.
*
* .. attention::
*
* The form of the health check host address is expected to be a direct IP address.
*
*
* .envoy.config.core.v3.Address address = 3;
*/
public io.envoyproxy.envoy.config.core.v3.AddressOrBuilder getAddressOrBuilder() {
if (addressBuilder_ != null) {
return addressBuilder_.getMessageOrBuilder();
} else {
return address_ == null ?
io.envoyproxy.envoy.config.core.v3.Address.getDefaultInstance() : address_;
}
}
/**
*
* Optional alternative health check host address.
*
* .. attention::
*
* The form of the health check host address is expected to be a direct IP address.
*
*
* .envoy.config.core.v3.Address address = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.Address, io.envoyproxy.envoy.config.core.v3.Address.Builder, io.envoyproxy.envoy.config.core.v3.AddressOrBuilder>
getAddressFieldBuilder() {
if (addressBuilder_ == null) {
addressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.Address, io.envoyproxy.envoy.config.core.v3.Address.Builder, io.envoyproxy.envoy.config.core.v3.AddressOrBuilder>(
getAddress(),
getParentForChildren(),
isClean());
address_ = null;
}
return addressBuilder_;
}
private boolean disableActiveHealthCheck_ ;
/**
*
* Optional flag to control if perform active health check for this endpoint.
* Active health check is enabled by default if there is a health checker.
*
*
* bool disable_active_health_check = 4;
* @return The disableActiveHealthCheck.
*/
@java.lang.Override
public boolean getDisableActiveHealthCheck() {
return disableActiveHealthCheck_;
}
/**
*
* Optional flag to control if perform active health check for this endpoint.
* Active health check is enabled by default if there is a health checker.
*
*
* bool disable_active_health_check = 4;
* @param value The disableActiveHealthCheck to set.
* @return This builder for chaining.
*/
public Builder setDisableActiveHealthCheck(boolean value) {
disableActiveHealthCheck_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Optional flag to control if perform active health check for this endpoint.
* Active health check is enabled by default if there is a health checker.
*
*
* bool disable_active_health_check = 4;
* @return This builder for chaining.
*/
public Builder clearDisableActiveHealthCheck() {
bitField0_ = (bitField0_ & ~0x00000008);
disableActiveHealthCheck_ = false;
onChanged();
return this;
}
@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.config.endpoint.v3.Endpoint.HealthCheckConfig)
}
// @@protoc_insertion_point(class_scope:envoy.config.endpoint.v3.Endpoint.HealthCheckConfig)
private static final io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig();
}
public static io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public HealthCheckConfig 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.config.endpoint.v3.Endpoint.HealthCheckConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AdditionalAddressOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.config.endpoint.v3.Endpoint.AdditionalAddress)
com.google.protobuf.MessageOrBuilder {
/**
*
* Additional address that is associated with the endpoint.
*
*
* .envoy.config.core.v3.Address address = 1;
* @return Whether the address field is set.
*/
boolean hasAddress();
/**
*
* Additional address that is associated with the endpoint.
*
*
* .envoy.config.core.v3.Address address = 1;
* @return The address.
*/
io.envoyproxy.envoy.config.core.v3.Address getAddress();
/**
*
* Additional address that is associated with the endpoint.
*
*
* .envoy.config.core.v3.Address address = 1;
*/
io.envoyproxy.envoy.config.core.v3.AddressOrBuilder getAddressOrBuilder();
}
/**
* Protobuf type {@code envoy.config.endpoint.v3.Endpoint.AdditionalAddress}
*/
public static final class AdditionalAddress extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.endpoint.v3.Endpoint.AdditionalAddress)
AdditionalAddressOrBuilder {
private static final long serialVersionUID = 0L;
// Use AdditionalAddress.newBuilder() to construct.
private AdditionalAddress(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AdditionalAddress() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AdditionalAddress();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.endpoint.v3.EndpointComponentsProto.internal_static_envoy_config_endpoint_v3_Endpoint_AdditionalAddress_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.endpoint.v3.EndpointComponentsProto.internal_static_envoy_config_endpoint_v3_Endpoint_AdditionalAddress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress.class, io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress.Builder.class);
}
private int bitField0_;
public static final int ADDRESS_FIELD_NUMBER = 1;
private io.envoyproxy.envoy.config.core.v3.Address address_;
/**
*
* Additional address that is associated with the endpoint.
*
*
* .envoy.config.core.v3.Address address = 1;
* @return Whether the address field is set.
*/
@java.lang.Override
public boolean hasAddress() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Additional address that is associated with the endpoint.
*
*
* .envoy.config.core.v3.Address address = 1;
* @return The address.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.Address getAddress() {
return address_ == null ? io.envoyproxy.envoy.config.core.v3.Address.getDefaultInstance() : address_;
}
/**
*
* Additional address that is associated with the endpoint.
*
*
* .envoy.config.core.v3.Address address = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.AddressOrBuilder getAddressOrBuilder() {
return address_ == null ? io.envoyproxy.envoy.config.core.v3.Address.getDefaultInstance() : address_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getAddress());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAddress());
}
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.config.endpoint.v3.Endpoint.AdditionalAddress)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress other = (io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress) obj;
if (hasAddress() != other.hasAddress()) return false;
if (hasAddress()) {
if (!getAddress()
.equals(other.getAddress())) 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();
if (hasAddress()) {
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress 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.config.endpoint.v3.Endpoint.AdditionalAddress parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress 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.config.endpoint.v3.Endpoint.AdditionalAddress parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress 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.config.endpoint.v3.Endpoint.AdditionalAddress parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress 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.config.endpoint.v3.Endpoint.AdditionalAddress parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress 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.config.endpoint.v3.Endpoint.AdditionalAddress 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;
}
/**
* Protobuf type {@code envoy.config.endpoint.v3.Endpoint.AdditionalAddress}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.endpoint.v3.Endpoint.AdditionalAddress)
io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddressOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.endpoint.v3.EndpointComponentsProto.internal_static_envoy_config_endpoint_v3_Endpoint_AdditionalAddress_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.endpoint.v3.EndpointComponentsProto.internal_static_envoy_config_endpoint_v3_Endpoint_AdditionalAddress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress.class, io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAddressFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
address_ = null;
if (addressBuilder_ != null) {
addressBuilder_.dispose();
addressBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.config.endpoint.v3.EndpointComponentsProto.internal_static_envoy_config_endpoint_v3_Endpoint_AdditionalAddress_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress build() {
io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress buildPartial() {
io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress result = new io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.address_ = addressBuilder_ == null
? address_
: addressBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@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.config.endpoint.v3.Endpoint.AdditionalAddress) {
return mergeFrom((io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress other) {
if (other == io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress.getDefaultInstance()) return this;
if (other.hasAddress()) {
mergeAddress(other.getAddress());
}
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: {
input.readMessage(
getAddressFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
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 io.envoyproxy.envoy.config.core.v3.Address address_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.Address, io.envoyproxy.envoy.config.core.v3.Address.Builder, io.envoyproxy.envoy.config.core.v3.AddressOrBuilder> addressBuilder_;
/**
*
* Additional address that is associated with the endpoint.
*
*
* .envoy.config.core.v3.Address address = 1;
* @return Whether the address field is set.
*/
public boolean hasAddress() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Additional address that is associated with the endpoint.
*
*
* .envoy.config.core.v3.Address address = 1;
* @return The address.
*/
public io.envoyproxy.envoy.config.core.v3.Address getAddress() {
if (addressBuilder_ == null) {
return address_ == null ? io.envoyproxy.envoy.config.core.v3.Address.getDefaultInstance() : address_;
} else {
return addressBuilder_.getMessage();
}
}
/**
*
* Additional address that is associated with the endpoint.
*
*
* .envoy.config.core.v3.Address address = 1;
*/
public Builder setAddress(io.envoyproxy.envoy.config.core.v3.Address value) {
if (addressBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
} else {
addressBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Additional address that is associated with the endpoint.
*
*
* .envoy.config.core.v3.Address address = 1;
*/
public Builder setAddress(
io.envoyproxy.envoy.config.core.v3.Address.Builder builderForValue) {
if (addressBuilder_ == null) {
address_ = builderForValue.build();
} else {
addressBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Additional address that is associated with the endpoint.
*
*
* .envoy.config.core.v3.Address address = 1;
*/
public Builder mergeAddress(io.envoyproxy.envoy.config.core.v3.Address value) {
if (addressBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
address_ != null &&
address_ != io.envoyproxy.envoy.config.core.v3.Address.getDefaultInstance()) {
getAddressBuilder().mergeFrom(value);
} else {
address_ = value;
}
} else {
addressBuilder_.mergeFrom(value);
}
if (address_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* Additional address that is associated with the endpoint.
*
*
* .envoy.config.core.v3.Address address = 1;
*/
public Builder clearAddress() {
bitField0_ = (bitField0_ & ~0x00000001);
address_ = null;
if (addressBuilder_ != null) {
addressBuilder_.dispose();
addressBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Additional address that is associated with the endpoint.
*
*
* .envoy.config.core.v3.Address address = 1;
*/
public io.envoyproxy.envoy.config.core.v3.Address.Builder getAddressBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getAddressFieldBuilder().getBuilder();
}
/**
*
* Additional address that is associated with the endpoint.
*
*
* .envoy.config.core.v3.Address address = 1;
*/
public io.envoyproxy.envoy.config.core.v3.AddressOrBuilder getAddressOrBuilder() {
if (addressBuilder_ != null) {
return addressBuilder_.getMessageOrBuilder();
} else {
return address_ == null ?
io.envoyproxy.envoy.config.core.v3.Address.getDefaultInstance() : address_;
}
}
/**
*
* Additional address that is associated with the endpoint.
*
*
* .envoy.config.core.v3.Address address = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.Address, io.envoyproxy.envoy.config.core.v3.Address.Builder, io.envoyproxy.envoy.config.core.v3.AddressOrBuilder>
getAddressFieldBuilder() {
if (addressBuilder_ == null) {
addressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.Address, io.envoyproxy.envoy.config.core.v3.Address.Builder, io.envoyproxy.envoy.config.core.v3.AddressOrBuilder>(
getAddress(),
getParentForChildren(),
isClean());
address_ = null;
}
return addressBuilder_;
}
@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.config.endpoint.v3.Endpoint.AdditionalAddress)
}
// @@protoc_insertion_point(class_scope:envoy.config.endpoint.v3.Endpoint.AdditionalAddress)
private static final io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress();
}
public static io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AdditionalAddress 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.config.endpoint.v3.Endpoint.AdditionalAddress getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int ADDRESS_FIELD_NUMBER = 1;
private io.envoyproxy.envoy.config.core.v3.Address address_;
/**
*
* The upstream host address.
*
* .. attention::
*
* The form of host address depends on the given cluster type. For STATIC or EDS,
* it is expected to be a direct IP address (or something resolvable by the
* specified :ref:`resolver <envoy_v3_api_field_config.core.v3.SocketAddress.resolver_name>`
* in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
* and will be resolved via DNS.
*
*
* .envoy.config.core.v3.Address address = 1;
* @return Whether the address field is set.
*/
@java.lang.Override
public boolean hasAddress() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The upstream host address.
*
* .. attention::
*
* The form of host address depends on the given cluster type. For STATIC or EDS,
* it is expected to be a direct IP address (or something resolvable by the
* specified :ref:`resolver <envoy_v3_api_field_config.core.v3.SocketAddress.resolver_name>`
* in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
* and will be resolved via DNS.
*
*
* .envoy.config.core.v3.Address address = 1;
* @return The address.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.Address getAddress() {
return address_ == null ? io.envoyproxy.envoy.config.core.v3.Address.getDefaultInstance() : address_;
}
/**
*
* The upstream host address.
*
* .. attention::
*
* The form of host address depends on the given cluster type. For STATIC or EDS,
* it is expected to be a direct IP address (or something resolvable by the
* specified :ref:`resolver <envoy_v3_api_field_config.core.v3.SocketAddress.resolver_name>`
* in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
* and will be resolved via DNS.
*
*
* .envoy.config.core.v3.Address address = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.AddressOrBuilder getAddressOrBuilder() {
return address_ == null ? io.envoyproxy.envoy.config.core.v3.Address.getDefaultInstance() : address_;
}
public static final int HEALTH_CHECK_CONFIG_FIELD_NUMBER = 2;
private io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig healthCheckConfig_;
/**
*
* The optional health check configuration is used as configuration for the
* health checker to contact the health checked host.
*
* .. attention::
*
* This takes into effect only for upstream clusters with
* :ref:`active health checking <arch_overview_health_checking>` enabled.
*
*
* .envoy.config.endpoint.v3.Endpoint.HealthCheckConfig health_check_config = 2;
* @return Whether the healthCheckConfig field is set.
*/
@java.lang.Override
public boolean hasHealthCheckConfig() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The optional health check configuration is used as configuration for the
* health checker to contact the health checked host.
*
* .. attention::
*
* This takes into effect only for upstream clusters with
* :ref:`active health checking <arch_overview_health_checking>` enabled.
*
*
* .envoy.config.endpoint.v3.Endpoint.HealthCheckConfig health_check_config = 2;
* @return The healthCheckConfig.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig getHealthCheckConfig() {
return healthCheckConfig_ == null ? io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig.getDefaultInstance() : healthCheckConfig_;
}
/**
*
* The optional health check configuration is used as configuration for the
* health checker to contact the health checked host.
*
* .. attention::
*
* This takes into effect only for upstream clusters with
* :ref:`active health checking <arch_overview_health_checking>` enabled.
*
*
* .envoy.config.endpoint.v3.Endpoint.HealthCheckConfig health_check_config = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfigOrBuilder getHealthCheckConfigOrBuilder() {
return healthCheckConfig_ == null ? io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig.getDefaultInstance() : healthCheckConfig_;
}
public static final int HOSTNAME_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object hostname_ = "";
/**
*
* The hostname associated with this endpoint. This hostname is not used for routing or address
* resolution. If provided, it will be associated with the endpoint, and can be used for features
* that require a hostname, like
* :ref:`auto_host_rewrite <envoy_v3_api_field_config.route.v3.RouteAction.auto_host_rewrite>`.
*
*
* string hostname = 3;
* @return The hostname.
*/
@java.lang.Override
public java.lang.String getHostname() {
java.lang.Object ref = hostname_;
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();
hostname_ = s;
return s;
}
}
/**
*
* The hostname associated with this endpoint. This hostname is not used for routing or address
* resolution. If provided, it will be associated with the endpoint, and can be used for features
* that require a hostname, like
* :ref:`auto_host_rewrite <envoy_v3_api_field_config.route.v3.RouteAction.auto_host_rewrite>`.
*
*
* string hostname = 3;
* @return The bytes for hostname.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHostnameBytes() {
java.lang.Object ref = hostname_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ADDITIONAL_ADDRESSES_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List additionalAddresses_;
/**
*
* An ordered list of addresses that together with ``address`` comprise the
* list of addresses for an endpoint. The address given in the ``address`` is
* prepended to this list. It is assumed that the list must already be
* sorted by preference order of the addresses. This will only be supported
* for STATIC and EDS clusters.
*
*
* repeated .envoy.config.endpoint.v3.Endpoint.AdditionalAddress additional_addresses = 4;
*/
@java.lang.Override
public java.util.List getAdditionalAddressesList() {
return additionalAddresses_;
}
/**
*
* An ordered list of addresses that together with ``address`` comprise the
* list of addresses for an endpoint. The address given in the ``address`` is
* prepended to this list. It is assumed that the list must already be
* sorted by preference order of the addresses. This will only be supported
* for STATIC and EDS clusters.
*
*
* repeated .envoy.config.endpoint.v3.Endpoint.AdditionalAddress additional_addresses = 4;
*/
@java.lang.Override
public java.util.List extends io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddressOrBuilder>
getAdditionalAddressesOrBuilderList() {
return additionalAddresses_;
}
/**
*
* An ordered list of addresses that together with ``address`` comprise the
* list of addresses for an endpoint. The address given in the ``address`` is
* prepended to this list. It is assumed that the list must already be
* sorted by preference order of the addresses. This will only be supported
* for STATIC and EDS clusters.
*
*
* repeated .envoy.config.endpoint.v3.Endpoint.AdditionalAddress additional_addresses = 4;
*/
@java.lang.Override
public int getAdditionalAddressesCount() {
return additionalAddresses_.size();
}
/**
*
* An ordered list of addresses that together with ``address`` comprise the
* list of addresses for an endpoint. The address given in the ``address`` is
* prepended to this list. It is assumed that the list must already be
* sorted by preference order of the addresses. This will only be supported
* for STATIC and EDS clusters.
*
*
* repeated .envoy.config.endpoint.v3.Endpoint.AdditionalAddress additional_addresses = 4;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress getAdditionalAddresses(int index) {
return additionalAddresses_.get(index);
}
/**
*
* An ordered list of addresses that together with ``address`` comprise the
* list of addresses for an endpoint. The address given in the ``address`` is
* prepended to this list. It is assumed that the list must already be
* sorted by preference order of the addresses. This will only be supported
* for STATIC and EDS clusters.
*
*
* repeated .envoy.config.endpoint.v3.Endpoint.AdditionalAddress additional_addresses = 4;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddressOrBuilder getAdditionalAddressesOrBuilder(
int index) {
return additionalAddresses_.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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getAddress());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getHealthCheckConfig());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, hostname_);
}
for (int i = 0; i < additionalAddresses_.size(); i++) {
output.writeMessage(4, additionalAddresses_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAddress());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getHealthCheckConfig());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, hostname_);
}
for (int i = 0; i < additionalAddresses_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, additionalAddresses_.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.config.endpoint.v3.Endpoint)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.endpoint.v3.Endpoint other = (io.envoyproxy.envoy.config.endpoint.v3.Endpoint) obj;
if (hasAddress() != other.hasAddress()) return false;
if (hasAddress()) {
if (!getAddress()
.equals(other.getAddress())) return false;
}
if (hasHealthCheckConfig() != other.hasHealthCheckConfig()) return false;
if (hasHealthCheckConfig()) {
if (!getHealthCheckConfig()
.equals(other.getHealthCheckConfig())) return false;
}
if (!getHostname()
.equals(other.getHostname())) return false;
if (!getAdditionalAddressesList()
.equals(other.getAdditionalAddressesList())) 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();
if (hasAddress()) {
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
}
if (hasHealthCheckConfig()) {
hash = (37 * hash) + HEALTH_CHECK_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getHealthCheckConfig().hashCode();
}
hash = (37 * hash) + HOSTNAME_FIELD_NUMBER;
hash = (53 * hash) + getHostname().hashCode();
if (getAdditionalAddressesCount() > 0) {
hash = (37 * hash) + ADDITIONAL_ADDRESSES_FIELD_NUMBER;
hash = (53 * hash) + getAdditionalAddressesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.endpoint.v3.Endpoint parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.endpoint.v3.Endpoint 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.config.endpoint.v3.Endpoint parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.endpoint.v3.Endpoint 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.config.endpoint.v3.Endpoint parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.endpoint.v3.Endpoint parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.endpoint.v3.Endpoint parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.endpoint.v3.Endpoint 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.config.endpoint.v3.Endpoint parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.endpoint.v3.Endpoint 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.config.endpoint.v3.Endpoint parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.endpoint.v3.Endpoint 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.config.endpoint.v3.Endpoint 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;
}
/**
*
* Upstream host identifier.
*
*
* Protobuf type {@code envoy.config.endpoint.v3.Endpoint}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.endpoint.v3.Endpoint)
io.envoyproxy.envoy.config.endpoint.v3.EndpointOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.endpoint.v3.EndpointComponentsProto.internal_static_envoy_config_endpoint_v3_Endpoint_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.endpoint.v3.EndpointComponentsProto.internal_static_envoy_config_endpoint_v3_Endpoint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.endpoint.v3.Endpoint.class, io.envoyproxy.envoy.config.endpoint.v3.Endpoint.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.endpoint.v3.Endpoint.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAddressFieldBuilder();
getHealthCheckConfigFieldBuilder();
getAdditionalAddressesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
address_ = null;
if (addressBuilder_ != null) {
addressBuilder_.dispose();
addressBuilder_ = null;
}
healthCheckConfig_ = null;
if (healthCheckConfigBuilder_ != null) {
healthCheckConfigBuilder_.dispose();
healthCheckConfigBuilder_ = null;
}
hostname_ = "";
if (additionalAddressesBuilder_ == null) {
additionalAddresses_ = java.util.Collections.emptyList();
} else {
additionalAddresses_ = null;
additionalAddressesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.config.endpoint.v3.EndpointComponentsProto.internal_static_envoy_config_endpoint_v3_Endpoint_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.endpoint.v3.Endpoint getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.endpoint.v3.Endpoint.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.endpoint.v3.Endpoint build() {
io.envoyproxy.envoy.config.endpoint.v3.Endpoint result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.endpoint.v3.Endpoint buildPartial() {
io.envoyproxy.envoy.config.endpoint.v3.Endpoint result = new io.envoyproxy.envoy.config.endpoint.v3.Endpoint(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.envoyproxy.envoy.config.endpoint.v3.Endpoint result) {
if (additionalAddressesBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
additionalAddresses_ = java.util.Collections.unmodifiableList(additionalAddresses_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.additionalAddresses_ = additionalAddresses_;
} else {
result.additionalAddresses_ = additionalAddressesBuilder_.build();
}
}
private void buildPartial0(io.envoyproxy.envoy.config.endpoint.v3.Endpoint result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.address_ = addressBuilder_ == null
? address_
: addressBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.healthCheckConfig_ = healthCheckConfigBuilder_ == null
? healthCheckConfig_
: healthCheckConfigBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.hostname_ = hostname_;
}
result.bitField0_ |= to_bitField0_;
}
@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.config.endpoint.v3.Endpoint) {
return mergeFrom((io.envoyproxy.envoy.config.endpoint.v3.Endpoint)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.endpoint.v3.Endpoint other) {
if (other == io.envoyproxy.envoy.config.endpoint.v3.Endpoint.getDefaultInstance()) return this;
if (other.hasAddress()) {
mergeAddress(other.getAddress());
}
if (other.hasHealthCheckConfig()) {
mergeHealthCheckConfig(other.getHealthCheckConfig());
}
if (!other.getHostname().isEmpty()) {
hostname_ = other.hostname_;
bitField0_ |= 0x00000004;
onChanged();
}
if (additionalAddressesBuilder_ == null) {
if (!other.additionalAddresses_.isEmpty()) {
if (additionalAddresses_.isEmpty()) {
additionalAddresses_ = other.additionalAddresses_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureAdditionalAddressesIsMutable();
additionalAddresses_.addAll(other.additionalAddresses_);
}
onChanged();
}
} else {
if (!other.additionalAddresses_.isEmpty()) {
if (additionalAddressesBuilder_.isEmpty()) {
additionalAddressesBuilder_.dispose();
additionalAddressesBuilder_ = null;
additionalAddresses_ = other.additionalAddresses_;
bitField0_ = (bitField0_ & ~0x00000008);
additionalAddressesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAdditionalAddressesFieldBuilder() : null;
} else {
additionalAddressesBuilder_.addAllMessages(other.additionalAddresses_);
}
}
}
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: {
input.readMessage(
getAddressFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getHealthCheckConfigFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
hostname_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress m =
input.readMessage(
io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress.parser(),
extensionRegistry);
if (additionalAddressesBuilder_ == null) {
ensureAdditionalAddressesIsMutable();
additionalAddresses_.add(m);
} else {
additionalAddressesBuilder_.addMessage(m);
}
break;
} // case 34
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 io.envoyproxy.envoy.config.core.v3.Address address_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.Address, io.envoyproxy.envoy.config.core.v3.Address.Builder, io.envoyproxy.envoy.config.core.v3.AddressOrBuilder> addressBuilder_;
/**
*
* The upstream host address.
*
* .. attention::
*
* The form of host address depends on the given cluster type. For STATIC or EDS,
* it is expected to be a direct IP address (or something resolvable by the
* specified :ref:`resolver <envoy_v3_api_field_config.core.v3.SocketAddress.resolver_name>`
* in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
* and will be resolved via DNS.
*
*
* .envoy.config.core.v3.Address address = 1;
* @return Whether the address field is set.
*/
public boolean hasAddress() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The upstream host address.
*
* .. attention::
*
* The form of host address depends on the given cluster type. For STATIC or EDS,
* it is expected to be a direct IP address (or something resolvable by the
* specified :ref:`resolver <envoy_v3_api_field_config.core.v3.SocketAddress.resolver_name>`
* in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
* and will be resolved via DNS.
*
*
* .envoy.config.core.v3.Address address = 1;
* @return The address.
*/
public io.envoyproxy.envoy.config.core.v3.Address getAddress() {
if (addressBuilder_ == null) {
return address_ == null ? io.envoyproxy.envoy.config.core.v3.Address.getDefaultInstance() : address_;
} else {
return addressBuilder_.getMessage();
}
}
/**
*
* The upstream host address.
*
* .. attention::
*
* The form of host address depends on the given cluster type. For STATIC or EDS,
* it is expected to be a direct IP address (or something resolvable by the
* specified :ref:`resolver <envoy_v3_api_field_config.core.v3.SocketAddress.resolver_name>`
* in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
* and will be resolved via DNS.
*
*
* .envoy.config.core.v3.Address address = 1;
*/
public Builder setAddress(io.envoyproxy.envoy.config.core.v3.Address value) {
if (addressBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
} else {
addressBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The upstream host address.
*
* .. attention::
*
* The form of host address depends on the given cluster type. For STATIC or EDS,
* it is expected to be a direct IP address (or something resolvable by the
* specified :ref:`resolver <envoy_v3_api_field_config.core.v3.SocketAddress.resolver_name>`
* in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
* and will be resolved via DNS.
*
*
* .envoy.config.core.v3.Address address = 1;
*/
public Builder setAddress(
io.envoyproxy.envoy.config.core.v3.Address.Builder builderForValue) {
if (addressBuilder_ == null) {
address_ = builderForValue.build();
} else {
addressBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The upstream host address.
*
* .. attention::
*
* The form of host address depends on the given cluster type. For STATIC or EDS,
* it is expected to be a direct IP address (or something resolvable by the
* specified :ref:`resolver <envoy_v3_api_field_config.core.v3.SocketAddress.resolver_name>`
* in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
* and will be resolved via DNS.
*
*
* .envoy.config.core.v3.Address address = 1;
*/
public Builder mergeAddress(io.envoyproxy.envoy.config.core.v3.Address value) {
if (addressBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
address_ != null &&
address_ != io.envoyproxy.envoy.config.core.v3.Address.getDefaultInstance()) {
getAddressBuilder().mergeFrom(value);
} else {
address_ = value;
}
} else {
addressBuilder_.mergeFrom(value);
}
if (address_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* The upstream host address.
*
* .. attention::
*
* The form of host address depends on the given cluster type. For STATIC or EDS,
* it is expected to be a direct IP address (or something resolvable by the
* specified :ref:`resolver <envoy_v3_api_field_config.core.v3.SocketAddress.resolver_name>`
* in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
* and will be resolved via DNS.
*
*
* .envoy.config.core.v3.Address address = 1;
*/
public Builder clearAddress() {
bitField0_ = (bitField0_ & ~0x00000001);
address_ = null;
if (addressBuilder_ != null) {
addressBuilder_.dispose();
addressBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The upstream host address.
*
* .. attention::
*
* The form of host address depends on the given cluster type. For STATIC or EDS,
* it is expected to be a direct IP address (or something resolvable by the
* specified :ref:`resolver <envoy_v3_api_field_config.core.v3.SocketAddress.resolver_name>`
* in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
* and will be resolved via DNS.
*
*
* .envoy.config.core.v3.Address address = 1;
*/
public io.envoyproxy.envoy.config.core.v3.Address.Builder getAddressBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getAddressFieldBuilder().getBuilder();
}
/**
*
* The upstream host address.
*
* .. attention::
*
* The form of host address depends on the given cluster type. For STATIC or EDS,
* it is expected to be a direct IP address (or something resolvable by the
* specified :ref:`resolver <envoy_v3_api_field_config.core.v3.SocketAddress.resolver_name>`
* in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
* and will be resolved via DNS.
*
*
* .envoy.config.core.v3.Address address = 1;
*/
public io.envoyproxy.envoy.config.core.v3.AddressOrBuilder getAddressOrBuilder() {
if (addressBuilder_ != null) {
return addressBuilder_.getMessageOrBuilder();
} else {
return address_ == null ?
io.envoyproxy.envoy.config.core.v3.Address.getDefaultInstance() : address_;
}
}
/**
*
* The upstream host address.
*
* .. attention::
*
* The form of host address depends on the given cluster type. For STATIC or EDS,
* it is expected to be a direct IP address (or something resolvable by the
* specified :ref:`resolver <envoy_v3_api_field_config.core.v3.SocketAddress.resolver_name>`
* in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
* and will be resolved via DNS.
*
*
* .envoy.config.core.v3.Address address = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.Address, io.envoyproxy.envoy.config.core.v3.Address.Builder, io.envoyproxy.envoy.config.core.v3.AddressOrBuilder>
getAddressFieldBuilder() {
if (addressBuilder_ == null) {
addressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.Address, io.envoyproxy.envoy.config.core.v3.Address.Builder, io.envoyproxy.envoy.config.core.v3.AddressOrBuilder>(
getAddress(),
getParentForChildren(),
isClean());
address_ = null;
}
return addressBuilder_;
}
private io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig healthCheckConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig, io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig.Builder, io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfigOrBuilder> healthCheckConfigBuilder_;
/**
*
* The optional health check configuration is used as configuration for the
* health checker to contact the health checked host.
*
* .. attention::
*
* This takes into effect only for upstream clusters with
* :ref:`active health checking <arch_overview_health_checking>` enabled.
*
*
* .envoy.config.endpoint.v3.Endpoint.HealthCheckConfig health_check_config = 2;
* @return Whether the healthCheckConfig field is set.
*/
public boolean hasHealthCheckConfig() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The optional health check configuration is used as configuration for the
* health checker to contact the health checked host.
*
* .. attention::
*
* This takes into effect only for upstream clusters with
* :ref:`active health checking <arch_overview_health_checking>` enabled.
*
*
* .envoy.config.endpoint.v3.Endpoint.HealthCheckConfig health_check_config = 2;
* @return The healthCheckConfig.
*/
public io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig getHealthCheckConfig() {
if (healthCheckConfigBuilder_ == null) {
return healthCheckConfig_ == null ? io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig.getDefaultInstance() : healthCheckConfig_;
} else {
return healthCheckConfigBuilder_.getMessage();
}
}
/**
*
* The optional health check configuration is used as configuration for the
* health checker to contact the health checked host.
*
* .. attention::
*
* This takes into effect only for upstream clusters with
* :ref:`active health checking <arch_overview_health_checking>` enabled.
*
*
* .envoy.config.endpoint.v3.Endpoint.HealthCheckConfig health_check_config = 2;
*/
public Builder setHealthCheckConfig(io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig value) {
if (healthCheckConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
healthCheckConfig_ = value;
} else {
healthCheckConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The optional health check configuration is used as configuration for the
* health checker to contact the health checked host.
*
* .. attention::
*
* This takes into effect only for upstream clusters with
* :ref:`active health checking <arch_overview_health_checking>` enabled.
*
*
* .envoy.config.endpoint.v3.Endpoint.HealthCheckConfig health_check_config = 2;
*/
public Builder setHealthCheckConfig(
io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig.Builder builderForValue) {
if (healthCheckConfigBuilder_ == null) {
healthCheckConfig_ = builderForValue.build();
} else {
healthCheckConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The optional health check configuration is used as configuration for the
* health checker to contact the health checked host.
*
* .. attention::
*
* This takes into effect only for upstream clusters with
* :ref:`active health checking <arch_overview_health_checking>` enabled.
*
*
* .envoy.config.endpoint.v3.Endpoint.HealthCheckConfig health_check_config = 2;
*/
public Builder mergeHealthCheckConfig(io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig value) {
if (healthCheckConfigBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
healthCheckConfig_ != null &&
healthCheckConfig_ != io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig.getDefaultInstance()) {
getHealthCheckConfigBuilder().mergeFrom(value);
} else {
healthCheckConfig_ = value;
}
} else {
healthCheckConfigBuilder_.mergeFrom(value);
}
if (healthCheckConfig_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* The optional health check configuration is used as configuration for the
* health checker to contact the health checked host.
*
* .. attention::
*
* This takes into effect only for upstream clusters with
* :ref:`active health checking <arch_overview_health_checking>` enabled.
*
*
* .envoy.config.endpoint.v3.Endpoint.HealthCheckConfig health_check_config = 2;
*/
public Builder clearHealthCheckConfig() {
bitField0_ = (bitField0_ & ~0x00000002);
healthCheckConfig_ = null;
if (healthCheckConfigBuilder_ != null) {
healthCheckConfigBuilder_.dispose();
healthCheckConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The optional health check configuration is used as configuration for the
* health checker to contact the health checked host.
*
* .. attention::
*
* This takes into effect only for upstream clusters with
* :ref:`active health checking <arch_overview_health_checking>` enabled.
*
*
* .envoy.config.endpoint.v3.Endpoint.HealthCheckConfig health_check_config = 2;
*/
public io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig.Builder getHealthCheckConfigBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getHealthCheckConfigFieldBuilder().getBuilder();
}
/**
*
* The optional health check configuration is used as configuration for the
* health checker to contact the health checked host.
*
* .. attention::
*
* This takes into effect only for upstream clusters with
* :ref:`active health checking <arch_overview_health_checking>` enabled.
*
*
* .envoy.config.endpoint.v3.Endpoint.HealthCheckConfig health_check_config = 2;
*/
public io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfigOrBuilder getHealthCheckConfigOrBuilder() {
if (healthCheckConfigBuilder_ != null) {
return healthCheckConfigBuilder_.getMessageOrBuilder();
} else {
return healthCheckConfig_ == null ?
io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig.getDefaultInstance() : healthCheckConfig_;
}
}
/**
*
* The optional health check configuration is used as configuration for the
* health checker to contact the health checked host.
*
* .. attention::
*
* This takes into effect only for upstream clusters with
* :ref:`active health checking <arch_overview_health_checking>` enabled.
*
*
* .envoy.config.endpoint.v3.Endpoint.HealthCheckConfig health_check_config = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig, io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig.Builder, io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfigOrBuilder>
getHealthCheckConfigFieldBuilder() {
if (healthCheckConfigBuilder_ == null) {
healthCheckConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig, io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfig.Builder, io.envoyproxy.envoy.config.endpoint.v3.Endpoint.HealthCheckConfigOrBuilder>(
getHealthCheckConfig(),
getParentForChildren(),
isClean());
healthCheckConfig_ = null;
}
return healthCheckConfigBuilder_;
}
private java.lang.Object hostname_ = "";
/**
*
* The hostname associated with this endpoint. This hostname is not used for routing or address
* resolution. If provided, it will be associated with the endpoint, and can be used for features
* that require a hostname, like
* :ref:`auto_host_rewrite <envoy_v3_api_field_config.route.v3.RouteAction.auto_host_rewrite>`.
*
*
* string hostname = 3;
* @return The hostname.
*/
public java.lang.String getHostname() {
java.lang.Object ref = hostname_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostname_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The hostname associated with this endpoint. This hostname is not used for routing or address
* resolution. If provided, it will be associated with the endpoint, and can be used for features
* that require a hostname, like
* :ref:`auto_host_rewrite <envoy_v3_api_field_config.route.v3.RouteAction.auto_host_rewrite>`.
*
*
* string hostname = 3;
* @return The bytes for hostname.
*/
public com.google.protobuf.ByteString
getHostnameBytes() {
java.lang.Object ref = hostname_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The hostname associated with this endpoint. This hostname is not used for routing or address
* resolution. If provided, it will be associated with the endpoint, and can be used for features
* that require a hostname, like
* :ref:`auto_host_rewrite <envoy_v3_api_field_config.route.v3.RouteAction.auto_host_rewrite>`.
*
*
* string hostname = 3;
* @param value The hostname to set.
* @return This builder for chaining.
*/
public Builder setHostname(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
hostname_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The hostname associated with this endpoint. This hostname is not used for routing or address
* resolution. If provided, it will be associated with the endpoint, and can be used for features
* that require a hostname, like
* :ref:`auto_host_rewrite <envoy_v3_api_field_config.route.v3.RouteAction.auto_host_rewrite>`.
*
*
* string hostname = 3;
* @return This builder for chaining.
*/
public Builder clearHostname() {
hostname_ = getDefaultInstance().getHostname();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* The hostname associated with this endpoint. This hostname is not used for routing or address
* resolution. If provided, it will be associated with the endpoint, and can be used for features
* that require a hostname, like
* :ref:`auto_host_rewrite <envoy_v3_api_field_config.route.v3.RouteAction.auto_host_rewrite>`.
*
*
* string hostname = 3;
* @param value The bytes for hostname to set.
* @return This builder for chaining.
*/
public Builder setHostnameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
hostname_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.util.List additionalAddresses_ =
java.util.Collections.emptyList();
private void ensureAdditionalAddressesIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
additionalAddresses_ = new java.util.ArrayList(additionalAddresses_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress, io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress.Builder, io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddressOrBuilder> additionalAddressesBuilder_;
/**
*
* An ordered list of addresses that together with ``address`` comprise the
* list of addresses for an endpoint. The address given in the ``address`` is
* prepended to this list. It is assumed that the list must already be
* sorted by preference order of the addresses. This will only be supported
* for STATIC and EDS clusters.
*
*
* repeated .envoy.config.endpoint.v3.Endpoint.AdditionalAddress additional_addresses = 4;
*/
public java.util.List getAdditionalAddressesList() {
if (additionalAddressesBuilder_ == null) {
return java.util.Collections.unmodifiableList(additionalAddresses_);
} else {
return additionalAddressesBuilder_.getMessageList();
}
}
/**
*
* An ordered list of addresses that together with ``address`` comprise the
* list of addresses for an endpoint. The address given in the ``address`` is
* prepended to this list. It is assumed that the list must already be
* sorted by preference order of the addresses. This will only be supported
* for STATIC and EDS clusters.
*
*
* repeated .envoy.config.endpoint.v3.Endpoint.AdditionalAddress additional_addresses = 4;
*/
public int getAdditionalAddressesCount() {
if (additionalAddressesBuilder_ == null) {
return additionalAddresses_.size();
} else {
return additionalAddressesBuilder_.getCount();
}
}
/**
*
* An ordered list of addresses that together with ``address`` comprise the
* list of addresses for an endpoint. The address given in the ``address`` is
* prepended to this list. It is assumed that the list must already be
* sorted by preference order of the addresses. This will only be supported
* for STATIC and EDS clusters.
*
*
* repeated .envoy.config.endpoint.v3.Endpoint.AdditionalAddress additional_addresses = 4;
*/
public io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress getAdditionalAddresses(int index) {
if (additionalAddressesBuilder_ == null) {
return additionalAddresses_.get(index);
} else {
return additionalAddressesBuilder_.getMessage(index);
}
}
/**
*
* An ordered list of addresses that together with ``address`` comprise the
* list of addresses for an endpoint. The address given in the ``address`` is
* prepended to this list. It is assumed that the list must already be
* sorted by preference order of the addresses. This will only be supported
* for STATIC and EDS clusters.
*
*
* repeated .envoy.config.endpoint.v3.Endpoint.AdditionalAddress additional_addresses = 4;
*/
public Builder setAdditionalAddresses(
int index, io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress value) {
if (additionalAddressesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionalAddressesIsMutable();
additionalAddresses_.set(index, value);
onChanged();
} else {
additionalAddressesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* An ordered list of addresses that together with ``address`` comprise the
* list of addresses for an endpoint. The address given in the ``address`` is
* prepended to this list. It is assumed that the list must already be
* sorted by preference order of the addresses. This will only be supported
* for STATIC and EDS clusters.
*
*
* repeated .envoy.config.endpoint.v3.Endpoint.AdditionalAddress additional_addresses = 4;
*/
public Builder setAdditionalAddresses(
int index, io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress.Builder builderForValue) {
if (additionalAddressesBuilder_ == null) {
ensureAdditionalAddressesIsMutable();
additionalAddresses_.set(index, builderForValue.build());
onChanged();
} else {
additionalAddressesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* An ordered list of addresses that together with ``address`` comprise the
* list of addresses for an endpoint. The address given in the ``address`` is
* prepended to this list. It is assumed that the list must already be
* sorted by preference order of the addresses. This will only be supported
* for STATIC and EDS clusters.
*
*
* repeated .envoy.config.endpoint.v3.Endpoint.AdditionalAddress additional_addresses = 4;
*/
public Builder addAdditionalAddresses(io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress value) {
if (additionalAddressesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionalAddressesIsMutable();
additionalAddresses_.add(value);
onChanged();
} else {
additionalAddressesBuilder_.addMessage(value);
}
return this;
}
/**
*
* An ordered list of addresses that together with ``address`` comprise the
* list of addresses for an endpoint. The address given in the ``address`` is
* prepended to this list. It is assumed that the list must already be
* sorted by preference order of the addresses. This will only be supported
* for STATIC and EDS clusters.
*
*
* repeated .envoy.config.endpoint.v3.Endpoint.AdditionalAddress additional_addresses = 4;
*/
public Builder addAdditionalAddresses(
int index, io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress value) {
if (additionalAddressesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionalAddressesIsMutable();
additionalAddresses_.add(index, value);
onChanged();
} else {
additionalAddressesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* An ordered list of addresses that together with ``address`` comprise the
* list of addresses for an endpoint. The address given in the ``address`` is
* prepended to this list. It is assumed that the list must already be
* sorted by preference order of the addresses. This will only be supported
* for STATIC and EDS clusters.
*
*
* repeated .envoy.config.endpoint.v3.Endpoint.AdditionalAddress additional_addresses = 4;
*/
public Builder addAdditionalAddresses(
io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress.Builder builderForValue) {
if (additionalAddressesBuilder_ == null) {
ensureAdditionalAddressesIsMutable();
additionalAddresses_.add(builderForValue.build());
onChanged();
} else {
additionalAddressesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* An ordered list of addresses that together with ``address`` comprise the
* list of addresses for an endpoint. The address given in the ``address`` is
* prepended to this list. It is assumed that the list must already be
* sorted by preference order of the addresses. This will only be supported
* for STATIC and EDS clusters.
*
*
* repeated .envoy.config.endpoint.v3.Endpoint.AdditionalAddress additional_addresses = 4;
*/
public Builder addAdditionalAddresses(
int index, io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress.Builder builderForValue) {
if (additionalAddressesBuilder_ == null) {
ensureAdditionalAddressesIsMutable();
additionalAddresses_.add(index, builderForValue.build());
onChanged();
} else {
additionalAddressesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* An ordered list of addresses that together with ``address`` comprise the
* list of addresses for an endpoint. The address given in the ``address`` is
* prepended to this list. It is assumed that the list must already be
* sorted by preference order of the addresses. This will only be supported
* for STATIC and EDS clusters.
*
*
* repeated .envoy.config.endpoint.v3.Endpoint.AdditionalAddress additional_addresses = 4;
*/
public Builder addAllAdditionalAddresses(
java.lang.Iterable extends io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress> values) {
if (additionalAddressesBuilder_ == null) {
ensureAdditionalAddressesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, additionalAddresses_);
onChanged();
} else {
additionalAddressesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* An ordered list of addresses that together with ``address`` comprise the
* list of addresses for an endpoint. The address given in the ``address`` is
* prepended to this list. It is assumed that the list must already be
* sorted by preference order of the addresses. This will only be supported
* for STATIC and EDS clusters.
*
*
* repeated .envoy.config.endpoint.v3.Endpoint.AdditionalAddress additional_addresses = 4;
*/
public Builder clearAdditionalAddresses() {
if (additionalAddressesBuilder_ == null) {
additionalAddresses_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
additionalAddressesBuilder_.clear();
}
return this;
}
/**
*
* An ordered list of addresses that together with ``address`` comprise the
* list of addresses for an endpoint. The address given in the ``address`` is
* prepended to this list. It is assumed that the list must already be
* sorted by preference order of the addresses. This will only be supported
* for STATIC and EDS clusters.
*
*
* repeated .envoy.config.endpoint.v3.Endpoint.AdditionalAddress additional_addresses = 4;
*/
public Builder removeAdditionalAddresses(int index) {
if (additionalAddressesBuilder_ == null) {
ensureAdditionalAddressesIsMutable();
additionalAddresses_.remove(index);
onChanged();
} else {
additionalAddressesBuilder_.remove(index);
}
return this;
}
/**
*
* An ordered list of addresses that together with ``address`` comprise the
* list of addresses for an endpoint. The address given in the ``address`` is
* prepended to this list. It is assumed that the list must already be
* sorted by preference order of the addresses. This will only be supported
* for STATIC and EDS clusters.
*
*
* repeated .envoy.config.endpoint.v3.Endpoint.AdditionalAddress additional_addresses = 4;
*/
public io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress.Builder getAdditionalAddressesBuilder(
int index) {
return getAdditionalAddressesFieldBuilder().getBuilder(index);
}
/**
*
* An ordered list of addresses that together with ``address`` comprise the
* list of addresses for an endpoint. The address given in the ``address`` is
* prepended to this list. It is assumed that the list must already be
* sorted by preference order of the addresses. This will only be supported
* for STATIC and EDS clusters.
*
*
* repeated .envoy.config.endpoint.v3.Endpoint.AdditionalAddress additional_addresses = 4;
*/
public io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddressOrBuilder getAdditionalAddressesOrBuilder(
int index) {
if (additionalAddressesBuilder_ == null) {
return additionalAddresses_.get(index); } else {
return additionalAddressesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* An ordered list of addresses that together with ``address`` comprise the
* list of addresses for an endpoint. The address given in the ``address`` is
* prepended to this list. It is assumed that the list must already be
* sorted by preference order of the addresses. This will only be supported
* for STATIC and EDS clusters.
*
*
* repeated .envoy.config.endpoint.v3.Endpoint.AdditionalAddress additional_addresses = 4;
*/
public java.util.List extends io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddressOrBuilder>
getAdditionalAddressesOrBuilderList() {
if (additionalAddressesBuilder_ != null) {
return additionalAddressesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(additionalAddresses_);
}
}
/**
*
* An ordered list of addresses that together with ``address`` comprise the
* list of addresses for an endpoint. The address given in the ``address`` is
* prepended to this list. It is assumed that the list must already be
* sorted by preference order of the addresses. This will only be supported
* for STATIC and EDS clusters.
*
*
* repeated .envoy.config.endpoint.v3.Endpoint.AdditionalAddress additional_addresses = 4;
*/
public io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress.Builder addAdditionalAddressesBuilder() {
return getAdditionalAddressesFieldBuilder().addBuilder(
io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress.getDefaultInstance());
}
/**
*
* An ordered list of addresses that together with ``address`` comprise the
* list of addresses for an endpoint. The address given in the ``address`` is
* prepended to this list. It is assumed that the list must already be
* sorted by preference order of the addresses. This will only be supported
* for STATIC and EDS clusters.
*
*
* repeated .envoy.config.endpoint.v3.Endpoint.AdditionalAddress additional_addresses = 4;
*/
public io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress.Builder addAdditionalAddressesBuilder(
int index) {
return getAdditionalAddressesFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress.getDefaultInstance());
}
/**
*
* An ordered list of addresses that together with ``address`` comprise the
* list of addresses for an endpoint. The address given in the ``address`` is
* prepended to this list. It is assumed that the list must already be
* sorted by preference order of the addresses. This will only be supported
* for STATIC and EDS clusters.
*
*
* repeated .envoy.config.endpoint.v3.Endpoint.AdditionalAddress additional_addresses = 4;
*/
public java.util.List
getAdditionalAddressesBuilderList() {
return getAdditionalAddressesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress, io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress.Builder, io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddressOrBuilder>
getAdditionalAddressesFieldBuilder() {
if (additionalAddressesBuilder_ == null) {
additionalAddressesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress, io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddress.Builder, io.envoyproxy.envoy.config.endpoint.v3.Endpoint.AdditionalAddressOrBuilder>(
additionalAddresses_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
additionalAddresses_ = null;
}
return additionalAddressesBuilder_;
}
@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.config.endpoint.v3.Endpoint)
}
// @@protoc_insertion_point(class_scope:envoy.config.endpoint.v3.Endpoint)
private static final io.envoyproxy.envoy.config.endpoint.v3.Endpoint DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.endpoint.v3.Endpoint();
}
public static io.envoyproxy.envoy.config.endpoint.v3.Endpoint getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Endpoint 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.config.endpoint.v3.Endpoint getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy