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

io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig 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/config/cluster/redis/redis_cluster.proto

package io.envoyproxy.envoy.config.cluster.redis;

/**
 * Protobuf type {@code envoy.config.cluster.redis.RedisClusterConfig}
 */
public  final class RedisClusterConfig extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:envoy.config.cluster.redis.RedisClusterConfig)
    RedisClusterConfigOrBuilder {
private static final long serialVersionUID = 0L;
  // Use RedisClusterConfig.newBuilder() to construct.
  private RedisClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private RedisClusterConfig() {
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private RedisClusterConfig(
      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: {
            com.google.protobuf.Duration.Builder subBuilder = null;
            if (clusterRefreshRate_ != null) {
              subBuilder = clusterRefreshRate_.toBuilder();
            }
            clusterRefreshRate_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(clusterRefreshRate_);
              clusterRefreshRate_ = subBuilder.buildPartial();
            }

            break;
          }
          case 18: {
            com.google.protobuf.Duration.Builder subBuilder = null;
            if (clusterRefreshTimeout_ != null) {
              subBuilder = clusterRefreshTimeout_.toBuilder();
            }
            clusterRefreshTimeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(clusterRefreshTimeout_);
              clusterRefreshTimeout_ = 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.config.cluster.redis.RedisClusterProto.internal_static_envoy_config_cluster_redis_RedisClusterConfig_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.envoyproxy.envoy.config.cluster.redis.RedisClusterProto.internal_static_envoy_config_cluster_redis_RedisClusterConfig_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig.class, io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig.Builder.class);
  }

  public static final int CLUSTER_REFRESH_RATE_FIELD_NUMBER = 1;
  private com.google.protobuf.Duration clusterRefreshRate_;
  /**
   * 
   * Interval between successive topology refresh requests. If not set, this defaults to 5s.
   * 
* * .google.protobuf.Duration cluster_refresh_rate = 1 [(.validate.rules) = { ... } */ public boolean hasClusterRefreshRate() { return clusterRefreshRate_ != null; } /** *
   * Interval between successive topology refresh requests. If not set, this defaults to 5s.
   * 
* * .google.protobuf.Duration cluster_refresh_rate = 1 [(.validate.rules) = { ... } */ public com.google.protobuf.Duration getClusterRefreshRate() { return clusterRefreshRate_ == null ? com.google.protobuf.Duration.getDefaultInstance() : clusterRefreshRate_; } /** *
   * Interval between successive topology refresh requests. If not set, this defaults to 5s.
   * 
* * .google.protobuf.Duration cluster_refresh_rate = 1 [(.validate.rules) = { ... } */ public com.google.protobuf.DurationOrBuilder getClusterRefreshRateOrBuilder() { return getClusterRefreshRate(); } public static final int CLUSTER_REFRESH_TIMEOUT_FIELD_NUMBER = 2; private com.google.protobuf.Duration clusterRefreshTimeout_; /** *
   * Timeout for topology refresh request. If not set, this defaults to 3s.
   * 
* * .google.protobuf.Duration cluster_refresh_timeout = 2 [(.validate.rules) = { ... } */ public boolean hasClusterRefreshTimeout() { return clusterRefreshTimeout_ != null; } /** *
   * Timeout for topology refresh request. If not set, this defaults to 3s.
   * 
* * .google.protobuf.Duration cluster_refresh_timeout = 2 [(.validate.rules) = { ... } */ public com.google.protobuf.Duration getClusterRefreshTimeout() { return clusterRefreshTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : clusterRefreshTimeout_; } /** *
   * Timeout for topology refresh request. If not set, this defaults to 3s.
   * 
* * .google.protobuf.Duration cluster_refresh_timeout = 2 [(.validate.rules) = { ... } */ public com.google.protobuf.DurationOrBuilder getClusterRefreshTimeoutOrBuilder() { return getClusterRefreshTimeout(); } 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 (clusterRefreshRate_ != null) { output.writeMessage(1, getClusterRefreshRate()); } if (clusterRefreshTimeout_ != null) { output.writeMessage(2, getClusterRefreshTimeout()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (clusterRefreshRate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getClusterRefreshRate()); } if (clusterRefreshTimeout_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getClusterRefreshTimeout()); } 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.config.cluster.redis.RedisClusterConfig)) { return super.equals(obj); } io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig other = (io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig) obj; if (hasClusterRefreshRate() != other.hasClusterRefreshRate()) return false; if (hasClusterRefreshRate()) { if (!getClusterRefreshRate() .equals(other.getClusterRefreshRate())) return false; } if (hasClusterRefreshTimeout() != other.hasClusterRefreshTimeout()) return false; if (hasClusterRefreshTimeout()) { if (!getClusterRefreshTimeout() .equals(other.getClusterRefreshTimeout())) 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 (hasClusterRefreshRate()) { hash = (37 * hash) + CLUSTER_REFRESH_RATE_FIELD_NUMBER; hash = (53 * hash) + getClusterRefreshRate().hashCode(); } if (hasClusterRefreshTimeout()) { hash = (37 * hash) + CLUSTER_REFRESH_TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getClusterRefreshTimeout().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code envoy.config.cluster.redis.RedisClusterConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.cluster.redis.RedisClusterConfig) io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.cluster.redis.RedisClusterProto.internal_static_envoy_config_cluster_redis_RedisClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.cluster.redis.RedisClusterProto.internal_static_envoy_config_cluster_redis_RedisClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig.class, io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig.Builder.class); } // Construct using io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig.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 (clusterRefreshRateBuilder_ == null) { clusterRefreshRate_ = null; } else { clusterRefreshRate_ = null; clusterRefreshRateBuilder_ = null; } if (clusterRefreshTimeoutBuilder_ == null) { clusterRefreshTimeout_ = null; } else { clusterRefreshTimeout_ = null; clusterRefreshTimeoutBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.cluster.redis.RedisClusterProto.internal_static_envoy_config_cluster_redis_RedisClusterConfig_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig getDefaultInstanceForType() { return io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig build() { io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig buildPartial() { io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig result = new io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig(this); if (clusterRefreshRateBuilder_ == null) { result.clusterRefreshRate_ = clusterRefreshRate_; } else { result.clusterRefreshRate_ = clusterRefreshRateBuilder_.build(); } if (clusterRefreshTimeoutBuilder_ == null) { result.clusterRefreshTimeout_ = clusterRefreshTimeout_; } else { result.clusterRefreshTimeout_ = clusterRefreshTimeoutBuilder_.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.config.cluster.redis.RedisClusterConfig) { return mergeFrom((io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig other) { if (other == io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig.getDefaultInstance()) return this; if (other.hasClusterRefreshRate()) { mergeClusterRefreshRate(other.getClusterRefreshRate()); } if (other.hasClusterRefreshTimeout()) { mergeClusterRefreshTimeout(other.getClusterRefreshTimeout()); } 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.config.cluster.redis.RedisClusterConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.Duration clusterRefreshRate_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> clusterRefreshRateBuilder_; /** *
     * Interval between successive topology refresh requests. If not set, this defaults to 5s.
     * 
* * .google.protobuf.Duration cluster_refresh_rate = 1 [(.validate.rules) = { ... } */ public boolean hasClusterRefreshRate() { return clusterRefreshRateBuilder_ != null || clusterRefreshRate_ != null; } /** *
     * Interval between successive topology refresh requests. If not set, this defaults to 5s.
     * 
* * .google.protobuf.Duration cluster_refresh_rate = 1 [(.validate.rules) = { ... } */ public com.google.protobuf.Duration getClusterRefreshRate() { if (clusterRefreshRateBuilder_ == null) { return clusterRefreshRate_ == null ? com.google.protobuf.Duration.getDefaultInstance() : clusterRefreshRate_; } else { return clusterRefreshRateBuilder_.getMessage(); } } /** *
     * Interval between successive topology refresh requests. If not set, this defaults to 5s.
     * 
* * .google.protobuf.Duration cluster_refresh_rate = 1 [(.validate.rules) = { ... } */ public Builder setClusterRefreshRate(com.google.protobuf.Duration value) { if (clusterRefreshRateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clusterRefreshRate_ = value; onChanged(); } else { clusterRefreshRateBuilder_.setMessage(value); } return this; } /** *
     * Interval between successive topology refresh requests. If not set, this defaults to 5s.
     * 
* * .google.protobuf.Duration cluster_refresh_rate = 1 [(.validate.rules) = { ... } */ public Builder setClusterRefreshRate( com.google.protobuf.Duration.Builder builderForValue) { if (clusterRefreshRateBuilder_ == null) { clusterRefreshRate_ = builderForValue.build(); onChanged(); } else { clusterRefreshRateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Interval between successive topology refresh requests. If not set, this defaults to 5s.
     * 
* * .google.protobuf.Duration cluster_refresh_rate = 1 [(.validate.rules) = { ... } */ public Builder mergeClusterRefreshRate(com.google.protobuf.Duration value) { if (clusterRefreshRateBuilder_ == null) { if (clusterRefreshRate_ != null) { clusterRefreshRate_ = com.google.protobuf.Duration.newBuilder(clusterRefreshRate_).mergeFrom(value).buildPartial(); } else { clusterRefreshRate_ = value; } onChanged(); } else { clusterRefreshRateBuilder_.mergeFrom(value); } return this; } /** *
     * Interval between successive topology refresh requests. If not set, this defaults to 5s.
     * 
* * .google.protobuf.Duration cluster_refresh_rate = 1 [(.validate.rules) = { ... } */ public Builder clearClusterRefreshRate() { if (clusterRefreshRateBuilder_ == null) { clusterRefreshRate_ = null; onChanged(); } else { clusterRefreshRate_ = null; clusterRefreshRateBuilder_ = null; } return this; } /** *
     * Interval between successive topology refresh requests. If not set, this defaults to 5s.
     * 
* * .google.protobuf.Duration cluster_refresh_rate = 1 [(.validate.rules) = { ... } */ public com.google.protobuf.Duration.Builder getClusterRefreshRateBuilder() { onChanged(); return getClusterRefreshRateFieldBuilder().getBuilder(); } /** *
     * Interval between successive topology refresh requests. If not set, this defaults to 5s.
     * 
* * .google.protobuf.Duration cluster_refresh_rate = 1 [(.validate.rules) = { ... } */ public com.google.protobuf.DurationOrBuilder getClusterRefreshRateOrBuilder() { if (clusterRefreshRateBuilder_ != null) { return clusterRefreshRateBuilder_.getMessageOrBuilder(); } else { return clusterRefreshRate_ == null ? com.google.protobuf.Duration.getDefaultInstance() : clusterRefreshRate_; } } /** *
     * Interval between successive topology refresh requests. If not set, this defaults to 5s.
     * 
* * .google.protobuf.Duration cluster_refresh_rate = 1 [(.validate.rules) = { ... } */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getClusterRefreshRateFieldBuilder() { if (clusterRefreshRateBuilder_ == null) { clusterRefreshRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getClusterRefreshRate(), getParentForChildren(), isClean()); clusterRefreshRate_ = null; } return clusterRefreshRateBuilder_; } private com.google.protobuf.Duration clusterRefreshTimeout_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> clusterRefreshTimeoutBuilder_; /** *
     * Timeout for topology refresh request. If not set, this defaults to 3s.
     * 
* * .google.protobuf.Duration cluster_refresh_timeout = 2 [(.validate.rules) = { ... } */ public boolean hasClusterRefreshTimeout() { return clusterRefreshTimeoutBuilder_ != null || clusterRefreshTimeout_ != null; } /** *
     * Timeout for topology refresh request. If not set, this defaults to 3s.
     * 
* * .google.protobuf.Duration cluster_refresh_timeout = 2 [(.validate.rules) = { ... } */ public com.google.protobuf.Duration getClusterRefreshTimeout() { if (clusterRefreshTimeoutBuilder_ == null) { return clusterRefreshTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : clusterRefreshTimeout_; } else { return clusterRefreshTimeoutBuilder_.getMessage(); } } /** *
     * Timeout for topology refresh request. If not set, this defaults to 3s.
     * 
* * .google.protobuf.Duration cluster_refresh_timeout = 2 [(.validate.rules) = { ... } */ public Builder setClusterRefreshTimeout(com.google.protobuf.Duration value) { if (clusterRefreshTimeoutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clusterRefreshTimeout_ = value; onChanged(); } else { clusterRefreshTimeoutBuilder_.setMessage(value); } return this; } /** *
     * Timeout for topology refresh request. If not set, this defaults to 3s.
     * 
* * .google.protobuf.Duration cluster_refresh_timeout = 2 [(.validate.rules) = { ... } */ public Builder setClusterRefreshTimeout( com.google.protobuf.Duration.Builder builderForValue) { if (clusterRefreshTimeoutBuilder_ == null) { clusterRefreshTimeout_ = builderForValue.build(); onChanged(); } else { clusterRefreshTimeoutBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Timeout for topology refresh request. If not set, this defaults to 3s.
     * 
* * .google.protobuf.Duration cluster_refresh_timeout = 2 [(.validate.rules) = { ... } */ public Builder mergeClusterRefreshTimeout(com.google.protobuf.Duration value) { if (clusterRefreshTimeoutBuilder_ == null) { if (clusterRefreshTimeout_ != null) { clusterRefreshTimeout_ = com.google.protobuf.Duration.newBuilder(clusterRefreshTimeout_).mergeFrom(value).buildPartial(); } else { clusterRefreshTimeout_ = value; } onChanged(); } else { clusterRefreshTimeoutBuilder_.mergeFrom(value); } return this; } /** *
     * Timeout for topology refresh request. If not set, this defaults to 3s.
     * 
* * .google.protobuf.Duration cluster_refresh_timeout = 2 [(.validate.rules) = { ... } */ public Builder clearClusterRefreshTimeout() { if (clusterRefreshTimeoutBuilder_ == null) { clusterRefreshTimeout_ = null; onChanged(); } else { clusterRefreshTimeout_ = null; clusterRefreshTimeoutBuilder_ = null; } return this; } /** *
     * Timeout for topology refresh request. If not set, this defaults to 3s.
     * 
* * .google.protobuf.Duration cluster_refresh_timeout = 2 [(.validate.rules) = { ... } */ public com.google.protobuf.Duration.Builder getClusterRefreshTimeoutBuilder() { onChanged(); return getClusterRefreshTimeoutFieldBuilder().getBuilder(); } /** *
     * Timeout for topology refresh request. If not set, this defaults to 3s.
     * 
* * .google.protobuf.Duration cluster_refresh_timeout = 2 [(.validate.rules) = { ... } */ public com.google.protobuf.DurationOrBuilder getClusterRefreshTimeoutOrBuilder() { if (clusterRefreshTimeoutBuilder_ != null) { return clusterRefreshTimeoutBuilder_.getMessageOrBuilder(); } else { return clusterRefreshTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : clusterRefreshTimeout_; } } /** *
     * Timeout for topology refresh request. If not set, this defaults to 3s.
     * 
* * .google.protobuf.Duration cluster_refresh_timeout = 2 [(.validate.rules) = { ... } */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getClusterRefreshTimeoutFieldBuilder() { if (clusterRefreshTimeoutBuilder_ == null) { clusterRefreshTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getClusterRefreshTimeout(), getParentForChildren(), isClean()); clusterRefreshTimeout_ = null; } return clusterRefreshTimeoutBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:envoy.config.cluster.redis.RedisClusterConfig) } // @@protoc_insertion_point(class_scope:envoy.config.cluster.redis.RedisClusterConfig) private static final io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig(); } public static io.envoyproxy.envoy.config.cluster.redis.RedisClusterConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RedisClusterConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RedisClusterConfig(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.config.cluster.redis.RedisClusterConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy