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

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

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/config/bootstrap/v3/bootstrap.proto

// Protobuf Java Version: 3.25.5
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(); } 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(); } 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) } private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** *
     * 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 config_ == null ? io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance() : config_; } public static final int EVENT_FIELD_NUMBER = 2; 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) = { ... } * @return The event. */ @java.lang.Override public io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.WatchdogEvent getEvent() { io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.WatchdogEvent result = io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.WatchdogEvent.forNumber(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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getConfig()); } if (event_ != io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.WatchdogEvent.UNKNOWN.getNumber()) { output.writeEnum(2, event_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getConfig()); } if (event_ != io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.WatchdogEvent.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, event_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.config.bootstrap.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (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) + getUnknownFields().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) { getConfigFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; config_ = null; if (configBuilder_ != null) { configBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.event_ = event_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.envoyproxy.envoy.config.bootstrap.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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getConfigFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { event_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private 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 ((bitField0_ & 0x00000001) != 0); } /** *
       * 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; } else { configBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { configBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && config_ != null && config_ != io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; } } else { configBuilder_.mergeFrom(value); } if (config_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Extension specific configuration for the action.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig config = 1; */ public Builder clearConfig() { bitField0_ = (bitField0_ & ~0x00000001); config_ = null; if (configBuilder_ != null) { configBuilder_.dispose(); configBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000001; 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; bitField0_ |= 0x00000002; 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() { io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.WatchdogEvent result = io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.WatchdogEvent.forNumber(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(); } bitField0_ |= 0x00000002; 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() { bitField0_ = (bitField0_ & ~0x00000002); 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int ACTIONS_FIELD_NUMBER = 7; @SuppressWarnings("serial") 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 ((bitField0_ & 0x00000001) != 0); } /** *
   * The duration after which Envoy counts a nonresponsive thread in the
   * ``watchdog_miss`` statistic. If not specified the default is 200ms.
   * 
* * .google.protobuf.Duration miss_timeout = 1; * @return The missTimeout. */ @java.lang.Override public com.google.protobuf.Duration getMissTimeout() { return missTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : missTimeout_; } /** *
   * The duration after which Envoy counts a nonresponsive thread in the
   * ``watchdog_miss`` statistic. If not specified the default is 200ms.
   * 
* * .google.protobuf.Duration miss_timeout = 1; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMissTimeoutOrBuilder() { return missTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : missTimeout_; } public static final int MEGAMISS_TIMEOUT_FIELD_NUMBER = 2; private com.google.protobuf.Duration megamissTimeout_; /** *
   * The duration after which Envoy counts a nonresponsive thread in the
   * ``watchdog_mega_miss`` statistic. If not specified the default is
   * 1000ms.
   * 
* * .google.protobuf.Duration megamiss_timeout = 2; * @return Whether the megamissTimeout field is set. */ @java.lang.Override public boolean hasMegamissTimeout() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * The duration after which Envoy counts a nonresponsive thread in the
   * ``watchdog_mega_miss`` statistic. If not specified the default is
   * 1000ms.
   * 
* * .google.protobuf.Duration megamiss_timeout = 2; * @return The megamissTimeout. */ @java.lang.Override public com.google.protobuf.Duration getMegamissTimeout() { return megamissTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : megamissTimeout_; } /** *
   * The duration after which Envoy counts a nonresponsive thread in the
   * ``watchdog_mega_miss`` statistic. If not specified the default is
   * 1000ms.
   * 
* * .google.protobuf.Duration megamiss_timeout = 2; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMegamissTimeoutOrBuilder() { return megamissTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : megamissTimeout_; } public static final int KILL_TIMEOUT_FIELD_NUMBER = 3; private com.google.protobuf.Duration killTimeout_; /** *
   * If a watched thread has been nonresponsive for this duration, assume a
   * programming error and kill the entire Envoy process. Set to 0 to disable
   * kill behavior. If not specified the default is 0 (disabled).
   * 
* * .google.protobuf.Duration kill_timeout = 3; * @return Whether the killTimeout field is set. */ @java.lang.Override public boolean hasKillTimeout() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * If a watched thread has been nonresponsive for this duration, assume a
   * programming error and kill the entire Envoy process. Set to 0 to disable
   * kill behavior. If not specified the default is 0 (disabled).
   * 
* * .google.protobuf.Duration kill_timeout = 3; * @return The killTimeout. */ @java.lang.Override public com.google.protobuf.Duration getKillTimeout() { return killTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : killTimeout_; } /** *
   * If a watched thread has been nonresponsive for this duration, assume a
   * programming error and kill the entire Envoy process. Set to 0 to disable
   * kill behavior. If not specified the default is 0 (disabled).
   * 
* * .google.protobuf.Duration kill_timeout = 3; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getKillTimeoutOrBuilder() { return killTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : killTimeout_; } public static final int 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 ((bitField0_ & 0x00000008) != 0); } /** *
   * 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 maxKillTimeoutJitter_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxKillTimeoutJitter_; } 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 ((bitField0_ & 0x00000010) != 0); } /** *
   * 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 multikillTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : multikillTimeout_; } 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 ((bitField0_ & 0x00000020) != 0); } /** *
   * 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 multikillThreshold_ == null ? io.envoyproxy.envoy.type.v3.Percent.getDefaultInstance() : multikillThreshold_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getMissTimeout()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getMegamissTimeout()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getKillTimeout()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(4, getMultikillTimeout()); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(5, getMultikillThreshold()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(6, getMaxKillTimeoutJitter()); } for (int i = 0; i < actions_.size(); i++) { output.writeMessage(7, actions_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getMissTimeout()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMegamissTimeout()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getKillTimeout()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getMultikillTimeout()); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getMultikillThreshold()); } if (((bitField0_ & 0x00000008) != 0)) { 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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.config.bootstrap.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (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) + getUnknownFields().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(); getMissTimeoutFieldBuilder(); getMegamissTimeoutFieldBuilder(); getKillTimeoutFieldBuilder(); getMaxKillTimeoutJitterFieldBuilder(); getMultikillTimeoutFieldBuilder(); getMultikillThresholdFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (actionsBuilder_ == null) { actions_ = java.util.Collections.emptyList(); } else { actions_ = null; actionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); missTimeout_ = null; if (missTimeoutBuilder_ != null) { missTimeoutBuilder_.dispose(); missTimeoutBuilder_ = null; } megamissTimeout_ = null; if (megamissTimeoutBuilder_ != null) { megamissTimeoutBuilder_.dispose(); megamissTimeoutBuilder_ = null; } killTimeout_ = null; if (killTimeoutBuilder_ != null) { killTimeoutBuilder_.dispose(); killTimeoutBuilder_ = null; } maxKillTimeoutJitter_ = null; if (maxKillTimeoutJitterBuilder_ != null) { maxKillTimeoutJitterBuilder_.dispose(); maxKillTimeoutJitterBuilder_ = null; } multikillTimeout_ = null; if (multikillTimeoutBuilder_ != null) { multikillTimeoutBuilder_.dispose(); multikillTimeoutBuilder_ = null; } multikillThreshold_ = null; if (multikillThresholdBuilder_ != null) { multikillThresholdBuilder_.dispose(); 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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.envoyproxy.envoy.config.bootstrap.v3.Watchdog result) { if (actionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { actions_ = java.util.Collections.unmodifiableList(actions_); bitField0_ = (bitField0_ & ~0x00000001); } result.actions_ = actions_; } else { result.actions_ = actionsBuilder_.build(); } } private void buildPartial0(io.envoyproxy.envoy.config.bootstrap.v3.Watchdog result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.missTimeout_ = missTimeoutBuilder_ == null ? missTimeout_ : missTimeoutBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.megamissTimeout_ = megamissTimeoutBuilder_ == null ? megamissTimeout_ : megamissTimeoutBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.killTimeout_ = killTimeoutBuilder_ == null ? killTimeout_ : killTimeoutBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.maxKillTimeoutJitter_ = maxKillTimeoutJitterBuilder_ == null ? maxKillTimeoutJitter_ : maxKillTimeoutJitterBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { result.multikillTimeout_ = multikillTimeoutBuilder_ == null ? multikillTimeout_ : multikillTimeoutBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000040) != 0)) { result.multikillThreshold_ = multikillThresholdBuilder_ == null ? multikillThreshold_ : multikillThresholdBuilder_.build(); to_bitField0_ |= 0x00000020; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.envoyproxy.envoy.config.bootstrap.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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getMissTimeoutFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 10 case 18: { input.readMessage( getMegamissTimeoutFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 18 case 26: { input.readMessage( getKillTimeoutFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 26 case 34: { input.readMessage( getMultikillTimeoutFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 34 case 42: { input.readMessage( getMultikillThresholdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 42 case 50: { input.readMessage( getMaxKillTimeoutJitterFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 50 case 58: { io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction m = input.readMessage( io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.WatchdogAction.parser(), extensionRegistry); if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.add(m); } else { actionsBuilder_.addMessage(m); } break; } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private 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 ((bitField0_ & 0x00000002) != 0); } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * ``watchdog_miss`` statistic. If not specified the default is 200ms.
     * 
* * .google.protobuf.Duration miss_timeout = 1; * @return The missTimeout. */ public com.google.protobuf.Duration getMissTimeout() { if (missTimeoutBuilder_ == null) { return missTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : missTimeout_; } else { return missTimeoutBuilder_.getMessage(); } } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * ``watchdog_miss`` statistic. If not specified the default is 200ms.
     * 
* * .google.protobuf.Duration miss_timeout = 1; */ public Builder setMissTimeout(com.google.protobuf.Duration value) { if (missTimeoutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } missTimeout_ = value; } else { missTimeoutBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * ``watchdog_miss`` statistic. If not specified the default is 200ms.
     * 
* * .google.protobuf.Duration miss_timeout = 1; */ public Builder setMissTimeout( com.google.protobuf.Duration.Builder builderForValue) { if (missTimeoutBuilder_ == null) { missTimeout_ = builderForValue.build(); } else { missTimeoutBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * ``watchdog_miss`` statistic. If not specified the default is 200ms.
     * 
* * .google.protobuf.Duration miss_timeout = 1; */ public Builder mergeMissTimeout(com.google.protobuf.Duration value) { if (missTimeoutBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && missTimeout_ != null && missTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { getMissTimeoutBuilder().mergeFrom(value); } else { missTimeout_ = value; } } else { missTimeoutBuilder_.mergeFrom(value); } if (missTimeout_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * ``watchdog_miss`` statistic. If not specified the default is 200ms.
     * 
* * .google.protobuf.Duration miss_timeout = 1; */ public Builder clearMissTimeout() { bitField0_ = (bitField0_ & ~0x00000002); missTimeout_ = null; if (missTimeoutBuilder_ != null) { missTimeoutBuilder_.dispose(); missTimeoutBuilder_ = null; } onChanged(); return this; } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * ``watchdog_miss`` statistic. If not specified the default is 200ms.
     * 
* * .google.protobuf.Duration miss_timeout = 1; */ public com.google.protobuf.Duration.Builder getMissTimeoutBuilder() { bitField0_ |= 0x00000002; onChanged(); return getMissTimeoutFieldBuilder().getBuilder(); } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * ``watchdog_miss`` statistic. If not specified the default is 200ms.
     * 
* * .google.protobuf.Duration miss_timeout = 1; */ public com.google.protobuf.DurationOrBuilder getMissTimeoutOrBuilder() { if (missTimeoutBuilder_ != null) { return missTimeoutBuilder_.getMessageOrBuilder(); } else { return missTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : missTimeout_; } } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * ``watchdog_miss`` statistic. If not specified the default is 200ms.
     * 
* * .google.protobuf.Duration miss_timeout = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMissTimeoutFieldBuilder() { if (missTimeoutBuilder_ == null) { missTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getMissTimeout(), getParentForChildren(), isClean()); missTimeout_ = null; } return missTimeoutBuilder_; } private com.google.protobuf.Duration megamissTimeout_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> megamissTimeoutBuilder_; /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * ``watchdog_mega_miss`` statistic. If not specified the default is
     * 1000ms.
     * 
* * .google.protobuf.Duration megamiss_timeout = 2; * @return Whether the megamissTimeout field is set. */ public boolean hasMegamissTimeout() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * ``watchdog_mega_miss`` statistic. If not specified the default is
     * 1000ms.
     * 
* * .google.protobuf.Duration megamiss_timeout = 2; * @return The megamissTimeout. */ public com.google.protobuf.Duration getMegamissTimeout() { if (megamissTimeoutBuilder_ == null) { return megamissTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : megamissTimeout_; } else { return megamissTimeoutBuilder_.getMessage(); } } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * ``watchdog_mega_miss`` statistic. If not specified the default is
     * 1000ms.
     * 
* * .google.protobuf.Duration megamiss_timeout = 2; */ public Builder setMegamissTimeout(com.google.protobuf.Duration value) { if (megamissTimeoutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } megamissTimeout_ = value; } else { megamissTimeoutBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * ``watchdog_mega_miss`` statistic. If not specified the default is
     * 1000ms.
     * 
* * .google.protobuf.Duration megamiss_timeout = 2; */ public Builder setMegamissTimeout( com.google.protobuf.Duration.Builder builderForValue) { if (megamissTimeoutBuilder_ == null) { megamissTimeout_ = builderForValue.build(); } else { megamissTimeoutBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * ``watchdog_mega_miss`` statistic. If not specified the default is
     * 1000ms.
     * 
* * .google.protobuf.Duration megamiss_timeout = 2; */ public Builder mergeMegamissTimeout(com.google.protobuf.Duration value) { if (megamissTimeoutBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && megamissTimeout_ != null && megamissTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { getMegamissTimeoutBuilder().mergeFrom(value); } else { megamissTimeout_ = value; } } else { megamissTimeoutBuilder_.mergeFrom(value); } if (megamissTimeout_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * ``watchdog_mega_miss`` statistic. If not specified the default is
     * 1000ms.
     * 
* * .google.protobuf.Duration megamiss_timeout = 2; */ public Builder clearMegamissTimeout() { bitField0_ = (bitField0_ & ~0x00000004); megamissTimeout_ = null; if (megamissTimeoutBuilder_ != null) { megamissTimeoutBuilder_.dispose(); megamissTimeoutBuilder_ = null; } onChanged(); return this; } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * ``watchdog_mega_miss`` statistic. If not specified the default is
     * 1000ms.
     * 
* * .google.protobuf.Duration megamiss_timeout = 2; */ public com.google.protobuf.Duration.Builder getMegamissTimeoutBuilder() { bitField0_ |= 0x00000004; onChanged(); return getMegamissTimeoutFieldBuilder().getBuilder(); } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * ``watchdog_mega_miss`` statistic. If not specified the default is
     * 1000ms.
     * 
* * .google.protobuf.Duration megamiss_timeout = 2; */ public com.google.protobuf.DurationOrBuilder getMegamissTimeoutOrBuilder() { if (megamissTimeoutBuilder_ != null) { return megamissTimeoutBuilder_.getMessageOrBuilder(); } else { return megamissTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : megamissTimeout_; } } /** *
     * The duration after which Envoy counts a nonresponsive thread in the
     * ``watchdog_mega_miss`` statistic. If not specified the default is
     * 1000ms.
     * 
* * .google.protobuf.Duration megamiss_timeout = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMegamissTimeoutFieldBuilder() { if (megamissTimeoutBuilder_ == null) { megamissTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getMegamissTimeout(), getParentForChildren(), isClean()); megamissTimeout_ = null; } return megamissTimeoutBuilder_; } private com.google.protobuf.Duration killTimeout_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> killTimeoutBuilder_; /** *
     * If a watched thread has been nonresponsive for this duration, assume a
     * programming error and kill the entire Envoy process. Set to 0 to disable
     * kill behavior. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration kill_timeout = 3; * @return Whether the killTimeout field is set. */ public boolean hasKillTimeout() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * If a watched thread has been nonresponsive for this duration, assume a
     * programming error and kill the entire Envoy process. Set to 0 to disable
     * kill behavior. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration kill_timeout = 3; * @return The killTimeout. */ public com.google.protobuf.Duration getKillTimeout() { if (killTimeoutBuilder_ == null) { return killTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : killTimeout_; } else { return killTimeoutBuilder_.getMessage(); } } /** *
     * If a watched thread has been nonresponsive for this duration, assume a
     * programming error and kill the entire Envoy process. Set to 0 to disable
     * kill behavior. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration kill_timeout = 3; */ public Builder setKillTimeout(com.google.protobuf.Duration value) { if (killTimeoutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } killTimeout_ = value; } else { killTimeoutBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * If a watched thread has been nonresponsive for this duration, assume a
     * programming error and kill the entire Envoy process. Set to 0 to disable
     * kill behavior. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration kill_timeout = 3; */ public Builder setKillTimeout( com.google.protobuf.Duration.Builder builderForValue) { if (killTimeoutBuilder_ == null) { killTimeout_ = builderForValue.build(); } else { killTimeoutBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * If a watched thread has been nonresponsive for this duration, assume a
     * programming error and kill the entire Envoy process. Set to 0 to disable
     * kill behavior. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration kill_timeout = 3; */ public Builder mergeKillTimeout(com.google.protobuf.Duration value) { if (killTimeoutBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && killTimeout_ != null && killTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { getKillTimeoutBuilder().mergeFrom(value); } else { killTimeout_ = value; } } else { killTimeoutBuilder_.mergeFrom(value); } if (killTimeout_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
     * If a watched thread has been nonresponsive for this duration, assume a
     * programming error and kill the entire Envoy process. Set to 0 to disable
     * kill behavior. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration kill_timeout = 3; */ public Builder clearKillTimeout() { bitField0_ = (bitField0_ & ~0x00000008); killTimeout_ = null; if (killTimeoutBuilder_ != null) { killTimeoutBuilder_.dispose(); killTimeoutBuilder_ = null; } onChanged(); return this; } /** *
     * If a watched thread has been nonresponsive for this duration, assume a
     * programming error and kill the entire Envoy process. Set to 0 to disable
     * kill behavior. If not specified the default is 0 (disabled).
     * 
* * .google.protobuf.Duration kill_timeout = 3; */ public com.google.protobuf.Duration.Builder getKillTimeoutBuilder() { bitField0_ |= 0x00000008; 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 ((bitField0_ & 0x00000010) != 0); } /** *
     * 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; } else { maxKillTimeoutJitterBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); 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(); } else { maxKillTimeoutJitterBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); 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 (((bitField0_ & 0x00000010) != 0) && maxKillTimeoutJitter_ != null && maxKillTimeoutJitter_ != com.google.protobuf.Duration.getDefaultInstance()) { getMaxKillTimeoutJitterBuilder().mergeFrom(value); } else { maxKillTimeoutJitter_ = value; } } else { maxKillTimeoutJitterBuilder_.mergeFrom(value); } if (maxKillTimeoutJitter_ != null) { bitField0_ |= 0x00000010; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000010); maxKillTimeoutJitter_ = null; if (maxKillTimeoutJitterBuilder_ != null) { maxKillTimeoutJitterBuilder_.dispose(); maxKillTimeoutJitterBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000010; 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 ((bitField0_ & 0x00000020) != 0); } /** *
     * 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; } else { multikillTimeoutBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); 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(); } else { multikillTimeoutBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); 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 (((bitField0_ & 0x00000020) != 0) && multikillTimeout_ != null && multikillTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { getMultikillTimeoutBuilder().mergeFrom(value); } else { multikillTimeout_ = value; } } else { multikillTimeoutBuilder_.mergeFrom(value); } if (multikillTimeout_ != null) { bitField0_ |= 0x00000020; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000020); multikillTimeout_ = null; if (multikillTimeoutBuilder_ != null) { multikillTimeoutBuilder_.dispose(); multikillTimeoutBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000020; 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 ((bitField0_ & 0x00000040) != 0); } /** *
     * 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; } else { multikillThresholdBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); 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(); } else { multikillThresholdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); 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 (((bitField0_ & 0x00000040) != 0) && multikillThreshold_ != null && multikillThreshold_ != io.envoyproxy.envoy.type.v3.Percent.getDefaultInstance()) { getMultikillThresholdBuilder().mergeFrom(value); } else { multikillThreshold_ = value; } } else { multikillThresholdBuilder_.mergeFrom(value); } if (multikillThreshold_ != null) { bitField0_ |= 0x00000040; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000040); multikillThreshold_ = null; if (multikillThresholdBuilder_ != null) { multikillThresholdBuilder_.dispose(); multikillThresholdBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000040; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.envoyproxy.envoy.config.bootstrap.v3.Watchdog getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy