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

io.envoyproxy.envoy.api.v2.endpoint.Endpoint Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/api/v2/endpoint/endpoint.proto

package io.envoyproxy.envoy.api.v2.endpoint;

/**
 * 
 * Upstream host identifier.
 * 
* * Protobuf type {@code envoy.api.v2.endpoint.Endpoint} */ public final class Endpoint extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.api.v2.endpoint.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() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Endpoint(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Endpoint( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { io.envoyproxy.envoy.api.v2.core.Address.Builder subBuilder = null; if (address_ != null) { subBuilder = address_.toBuilder(); } address_ = input.readMessage(io.envoyproxy.envoy.api.v2.core.Address.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(address_); address_ = subBuilder.buildPartial(); } break; } case 18: { io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig.Builder subBuilder = null; if (healthCheckConfig_ != null) { subBuilder = healthCheckConfig_.toBuilder(); } healthCheckConfig_ = input.readMessage(io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(healthCheckConfig_); healthCheckConfig_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.api.v2.endpoint.EndpointProto.internal_static_envoy_api_v2_endpoint_Endpoint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.api.v2.endpoint.EndpointProto.internal_static_envoy_api_v2_endpoint_Endpoint_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.api.v2.endpoint.Endpoint.class, io.envoyproxy.envoy.api.v2.endpoint.Endpoint.Builder.class); } public interface HealthCheckConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.api.v2.endpoint.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) = { ... } */ int getPortValue(); } /** *
   * The optional health check configuration.
   * 
* * Protobuf type {@code envoy.api.v2.endpoint.Endpoint.HealthCheckConfig} */ public static final class HealthCheckConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.api.v2.endpoint.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() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new HealthCheckConfig(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HealthCheckConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { portValue_ = input.readUInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.api.v2.endpoint.EndpointProto.internal_static_envoy_api_v2_endpoint_Endpoint_HealthCheckConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.api.v2.endpoint.EndpointProto.internal_static_envoy_api_v2_endpoint_Endpoint_HealthCheckConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig.class, io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig.Builder.class); } public static final int PORT_VALUE_FIELD_NUMBER = 1; 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) = { ... } */ public int getPortValue() { return portValue_; } 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_); } unknownFields.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_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig)) { return super.equals(obj); } io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig other = (io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig) obj; if (getPortValue() != other.getPortValue()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PORT_VALUE_FIELD_NUMBER; hash = (53 * hash) + getPortValue(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.api.v2.endpoint.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.api.v2.endpoint.Endpoint.HealthCheckConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.api.v2.endpoint.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.api.v2.endpoint.Endpoint.HealthCheckConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.api.v2.endpoint.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.api.v2.endpoint.Endpoint.HealthCheckConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.api.v2.endpoint.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.api.v2.endpoint.Endpoint.HealthCheckConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.api.v2.endpoint.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.api.v2.endpoint.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.api.v2.endpoint.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.api.v2.endpoint.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.api.v2.endpoint.Endpoint.HealthCheckConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.api.v2.endpoint.Endpoint.HealthCheckConfig) io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.api.v2.endpoint.EndpointProto.internal_static_envoy_api_v2_endpoint_Endpoint_HealthCheckConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.api.v2.endpoint.EndpointProto.internal_static_envoy_api_v2_endpoint_Endpoint_HealthCheckConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig.class, io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig.Builder.class); } // Construct using io.envoyproxy.envoy.api.v2.endpoint.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) { } } @java.lang.Override public Builder clear() { super.clear(); portValue_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.api.v2.endpoint.EndpointProto.internal_static_envoy_api_v2_endpoint_Endpoint_HealthCheckConfig_descriptor; } @java.lang.Override public io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig getDefaultInstanceForType() { return io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig build() { io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig buildPartial() { io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig result = new io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig(this); result.portValue_ = portValue_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig) { return mergeFrom((io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig other) { if (other == io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig.getDefaultInstance()) return this; if (other.getPortValue() != 0) { setPortValue(other.getPortValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } 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) = { ... } */ 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) = { ... } */ public Builder setPortValue(int value) { portValue_ = value; 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) = { ... } */ public Builder clearPortValue() { portValue_ = 0; 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.api.v2.endpoint.Endpoint.HealthCheckConfig) } // @@protoc_insertion_point(class_scope:envoy.api.v2.endpoint.Endpoint.HealthCheckConfig) private static final io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig(); } public static io.envoyproxy.envoy.api.v2.endpoint.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 { return new HealthCheckConfig(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ADDRESS_FIELD_NUMBER = 1; private io.envoyproxy.envoy.api.v2.core.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_api_field_core.SocketAddress.resolver_name>`
   *   in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
   *   and will be resolved via DNS.
   * 
* * .envoy.api.v2.core.Address address = 1; */ public boolean hasAddress() { return address_ != null; } /** *
   * 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_api_field_core.SocketAddress.resolver_name>`
   *   in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
   *   and will be resolved via DNS.
   * 
* * .envoy.api.v2.core.Address address = 1; */ public io.envoyproxy.envoy.api.v2.core.Address getAddress() { return address_ == null ? io.envoyproxy.envoy.api.v2.core.Address.getDefaultInstance() : address_; } /** *
   * 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_api_field_core.SocketAddress.resolver_name>`
   *   in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
   *   and will be resolved via DNS.
   * 
* * .envoy.api.v2.core.Address address = 1; */ public io.envoyproxy.envoy.api.v2.core.AddressOrBuilder getAddressOrBuilder() { return getAddress(); } public static final int HEALTH_CHECK_CONFIG_FIELD_NUMBER = 2; private io.envoyproxy.envoy.api.v2.endpoint.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.api.v2.endpoint.Endpoint.HealthCheckConfig health_check_config = 2; */ public boolean hasHealthCheckConfig() { return healthCheckConfig_ != null; } /** *
   * 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.api.v2.endpoint.Endpoint.HealthCheckConfig health_check_config = 2; */ public io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig getHealthCheckConfig() { return healthCheckConfig_ == null ? io.envoyproxy.envoy.api.v2.endpoint.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.api.v2.endpoint.Endpoint.HealthCheckConfig health_check_config = 2; */ public io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfigOrBuilder getHealthCheckConfigOrBuilder() { return getHealthCheckConfig(); } 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 (address_ != null) { output.writeMessage(1, getAddress()); } if (healthCheckConfig_ != null) { output.writeMessage(2, getHealthCheckConfig()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (address_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getAddress()); } if (healthCheckConfig_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getHealthCheckConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.api.v2.endpoint.Endpoint)) { return super.equals(obj); } io.envoyproxy.envoy.api.v2.endpoint.Endpoint other = (io.envoyproxy.envoy.api.v2.endpoint.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); 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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.api.v2.endpoint.Endpoint parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.api.v2.endpoint.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.api.v2.endpoint.Endpoint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.api.v2.endpoint.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.api.v2.endpoint.Endpoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.api.v2.endpoint.Endpoint parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.api.v2.endpoint.Endpoint parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.api.v2.endpoint.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.api.v2.endpoint.Endpoint parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.api.v2.endpoint.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.api.v2.endpoint.Endpoint parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.api.v2.endpoint.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.api.v2.endpoint.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.api.v2.endpoint.Endpoint} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.api.v2.endpoint.Endpoint) io.envoyproxy.envoy.api.v2.endpoint.EndpointOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.api.v2.endpoint.EndpointProto.internal_static_envoy_api_v2_endpoint_Endpoint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.api.v2.endpoint.EndpointProto.internal_static_envoy_api_v2_endpoint_Endpoint_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.api.v2.endpoint.Endpoint.class, io.envoyproxy.envoy.api.v2.endpoint.Endpoint.Builder.class); } // Construct using io.envoyproxy.envoy.api.v2.endpoint.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) { } } @java.lang.Override public Builder clear() { super.clear(); if (addressBuilder_ == null) { address_ = null; } else { address_ = null; addressBuilder_ = null; } if (healthCheckConfigBuilder_ == null) { healthCheckConfig_ = null; } else { healthCheckConfig_ = null; healthCheckConfigBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.api.v2.endpoint.EndpointProto.internal_static_envoy_api_v2_endpoint_Endpoint_descriptor; } @java.lang.Override public io.envoyproxy.envoy.api.v2.endpoint.Endpoint getDefaultInstanceForType() { return io.envoyproxy.envoy.api.v2.endpoint.Endpoint.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.api.v2.endpoint.Endpoint build() { io.envoyproxy.envoy.api.v2.endpoint.Endpoint result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.api.v2.endpoint.Endpoint buildPartial() { io.envoyproxy.envoy.api.v2.endpoint.Endpoint result = new io.envoyproxy.envoy.api.v2.endpoint.Endpoint(this); if (addressBuilder_ == null) { result.address_ = address_; } else { result.address_ = addressBuilder_.build(); } if (healthCheckConfigBuilder_ == null) { result.healthCheckConfig_ = healthCheckConfig_; } else { result.healthCheckConfig_ = healthCheckConfigBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.envoyproxy.envoy.api.v2.endpoint.Endpoint) { return mergeFrom((io.envoyproxy.envoy.api.v2.endpoint.Endpoint)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.api.v2.endpoint.Endpoint other) { if (other == io.envoyproxy.envoy.api.v2.endpoint.Endpoint.getDefaultInstance()) return this; if (other.hasAddress()) { mergeAddress(other.getAddress()); } if (other.hasHealthCheckConfig()) { mergeHealthCheckConfig(other.getHealthCheckConfig()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.envoyproxy.envoy.api.v2.endpoint.Endpoint parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.api.v2.endpoint.Endpoint) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private io.envoyproxy.envoy.api.v2.core.Address address_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v2.core.Address, io.envoyproxy.envoy.api.v2.core.Address.Builder, io.envoyproxy.envoy.api.v2.core.AddressOrBuilder> addressBuilder_; /** *
     * 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_api_field_core.SocketAddress.resolver_name>`
     *   in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
     *   and will be resolved via DNS.
     * 
* * .envoy.api.v2.core.Address address = 1; */ public boolean hasAddress() { return addressBuilder_ != null || address_ != null; } /** *
     * 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_api_field_core.SocketAddress.resolver_name>`
     *   in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
     *   and will be resolved via DNS.
     * 
* * .envoy.api.v2.core.Address address = 1; */ public io.envoyproxy.envoy.api.v2.core.Address getAddress() { if (addressBuilder_ == null) { return address_ == null ? io.envoyproxy.envoy.api.v2.core.Address.getDefaultInstance() : address_; } else { return addressBuilder_.getMessage(); } } /** *
     * 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_api_field_core.SocketAddress.resolver_name>`
     *   in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
     *   and will be resolved via DNS.
     * 
* * .envoy.api.v2.core.Address address = 1; */ public Builder setAddress(io.envoyproxy.envoy.api.v2.core.Address value) { if (addressBuilder_ == null) { if (value == null) { throw new NullPointerException(); } address_ = value; onChanged(); } else { addressBuilder_.setMessage(value); } return this; } /** *
     * 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_api_field_core.SocketAddress.resolver_name>`
     *   in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
     *   and will be resolved via DNS.
     * 
* * .envoy.api.v2.core.Address address = 1; */ public Builder setAddress( io.envoyproxy.envoy.api.v2.core.Address.Builder builderForValue) { if (addressBuilder_ == null) { address_ = builderForValue.build(); onChanged(); } else { addressBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * 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_api_field_core.SocketAddress.resolver_name>`
     *   in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
     *   and will be resolved via DNS.
     * 
* * .envoy.api.v2.core.Address address = 1; */ public Builder mergeAddress(io.envoyproxy.envoy.api.v2.core.Address value) { if (addressBuilder_ == null) { if (address_ != null) { address_ = io.envoyproxy.envoy.api.v2.core.Address.newBuilder(address_).mergeFrom(value).buildPartial(); } else { address_ = value; } onChanged(); } else { addressBuilder_.mergeFrom(value); } return this; } /** *
     * 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_api_field_core.SocketAddress.resolver_name>`
     *   in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
     *   and will be resolved via DNS.
     * 
* * .envoy.api.v2.core.Address address = 1; */ public Builder clearAddress() { if (addressBuilder_ == null) { address_ = null; onChanged(); } else { address_ = null; addressBuilder_ = null; } 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_api_field_core.SocketAddress.resolver_name>`
     *   in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
     *   and will be resolved via DNS.
     * 
* * .envoy.api.v2.core.Address address = 1; */ public io.envoyproxy.envoy.api.v2.core.Address.Builder getAddressBuilder() { 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_api_field_core.SocketAddress.resolver_name>`
     *   in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
     *   and will be resolved via DNS.
     * 
* * .envoy.api.v2.core.Address address = 1; */ public io.envoyproxy.envoy.api.v2.core.AddressOrBuilder getAddressOrBuilder() { if (addressBuilder_ != null) { return addressBuilder_.getMessageOrBuilder(); } else { return address_ == null ? io.envoyproxy.envoy.api.v2.core.Address.getDefaultInstance() : address_; } } /** *
     * 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_api_field_core.SocketAddress.resolver_name>`
     *   in the Address). For LOGICAL or STRICT DNS, it is expected to be hostname,
     *   and will be resolved via DNS.
     * 
* * .envoy.api.v2.core.Address address = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v2.core.Address, io.envoyproxy.envoy.api.v2.core.Address.Builder, io.envoyproxy.envoy.api.v2.core.AddressOrBuilder> getAddressFieldBuilder() { if (addressBuilder_ == null) { addressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v2.core.Address, io.envoyproxy.envoy.api.v2.core.Address.Builder, io.envoyproxy.envoy.api.v2.core.AddressOrBuilder>( getAddress(), getParentForChildren(), isClean()); address_ = null; } return addressBuilder_; } private io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig healthCheckConfig_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig, io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig.Builder, io.envoyproxy.envoy.api.v2.endpoint.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.api.v2.endpoint.Endpoint.HealthCheckConfig health_check_config = 2; */ public boolean hasHealthCheckConfig() { return healthCheckConfigBuilder_ != null || healthCheckConfig_ != null; } /** *
     * 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.api.v2.endpoint.Endpoint.HealthCheckConfig health_check_config = 2; */ public io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig getHealthCheckConfig() { if (healthCheckConfigBuilder_ == null) { return healthCheckConfig_ == null ? io.envoyproxy.envoy.api.v2.endpoint.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.api.v2.endpoint.Endpoint.HealthCheckConfig health_check_config = 2; */ public Builder setHealthCheckConfig(io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig value) { if (healthCheckConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } healthCheckConfig_ = value; onChanged(); } else { healthCheckConfigBuilder_.setMessage(value); } 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.api.v2.endpoint.Endpoint.HealthCheckConfig health_check_config = 2; */ public Builder setHealthCheckConfig( io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig.Builder builderForValue) { if (healthCheckConfigBuilder_ == null) { healthCheckConfig_ = builderForValue.build(); onChanged(); } else { healthCheckConfigBuilder_.setMessage(builderForValue.build()); } 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.api.v2.endpoint.Endpoint.HealthCheckConfig health_check_config = 2; */ public Builder mergeHealthCheckConfig(io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig value) { if (healthCheckConfigBuilder_ == null) { if (healthCheckConfig_ != null) { healthCheckConfig_ = io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig.newBuilder(healthCheckConfig_).mergeFrom(value).buildPartial(); } else { healthCheckConfig_ = value; } onChanged(); } else { healthCheckConfigBuilder_.mergeFrom(value); } 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.api.v2.endpoint.Endpoint.HealthCheckConfig health_check_config = 2; */ public Builder clearHealthCheckConfig() { if (healthCheckConfigBuilder_ == null) { healthCheckConfig_ = null; onChanged(); } else { healthCheckConfig_ = null; healthCheckConfigBuilder_ = null; } 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.api.v2.endpoint.Endpoint.HealthCheckConfig health_check_config = 2; */ public io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig.Builder getHealthCheckConfigBuilder() { 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.api.v2.endpoint.Endpoint.HealthCheckConfig health_check_config = 2; */ public io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfigOrBuilder getHealthCheckConfigOrBuilder() { if (healthCheckConfigBuilder_ != null) { return healthCheckConfigBuilder_.getMessageOrBuilder(); } else { return healthCheckConfig_ == null ? io.envoyproxy.envoy.api.v2.endpoint.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.api.v2.endpoint.Endpoint.HealthCheckConfig health_check_config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig, io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig.Builder, io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfigOrBuilder> getHealthCheckConfigFieldBuilder() { if (healthCheckConfigBuilder_ == null) { healthCheckConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig, io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfig.Builder, io.envoyproxy.envoy.api.v2.endpoint.Endpoint.HealthCheckConfigOrBuilder>( getHealthCheckConfig(), getParentForChildren(), isClean()); healthCheckConfig_ = null; } return healthCheckConfigBuilder_; } @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.api.v2.endpoint.Endpoint) } // @@protoc_insertion_point(class_scope:envoy.api.v2.endpoint.Endpoint) private static final io.envoyproxy.envoy.api.v2.endpoint.Endpoint DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.api.v2.endpoint.Endpoint(); } public static io.envoyproxy.envoy.api.v2.endpoint.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 { return new Endpoint(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.envoyproxy.envoy.api.v2.endpoint.Endpoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy