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

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

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

/**
 * 
 * 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.
 * [#next-free-field: 8]
 * 
* * Protobuf type {@code envoy.config.bootstrap.v3.Watchdog} */ public final class Watchdog extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.bootstrap.v3.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() { actions_ = java.util.Collections.emptyList(); } @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(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { 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; } case 42: { io.envoyproxy.envoy.type.v3.Percent.Builder subBuilder = null; if (multikillThreshold_ != null) { subBuilder = multikillThreshold_.toBuilder(); } multikillThreshold_ = input.readMessage(io.envoyproxy.envoy.type.v3.Percent.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(multikillThreshold_); multikillThreshold_ = subBuilder.buildPartial(); } break; } case 50: { com.google.protobuf.Duration.Builder subBuilder = null; if (maxKillTimeoutJitter_ != null) { subBuilder = maxKillTimeoutJitter_.toBuilder(); } maxKillTimeoutJitter_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(maxKillTimeoutJitter_); maxKillTimeoutJitter_ = subBuilder.buildPartial(); } break; } case 58: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { actions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } actions_.add( input.readMessage(io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { actions_ = java.util.Collections.unmodifiableList(actions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_Watchdog_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_Watchdog_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.class, io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.Builder.class); } public interface WatchdogActionOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.bootstrap.v3.Watchdog.WatchdogAction) com.google.protobuf.MessageOrBuilder { /** *
     * Extension specific configuration for the action.
     * 
* * .envoy.config.core.v3.TypedExtensionConfig config = 1; * @return Whether the config field is set. */ boolean hasConfig(); /** *
     * Extension specific configuration for the action.
     * 
* * .envoy.config.core.v3.TypedExtensionConfig config = 1; * @return The config. */ io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig getConfig(); /** *
     * Extension specific configuration for the action.
     * 
* * .envoy.config.core.v3.TypedExtensionConfig config = 1; */ io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getConfigOrBuilder(); /** * .envoy.config.bootstrap.v3.Watchdog.WatchdogAction.WatchdogEvent event = 2 [(.validate.rules) = { ... } * @return The enum numeric value on the wire for event. */ int getEventValue(); /** * .envoy.config.bootstrap.v3.Watchdog.WatchdogAction.WatchdogEvent event = 2 [(.validate.rules) = { ... } * @return The event. */ io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.WatchdogEvent getEvent(); } /** * Protobuf type {@code envoy.config.bootstrap.v3.Watchdog.WatchdogAction} */ public static final class WatchdogAction extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.bootstrap.v3.Watchdog.WatchdogAction) WatchdogActionOrBuilder { private static final long serialVersionUID = 0L; // Use WatchdogAction.newBuilder() to construct. private WatchdogAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WatchdogAction() { event_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new WatchdogAction(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WatchdogAction( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder subBuilder = null; if (config_ != null) { subBuilder = config_.toBuilder(); } config_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(config_); config_ = subBuilder.buildPartial(); } break; } case 16: { int rawValue = input.readEnum(); event_ = rawValue; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_Watchdog_WatchdogAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_Watchdog_WatchdogAction_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.class, io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.Builder.class); } /** *
     * The events are fired in this order: KILL, MULTIKILL, MEGAMISS, MISS.
     * Within an event type, actions execute in the order they are configured.
     * For KILL/MULTIKILL there is a default PANIC that will run after the
     * registered actions and kills the process if it wasn't already killed.
     * It might be useful to specify several debug actions, and possibly an
     * alternate FATAL action.
     * 
* * Protobuf enum {@code envoy.config.bootstrap.v3.Watchdog.WatchdogAction.WatchdogEvent} */ public enum WatchdogEvent implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** * KILL = 1; */ KILL(1), /** * MULTIKILL = 2; */ MULTIKILL(2), /** * MEGAMISS = 3; */ MEGAMISS(3), /** * MISS = 4; */ MISS(4), UNRECOGNIZED(-1), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * KILL = 1; */ public static final int KILL_VALUE = 1; /** * MULTIKILL = 2; */ public static final int MULTIKILL_VALUE = 2; /** * MEGAMISS = 3; */ public static final int MEGAMISS_VALUE = 3; /** * MISS = 4; */ public static final int MISS_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static WatchdogEvent valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static WatchdogEvent forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return KILL; case 2: return MULTIKILL; case 3: return MEGAMISS; case 4: return MISS; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< WatchdogEvent> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public WatchdogEvent findValueByNumber(int number) { return WatchdogEvent.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.getDescriptor().getEnumTypes().get(0); } private static final WatchdogEvent[] VALUES = values(); public static WatchdogEvent valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private WatchdogEvent(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:envoy.config.bootstrap.v3.Watchdog.WatchdogAction.WatchdogEvent) } public static final int CONFIG_FIELD_NUMBER = 1; private io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig config_; /** *
     * Extension specific configuration for the action.
     * 
* * .envoy.config.core.v3.TypedExtensionConfig config = 1; * @return Whether the config field is set. */ @java.lang.Override public boolean hasConfig() { return config_ != null; } /** *
     * Extension specific configuration for the action.
     * 
* * .envoy.config.core.v3.TypedExtensionConfig config = 1; * @return The config. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig getConfig() { return config_ == null ? io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance() : config_; } /** *
     * Extension specific configuration for the action.
     * 
* * .envoy.config.core.v3.TypedExtensionConfig config = 1; */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getConfigOrBuilder() { return getConfig(); } public static final int EVENT_FIELD_NUMBER = 2; private int event_; /** * .envoy.config.bootstrap.v3.Watchdog.WatchdogAction.WatchdogEvent event = 2 [(.validate.rules) = { ... } * @return The enum numeric value on the wire for event. */ @java.lang.Override public int getEventValue() { return event_; } /** * .envoy.config.bootstrap.v3.Watchdog.WatchdogAction.WatchdogEvent event = 2 [(.validate.rules) = { ... } * @return The event. */ @java.lang.Override public io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.WatchdogEvent getEvent() { @SuppressWarnings("deprecation") io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.WatchdogEvent result = io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.WatchdogEvent.valueOf(event_); return result == null ? io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.WatchdogEvent.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (config_ != null) { output.writeMessage(1, getConfig()); } if (event_ != io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.WatchdogEvent.UNKNOWN.getNumber()) { output.writeEnum(2, event_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (config_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getConfig()); } if (event_ != io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.WatchdogEvent.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, event_); } 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.v3.Watchdog.WatchdogAction)) { return super.equals(obj); } io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction other = (io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { if (!getConfig() .equals(other.getConfig())) return false; } if (event_ != other.event_) 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 (hasConfig()) { hash = (37 * hash) + CONFIG_FIELD_NUMBER; hash = (53 * hash) + getConfig().hashCode(); } hash = (37 * hash) + EVENT_FIELD_NUMBER; hash = (53 * hash) + event_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction 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.v3.Watchdog.WatchdogAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction 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.v3.Watchdog.WatchdogAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction 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.v3.Watchdog.WatchdogAction parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction 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.v3.Watchdog.WatchdogAction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction 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.v3.Watchdog.WatchdogAction 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.v3.Watchdog.WatchdogAction 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.v3.Watchdog.WatchdogAction 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.bootstrap.v3.Watchdog.WatchdogAction} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.bootstrap.v3.Watchdog.WatchdogAction) io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogActionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_Watchdog_WatchdogAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_Watchdog_WatchdogAction_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.class, io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.Builder.class); } // Construct using io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.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 (configBuilder_ == null) { config_ = null; } else { config_ = null; configBuilder_ = null; } event_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_Watchdog_WatchdogAction_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction getDefaultInstanceForType() { return io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction build() { io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction buildPartial() { io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction result = new io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction(this); if (configBuilder_ == null) { result.config_ = config_; } else { result.config_ = configBuilder_.build(); } result.event_ = event_; 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.v3.Watchdog.WatchdogAction) { return mergeFrom((io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction other) { if (other == io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.getDefaultInstance()) return this; if (other.hasConfig()) { mergeConfig(other.getConfig()); } if (other.event_ != 0) { setEventValue(other.getEventValue()); } 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.v3.Watchdog.WatchdogAction parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig config_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder> configBuilder_; /** *
       * Extension specific configuration for the action.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig config = 1; * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** *
       * Extension specific configuration for the action.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig config = 1; * @return The config. */ public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig getConfig() { if (configBuilder_ == null) { return config_ == null ? io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** *
       * Extension specific configuration for the action.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig config = 1; */ public Builder setConfig(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig value) { if (configBuilder_ == null) { if (value == null) { throw new NullPointerException(); } config_ = value; onChanged(); } else { configBuilder_.setMessage(value); } return this; } /** *
       * Extension specific configuration for the action.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig config = 1; */ public Builder setConfig( io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); onChanged(); } else { configBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Extension specific configuration for the action.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig config = 1; */ public Builder mergeConfig(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); } else { config_ = value; } onChanged(); } else { configBuilder_.mergeFrom(value); } return this; } /** *
       * Extension specific configuration for the action.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig config = 1; */ public Builder clearConfig() { if (configBuilder_ == null) { config_ = null; onChanged(); } else { config_ = null; configBuilder_ = null; } return this; } /** *
       * Extension specific configuration for the action.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig config = 1; */ public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder getConfigBuilder() { onChanged(); return getConfigFieldBuilder().getBuilder(); } /** *
       * Extension specific configuration for the action.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig config = 1; */ public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { return config_ == null ? io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance() : config_; } } /** *
       * Extension specific configuration for the action.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder>( getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; } private int event_ = 0; /** * .envoy.config.bootstrap.v3.Watchdog.WatchdogAction.WatchdogEvent event = 2 [(.validate.rules) = { ... } * @return The enum numeric value on the wire for event. */ @java.lang.Override public int getEventValue() { return event_; } /** * .envoy.config.bootstrap.v3.Watchdog.WatchdogAction.WatchdogEvent event = 2 [(.validate.rules) = { ... } * @param value The enum numeric value on the wire for event to set. * @return This builder for chaining. */ public Builder setEventValue(int value) { event_ = value; onChanged(); return this; } /** * .envoy.config.bootstrap.v3.Watchdog.WatchdogAction.WatchdogEvent event = 2 [(.validate.rules) = { ... } * @return The event. */ @java.lang.Override public io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.WatchdogEvent getEvent() { @SuppressWarnings("deprecation") io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.WatchdogEvent result = io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.WatchdogEvent.valueOf(event_); return result == null ? io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.WatchdogEvent.UNRECOGNIZED : result; } /** * .envoy.config.bootstrap.v3.Watchdog.WatchdogAction.WatchdogEvent event = 2 [(.validate.rules) = { ... } * @param value The event to set. * @return This builder for chaining. */ public Builder setEvent(io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.WatchdogEvent value) { if (value == null) { throw new NullPointerException(); } event_ = value.getNumber(); onChanged(); return this; } /** * .envoy.config.bootstrap.v3.Watchdog.WatchdogAction.WatchdogEvent event = 2 [(.validate.rules) = { ... } * @return This builder for chaining. */ public Builder clearEvent() { event_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:envoy.config.bootstrap.v3.Watchdog.WatchdogAction) } // @@protoc_insertion_point(class_scope:envoy.config.bootstrap.v3.Watchdog.WatchdogAction) private static final io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction(); } public static io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WatchdogAction parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WatchdogAction(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.v3.Watchdog.WatchdogAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ACTIONS_FIELD_NUMBER = 7; private java.util.List actions_; /** *
   * Register actions that will fire on given WatchDog events.
   * See ``WatchDogAction`` for priority of events.
   * 
* * repeated .envoy.config.bootstrap.v3.Watchdog.WatchdogAction actions = 7; */ @java.lang.Override public java.util.List getActionsList() { return actions_; } /** *
   * Register actions that will fire on given WatchDog events.
   * See ``WatchDogAction`` for priority of events.
   * 
* * repeated .envoy.config.bootstrap.v3.Watchdog.WatchdogAction actions = 7; */ @java.lang.Override public java.util.List getActionsOrBuilderList() { return actions_; } /** *
   * Register actions that will fire on given WatchDog events.
   * See ``WatchDogAction`` for priority of events.
   * 
* * repeated .envoy.config.bootstrap.v3.Watchdog.WatchdogAction actions = 7; */ @java.lang.Override public int getActionsCount() { return actions_.size(); } /** *
   * Register actions that will fire on given WatchDog events.
   * See ``WatchDogAction`` for priority of events.
   * 
* * repeated .envoy.config.bootstrap.v3.Watchdog.WatchdogAction actions = 7; */ @java.lang.Override public io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction getActions(int index) { return actions_.get(index); } /** *
   * Register actions that will fire on given WatchDog events.
   * See ``WatchDogAction`` for priority of events.
   * 
* * repeated .envoy.config.bootstrap.v3.Watchdog.WatchdogAction actions = 7; */ @java.lang.Override public io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogActionOrBuilder getActionsOrBuilder( int index) { return actions_.get(index); } 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 missTimeout_ != null; } /** *
   * 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 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
   * ``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 megamissTimeout_ != null; } /** *
   * 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 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; * @return Whether the killTimeout field is set. */ @java.lang.Override 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; * @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 getKillTimeout(); } public static final int MAX_KILL_TIMEOUT_JITTER_FIELD_NUMBER = 6; private com.google.protobuf.Duration maxKillTimeoutJitter_; /** *
   * Defines the maximum jitter used to adjust the ``kill_timeout`` if ``kill_timeout`` is
   * enabled. Enabling this feature would help to reduce risk of synchronized
   * watchdog kill events across proxies due to external triggers. Set to 0 to
   * disable. If not specified the default is 0 (disabled).
   * 
* * .google.protobuf.Duration max_kill_timeout_jitter = 6 [(.validate.rules) = { ... } * @return Whether the maxKillTimeoutJitter field is set. */ @java.lang.Override public boolean hasMaxKillTimeoutJitter() { return maxKillTimeoutJitter_ != null; } /** *
   * Defines the maximum jitter used to adjust the ``kill_timeout`` if ``kill_timeout`` is
   * enabled. Enabling this feature would help to reduce risk of synchronized
   * watchdog kill events across proxies due to external triggers. Set to 0 to
   * disable. If not specified the default is 0 (disabled).
   * 
* * .google.protobuf.Duration max_kill_timeout_jitter = 6 [(.validate.rules) = { ... } * @return The maxKillTimeoutJitter. */ @java.lang.Override public com.google.protobuf.Duration getMaxKillTimeoutJitter() { return maxKillTimeoutJitter_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxKillTimeoutJitter_; } /** *
   * Defines the maximum jitter used to adjust the ``kill_timeout`` if ``kill_timeout`` is
   * enabled. Enabling this feature would help to reduce risk of synchronized
   * watchdog kill events across proxies due to external triggers. Set to 0 to
   * disable. If not specified the default is 0 (disabled).
   * 
* * .google.protobuf.Duration max_kill_timeout_jitter = 6 [(.validate.rules) = { ... } */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaxKillTimeoutJitterOrBuilder() { return getMaxKillTimeoutJitter(); } public static final int MULTIKILL_TIMEOUT_FIELD_NUMBER = 4; private com.google.protobuf.Duration multikillTimeout_; /** *
   * If ``max(2, ceil(registered_threads * Fraction(*multikill_threshold*)))``
   * threads have been nonresponsive for at least this duration 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 multikillTimeout_ != null; } /** *
   * If ``max(2, ceil(registered_threads * Fraction(*multikill_threshold*)))``
   * threads have been nonresponsive for at least this duration 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 ``max(2, ceil(registered_threads * Fraction(*multikill_threshold*)))``
   * threads have been nonresponsive for at least this duration 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 getMultikillTimeout(); } public static final int MULTIKILL_THRESHOLD_FIELD_NUMBER = 5; private io.envoyproxy.envoy.type.v3.Percent multikillThreshold_; /** *
   * Sets the threshold for ``multikill_timeout`` in terms of the percentage of
   * nonresponsive threads required for the ``multikill_timeout``.
   * If not specified the default is 0.
   * 
* * .envoy.type.v3.Percent multikill_threshold = 5; * @return Whether the multikillThreshold field is set. */ @java.lang.Override public boolean hasMultikillThreshold() { return multikillThreshold_ != null; } /** *
   * Sets the threshold for ``multikill_timeout`` in terms of the percentage of
   * nonresponsive threads required for the ``multikill_timeout``.
   * If not specified the default is 0.
   * 
* * .envoy.type.v3.Percent multikill_threshold = 5; * @return The multikillThreshold. */ @java.lang.Override public io.envoyproxy.envoy.type.v3.Percent getMultikillThreshold() { return multikillThreshold_ == null ? io.envoyproxy.envoy.type.v3.Percent.getDefaultInstance() : multikillThreshold_; } /** *
   * Sets the threshold for ``multikill_timeout`` in terms of the percentage of
   * nonresponsive threads required for the ``multikill_timeout``.
   * If not specified the default is 0.
   * 
* * .envoy.type.v3.Percent multikill_threshold = 5; */ @java.lang.Override public io.envoyproxy.envoy.type.v3.PercentOrBuilder getMultikillThresholdOrBuilder() { return getMultikillThreshold(); } 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()); } if (multikillThreshold_ != null) { output.writeMessage(5, getMultikillThreshold()); } if (maxKillTimeoutJitter_ != null) { output.writeMessage(6, getMaxKillTimeoutJitter()); } for (int i = 0; i < actions_.size(); i++) { output.writeMessage(7, actions_.get(i)); } 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()); } if (multikillThreshold_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getMultikillThreshold()); } if (maxKillTimeoutJitter_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getMaxKillTimeoutJitter()); } for (int i = 0; i < actions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, actions_.get(i)); } 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.v3.Watchdog)) { return super.equals(obj); } io.envoyproxy.envoy.config.bootstrap.v3.Watchdog other = (io.envoyproxy.envoy.config.bootstrap.v3.Watchdog) obj; if (!getActionsList() .equals(other.getActionsList())) return false; 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 (hasMaxKillTimeoutJitter() != other.hasMaxKillTimeoutJitter()) return false; if (hasMaxKillTimeoutJitter()) { if (!getMaxKillTimeoutJitter() .equals(other.getMaxKillTimeoutJitter())) return false; } if (hasMultikillTimeout() != other.hasMultikillTimeout()) return false; if (hasMultikillTimeout()) { if (!getMultikillTimeout() .equals(other.getMultikillTimeout())) return false; } if (hasMultikillThreshold() != other.hasMultikillThreshold()) return false; if (hasMultikillThreshold()) { if (!getMultikillThreshold() .equals(other.getMultikillThreshold())) 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 (getActionsCount() > 0) { hash = (37 * hash) + ACTIONS_FIELD_NUMBER; hash = (53 * hash) + getActionsList().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 (hasMaxKillTimeoutJitter()) { hash = (37 * hash) + MAX_KILL_TIMEOUT_JITTER_FIELD_NUMBER; hash = (53 * hash) + getMaxKillTimeoutJitter().hashCode(); } if (hasMultikillTimeout()) { hash = (37 * hash) + MULTIKILL_TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getMultikillTimeout().hashCode(); } if (hasMultikillThreshold()) { hash = (37 * hash) + MULTIKILL_THRESHOLD_FIELD_NUMBER; hash = (53 * hash) + getMultikillThreshold().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.bootstrap.v3.Watchdog parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.bootstrap.v3.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.v3.Watchdog parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.bootstrap.v3.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.v3.Watchdog parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.bootstrap.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.
   * [#next-free-field: 8]
   * 
* * Protobuf type {@code envoy.config.bootstrap.v3.Watchdog} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.bootstrap.v3.Watchdog) io.envoyproxy.envoy.config.bootstrap.v3.WatchdogOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_Watchdog_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_Watchdog_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.class, io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.Builder.class); } // Construct using io.envoyproxy.envoy.config.bootstrap.v3.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) { getActionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (actionsBuilder_ == null) { actions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { actionsBuilder_.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 (maxKillTimeoutJitterBuilder_ == null) { maxKillTimeoutJitter_ = null; } else { maxKillTimeoutJitter_ = null; maxKillTimeoutJitterBuilder_ = null; } if (multikillTimeoutBuilder_ == null) { multikillTimeout_ = null; } else { multikillTimeout_ = null; multikillTimeoutBuilder_ = null; } if (multikillThresholdBuilder_ == null) { multikillThreshold_ = null; } else { multikillThreshold_ = null; multikillThresholdBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_Watchdog_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.bootstrap.v3.Watchdog getDefaultInstanceForType() { return io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.bootstrap.v3.Watchdog build() { io.envoyproxy.envoy.config.bootstrap.v3.Watchdog result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.bootstrap.v3.Watchdog buildPartial() { io.envoyproxy.envoy.config.bootstrap.v3.Watchdog result = new io.envoyproxy.envoy.config.bootstrap.v3.Watchdog(this); int from_bitField0_ = bitField0_; if (actionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { actions_ = java.util.Collections.unmodifiableList(actions_); bitField0_ = (bitField0_ & ~0x00000001); } result.actions_ = actions_; } else { result.actions_ = actionsBuilder_.build(); } 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 (maxKillTimeoutJitterBuilder_ == null) { result.maxKillTimeoutJitter_ = maxKillTimeoutJitter_; } else { result.maxKillTimeoutJitter_ = maxKillTimeoutJitterBuilder_.build(); } if (multikillTimeoutBuilder_ == null) { result.multikillTimeout_ = multikillTimeout_; } else { result.multikillTimeout_ = multikillTimeoutBuilder_.build(); } if (multikillThresholdBuilder_ == null) { result.multikillThreshold_ = multikillThreshold_; } else { result.multikillThreshold_ = multikillThresholdBuilder_.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.v3.Watchdog) { return mergeFrom((io.envoyproxy.envoy.config.bootstrap.v3.Watchdog)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.bootstrap.v3.Watchdog other) { if (other == io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.getDefaultInstance()) return this; if (actionsBuilder_ == null) { if (!other.actions_.isEmpty()) { if (actions_.isEmpty()) { actions_ = other.actions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureActionsIsMutable(); actions_.addAll(other.actions_); } onChanged(); } } else { if (!other.actions_.isEmpty()) { if (actionsBuilder_.isEmpty()) { actionsBuilder_.dispose(); actionsBuilder_ = null; actions_ = other.actions_; bitField0_ = (bitField0_ & ~0x00000001); actionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getActionsFieldBuilder() : null; } else { actionsBuilder_.addAllMessages(other.actions_); } } } if (other.hasMissTimeout()) { mergeMissTimeout(other.getMissTimeout()); } if (other.hasMegamissTimeout()) { mergeMegamissTimeout(other.getMegamissTimeout()); } if (other.hasKillTimeout()) { mergeKillTimeout(other.getKillTimeout()); } if (other.hasMaxKillTimeoutJitter()) { mergeMaxKillTimeoutJitter(other.getMaxKillTimeoutJitter()); } if (other.hasMultikillTimeout()) { mergeMultikillTimeout(other.getMultikillTimeout()); } if (other.hasMultikillThreshold()) { mergeMultikillThreshold(other.getMultikillThreshold()); } 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.v3.Watchdog parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.bootstrap.v3.Watchdog) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List actions_ = java.util.Collections.emptyList(); private void ensureActionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { actions_ = new java.util.ArrayList(actions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction, io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.Builder, io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogActionOrBuilder> actionsBuilder_; /** *
     * Register actions that will fire on given WatchDog events.
     * See ``WatchDogAction`` for priority of events.
     * 
* * repeated .envoy.config.bootstrap.v3.Watchdog.WatchdogAction actions = 7; */ public java.util.List getActionsList() { if (actionsBuilder_ == null) { return java.util.Collections.unmodifiableList(actions_); } else { return actionsBuilder_.getMessageList(); } } /** *
     * Register actions that will fire on given WatchDog events.
     * See ``WatchDogAction`` for priority of events.
     * 
* * repeated .envoy.config.bootstrap.v3.Watchdog.WatchdogAction actions = 7; */ public int getActionsCount() { if (actionsBuilder_ == null) { return actions_.size(); } else { return actionsBuilder_.getCount(); } } /** *
     * Register actions that will fire on given WatchDog events.
     * See ``WatchDogAction`` for priority of events.
     * 
* * repeated .envoy.config.bootstrap.v3.Watchdog.WatchdogAction actions = 7; */ public io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction getActions(int index) { if (actionsBuilder_ == null) { return actions_.get(index); } else { return actionsBuilder_.getMessage(index); } } /** *
     * Register actions that will fire on given WatchDog events.
     * See ``WatchDogAction`` for priority of events.
     * 
* * repeated .envoy.config.bootstrap.v3.Watchdog.WatchdogAction actions = 7; */ public Builder setActions( int index, io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActionsIsMutable(); actions_.set(index, value); onChanged(); } else { actionsBuilder_.setMessage(index, value); } return this; } /** *
     * Register actions that will fire on given WatchDog events.
     * See ``WatchDogAction`` for priority of events.
     * 
* * repeated .envoy.config.bootstrap.v3.Watchdog.WatchdogAction actions = 7; */ public Builder setActions( int index, io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.Builder builderForValue) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.set(index, builderForValue.build()); onChanged(); } else { actionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Register actions that will fire on given WatchDog events.
     * See ``WatchDogAction`` for priority of events.
     * 
* * repeated .envoy.config.bootstrap.v3.Watchdog.WatchdogAction actions = 7; */ public Builder addActions(io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActionsIsMutable(); actions_.add(value); onChanged(); } else { actionsBuilder_.addMessage(value); } return this; } /** *
     * Register actions that will fire on given WatchDog events.
     * See ``WatchDogAction`` for priority of events.
     * 
* * repeated .envoy.config.bootstrap.v3.Watchdog.WatchdogAction actions = 7; */ public Builder addActions( int index, io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActionsIsMutable(); actions_.add(index, value); onChanged(); } else { actionsBuilder_.addMessage(index, value); } return this; } /** *
     * Register actions that will fire on given WatchDog events.
     * See ``WatchDogAction`` for priority of events.
     * 
* * repeated .envoy.config.bootstrap.v3.Watchdog.WatchdogAction actions = 7; */ public Builder addActions( io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.Builder builderForValue) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.add(builderForValue.build()); onChanged(); } else { actionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Register actions that will fire on given WatchDog events.
     * See ``WatchDogAction`` for priority of events.
     * 
* * repeated .envoy.config.bootstrap.v3.Watchdog.WatchdogAction actions = 7; */ public Builder addActions( int index, io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.Builder builderForValue) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.add(index, builderForValue.build()); onChanged(); } else { actionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Register actions that will fire on given WatchDog events.
     * See ``WatchDogAction`` for priority of events.
     * 
* * repeated .envoy.config.bootstrap.v3.Watchdog.WatchdogAction actions = 7; */ public Builder addAllActions( java.lang.Iterable values) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, actions_); onChanged(); } else { actionsBuilder_.addAllMessages(values); } return this; } /** *
     * Register actions that will fire on given WatchDog events.
     * See ``WatchDogAction`` for priority of events.
     * 
* * repeated .envoy.config.bootstrap.v3.Watchdog.WatchdogAction actions = 7; */ public Builder clearActions() { if (actionsBuilder_ == null) { actions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { actionsBuilder_.clear(); } return this; } /** *
     * Register actions that will fire on given WatchDog events.
     * See ``WatchDogAction`` for priority of events.
     * 
* * repeated .envoy.config.bootstrap.v3.Watchdog.WatchdogAction actions = 7; */ public Builder removeActions(int index) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.remove(index); onChanged(); } else { actionsBuilder_.remove(index); } return this; } /** *
     * Register actions that will fire on given WatchDog events.
     * See ``WatchDogAction`` for priority of events.
     * 
* * repeated .envoy.config.bootstrap.v3.Watchdog.WatchdogAction actions = 7; */ public io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.Builder getActionsBuilder( int index) { return getActionsFieldBuilder().getBuilder(index); } /** *
     * Register actions that will fire on given WatchDog events.
     * See ``WatchDogAction`` for priority of events.
     * 
* * repeated .envoy.config.bootstrap.v3.Watchdog.WatchdogAction actions = 7; */ public io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogActionOrBuilder getActionsOrBuilder( int index) { if (actionsBuilder_ == null) { return actions_.get(index); } else { return actionsBuilder_.getMessageOrBuilder(index); } } /** *
     * Register actions that will fire on given WatchDog events.
     * See ``WatchDogAction`` for priority of events.
     * 
* * repeated .envoy.config.bootstrap.v3.Watchdog.WatchdogAction actions = 7; */ public java.util.List getActionsOrBuilderList() { if (actionsBuilder_ != null) { return actionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(actions_); } } /** *
     * Register actions that will fire on given WatchDog events.
     * See ``WatchDogAction`` for priority of events.
     * 
* * repeated .envoy.config.bootstrap.v3.Watchdog.WatchdogAction actions = 7; */ public io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.Builder addActionsBuilder() { return getActionsFieldBuilder().addBuilder( io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.getDefaultInstance()); } /** *
     * Register actions that will fire on given WatchDog events.
     * See ``WatchDogAction`` for priority of events.
     * 
* * repeated .envoy.config.bootstrap.v3.Watchdog.WatchdogAction actions = 7; */ public io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.Builder addActionsBuilder( int index) { return getActionsFieldBuilder().addBuilder( index, io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.getDefaultInstance()); } /** *
     * Register actions that will fire on given WatchDog events.
     * See ``WatchDogAction`` for priority of events.
     * 
* * repeated .envoy.config.bootstrap.v3.Watchdog.WatchdogAction actions = 7; */ public java.util.List getActionsBuilderList() { return getActionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction, io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.Builder, io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogActionOrBuilder> getActionsFieldBuilder() { if (actionsBuilder_ == null) { actionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction, io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.Builder, io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogActionOrBuilder>( actions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); actions_ = null; } return actionsBuilder_; } 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 missTimeoutBuilder_ != null || missTimeout_ != null; } /** *
     * 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; onChanged(); } else { missTimeoutBuilder_.setMessage(value); } 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(); onChanged(); } else { missTimeoutBuilder_.setMessage(builderForValue.build()); } 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 (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
     * ``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
     * ``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
     * ``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 megamissTimeoutBuilder_ != null || megamissTimeout_ != null; } /** *
     * 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; onChanged(); } else { megamissTimeoutBuilder_.setMessage(value); } 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(); onChanged(); } else { megamissTimeoutBuilder_.setMessage(builderForValue.build()); } 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 (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
     * ``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
     * ``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
     * ``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 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; * @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; 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 maxKillTimeoutJitter_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxKillTimeoutJitterBuilder_; /** *
     * Defines the maximum jitter used to adjust the ``kill_timeout`` if ``kill_timeout`` is
     * enabled. Enabling this feature would help to reduce risk of synchronized
     * watchdog kill events across proxies due to external triggers. Set to 0 to
     * disable. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration max_kill_timeout_jitter = 6 [(.validate.rules) = { ... } * @return Whether the maxKillTimeoutJitter field is set. */ public boolean hasMaxKillTimeoutJitter() { return maxKillTimeoutJitterBuilder_ != null || maxKillTimeoutJitter_ != null; } /** *
     * Defines the maximum jitter used to adjust the ``kill_timeout`` if ``kill_timeout`` is
     * enabled. Enabling this feature would help to reduce risk of synchronized
     * watchdog kill events across proxies due to external triggers. Set to 0 to
     * disable. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration max_kill_timeout_jitter = 6 [(.validate.rules) = { ... } * @return The maxKillTimeoutJitter. */ public com.google.protobuf.Duration getMaxKillTimeoutJitter() { if (maxKillTimeoutJitterBuilder_ == null) { return maxKillTimeoutJitter_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxKillTimeoutJitter_; } else { return maxKillTimeoutJitterBuilder_.getMessage(); } } /** *
     * Defines the maximum jitter used to adjust the ``kill_timeout`` if ``kill_timeout`` is
     * enabled. Enabling this feature would help to reduce risk of synchronized
     * watchdog kill events across proxies due to external triggers. Set to 0 to
     * disable. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration max_kill_timeout_jitter = 6 [(.validate.rules) = { ... } */ public Builder setMaxKillTimeoutJitter(com.google.protobuf.Duration value) { if (maxKillTimeoutJitterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxKillTimeoutJitter_ = value; onChanged(); } else { maxKillTimeoutJitterBuilder_.setMessage(value); } return this; } /** *
     * Defines the maximum jitter used to adjust the ``kill_timeout`` if ``kill_timeout`` is
     * enabled. Enabling this feature would help to reduce risk of synchronized
     * watchdog kill events across proxies due to external triggers. Set to 0 to
     * disable. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration max_kill_timeout_jitter = 6 [(.validate.rules) = { ... } */ public Builder setMaxKillTimeoutJitter( com.google.protobuf.Duration.Builder builderForValue) { if (maxKillTimeoutJitterBuilder_ == null) { maxKillTimeoutJitter_ = builderForValue.build(); onChanged(); } else { maxKillTimeoutJitterBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Defines the maximum jitter used to adjust the ``kill_timeout`` if ``kill_timeout`` is
     * enabled. Enabling this feature would help to reduce risk of synchronized
     * watchdog kill events across proxies due to external triggers. Set to 0 to
     * disable. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration max_kill_timeout_jitter = 6 [(.validate.rules) = { ... } */ public Builder mergeMaxKillTimeoutJitter(com.google.protobuf.Duration value) { if (maxKillTimeoutJitterBuilder_ == null) { if (maxKillTimeoutJitter_ != null) { maxKillTimeoutJitter_ = com.google.protobuf.Duration.newBuilder(maxKillTimeoutJitter_).mergeFrom(value).buildPartial(); } else { maxKillTimeoutJitter_ = value; } onChanged(); } else { maxKillTimeoutJitterBuilder_.mergeFrom(value); } return this; } /** *
     * Defines the maximum jitter used to adjust the ``kill_timeout`` if ``kill_timeout`` is
     * enabled. Enabling this feature would help to reduce risk of synchronized
     * watchdog kill events across proxies due to external triggers. Set to 0 to
     * disable. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration max_kill_timeout_jitter = 6 [(.validate.rules) = { ... } */ public Builder clearMaxKillTimeoutJitter() { if (maxKillTimeoutJitterBuilder_ == null) { maxKillTimeoutJitter_ = null; onChanged(); } else { maxKillTimeoutJitter_ = null; maxKillTimeoutJitterBuilder_ = null; } return this; } /** *
     * Defines the maximum jitter used to adjust the ``kill_timeout`` if ``kill_timeout`` is
     * enabled. Enabling this feature would help to reduce risk of synchronized
     * watchdog kill events across proxies due to external triggers. Set to 0 to
     * disable. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration max_kill_timeout_jitter = 6 [(.validate.rules) = { ... } */ public com.google.protobuf.Duration.Builder getMaxKillTimeoutJitterBuilder() { onChanged(); return getMaxKillTimeoutJitterFieldBuilder().getBuilder(); } /** *
     * Defines the maximum jitter used to adjust the ``kill_timeout`` if ``kill_timeout`` is
     * enabled. Enabling this feature would help to reduce risk of synchronized
     * watchdog kill events across proxies due to external triggers. Set to 0 to
     * disable. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration max_kill_timeout_jitter = 6 [(.validate.rules) = { ... } */ public com.google.protobuf.DurationOrBuilder getMaxKillTimeoutJitterOrBuilder() { if (maxKillTimeoutJitterBuilder_ != null) { return maxKillTimeoutJitterBuilder_.getMessageOrBuilder(); } else { return maxKillTimeoutJitter_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxKillTimeoutJitter_; } } /** *
     * Defines the maximum jitter used to adjust the ``kill_timeout`` if ``kill_timeout`` is
     * enabled. Enabling this feature would help to reduce risk of synchronized
     * watchdog kill events across proxies due to external triggers. Set to 0 to
     * disable. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration max_kill_timeout_jitter = 6 [(.validate.rules) = { ... } */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMaxKillTimeoutJitterFieldBuilder() { if (maxKillTimeoutJitterBuilder_ == null) { maxKillTimeoutJitterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getMaxKillTimeoutJitter(), getParentForChildren(), isClean()); maxKillTimeoutJitter_ = null; } return maxKillTimeoutJitterBuilder_; } 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 ``max(2, ceil(registered_threads * Fraction(*multikill_threshold*)))``
     * threads have been nonresponsive for at least this duration 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 multikillTimeoutBuilder_ != null || multikillTimeout_ != null; } /** *
     * If ``max(2, ceil(registered_threads * Fraction(*multikill_threshold*)))``
     * threads have been nonresponsive for at least this duration 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 ``max(2, ceil(registered_threads * Fraction(*multikill_threshold*)))``
     * threads have been nonresponsive for at least this duration 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 ``max(2, ceil(registered_threads * Fraction(*multikill_threshold*)))``
     * threads have been nonresponsive for at least this duration 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 ``max(2, ceil(registered_threads * Fraction(*multikill_threshold*)))``
     * threads have been nonresponsive for at least this duration 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 ``max(2, ceil(registered_threads * Fraction(*multikill_threshold*)))``
     * threads have been nonresponsive for at least this duration 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 ``max(2, ceil(registered_threads * Fraction(*multikill_threshold*)))``
     * threads have been nonresponsive for at least this duration 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 ``max(2, ceil(registered_threads * Fraction(*multikill_threshold*)))``
     * threads have been nonresponsive for at least this duration 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 ``max(2, ceil(registered_threads * Fraction(*multikill_threshold*)))``
     * threads have been nonresponsive for at least this duration 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_; } private io.envoyproxy.envoy.type.v3.Percent multikillThreshold_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.v3.Percent, io.envoyproxy.envoy.type.v3.Percent.Builder, io.envoyproxy.envoy.type.v3.PercentOrBuilder> multikillThresholdBuilder_; /** *
     * Sets the threshold for ``multikill_timeout`` in terms of the percentage of
     * nonresponsive threads required for the ``multikill_timeout``.
     * If not specified the default is 0.
     * 
* * .envoy.type.v3.Percent multikill_threshold = 5; * @return Whether the multikillThreshold field is set. */ public boolean hasMultikillThreshold() { return multikillThresholdBuilder_ != null || multikillThreshold_ != null; } /** *
     * Sets the threshold for ``multikill_timeout`` in terms of the percentage of
     * nonresponsive threads required for the ``multikill_timeout``.
     * If not specified the default is 0.
     * 
* * .envoy.type.v3.Percent multikill_threshold = 5; * @return The multikillThreshold. */ public io.envoyproxy.envoy.type.v3.Percent getMultikillThreshold() { if (multikillThresholdBuilder_ == null) { return multikillThreshold_ == null ? io.envoyproxy.envoy.type.v3.Percent.getDefaultInstance() : multikillThreshold_; } else { return multikillThresholdBuilder_.getMessage(); } } /** *
     * Sets the threshold for ``multikill_timeout`` in terms of the percentage of
     * nonresponsive threads required for the ``multikill_timeout``.
     * If not specified the default is 0.
     * 
* * .envoy.type.v3.Percent multikill_threshold = 5; */ public Builder setMultikillThreshold(io.envoyproxy.envoy.type.v3.Percent value) { if (multikillThresholdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } multikillThreshold_ = value; onChanged(); } else { multikillThresholdBuilder_.setMessage(value); } return this; } /** *
     * Sets the threshold for ``multikill_timeout`` in terms of the percentage of
     * nonresponsive threads required for the ``multikill_timeout``.
     * If not specified the default is 0.
     * 
* * .envoy.type.v3.Percent multikill_threshold = 5; */ public Builder setMultikillThreshold( io.envoyproxy.envoy.type.v3.Percent.Builder builderForValue) { if (multikillThresholdBuilder_ == null) { multikillThreshold_ = builderForValue.build(); onChanged(); } else { multikillThresholdBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Sets the threshold for ``multikill_timeout`` in terms of the percentage of
     * nonresponsive threads required for the ``multikill_timeout``.
     * If not specified the default is 0.
     * 
* * .envoy.type.v3.Percent multikill_threshold = 5; */ public Builder mergeMultikillThreshold(io.envoyproxy.envoy.type.v3.Percent value) { if (multikillThresholdBuilder_ == null) { if (multikillThreshold_ != null) { multikillThreshold_ = io.envoyproxy.envoy.type.v3.Percent.newBuilder(multikillThreshold_).mergeFrom(value).buildPartial(); } else { multikillThreshold_ = value; } onChanged(); } else { multikillThresholdBuilder_.mergeFrom(value); } return this; } /** *
     * Sets the threshold for ``multikill_timeout`` in terms of the percentage of
     * nonresponsive threads required for the ``multikill_timeout``.
     * If not specified the default is 0.
     * 
* * .envoy.type.v3.Percent multikill_threshold = 5; */ public Builder clearMultikillThreshold() { if (multikillThresholdBuilder_ == null) { multikillThreshold_ = null; onChanged(); } else { multikillThreshold_ = null; multikillThresholdBuilder_ = null; } return this; } /** *
     * Sets the threshold for ``multikill_timeout`` in terms of the percentage of
     * nonresponsive threads required for the ``multikill_timeout``.
     * If not specified the default is 0.
     * 
* * .envoy.type.v3.Percent multikill_threshold = 5; */ public io.envoyproxy.envoy.type.v3.Percent.Builder getMultikillThresholdBuilder() { onChanged(); return getMultikillThresholdFieldBuilder().getBuilder(); } /** *
     * Sets the threshold for ``multikill_timeout`` in terms of the percentage of
     * nonresponsive threads required for the ``multikill_timeout``.
     * If not specified the default is 0.
     * 
* * .envoy.type.v3.Percent multikill_threshold = 5; */ public io.envoyproxy.envoy.type.v3.PercentOrBuilder getMultikillThresholdOrBuilder() { if (multikillThresholdBuilder_ != null) { return multikillThresholdBuilder_.getMessageOrBuilder(); } else { return multikillThreshold_ == null ? io.envoyproxy.envoy.type.v3.Percent.getDefaultInstance() : multikillThreshold_; } } /** *
     * Sets the threshold for ``multikill_timeout`` in terms of the percentage of
     * nonresponsive threads required for the ``multikill_timeout``.
     * If not specified the default is 0.
     * 
* * .envoy.type.v3.Percent multikill_threshold = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.v3.Percent, io.envoyproxy.envoy.type.v3.Percent.Builder, io.envoyproxy.envoy.type.v3.PercentOrBuilder> getMultikillThresholdFieldBuilder() { if (multikillThresholdBuilder_ == null) { multikillThresholdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.v3.Percent, io.envoyproxy.envoy.type.v3.Percent.Builder, io.envoyproxy.envoy.type.v3.PercentOrBuilder>( getMultikillThreshold(), getParentForChildren(), isClean()); multikillThreshold_ = null; } return multikillThresholdBuilder_; } @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.v3.Watchdog) } // @@protoc_insertion_point(class_scope:envoy.config.bootstrap.v3.Watchdog) private static final io.envoyproxy.envoy.config.bootstrap.v3.Watchdog DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.bootstrap.v3.Watchdog(); } public static io.envoyproxy.envoy.config.bootstrap.v3.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.v3.Watchdog getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy