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

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

package io.envoyproxy.envoy.service.health.v3;

/**
 * Protobuf type {@code envoy.service.health.v3.EndpointHealth}
 */
public final class EndpointHealth extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:envoy.service.health.v3.EndpointHealth)
    EndpointHealthOrBuilder {
private static final long serialVersionUID = 0L;
  // Use EndpointHealth.newBuilder() to construct.
  private EndpointHealth(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private EndpointHealth() {
    healthStatus_ = 0;
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new EndpointHealth();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private EndpointHealth(
      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.config.endpoint.v3.Endpoint.Builder subBuilder = null;
            if (endpoint_ != null) {
              subBuilder = endpoint_.toBuilder();
            }
            endpoint_ = input.readMessage(io.envoyproxy.envoy.config.endpoint.v3.Endpoint.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(endpoint_);
              endpoint_ = subBuilder.buildPartial();
            }

            break;
          }
          case 16: {
            int rawValue = input.readEnum();

            healthStatus_ = rawValue;
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (com.google.protobuf.UninitializedMessageException e) {
      throw e.asInvalidProtocolBufferException().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.service.health.v3.HdsProto.internal_static_envoy_service_health_v3_EndpointHealth_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.envoyproxy.envoy.service.health.v3.HdsProto.internal_static_envoy_service_health_v3_EndpointHealth_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.envoyproxy.envoy.service.health.v3.EndpointHealth.class, io.envoyproxy.envoy.service.health.v3.EndpointHealth.Builder.class);
  }

  public static final int ENDPOINT_FIELD_NUMBER = 1;
  private io.envoyproxy.envoy.config.endpoint.v3.Endpoint endpoint_;
  /**
   * .envoy.config.endpoint.v3.Endpoint endpoint = 1;
   * @return Whether the endpoint field is set.
   */
  @java.lang.Override
  public boolean hasEndpoint() {
    return endpoint_ != null;
  }
  /**
   * .envoy.config.endpoint.v3.Endpoint endpoint = 1;
   * @return The endpoint.
   */
  @java.lang.Override
  public io.envoyproxy.envoy.config.endpoint.v3.Endpoint getEndpoint() {
    return endpoint_ == null ? io.envoyproxy.envoy.config.endpoint.v3.Endpoint.getDefaultInstance() : endpoint_;
  }
  /**
   * .envoy.config.endpoint.v3.Endpoint endpoint = 1;
   */
  @java.lang.Override
  public io.envoyproxy.envoy.config.endpoint.v3.EndpointOrBuilder getEndpointOrBuilder() {
    return getEndpoint();
  }

  public static final int HEALTH_STATUS_FIELD_NUMBER = 2;
  private int healthStatus_;
  /**
   * .envoy.config.core.v3.HealthStatus health_status = 2;
   * @return The enum numeric value on the wire for healthStatus.
   */
  @java.lang.Override public int getHealthStatusValue() {
    return healthStatus_;
  }
  /**
   * .envoy.config.core.v3.HealthStatus health_status = 2;
   * @return The healthStatus.
   */
  @java.lang.Override public io.envoyproxy.envoy.config.core.v3.HealthStatus getHealthStatus() {
    @SuppressWarnings("deprecation")
    io.envoyproxy.envoy.config.core.v3.HealthStatus result = io.envoyproxy.envoy.config.core.v3.HealthStatus.valueOf(healthStatus_);
    return result == null ? io.envoyproxy.envoy.config.core.v3.HealthStatus.UNRECOGNIZED : result;
  }

  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 (endpoint_ != null) {
      output.writeMessage(1, getEndpoint());
    }
    if (healthStatus_ != io.envoyproxy.envoy.config.core.v3.HealthStatus.UNKNOWN.getNumber()) {
      output.writeEnum(2, healthStatus_);
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (endpoint_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getEndpoint());
    }
    if (healthStatus_ != io.envoyproxy.envoy.config.core.v3.HealthStatus.UNKNOWN.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(2, healthStatus_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof io.envoyproxy.envoy.service.health.v3.EndpointHealth)) {
      return super.equals(obj);
    }
    io.envoyproxy.envoy.service.health.v3.EndpointHealth other = (io.envoyproxy.envoy.service.health.v3.EndpointHealth) obj;

    if (hasEndpoint() != other.hasEndpoint()) return false;
    if (hasEndpoint()) {
      if (!getEndpoint()
          .equals(other.getEndpoint())) return false;
    }
    if (healthStatus_ != other.healthStatus_) 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 (hasEndpoint()) {
      hash = (37 * hash) + ENDPOINT_FIELD_NUMBER;
      hash = (53 * hash) + getEndpoint().hashCode();
    }
    hash = (37 * hash) + HEALTH_STATUS_FIELD_NUMBER;
    hash = (53 * hash) + healthStatus_;
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static io.envoyproxy.envoy.service.health.v3.EndpointHealth parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.envoyproxy.envoy.service.health.v3.EndpointHealth parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.envoyproxy.envoy.service.health.v3.EndpointHealth parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.envoyproxy.envoy.service.health.v3.EndpointHealth parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.envoyproxy.envoy.service.health.v3.EndpointHealth parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.envoyproxy.envoy.service.health.v3.EndpointHealth parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.envoyproxy.envoy.service.health.v3.EndpointHealth parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.envoyproxy.envoy.service.health.v3.EndpointHealth parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static io.envoyproxy.envoy.service.health.v3.EndpointHealth parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static io.envoyproxy.envoy.service.health.v3.EndpointHealth parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static io.envoyproxy.envoy.service.health.v3.EndpointHealth parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.envoyproxy.envoy.service.health.v3.EndpointHealth parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(io.envoyproxy.envoy.service.health.v3.EndpointHealth 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.service.health.v3.EndpointHealth}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:envoy.service.health.v3.EndpointHealth)
      io.envoyproxy.envoy.service.health.v3.EndpointHealthOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.envoyproxy.envoy.service.health.v3.HdsProto.internal_static_envoy_service_health_v3_EndpointHealth_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.envoyproxy.envoy.service.health.v3.HdsProto.internal_static_envoy_service_health_v3_EndpointHealth_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.envoyproxy.envoy.service.health.v3.EndpointHealth.class, io.envoyproxy.envoy.service.health.v3.EndpointHealth.Builder.class);
    }

    // Construct using io.envoyproxy.envoy.service.health.v3.EndpointHealth.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 (endpointBuilder_ == null) {
        endpoint_ = null;
      } else {
        endpoint_ = null;
        endpointBuilder_ = null;
      }
      healthStatus_ = 0;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return io.envoyproxy.envoy.service.health.v3.HdsProto.internal_static_envoy_service_health_v3_EndpointHealth_descriptor;
    }

    @java.lang.Override
    public io.envoyproxy.envoy.service.health.v3.EndpointHealth getDefaultInstanceForType() {
      return io.envoyproxy.envoy.service.health.v3.EndpointHealth.getDefaultInstance();
    }

    @java.lang.Override
    public io.envoyproxy.envoy.service.health.v3.EndpointHealth build() {
      io.envoyproxy.envoy.service.health.v3.EndpointHealth result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public io.envoyproxy.envoy.service.health.v3.EndpointHealth buildPartial() {
      io.envoyproxy.envoy.service.health.v3.EndpointHealth result = new io.envoyproxy.envoy.service.health.v3.EndpointHealth(this);
      if (endpointBuilder_ == null) {
        result.endpoint_ = endpoint_;
      } else {
        result.endpoint_ = endpointBuilder_.build();
      }
      result.healthStatus_ = healthStatus_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof io.envoyproxy.envoy.service.health.v3.EndpointHealth) {
        return mergeFrom((io.envoyproxy.envoy.service.health.v3.EndpointHealth)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.envoyproxy.envoy.service.health.v3.EndpointHealth other) {
      if (other == io.envoyproxy.envoy.service.health.v3.EndpointHealth.getDefaultInstance()) return this;
      if (other.hasEndpoint()) {
        mergeEndpoint(other.getEndpoint());
      }
      if (other.healthStatus_ != 0) {
        setHealthStatusValue(other.getHealthStatusValue());
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      io.envoyproxy.envoy.service.health.v3.EndpointHealth parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.envoyproxy.envoy.service.health.v3.EndpointHealth) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private io.envoyproxy.envoy.config.endpoint.v3.Endpoint endpoint_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.envoyproxy.envoy.config.endpoint.v3.Endpoint, io.envoyproxy.envoy.config.endpoint.v3.Endpoint.Builder, io.envoyproxy.envoy.config.endpoint.v3.EndpointOrBuilder> endpointBuilder_;
    /**
     * .envoy.config.endpoint.v3.Endpoint endpoint = 1;
     * @return Whether the endpoint field is set.
     */
    public boolean hasEndpoint() {
      return endpointBuilder_ != null || endpoint_ != null;
    }
    /**
     * .envoy.config.endpoint.v3.Endpoint endpoint = 1;
     * @return The endpoint.
     */
    public io.envoyproxy.envoy.config.endpoint.v3.Endpoint getEndpoint() {
      if (endpointBuilder_ == null) {
        return endpoint_ == null ? io.envoyproxy.envoy.config.endpoint.v3.Endpoint.getDefaultInstance() : endpoint_;
      } else {
        return endpointBuilder_.getMessage();
      }
    }
    /**
     * .envoy.config.endpoint.v3.Endpoint endpoint = 1;
     */
    public Builder setEndpoint(io.envoyproxy.envoy.config.endpoint.v3.Endpoint value) {
      if (endpointBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        endpoint_ = value;
        onChanged();
      } else {
        endpointBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .envoy.config.endpoint.v3.Endpoint endpoint = 1;
     */
    public Builder setEndpoint(
        io.envoyproxy.envoy.config.endpoint.v3.Endpoint.Builder builderForValue) {
      if (endpointBuilder_ == null) {
        endpoint_ = builderForValue.build();
        onChanged();
      } else {
        endpointBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .envoy.config.endpoint.v3.Endpoint endpoint = 1;
     */
    public Builder mergeEndpoint(io.envoyproxy.envoy.config.endpoint.v3.Endpoint value) {
      if (endpointBuilder_ == null) {
        if (endpoint_ != null) {
          endpoint_ =
            io.envoyproxy.envoy.config.endpoint.v3.Endpoint.newBuilder(endpoint_).mergeFrom(value).buildPartial();
        } else {
          endpoint_ = value;
        }
        onChanged();
      } else {
        endpointBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .envoy.config.endpoint.v3.Endpoint endpoint = 1;
     */
    public Builder clearEndpoint() {
      if (endpointBuilder_ == null) {
        endpoint_ = null;
        onChanged();
      } else {
        endpoint_ = null;
        endpointBuilder_ = null;
      }

      return this;
    }
    /**
     * .envoy.config.endpoint.v3.Endpoint endpoint = 1;
     */
    public io.envoyproxy.envoy.config.endpoint.v3.Endpoint.Builder getEndpointBuilder() {
      
      onChanged();
      return getEndpointFieldBuilder().getBuilder();
    }
    /**
     * .envoy.config.endpoint.v3.Endpoint endpoint = 1;
     */
    public io.envoyproxy.envoy.config.endpoint.v3.EndpointOrBuilder getEndpointOrBuilder() {
      if (endpointBuilder_ != null) {
        return endpointBuilder_.getMessageOrBuilder();
      } else {
        return endpoint_ == null ?
            io.envoyproxy.envoy.config.endpoint.v3.Endpoint.getDefaultInstance() : endpoint_;
      }
    }
    /**
     * .envoy.config.endpoint.v3.Endpoint endpoint = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.envoyproxy.envoy.config.endpoint.v3.Endpoint, io.envoyproxy.envoy.config.endpoint.v3.Endpoint.Builder, io.envoyproxy.envoy.config.endpoint.v3.EndpointOrBuilder> 
        getEndpointFieldBuilder() {
      if (endpointBuilder_ == null) {
        endpointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.envoyproxy.envoy.config.endpoint.v3.Endpoint, io.envoyproxy.envoy.config.endpoint.v3.Endpoint.Builder, io.envoyproxy.envoy.config.endpoint.v3.EndpointOrBuilder>(
                getEndpoint(),
                getParentForChildren(),
                isClean());
        endpoint_ = null;
      }
      return endpointBuilder_;
    }

    private int healthStatus_ = 0;
    /**
     * .envoy.config.core.v3.HealthStatus health_status = 2;
     * @return The enum numeric value on the wire for healthStatus.
     */
    @java.lang.Override public int getHealthStatusValue() {
      return healthStatus_;
    }
    /**
     * .envoy.config.core.v3.HealthStatus health_status = 2;
     * @param value The enum numeric value on the wire for healthStatus to set.
     * @return This builder for chaining.
     */
    public Builder setHealthStatusValue(int value) {
      
      healthStatus_ = value;
      onChanged();
      return this;
    }
    /**
     * .envoy.config.core.v3.HealthStatus health_status = 2;
     * @return The healthStatus.
     */
    @java.lang.Override
    public io.envoyproxy.envoy.config.core.v3.HealthStatus getHealthStatus() {
      @SuppressWarnings("deprecation")
      io.envoyproxy.envoy.config.core.v3.HealthStatus result = io.envoyproxy.envoy.config.core.v3.HealthStatus.valueOf(healthStatus_);
      return result == null ? io.envoyproxy.envoy.config.core.v3.HealthStatus.UNRECOGNIZED : result;
    }
    /**
     * .envoy.config.core.v3.HealthStatus health_status = 2;
     * @param value The healthStatus to set.
     * @return This builder for chaining.
     */
    public Builder setHealthStatus(io.envoyproxy.envoy.config.core.v3.HealthStatus value) {
      if (value == null) {
        throw new NullPointerException();
      }
      
      healthStatus_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * .envoy.config.core.v3.HealthStatus health_status = 2;
     * @return This builder for chaining.
     */
    public Builder clearHealthStatus() {
      
      healthStatus_ = 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.service.health.v3.EndpointHealth)
  }

  // @@protoc_insertion_point(class_scope:envoy.service.health.v3.EndpointHealth)
  private static final io.envoyproxy.envoy.service.health.v3.EndpointHealth DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.health.v3.EndpointHealth();
  }

  public static io.envoyproxy.envoy.service.health.v3.EndpointHealth getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public EndpointHealth parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new EndpointHealth(input, extensionRegistry);
    }
  };

  public static com.google.protobuf.Parser parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public io.envoyproxy.envoy.service.health.v3.EndpointHealth getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy