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

io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog 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/bootstrap/v3alpha/bootstrap.proto

package io.envoyproxy.envoy.config.bootstrap.v3alpha;

/**
 * 
 * Envoy process watchdog configuration. When configured, this monitors for
 * nonresponsive threads and kills the process after the configured thresholds.
 * 
* * Protobuf type {@code envoy.config.bootstrap.v3alpha.Watchdog} */ public final class Watchdog extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.bootstrap.v3alpha.Watchdog) WatchdogOrBuilder { private static final long serialVersionUID = 0L; // Use Watchdog.newBuilder() to construct. private Watchdog(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Watchdog() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Watchdog(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Watchdog( 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 (missTimeout_ != null) { subBuilder = missTimeout_.toBuilder(); } missTimeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(missTimeout_); missTimeout_ = subBuilder.buildPartial(); } break; } case 18: { com.google.protobuf.Duration.Builder subBuilder = null; if (megamissTimeout_ != null) { subBuilder = megamissTimeout_.toBuilder(); } megamissTimeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(megamissTimeout_); megamissTimeout_ = subBuilder.buildPartial(); } break; } case 26: { com.google.protobuf.Duration.Builder subBuilder = null; if (killTimeout_ != null) { subBuilder = killTimeout_.toBuilder(); } killTimeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(killTimeout_); killTimeout_ = subBuilder.buildPartial(); } break; } case 34: { com.google.protobuf.Duration.Builder subBuilder = null; if (multikillTimeout_ != null) { subBuilder = multikillTimeout_.toBuilder(); } multikillTimeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(multikillTimeout_); multikillTimeout_ = 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.bootstrap.v3alpha.BootstrapProto.internal_static_envoy_config_bootstrap_v3alpha_Watchdog_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.bootstrap.v3alpha.BootstrapProto.internal_static_envoy_config_bootstrap_v3alpha_Watchdog_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog.class, io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog.Builder.class); } public static final int MISS_TIMEOUT_FIELD_NUMBER = 1; private com.google.protobuf.Duration missTimeout_; /** *
   * The duration after which Envoy counts a nonresponsive thread in the
   * *server.watchdog_miss* statistic. If not specified the default is 200ms.
   * 
* * .google.protobuf.Duration miss_timeout = 1; */ public boolean hasMissTimeout() { return missTimeout_ != null; } /** *
   * The duration after which Envoy counts a nonresponsive thread in the
   * *server.watchdog_miss* statistic. If not specified the default is 200ms.
   * 
* * .google.protobuf.Duration miss_timeout = 1; */ public com.google.protobuf.Duration getMissTimeout() { return missTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : missTimeout_; } /** *
   * The duration after which Envoy counts a nonresponsive thread in the
   * *server.watchdog_miss* statistic. If not specified the default is 200ms.
   * 
* * .google.protobuf.Duration miss_timeout = 1; */ public com.google.protobuf.DurationOrBuilder getMissTimeoutOrBuilder() { return getMissTimeout(); } public static final int MEGAMISS_TIMEOUT_FIELD_NUMBER = 2; private com.google.protobuf.Duration megamissTimeout_; /** *
   * The duration after which Envoy counts a nonresponsive thread in the
   * *server.watchdog_mega_miss* statistic. If not specified the default is
   * 1000ms.
   * 
* * .google.protobuf.Duration megamiss_timeout = 2; */ public boolean hasMegamissTimeout() { return megamissTimeout_ != null; } /** *
   * The duration after which Envoy counts a nonresponsive thread in the
   * *server.watchdog_mega_miss* statistic. If not specified the default is
   * 1000ms.
   * 
* * .google.protobuf.Duration megamiss_timeout = 2; */ public com.google.protobuf.Duration getMegamissTimeout() { return megamissTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : megamissTimeout_; } /** *
   * The duration after which Envoy counts a nonresponsive thread in the
   * *server.watchdog_mega_miss* statistic. If not specified the default is
   * 1000ms.
   * 
* * .google.protobuf.Duration megamiss_timeout = 2; */ public com.google.protobuf.DurationOrBuilder getMegamissTimeoutOrBuilder() { return getMegamissTimeout(); } public static final int KILL_TIMEOUT_FIELD_NUMBER = 3; private com.google.protobuf.Duration killTimeout_; /** *
   * If a watched thread has been nonresponsive for this duration, assume a
   * programming error and kill the entire Envoy process. Set to 0 to disable
   * kill behavior. If not specified the default is 0 (disabled).
   * 
* * .google.protobuf.Duration kill_timeout = 3; */ public boolean hasKillTimeout() { return killTimeout_ != null; } /** *
   * If a watched thread has been nonresponsive for this duration, assume a
   * programming error and kill the entire Envoy process. Set to 0 to disable
   * kill behavior. If not specified the default is 0 (disabled).
   * 
* * .google.protobuf.Duration kill_timeout = 3; */ public com.google.protobuf.Duration getKillTimeout() { return killTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : killTimeout_; } /** *
   * If a watched thread has been nonresponsive for this duration, assume a
   * programming error and kill the entire Envoy process. Set to 0 to disable
   * kill behavior. If not specified the default is 0 (disabled).
   * 
* * .google.protobuf.Duration kill_timeout = 3; */ public com.google.protobuf.DurationOrBuilder getKillTimeoutOrBuilder() { return getKillTimeout(); } public static final int MULTIKILL_TIMEOUT_FIELD_NUMBER = 4; private com.google.protobuf.Duration multikillTimeout_; /** *
   * If at least two watched threads have been nonresponsive for at least this
   * duration assume a true deadlock and kill the entire Envoy process. Set to 0
   * to disable this behavior. If not specified the default is 0 (disabled).
   * 
* * .google.protobuf.Duration multikill_timeout = 4; */ public boolean hasMultikillTimeout() { return multikillTimeout_ != null; } /** *
   * If at least two watched threads have been nonresponsive for at least this
   * duration assume a true deadlock and kill the entire Envoy process. Set to 0
   * to disable this behavior. If not specified the default is 0 (disabled).
   * 
* * .google.protobuf.Duration multikill_timeout = 4; */ public com.google.protobuf.Duration getMultikillTimeout() { return multikillTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : multikillTimeout_; } /** *
   * If at least two watched threads have been nonresponsive for at least this
   * duration assume a true deadlock and kill the entire Envoy process. Set to 0
   * to disable this behavior. If not specified the default is 0 (disabled).
   * 
* * .google.protobuf.Duration multikill_timeout = 4; */ public com.google.protobuf.DurationOrBuilder getMultikillTimeoutOrBuilder() { return getMultikillTimeout(); } 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 (missTimeout_ != null) { output.writeMessage(1, getMissTimeout()); } if (megamissTimeout_ != null) { output.writeMessage(2, getMegamissTimeout()); } if (killTimeout_ != null) { output.writeMessage(3, getKillTimeout()); } if (multikillTimeout_ != null) { output.writeMessage(4, getMultikillTimeout()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (missTimeout_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getMissTimeout()); } if (megamissTimeout_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMegamissTimeout()); } if (killTimeout_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getKillTimeout()); } if (multikillTimeout_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getMultikillTimeout()); } 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.bootstrap.v3alpha.Watchdog)) { return super.equals(obj); } io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog other = (io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog) obj; if (hasMissTimeout() != other.hasMissTimeout()) return false; if (hasMissTimeout()) { if (!getMissTimeout() .equals(other.getMissTimeout())) return false; } if (hasMegamissTimeout() != other.hasMegamissTimeout()) return false; if (hasMegamissTimeout()) { if (!getMegamissTimeout() .equals(other.getMegamissTimeout())) return false; } if (hasKillTimeout() != other.hasKillTimeout()) return false; if (hasKillTimeout()) { if (!getKillTimeout() .equals(other.getKillTimeout())) return false; } if (hasMultikillTimeout() != other.hasMultikillTimeout()) return false; if (hasMultikillTimeout()) { if (!getMultikillTimeout() .equals(other.getMultikillTimeout())) 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 (hasMissTimeout()) { hash = (37 * hash) + MISS_TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getMissTimeout().hashCode(); } if (hasMegamissTimeout()) { hash = (37 * hash) + MEGAMISS_TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getMegamissTimeout().hashCode(); } if (hasKillTimeout()) { hash = (37 * hash) + KILL_TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getKillTimeout().hashCode(); } if (hasMultikillTimeout()) { hash = (37 * hash) + MULTIKILL_TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getMultikillTimeout().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog 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.bootstrap.v3alpha.Watchdog parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog 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.bootstrap.v3alpha.Watchdog parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog 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.bootstrap.v3alpha.Watchdog parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog 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.bootstrap.v3alpha.Watchdog parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog 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.bootstrap.v3alpha.Watchdog 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; } /** *
   * Envoy process watchdog configuration. When configured, this monitors for
   * nonresponsive threads and kills the process after the configured thresholds.
   * 
* * Protobuf type {@code envoy.config.bootstrap.v3alpha.Watchdog} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.bootstrap.v3alpha.Watchdog) io.envoyproxy.envoy.config.bootstrap.v3alpha.WatchdogOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.bootstrap.v3alpha.BootstrapProto.internal_static_envoy_config_bootstrap_v3alpha_Watchdog_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.bootstrap.v3alpha.BootstrapProto.internal_static_envoy_config_bootstrap_v3alpha_Watchdog_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog.class, io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog.Builder.class); } // Construct using io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog.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 (missTimeoutBuilder_ == null) { missTimeout_ = null; } else { missTimeout_ = null; missTimeoutBuilder_ = null; } if (megamissTimeoutBuilder_ == null) { megamissTimeout_ = null; } else { megamissTimeout_ = null; megamissTimeoutBuilder_ = null; } if (killTimeoutBuilder_ == null) { killTimeout_ = null; } else { killTimeout_ = null; killTimeoutBuilder_ = null; } if (multikillTimeoutBuilder_ == null) { multikillTimeout_ = null; } else { multikillTimeout_ = null; multikillTimeoutBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.bootstrap.v3alpha.BootstrapProto.internal_static_envoy_config_bootstrap_v3alpha_Watchdog_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog getDefaultInstanceForType() { return io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog build() { io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog buildPartial() { io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog result = new io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog(this); if (missTimeoutBuilder_ == null) { result.missTimeout_ = missTimeout_; } else { result.missTimeout_ = missTimeoutBuilder_.build(); } if (megamissTimeoutBuilder_ == null) { result.megamissTimeout_ = megamissTimeout_; } else { result.megamissTimeout_ = megamissTimeoutBuilder_.build(); } if (killTimeoutBuilder_ == null) { result.killTimeout_ = killTimeout_; } else { result.killTimeout_ = killTimeoutBuilder_.build(); } if (multikillTimeoutBuilder_ == null) { result.multikillTimeout_ = multikillTimeout_; } else { result.multikillTimeout_ = multikillTimeoutBuilder_.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.bootstrap.v3alpha.Watchdog) { return mergeFrom((io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog other) { if (other == io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog.getDefaultInstance()) return this; if (other.hasMissTimeout()) { mergeMissTimeout(other.getMissTimeout()); } if (other.hasMegamissTimeout()) { mergeMegamissTimeout(other.getMegamissTimeout()); } if (other.hasKillTimeout()) { mergeKillTimeout(other.getKillTimeout()); } if (other.hasMultikillTimeout()) { mergeMultikillTimeout(other.getMultikillTimeout()); } 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.bootstrap.v3alpha.Watchdog parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.Duration missTimeout_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> missTimeoutBuilder_; /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * *server.watchdog_miss* statistic. If not specified the default is 200ms.
     * 
* * .google.protobuf.Duration miss_timeout = 1; */ public boolean hasMissTimeout() { return missTimeoutBuilder_ != null || missTimeout_ != null; } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * *server.watchdog_miss* statistic. If not specified the default is 200ms.
     * 
* * .google.protobuf.Duration miss_timeout = 1; */ public com.google.protobuf.Duration getMissTimeout() { if (missTimeoutBuilder_ == null) { return missTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : missTimeout_; } else { return missTimeoutBuilder_.getMessage(); } } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * *server.watchdog_miss* statistic. If not specified the default is 200ms.
     * 
* * .google.protobuf.Duration miss_timeout = 1; */ public Builder setMissTimeout(com.google.protobuf.Duration value) { if (missTimeoutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } missTimeout_ = value; onChanged(); } else { missTimeoutBuilder_.setMessage(value); } return this; } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * *server.watchdog_miss* statistic. If not specified the default is 200ms.
     * 
* * .google.protobuf.Duration miss_timeout = 1; */ public Builder setMissTimeout( com.google.protobuf.Duration.Builder builderForValue) { if (missTimeoutBuilder_ == null) { missTimeout_ = builderForValue.build(); onChanged(); } else { missTimeoutBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * *server.watchdog_miss* statistic. If not specified the default is 200ms.
     * 
* * .google.protobuf.Duration miss_timeout = 1; */ public Builder mergeMissTimeout(com.google.protobuf.Duration value) { if (missTimeoutBuilder_ == null) { if (missTimeout_ != null) { missTimeout_ = com.google.protobuf.Duration.newBuilder(missTimeout_).mergeFrom(value).buildPartial(); } else { missTimeout_ = value; } onChanged(); } else { missTimeoutBuilder_.mergeFrom(value); } return this; } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * *server.watchdog_miss* statistic. If not specified the default is 200ms.
     * 
* * .google.protobuf.Duration miss_timeout = 1; */ public Builder clearMissTimeout() { if (missTimeoutBuilder_ == null) { missTimeout_ = null; onChanged(); } else { missTimeout_ = null; missTimeoutBuilder_ = null; } return this; } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * *server.watchdog_miss* statistic. If not specified the default is 200ms.
     * 
* * .google.protobuf.Duration miss_timeout = 1; */ public com.google.protobuf.Duration.Builder getMissTimeoutBuilder() { onChanged(); return getMissTimeoutFieldBuilder().getBuilder(); } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * *server.watchdog_miss* statistic. If not specified the default is 200ms.
     * 
* * .google.protobuf.Duration miss_timeout = 1; */ public com.google.protobuf.DurationOrBuilder getMissTimeoutOrBuilder() { if (missTimeoutBuilder_ != null) { return missTimeoutBuilder_.getMessageOrBuilder(); } else { return missTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : missTimeout_; } } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * *server.watchdog_miss* statistic. If not specified the default is 200ms.
     * 
* * .google.protobuf.Duration miss_timeout = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMissTimeoutFieldBuilder() { if (missTimeoutBuilder_ == null) { missTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getMissTimeout(), getParentForChildren(), isClean()); missTimeout_ = null; } return missTimeoutBuilder_; } private com.google.protobuf.Duration megamissTimeout_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> megamissTimeoutBuilder_; /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * *server.watchdog_mega_miss* statistic. If not specified the default is
     * 1000ms.
     * 
* * .google.protobuf.Duration megamiss_timeout = 2; */ public boolean hasMegamissTimeout() { return megamissTimeoutBuilder_ != null || megamissTimeout_ != null; } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * *server.watchdog_mega_miss* statistic. If not specified the default is
     * 1000ms.
     * 
* * .google.protobuf.Duration megamiss_timeout = 2; */ public com.google.protobuf.Duration getMegamissTimeout() { if (megamissTimeoutBuilder_ == null) { return megamissTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : megamissTimeout_; } else { return megamissTimeoutBuilder_.getMessage(); } } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * *server.watchdog_mega_miss* statistic. If not specified the default is
     * 1000ms.
     * 
* * .google.protobuf.Duration megamiss_timeout = 2; */ public Builder setMegamissTimeout(com.google.protobuf.Duration value) { if (megamissTimeoutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } megamissTimeout_ = value; onChanged(); } else { megamissTimeoutBuilder_.setMessage(value); } return this; } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * *server.watchdog_mega_miss* statistic. If not specified the default is
     * 1000ms.
     * 
* * .google.protobuf.Duration megamiss_timeout = 2; */ public Builder setMegamissTimeout( com.google.protobuf.Duration.Builder builderForValue) { if (megamissTimeoutBuilder_ == null) { megamissTimeout_ = builderForValue.build(); onChanged(); } else { megamissTimeoutBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * *server.watchdog_mega_miss* statistic. If not specified the default is
     * 1000ms.
     * 
* * .google.protobuf.Duration megamiss_timeout = 2; */ public Builder mergeMegamissTimeout(com.google.protobuf.Duration value) { if (megamissTimeoutBuilder_ == null) { if (megamissTimeout_ != null) { megamissTimeout_ = com.google.protobuf.Duration.newBuilder(megamissTimeout_).mergeFrom(value).buildPartial(); } else { megamissTimeout_ = value; } onChanged(); } else { megamissTimeoutBuilder_.mergeFrom(value); } return this; } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * *server.watchdog_mega_miss* statistic. If not specified the default is
     * 1000ms.
     * 
* * .google.protobuf.Duration megamiss_timeout = 2; */ public Builder clearMegamissTimeout() { if (megamissTimeoutBuilder_ == null) { megamissTimeout_ = null; onChanged(); } else { megamissTimeout_ = null; megamissTimeoutBuilder_ = null; } return this; } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * *server.watchdog_mega_miss* statistic. If not specified the default is
     * 1000ms.
     * 
* * .google.protobuf.Duration megamiss_timeout = 2; */ public com.google.protobuf.Duration.Builder getMegamissTimeoutBuilder() { onChanged(); return getMegamissTimeoutFieldBuilder().getBuilder(); } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * *server.watchdog_mega_miss* statistic. If not specified the default is
     * 1000ms.
     * 
* * .google.protobuf.Duration megamiss_timeout = 2; */ public com.google.protobuf.DurationOrBuilder getMegamissTimeoutOrBuilder() { if (megamissTimeoutBuilder_ != null) { return megamissTimeoutBuilder_.getMessageOrBuilder(); } else { return megamissTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : megamissTimeout_; } } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * *server.watchdog_mega_miss* statistic. If not specified the default is
     * 1000ms.
     * 
* * .google.protobuf.Duration megamiss_timeout = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMegamissTimeoutFieldBuilder() { if (megamissTimeoutBuilder_ == null) { megamissTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getMegamissTimeout(), getParentForChildren(), isClean()); megamissTimeout_ = null; } return megamissTimeoutBuilder_; } private com.google.protobuf.Duration killTimeout_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> killTimeoutBuilder_; /** *
     * If a watched thread has been nonresponsive for this duration, assume a
     * programming error and kill the entire Envoy process. Set to 0 to disable
     * kill behavior. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration kill_timeout = 3; */ public boolean hasKillTimeout() { return killTimeoutBuilder_ != null || killTimeout_ != null; } /** *
     * If a watched thread has been nonresponsive for this duration, assume a
     * programming error and kill the entire Envoy process. Set to 0 to disable
     * kill behavior. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration kill_timeout = 3; */ public com.google.protobuf.Duration getKillTimeout() { if (killTimeoutBuilder_ == null) { return killTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : killTimeout_; } else { return killTimeoutBuilder_.getMessage(); } } /** *
     * If a watched thread has been nonresponsive for this duration, assume a
     * programming error and kill the entire Envoy process. Set to 0 to disable
     * kill behavior. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration kill_timeout = 3; */ public Builder setKillTimeout(com.google.protobuf.Duration value) { if (killTimeoutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } killTimeout_ = value; onChanged(); } else { killTimeoutBuilder_.setMessage(value); } return this; } /** *
     * If a watched thread has been nonresponsive for this duration, assume a
     * programming error and kill the entire Envoy process. Set to 0 to disable
     * kill behavior. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration kill_timeout = 3; */ public Builder setKillTimeout( com.google.protobuf.Duration.Builder builderForValue) { if (killTimeoutBuilder_ == null) { killTimeout_ = builderForValue.build(); onChanged(); } else { killTimeoutBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * If a watched thread has been nonresponsive for this duration, assume a
     * programming error and kill the entire Envoy process. Set to 0 to disable
     * kill behavior. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration kill_timeout = 3; */ public Builder mergeKillTimeout(com.google.protobuf.Duration value) { if (killTimeoutBuilder_ == null) { if (killTimeout_ != null) { killTimeout_ = com.google.protobuf.Duration.newBuilder(killTimeout_).mergeFrom(value).buildPartial(); } else { killTimeout_ = value; } onChanged(); } else { killTimeoutBuilder_.mergeFrom(value); } return this; } /** *
     * If a watched thread has been nonresponsive for this duration, assume a
     * programming error and kill the entire Envoy process. Set to 0 to disable
     * kill behavior. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration kill_timeout = 3; */ public Builder clearKillTimeout() { if (killTimeoutBuilder_ == null) { killTimeout_ = null; onChanged(); } else { killTimeout_ = null; killTimeoutBuilder_ = null; } return this; } /** *
     * If a watched thread has been nonresponsive for this duration, assume a
     * programming error and kill the entire Envoy process. Set to 0 to disable
     * kill behavior. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration kill_timeout = 3; */ public com.google.protobuf.Duration.Builder getKillTimeoutBuilder() { onChanged(); return getKillTimeoutFieldBuilder().getBuilder(); } /** *
     * If a watched thread has been nonresponsive for this duration, assume a
     * programming error and kill the entire Envoy process. Set to 0 to disable
     * kill behavior. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration kill_timeout = 3; */ public com.google.protobuf.DurationOrBuilder getKillTimeoutOrBuilder() { if (killTimeoutBuilder_ != null) { return killTimeoutBuilder_.getMessageOrBuilder(); } else { return killTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : killTimeout_; } } /** *
     * If a watched thread has been nonresponsive for this duration, assume a
     * programming error and kill the entire Envoy process. Set to 0 to disable
     * kill behavior. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration kill_timeout = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getKillTimeoutFieldBuilder() { if (killTimeoutBuilder_ == null) { killTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getKillTimeout(), getParentForChildren(), isClean()); killTimeout_ = null; } return killTimeoutBuilder_; } private com.google.protobuf.Duration multikillTimeout_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> multikillTimeoutBuilder_; /** *
     * If at least two watched threads have been nonresponsive for at least this
     * duration assume a true deadlock and kill the entire Envoy process. Set to 0
     * to disable this behavior. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration multikill_timeout = 4; */ public boolean hasMultikillTimeout() { return multikillTimeoutBuilder_ != null || multikillTimeout_ != null; } /** *
     * If at least two watched threads have been nonresponsive for at least this
     * duration assume a true deadlock and kill the entire Envoy process. Set to 0
     * to disable this behavior. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration multikill_timeout = 4; */ public com.google.protobuf.Duration getMultikillTimeout() { if (multikillTimeoutBuilder_ == null) { return multikillTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : multikillTimeout_; } else { return multikillTimeoutBuilder_.getMessage(); } } /** *
     * If at least two watched threads have been nonresponsive for at least this
     * duration assume a true deadlock and kill the entire Envoy process. Set to 0
     * to disable this behavior. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration multikill_timeout = 4; */ public Builder setMultikillTimeout(com.google.protobuf.Duration value) { if (multikillTimeoutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } multikillTimeout_ = value; onChanged(); } else { multikillTimeoutBuilder_.setMessage(value); } return this; } /** *
     * If at least two watched threads have been nonresponsive for at least this
     * duration assume a true deadlock and kill the entire Envoy process. Set to 0
     * to disable this behavior. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration multikill_timeout = 4; */ public Builder setMultikillTimeout( com.google.protobuf.Duration.Builder builderForValue) { if (multikillTimeoutBuilder_ == null) { multikillTimeout_ = builderForValue.build(); onChanged(); } else { multikillTimeoutBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * If at least two watched threads have been nonresponsive for at least this
     * duration assume a true deadlock and kill the entire Envoy process. Set to 0
     * to disable this behavior. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration multikill_timeout = 4; */ public Builder mergeMultikillTimeout(com.google.protobuf.Duration value) { if (multikillTimeoutBuilder_ == null) { if (multikillTimeout_ != null) { multikillTimeout_ = com.google.protobuf.Duration.newBuilder(multikillTimeout_).mergeFrom(value).buildPartial(); } else { multikillTimeout_ = value; } onChanged(); } else { multikillTimeoutBuilder_.mergeFrom(value); } return this; } /** *
     * If at least two watched threads have been nonresponsive for at least this
     * duration assume a true deadlock and kill the entire Envoy process. Set to 0
     * to disable this behavior. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration multikill_timeout = 4; */ public Builder clearMultikillTimeout() { if (multikillTimeoutBuilder_ == null) { multikillTimeout_ = null; onChanged(); } else { multikillTimeout_ = null; multikillTimeoutBuilder_ = null; } return this; } /** *
     * If at least two watched threads have been nonresponsive for at least this
     * duration assume a true deadlock and kill the entire Envoy process. Set to 0
     * to disable this behavior. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration multikill_timeout = 4; */ public com.google.protobuf.Duration.Builder getMultikillTimeoutBuilder() { onChanged(); return getMultikillTimeoutFieldBuilder().getBuilder(); } /** *
     * If at least two watched threads have been nonresponsive for at least this
     * duration assume a true deadlock and kill the entire Envoy process. Set to 0
     * to disable this behavior. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration multikill_timeout = 4; */ public com.google.protobuf.DurationOrBuilder getMultikillTimeoutOrBuilder() { if (multikillTimeoutBuilder_ != null) { return multikillTimeoutBuilder_.getMessageOrBuilder(); } else { return multikillTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : multikillTimeout_; } } /** *
     * If at least two watched threads have been nonresponsive for at least this
     * duration assume a true deadlock and kill the entire Envoy process. Set to 0
     * to disable this behavior. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration multikill_timeout = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMultikillTimeoutFieldBuilder() { if (multikillTimeoutBuilder_ == null) { multikillTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getMultikillTimeout(), getParentForChildren(), isClean()); multikillTimeout_ = null; } return multikillTimeoutBuilder_; } @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.bootstrap.v3alpha.Watchdog) } // @@protoc_insertion_point(class_scope:envoy.config.bootstrap.v3alpha.Watchdog) private static final io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog(); } public static io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Watchdog parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Watchdog(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.bootstrap.v3alpha.Watchdog getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy