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

io.envoyproxy.envoy.config.bootstrap.v2.Watchdog Maven / Gradle / Ivy

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

// Protobuf Java Version: 3.25.1
package io.envoyproxy.envoy.config.bootstrap.v2;

/**
 * 
 * Envoy process watchdog configuration. When configured, this monitors for
 * nonresponsive threads and kills the process after the configured thresholds.
 * See the :ref:`watchdog documentation <operations_performance_watchdog>` for more information.
 * 
* * Protobuf type {@code envoy.config.bootstrap.v2.Watchdog} */ public final class Watchdog extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.bootstrap.v2.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.bootstrap.v2.BootstrapProto.internal_static_envoy_config_bootstrap_v2_Watchdog_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.bootstrap.v2.BootstrapProto.internal_static_envoy_config_bootstrap_v2_Watchdog_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.bootstrap.v2.Watchdog.class, io.envoyproxy.envoy.config.bootstrap.v2.Watchdog.Builder.class); } private int bitField0_; 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
   * *watchdog_miss* statistic. If not specified the default is 200ms.
   * 
* * .google.protobuf.Duration miss_timeout = 1; * @return Whether the missTimeout field is set. */ @java.lang.Override public boolean hasMissTimeout() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The duration after which Envoy counts a nonresponsive thread in the
   * *watchdog_miss* statistic. If not specified the default is 200ms.
   * 
* * .google.protobuf.Duration miss_timeout = 1; * @return The missTimeout. */ @java.lang.Override 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
   * *watchdog_miss* statistic. If not specified the default is 200ms.
   * 
* * .google.protobuf.Duration miss_timeout = 1; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMissTimeoutOrBuilder() { return missTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : missTimeout_; } 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
   * *watchdog_mega_miss* statistic. If not specified the default is
   * 1000ms.
   * 
* * .google.protobuf.Duration megamiss_timeout = 2; * @return Whether the megamissTimeout field is set. */ @java.lang.Override public boolean hasMegamissTimeout() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * The duration after which Envoy counts a nonresponsive thread in the
   * *watchdog_mega_miss* statistic. If not specified the default is
   * 1000ms.
   * 
* * .google.protobuf.Duration megamiss_timeout = 2; * @return The megamissTimeout. */ @java.lang.Override 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
   * *watchdog_mega_miss* statistic. If not specified the default is
   * 1000ms.
   * 
* * .google.protobuf.Duration megamiss_timeout = 2; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMegamissTimeoutOrBuilder() { return megamissTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : megamissTimeout_; } 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; * @return Whether the killTimeout field is set. */ @java.lang.Override public boolean hasKillTimeout() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * 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; * @return The killTimeout. */ @java.lang.Override 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; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getKillTimeoutOrBuilder() { return killTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : killTimeout_; } 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; * @return Whether the multikillTimeout field is set. */ @java.lang.Override public boolean hasMultikillTimeout() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * 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; * @return The multikillTimeout. */ @java.lang.Override 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; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMultikillTimeoutOrBuilder() { return multikillTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : multikillTimeout_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getMissTimeout()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getMegamissTimeout()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getKillTimeout()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getMultikillTimeout()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getMissTimeout()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMegamissTimeout()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getKillTimeout()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getMultikillTimeout()); } size += getUnknownFields().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.v2.Watchdog)) { return super.equals(obj); } io.envoyproxy.envoy.config.bootstrap.v2.Watchdog other = (io.envoyproxy.envoy.config.bootstrap.v2.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.bootstrap.v2.Watchdog parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.bootstrap.v2.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.v2.Watchdog parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.bootstrap.v2.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.v2.Watchdog parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.bootstrap.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.
   * See the :ref:`watchdog documentation <operations_performance_watchdog>` for more information.
   * 
* * Protobuf type {@code envoy.config.bootstrap.v2.Watchdog} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.bootstrap.v2.Watchdog) io.envoyproxy.envoy.config.bootstrap.v2.WatchdogOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.bootstrap.v2.BootstrapProto.internal_static_envoy_config_bootstrap_v2_Watchdog_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.bootstrap.v2.BootstrapProto.internal_static_envoy_config_bootstrap_v2_Watchdog_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.bootstrap.v2.Watchdog.class, io.envoyproxy.envoy.config.bootstrap.v2.Watchdog.Builder.class); } // Construct using io.envoyproxy.envoy.config.bootstrap.v2.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) { getMissTimeoutFieldBuilder(); getMegamissTimeoutFieldBuilder(); getKillTimeoutFieldBuilder(); getMultikillTimeoutFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; missTimeout_ = null; if (missTimeoutBuilder_ != null) { missTimeoutBuilder_.dispose(); missTimeoutBuilder_ = null; } megamissTimeout_ = null; if (megamissTimeoutBuilder_ != null) { megamissTimeoutBuilder_.dispose(); megamissTimeoutBuilder_ = null; } killTimeout_ = null; if (killTimeoutBuilder_ != null) { killTimeoutBuilder_.dispose(); killTimeoutBuilder_ = null; } multikillTimeout_ = null; if (multikillTimeoutBuilder_ != null) { multikillTimeoutBuilder_.dispose(); multikillTimeoutBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.bootstrap.v2.BootstrapProto.internal_static_envoy_config_bootstrap_v2_Watchdog_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.bootstrap.v2.Watchdog getDefaultInstanceForType() { return io.envoyproxy.envoy.config.bootstrap.v2.Watchdog.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.bootstrap.v2.Watchdog build() { io.envoyproxy.envoy.config.bootstrap.v2.Watchdog result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.bootstrap.v2.Watchdog buildPartial() { io.envoyproxy.envoy.config.bootstrap.v2.Watchdog result = new io.envoyproxy.envoy.config.bootstrap.v2.Watchdog(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.envoyproxy.envoy.config.bootstrap.v2.Watchdog result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.missTimeout_ = missTimeoutBuilder_ == null ? missTimeout_ : missTimeoutBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.megamissTimeout_ = megamissTimeoutBuilder_ == null ? megamissTimeout_ : megamissTimeoutBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.killTimeout_ = killTimeoutBuilder_ == null ? killTimeout_ : killTimeoutBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.multikillTimeout_ = multikillTimeoutBuilder_ == null ? multikillTimeout_ : multikillTimeoutBuilder_.build(); to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } @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.v2.Watchdog) { return mergeFrom((io.envoyproxy.envoy.config.bootstrap.v2.Watchdog)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.bootstrap.v2.Watchdog other) { if (other == io.envoyproxy.envoy.config.bootstrap.v2.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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getMissTimeoutFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getMegamissTimeoutFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getKillTimeoutFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getMultikillTimeoutFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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
     * *watchdog_miss* statistic. If not specified the default is 200ms.
     * 
* * .google.protobuf.Duration miss_timeout = 1; * @return Whether the missTimeout field is set. */ public boolean hasMissTimeout() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * *watchdog_miss* statistic. If not specified the default is 200ms.
     * 
* * .google.protobuf.Duration miss_timeout = 1; * @return The missTimeout. */ 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
     * *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; } else { missTimeoutBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * *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(); } else { missTimeoutBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * *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 (((bitField0_ & 0x00000001) != 0) && missTimeout_ != null && missTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { getMissTimeoutBuilder().mergeFrom(value); } else { missTimeout_ = value; } } else { missTimeoutBuilder_.mergeFrom(value); } if (missTimeout_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * *watchdog_miss* statistic. If not specified the default is 200ms.
     * 
* * .google.protobuf.Duration miss_timeout = 1; */ public Builder clearMissTimeout() { bitField0_ = (bitField0_ & ~0x00000001); missTimeout_ = null; if (missTimeoutBuilder_ != null) { missTimeoutBuilder_.dispose(); missTimeoutBuilder_ = null; } onChanged(); return this; } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * *watchdog_miss* statistic. If not specified the default is 200ms.
     * 
* * .google.protobuf.Duration miss_timeout = 1; */ public com.google.protobuf.Duration.Builder getMissTimeoutBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMissTimeoutFieldBuilder().getBuilder(); } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * *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
     * *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
     * *watchdog_mega_miss* statistic. If not specified the default is
     * 1000ms.
     * 
* * .google.protobuf.Duration megamiss_timeout = 2; * @return Whether the megamissTimeout field is set. */ public boolean hasMegamissTimeout() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * *watchdog_mega_miss* statistic. If not specified the default is
     * 1000ms.
     * 
* * .google.protobuf.Duration megamiss_timeout = 2; * @return The megamissTimeout. */ 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
     * *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; } else { megamissTimeoutBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * *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(); } else { megamissTimeoutBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * *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 (((bitField0_ & 0x00000002) != 0) && megamissTimeout_ != null && megamissTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { getMegamissTimeoutBuilder().mergeFrom(value); } else { megamissTimeout_ = value; } } else { megamissTimeoutBuilder_.mergeFrom(value); } if (megamissTimeout_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * *watchdog_mega_miss* statistic. If not specified the default is
     * 1000ms.
     * 
* * .google.protobuf.Duration megamiss_timeout = 2; */ public Builder clearMegamissTimeout() { bitField0_ = (bitField0_ & ~0x00000002); megamissTimeout_ = null; if (megamissTimeoutBuilder_ != null) { megamissTimeoutBuilder_.dispose(); megamissTimeoutBuilder_ = null; } onChanged(); return this; } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * *watchdog_mega_miss* statistic. If not specified the default is
     * 1000ms.
     * 
* * .google.protobuf.Duration megamiss_timeout = 2; */ public com.google.protobuf.Duration.Builder getMegamissTimeoutBuilder() { bitField0_ |= 0x00000002; onChanged(); return getMegamissTimeoutFieldBuilder().getBuilder(); } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * *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
     * *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; * @return Whether the killTimeout field is set. */ public boolean hasKillTimeout() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * 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; * @return The killTimeout. */ 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; } else { killTimeoutBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); 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(); } else { killTimeoutBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); 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 (((bitField0_ & 0x00000004) != 0) && killTimeout_ != null && killTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { getKillTimeoutBuilder().mergeFrom(value); } else { killTimeout_ = value; } } else { killTimeoutBuilder_.mergeFrom(value); } if (killTimeout_ != null) { bitField0_ |= 0x00000004; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000004); killTimeout_ = null; if (killTimeoutBuilder_ != null) { killTimeoutBuilder_.dispose(); killTimeoutBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000004; 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; * @return Whether the multikillTimeout field is set. */ public boolean hasMultikillTimeout() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * 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; * @return The multikillTimeout. */ 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; } else { multikillTimeoutBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); 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(); } else { multikillTimeoutBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); 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 (((bitField0_ & 0x00000008) != 0) && multikillTimeout_ != null && multikillTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { getMultikillTimeoutBuilder().mergeFrom(value); } else { multikillTimeout_ = value; } } else { multikillTimeoutBuilder_.mergeFrom(value); } if (multikillTimeout_ != null) { bitField0_ |= 0x00000008; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000008); multikillTimeout_ = null; if (multikillTimeoutBuilder_ != null) { multikillTimeoutBuilder_.dispose(); multikillTimeoutBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000008; 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.v2.Watchdog) } // @@protoc_insertion_point(class_scope:envoy.config.bootstrap.v2.Watchdog) private static final io.envoyproxy.envoy.config.bootstrap.v2.Watchdog DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.bootstrap.v2.Watchdog(); } public static io.envoyproxy.envoy.config.bootstrap.v2.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.v2.Watchdog getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy