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

io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier 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/discovery/v2/hds.proto

package io.envoyproxy.envoy.service.discovery.v2;

/**
 * Protobuf type {@code envoy.service.discovery.v2.HealthCheckSpecifier}
 */
public  final class HealthCheckSpecifier extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:envoy.service.discovery.v2.HealthCheckSpecifier)
    HealthCheckSpecifierOrBuilder {
private static final long serialVersionUID = 0L;
  // Use HealthCheckSpecifier.newBuilder() to construct.
  private HealthCheckSpecifier(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private HealthCheckSpecifier() {
    clusterHealthChecks_ = java.util.Collections.emptyList();
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private HealthCheckSpecifier(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              clusterHealthChecks_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            clusterHealthChecks_.add(
                input.readMessage(io.envoyproxy.envoy.service.discovery.v2.ClusterHealthCheck.parser(), extensionRegistry));
            break;
          }
          case 18: {
            com.google.protobuf.Duration.Builder subBuilder = null;
            if (interval_ != null) {
              subBuilder = interval_.toBuilder();
            }
            interval_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(interval_);
              interval_ = 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 {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        clusterHealthChecks_ = java.util.Collections.unmodifiableList(clusterHealthChecks_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.envoyproxy.envoy.service.discovery.v2.HdsProto.internal_static_envoy_service_discovery_v2_HealthCheckSpecifier_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.envoyproxy.envoy.service.discovery.v2.HdsProto.internal_static_envoy_service_discovery_v2_HealthCheckSpecifier_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier.class, io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier.Builder.class);
  }

  public static final int CLUSTER_HEALTH_CHECKS_FIELD_NUMBER = 1;
  private java.util.List clusterHealthChecks_;
  /**
   * repeated .envoy.service.discovery.v2.ClusterHealthCheck cluster_health_checks = 1;
   */
  public java.util.List getClusterHealthChecksList() {
    return clusterHealthChecks_;
  }
  /**
   * repeated .envoy.service.discovery.v2.ClusterHealthCheck cluster_health_checks = 1;
   */
  public java.util.List 
      getClusterHealthChecksOrBuilderList() {
    return clusterHealthChecks_;
  }
  /**
   * repeated .envoy.service.discovery.v2.ClusterHealthCheck cluster_health_checks = 1;
   */
  public int getClusterHealthChecksCount() {
    return clusterHealthChecks_.size();
  }
  /**
   * repeated .envoy.service.discovery.v2.ClusterHealthCheck cluster_health_checks = 1;
   */
  public io.envoyproxy.envoy.service.discovery.v2.ClusterHealthCheck getClusterHealthChecks(int index) {
    return clusterHealthChecks_.get(index);
  }
  /**
   * repeated .envoy.service.discovery.v2.ClusterHealthCheck cluster_health_checks = 1;
   */
  public io.envoyproxy.envoy.service.discovery.v2.ClusterHealthCheckOrBuilder getClusterHealthChecksOrBuilder(
      int index) {
    return clusterHealthChecks_.get(index);
  }

  public static final int INTERVAL_FIELD_NUMBER = 2;
  private com.google.protobuf.Duration interval_;
  /**
   * 
   * The default is 1 second.
   * 
* * .google.protobuf.Duration interval = 2; */ public boolean hasInterval() { return interval_ != null; } /** *
   * The default is 1 second.
   * 
* * .google.protobuf.Duration interval = 2; */ public com.google.protobuf.Duration getInterval() { return interval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : interval_; } /** *
   * The default is 1 second.
   * 
* * .google.protobuf.Duration interval = 2; */ public com.google.protobuf.DurationOrBuilder getIntervalOrBuilder() { return getInterval(); } 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 { for (int i = 0; i < clusterHealthChecks_.size(); i++) { output.writeMessage(1, clusterHealthChecks_.get(i)); } if (interval_ != null) { output.writeMessage(2, getInterval()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < clusterHealthChecks_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, clusterHealthChecks_.get(i)); } if (interval_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getInterval()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier)) { return super.equals(obj); } io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier other = (io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier) obj; if (!getClusterHealthChecksList() .equals(other.getClusterHealthChecksList())) return false; if (hasInterval() != other.hasInterval()) return false; if (hasInterval()) { if (!getInterval() .equals(other.getInterval())) 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 (getClusterHealthChecksCount() > 0) { hash = (37 * hash) + CLUSTER_HEALTH_CHECKS_FIELD_NUMBER; hash = (53 * hash) + getClusterHealthChecksList().hashCode(); } if (hasInterval()) { hash = (37 * hash) + INTERVAL_FIELD_NUMBER; hash = (53 * hash) + getInterval().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier 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.discovery.v2.HealthCheckSpecifier} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.service.discovery.v2.HealthCheckSpecifier) io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifierOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.discovery.v2.HdsProto.internal_static_envoy_service_discovery_v2_HealthCheckSpecifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.discovery.v2.HdsProto.internal_static_envoy_service_discovery_v2_HealthCheckSpecifier_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier.class, io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier.Builder.class); } // Construct using io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getClusterHealthChecksFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (clusterHealthChecksBuilder_ == null) { clusterHealthChecks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { clusterHealthChecksBuilder_.clear(); } if (intervalBuilder_ == null) { interval_ = null; } else { interval_ = null; intervalBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.service.discovery.v2.HdsProto.internal_static_envoy_service_discovery_v2_HealthCheckSpecifier_descriptor; } @java.lang.Override public io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier getDefaultInstanceForType() { return io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier build() { io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier buildPartial() { io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier result = new io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier(this); int from_bitField0_ = bitField0_; if (clusterHealthChecksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { clusterHealthChecks_ = java.util.Collections.unmodifiableList(clusterHealthChecks_); bitField0_ = (bitField0_ & ~0x00000001); } result.clusterHealthChecks_ = clusterHealthChecks_; } else { result.clusterHealthChecks_ = clusterHealthChecksBuilder_.build(); } if (intervalBuilder_ == null) { result.interval_ = interval_; } else { result.interval_ = intervalBuilder_.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.service.discovery.v2.HealthCheckSpecifier) { return mergeFrom((io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier other) { if (other == io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier.getDefaultInstance()) return this; if (clusterHealthChecksBuilder_ == null) { if (!other.clusterHealthChecks_.isEmpty()) { if (clusterHealthChecks_.isEmpty()) { clusterHealthChecks_ = other.clusterHealthChecks_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureClusterHealthChecksIsMutable(); clusterHealthChecks_.addAll(other.clusterHealthChecks_); } onChanged(); } } else { if (!other.clusterHealthChecks_.isEmpty()) { if (clusterHealthChecksBuilder_.isEmpty()) { clusterHealthChecksBuilder_.dispose(); clusterHealthChecksBuilder_ = null; clusterHealthChecks_ = other.clusterHealthChecks_; bitField0_ = (bitField0_ & ~0x00000001); clusterHealthChecksBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getClusterHealthChecksFieldBuilder() : null; } else { clusterHealthChecksBuilder_.addAllMessages(other.clusterHealthChecks_); } } } if (other.hasInterval()) { mergeInterval(other.getInterval()); } 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.discovery.v2.HealthCheckSpecifier parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List clusterHealthChecks_ = java.util.Collections.emptyList(); private void ensureClusterHealthChecksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { clusterHealthChecks_ = new java.util.ArrayList(clusterHealthChecks_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.service.discovery.v2.ClusterHealthCheck, io.envoyproxy.envoy.service.discovery.v2.ClusterHealthCheck.Builder, io.envoyproxy.envoy.service.discovery.v2.ClusterHealthCheckOrBuilder> clusterHealthChecksBuilder_; /** * repeated .envoy.service.discovery.v2.ClusterHealthCheck cluster_health_checks = 1; */ public java.util.List getClusterHealthChecksList() { if (clusterHealthChecksBuilder_ == null) { return java.util.Collections.unmodifiableList(clusterHealthChecks_); } else { return clusterHealthChecksBuilder_.getMessageList(); } } /** * repeated .envoy.service.discovery.v2.ClusterHealthCheck cluster_health_checks = 1; */ public int getClusterHealthChecksCount() { if (clusterHealthChecksBuilder_ == null) { return clusterHealthChecks_.size(); } else { return clusterHealthChecksBuilder_.getCount(); } } /** * repeated .envoy.service.discovery.v2.ClusterHealthCheck cluster_health_checks = 1; */ public io.envoyproxy.envoy.service.discovery.v2.ClusterHealthCheck getClusterHealthChecks(int index) { if (clusterHealthChecksBuilder_ == null) { return clusterHealthChecks_.get(index); } else { return clusterHealthChecksBuilder_.getMessage(index); } } /** * repeated .envoy.service.discovery.v2.ClusterHealthCheck cluster_health_checks = 1; */ public Builder setClusterHealthChecks( int index, io.envoyproxy.envoy.service.discovery.v2.ClusterHealthCheck value) { if (clusterHealthChecksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClusterHealthChecksIsMutable(); clusterHealthChecks_.set(index, value); onChanged(); } else { clusterHealthChecksBuilder_.setMessage(index, value); } return this; } /** * repeated .envoy.service.discovery.v2.ClusterHealthCheck cluster_health_checks = 1; */ public Builder setClusterHealthChecks( int index, io.envoyproxy.envoy.service.discovery.v2.ClusterHealthCheck.Builder builderForValue) { if (clusterHealthChecksBuilder_ == null) { ensureClusterHealthChecksIsMutable(); clusterHealthChecks_.set(index, builderForValue.build()); onChanged(); } else { clusterHealthChecksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .envoy.service.discovery.v2.ClusterHealthCheck cluster_health_checks = 1; */ public Builder addClusterHealthChecks(io.envoyproxy.envoy.service.discovery.v2.ClusterHealthCheck value) { if (clusterHealthChecksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClusterHealthChecksIsMutable(); clusterHealthChecks_.add(value); onChanged(); } else { clusterHealthChecksBuilder_.addMessage(value); } return this; } /** * repeated .envoy.service.discovery.v2.ClusterHealthCheck cluster_health_checks = 1; */ public Builder addClusterHealthChecks( int index, io.envoyproxy.envoy.service.discovery.v2.ClusterHealthCheck value) { if (clusterHealthChecksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClusterHealthChecksIsMutable(); clusterHealthChecks_.add(index, value); onChanged(); } else { clusterHealthChecksBuilder_.addMessage(index, value); } return this; } /** * repeated .envoy.service.discovery.v2.ClusterHealthCheck cluster_health_checks = 1; */ public Builder addClusterHealthChecks( io.envoyproxy.envoy.service.discovery.v2.ClusterHealthCheck.Builder builderForValue) { if (clusterHealthChecksBuilder_ == null) { ensureClusterHealthChecksIsMutable(); clusterHealthChecks_.add(builderForValue.build()); onChanged(); } else { clusterHealthChecksBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .envoy.service.discovery.v2.ClusterHealthCheck cluster_health_checks = 1; */ public Builder addClusterHealthChecks( int index, io.envoyproxy.envoy.service.discovery.v2.ClusterHealthCheck.Builder builderForValue) { if (clusterHealthChecksBuilder_ == null) { ensureClusterHealthChecksIsMutable(); clusterHealthChecks_.add(index, builderForValue.build()); onChanged(); } else { clusterHealthChecksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .envoy.service.discovery.v2.ClusterHealthCheck cluster_health_checks = 1; */ public Builder addAllClusterHealthChecks( java.lang.Iterable values) { if (clusterHealthChecksBuilder_ == null) { ensureClusterHealthChecksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, clusterHealthChecks_); onChanged(); } else { clusterHealthChecksBuilder_.addAllMessages(values); } return this; } /** * repeated .envoy.service.discovery.v2.ClusterHealthCheck cluster_health_checks = 1; */ public Builder clearClusterHealthChecks() { if (clusterHealthChecksBuilder_ == null) { clusterHealthChecks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { clusterHealthChecksBuilder_.clear(); } return this; } /** * repeated .envoy.service.discovery.v2.ClusterHealthCheck cluster_health_checks = 1; */ public Builder removeClusterHealthChecks(int index) { if (clusterHealthChecksBuilder_ == null) { ensureClusterHealthChecksIsMutable(); clusterHealthChecks_.remove(index); onChanged(); } else { clusterHealthChecksBuilder_.remove(index); } return this; } /** * repeated .envoy.service.discovery.v2.ClusterHealthCheck cluster_health_checks = 1; */ public io.envoyproxy.envoy.service.discovery.v2.ClusterHealthCheck.Builder getClusterHealthChecksBuilder( int index) { return getClusterHealthChecksFieldBuilder().getBuilder(index); } /** * repeated .envoy.service.discovery.v2.ClusterHealthCheck cluster_health_checks = 1; */ public io.envoyproxy.envoy.service.discovery.v2.ClusterHealthCheckOrBuilder getClusterHealthChecksOrBuilder( int index) { if (clusterHealthChecksBuilder_ == null) { return clusterHealthChecks_.get(index); } else { return clusterHealthChecksBuilder_.getMessageOrBuilder(index); } } /** * repeated .envoy.service.discovery.v2.ClusterHealthCheck cluster_health_checks = 1; */ public java.util.List getClusterHealthChecksOrBuilderList() { if (clusterHealthChecksBuilder_ != null) { return clusterHealthChecksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(clusterHealthChecks_); } } /** * repeated .envoy.service.discovery.v2.ClusterHealthCheck cluster_health_checks = 1; */ public io.envoyproxy.envoy.service.discovery.v2.ClusterHealthCheck.Builder addClusterHealthChecksBuilder() { return getClusterHealthChecksFieldBuilder().addBuilder( io.envoyproxy.envoy.service.discovery.v2.ClusterHealthCheck.getDefaultInstance()); } /** * repeated .envoy.service.discovery.v2.ClusterHealthCheck cluster_health_checks = 1; */ public io.envoyproxy.envoy.service.discovery.v2.ClusterHealthCheck.Builder addClusterHealthChecksBuilder( int index) { return getClusterHealthChecksFieldBuilder().addBuilder( index, io.envoyproxy.envoy.service.discovery.v2.ClusterHealthCheck.getDefaultInstance()); } /** * repeated .envoy.service.discovery.v2.ClusterHealthCheck cluster_health_checks = 1; */ public java.util.List getClusterHealthChecksBuilderList() { return getClusterHealthChecksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.service.discovery.v2.ClusterHealthCheck, io.envoyproxy.envoy.service.discovery.v2.ClusterHealthCheck.Builder, io.envoyproxy.envoy.service.discovery.v2.ClusterHealthCheckOrBuilder> getClusterHealthChecksFieldBuilder() { if (clusterHealthChecksBuilder_ == null) { clusterHealthChecksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.service.discovery.v2.ClusterHealthCheck, io.envoyproxy.envoy.service.discovery.v2.ClusterHealthCheck.Builder, io.envoyproxy.envoy.service.discovery.v2.ClusterHealthCheckOrBuilder>( clusterHealthChecks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); clusterHealthChecks_ = null; } return clusterHealthChecksBuilder_; } private com.google.protobuf.Duration interval_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> intervalBuilder_; /** *
     * The default is 1 second.
     * 
* * .google.protobuf.Duration interval = 2; */ public boolean hasInterval() { return intervalBuilder_ != null || interval_ != null; } /** *
     * The default is 1 second.
     * 
* * .google.protobuf.Duration interval = 2; */ public com.google.protobuf.Duration getInterval() { if (intervalBuilder_ == null) { return interval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : interval_; } else { return intervalBuilder_.getMessage(); } } /** *
     * The default is 1 second.
     * 
* * .google.protobuf.Duration interval = 2; */ public Builder setInterval(com.google.protobuf.Duration value) { if (intervalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interval_ = value; onChanged(); } else { intervalBuilder_.setMessage(value); } return this; } /** *
     * The default is 1 second.
     * 
* * .google.protobuf.Duration interval = 2; */ public Builder setInterval( com.google.protobuf.Duration.Builder builderForValue) { if (intervalBuilder_ == null) { interval_ = builderForValue.build(); onChanged(); } else { intervalBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The default is 1 second.
     * 
* * .google.protobuf.Duration interval = 2; */ public Builder mergeInterval(com.google.protobuf.Duration value) { if (intervalBuilder_ == null) { if (interval_ != null) { interval_ = com.google.protobuf.Duration.newBuilder(interval_).mergeFrom(value).buildPartial(); } else { interval_ = value; } onChanged(); } else { intervalBuilder_.mergeFrom(value); } return this; } /** *
     * The default is 1 second.
     * 
* * .google.protobuf.Duration interval = 2; */ public Builder clearInterval() { if (intervalBuilder_ == null) { interval_ = null; onChanged(); } else { interval_ = null; intervalBuilder_ = null; } return this; } /** *
     * The default is 1 second.
     * 
* * .google.protobuf.Duration interval = 2; */ public com.google.protobuf.Duration.Builder getIntervalBuilder() { onChanged(); return getIntervalFieldBuilder().getBuilder(); } /** *
     * The default is 1 second.
     * 
* * .google.protobuf.Duration interval = 2; */ public com.google.protobuf.DurationOrBuilder getIntervalOrBuilder() { if (intervalBuilder_ != null) { return intervalBuilder_.getMessageOrBuilder(); } else { return interval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : interval_; } } /** *
     * The default is 1 second.
     * 
* * .google.protobuf.Duration interval = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getIntervalFieldBuilder() { if (intervalBuilder_ == null) { intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getInterval(), getParentForChildren(), isClean()); interval_ = null; } return intervalBuilder_; } @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.discovery.v2.HealthCheckSpecifier) } // @@protoc_insertion_point(class_scope:envoy.service.discovery.v2.HealthCheckSpecifier) private static final io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier(); } public static io.envoyproxy.envoy.service.discovery.v2.HealthCheckSpecifier getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public HealthCheckSpecifier parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HealthCheckSpecifier(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.discovery.v2.HealthCheckSpecifier getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy