implements
// @@protoc_insertion_point(builder_implements:envoy.config.bootstrap.v3alpha.Watchdog)
io.envoyproxy.envoy.config.bootstrap.v3alpha.WatchdogOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.bootstrap.v3alpha.BootstrapProto.internal_static_envoy_config_bootstrap_v3alpha_Watchdog_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.bootstrap.v3alpha.BootstrapProto.internal_static_envoy_config_bootstrap_v3alpha_Watchdog_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog.class, io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (missTimeoutBuilder_ == null) {
missTimeout_ = null;
} else {
missTimeout_ = null;
missTimeoutBuilder_ = null;
}
if (megamissTimeoutBuilder_ == null) {
megamissTimeout_ = null;
} else {
megamissTimeout_ = null;
megamissTimeoutBuilder_ = null;
}
if (killTimeoutBuilder_ == null) {
killTimeout_ = null;
} else {
killTimeout_ = null;
killTimeoutBuilder_ = null;
}
if (multikillTimeoutBuilder_ == null) {
multikillTimeout_ = null;
} else {
multikillTimeout_ = null;
multikillTimeoutBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.config.bootstrap.v3alpha.BootstrapProto.internal_static_envoy_config_bootstrap_v3alpha_Watchdog_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog build() {
io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog buildPartial() {
io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog result = new io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog(this);
if (missTimeoutBuilder_ == null) {
result.missTimeout_ = missTimeout_;
} else {
result.missTimeout_ = missTimeoutBuilder_.build();
}
if (megamissTimeoutBuilder_ == null) {
result.megamissTimeout_ = megamissTimeout_;
} else {
result.megamissTimeout_ = megamissTimeoutBuilder_.build();
}
if (killTimeoutBuilder_ == null) {
result.killTimeout_ = killTimeout_;
} else {
result.killTimeout_ = killTimeoutBuilder_.build();
}
if (multikillTimeoutBuilder_ == null) {
result.multikillTimeout_ = multikillTimeout_;
} else {
result.multikillTimeout_ = multikillTimeoutBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog) {
return mergeFrom((io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog other) {
if (other == io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog.getDefaultInstance()) return this;
if (other.hasMissTimeout()) {
mergeMissTimeout(other.getMissTimeout());
}
if (other.hasMegamissTimeout()) {
mergeMegamissTimeout(other.getMegamissTimeout());
}
if (other.hasKillTimeout()) {
mergeKillTimeout(other.getKillTimeout());
}
if (other.hasMultikillTimeout()) {
mergeMultikillTimeout(other.getMultikillTimeout());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.Duration missTimeout_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> missTimeoutBuilder_;
/**
*
* The duration after which Envoy counts a nonresponsive thread in the
* *server.watchdog_miss* statistic. If not specified the default is 200ms.
*
*
* .google.protobuf.Duration miss_timeout = 1;
*/
public boolean hasMissTimeout() {
return missTimeoutBuilder_ != null || missTimeout_ != null;
}
/**
*
* The duration after which Envoy counts a nonresponsive thread in the
* *server.watchdog_miss* statistic. If not specified the default is 200ms.
*
*
* .google.protobuf.Duration miss_timeout = 1;
*/
public com.google.protobuf.Duration getMissTimeout() {
if (missTimeoutBuilder_ == null) {
return missTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : missTimeout_;
} else {
return missTimeoutBuilder_.getMessage();
}
}
/**
*
* The duration after which Envoy counts a nonresponsive thread in the
* *server.watchdog_miss* statistic. If not specified the default is 200ms.
*
*
* .google.protobuf.Duration miss_timeout = 1;
*/
public Builder setMissTimeout(com.google.protobuf.Duration value) {
if (missTimeoutBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
missTimeout_ = value;
onChanged();
} else {
missTimeoutBuilder_.setMessage(value);
}
return this;
}
/**
*
* The duration after which Envoy counts a nonresponsive thread in the
* *server.watchdog_miss* statistic. If not specified the default is 200ms.
*
*
* .google.protobuf.Duration miss_timeout = 1;
*/
public Builder setMissTimeout(
com.google.protobuf.Duration.Builder builderForValue) {
if (missTimeoutBuilder_ == null) {
missTimeout_ = builderForValue.build();
onChanged();
} else {
missTimeoutBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The duration after which Envoy counts a nonresponsive thread in the
* *server.watchdog_miss* statistic. If not specified the default is 200ms.
*
*
* .google.protobuf.Duration miss_timeout = 1;
*/
public Builder mergeMissTimeout(com.google.protobuf.Duration value) {
if (missTimeoutBuilder_ == null) {
if (missTimeout_ != null) {
missTimeout_ =
com.google.protobuf.Duration.newBuilder(missTimeout_).mergeFrom(value).buildPartial();
} else {
missTimeout_ = value;
}
onChanged();
} else {
missTimeoutBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The duration after which Envoy counts a nonresponsive thread in the
* *server.watchdog_miss* statistic. If not specified the default is 200ms.
*
*
* .google.protobuf.Duration miss_timeout = 1;
*/
public Builder clearMissTimeout() {
if (missTimeoutBuilder_ == null) {
missTimeout_ = null;
onChanged();
} else {
missTimeout_ = null;
missTimeoutBuilder_ = null;
}
return this;
}
/**
*
* The duration after which Envoy counts a nonresponsive thread in the
* *server.watchdog_miss* statistic. If not specified the default is 200ms.
*
*
* .google.protobuf.Duration miss_timeout = 1;
*/
public com.google.protobuf.Duration.Builder getMissTimeoutBuilder() {
onChanged();
return getMissTimeoutFieldBuilder().getBuilder();
}
/**
*
* The duration after which Envoy counts a nonresponsive thread in the
* *server.watchdog_miss* statistic. If not specified the default is 200ms.
*
*
* .google.protobuf.Duration miss_timeout = 1;
*/
public com.google.protobuf.DurationOrBuilder getMissTimeoutOrBuilder() {
if (missTimeoutBuilder_ != null) {
return missTimeoutBuilder_.getMessageOrBuilder();
} else {
return missTimeout_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : missTimeout_;
}
}
/**
*
* The duration after which Envoy counts a nonresponsive thread in the
* *server.watchdog_miss* statistic. If not specified the default is 200ms.
*
*
* .google.protobuf.Duration miss_timeout = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getMissTimeoutFieldBuilder() {
if (missTimeoutBuilder_ == null) {
missTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getMissTimeout(),
getParentForChildren(),
isClean());
missTimeout_ = null;
}
return missTimeoutBuilder_;
}
private com.google.protobuf.Duration megamissTimeout_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> megamissTimeoutBuilder_;
/**
*
* The duration after which Envoy counts a nonresponsive thread in the
* *server.watchdog_mega_miss* statistic. If not specified the default is
* 1000ms.
*
*
* .google.protobuf.Duration megamiss_timeout = 2;
*/
public boolean hasMegamissTimeout() {
return megamissTimeoutBuilder_ != null || megamissTimeout_ != null;
}
/**
*
* The duration after which Envoy counts a nonresponsive thread in the
* *server.watchdog_mega_miss* statistic. If not specified the default is
* 1000ms.
*
*
* .google.protobuf.Duration megamiss_timeout = 2;
*/
public com.google.protobuf.Duration getMegamissTimeout() {
if (megamissTimeoutBuilder_ == null) {
return megamissTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : megamissTimeout_;
} else {
return megamissTimeoutBuilder_.getMessage();
}
}
/**
*
* The duration after which Envoy counts a nonresponsive thread in the
* *server.watchdog_mega_miss* statistic. If not specified the default is
* 1000ms.
*
*
* .google.protobuf.Duration megamiss_timeout = 2;
*/
public Builder setMegamissTimeout(com.google.protobuf.Duration value) {
if (megamissTimeoutBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
megamissTimeout_ = value;
onChanged();
} else {
megamissTimeoutBuilder_.setMessage(value);
}
return this;
}
/**
*
* The duration after which Envoy counts a nonresponsive thread in the
* *server.watchdog_mega_miss* statistic. If not specified the default is
* 1000ms.
*
*
* .google.protobuf.Duration megamiss_timeout = 2;
*/
public Builder setMegamissTimeout(
com.google.protobuf.Duration.Builder builderForValue) {
if (megamissTimeoutBuilder_ == null) {
megamissTimeout_ = builderForValue.build();
onChanged();
} else {
megamissTimeoutBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The duration after which Envoy counts a nonresponsive thread in the
* *server.watchdog_mega_miss* statistic. If not specified the default is
* 1000ms.
*
*
* .google.protobuf.Duration megamiss_timeout = 2;
*/
public Builder mergeMegamissTimeout(com.google.protobuf.Duration value) {
if (megamissTimeoutBuilder_ == null) {
if (megamissTimeout_ != null) {
megamissTimeout_ =
com.google.protobuf.Duration.newBuilder(megamissTimeout_).mergeFrom(value).buildPartial();
} else {
megamissTimeout_ = value;
}
onChanged();
} else {
megamissTimeoutBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The duration after which Envoy counts a nonresponsive thread in the
* *server.watchdog_mega_miss* statistic. If not specified the default is
* 1000ms.
*
*
* .google.protobuf.Duration megamiss_timeout = 2;
*/
public Builder clearMegamissTimeout() {
if (megamissTimeoutBuilder_ == null) {
megamissTimeout_ = null;
onChanged();
} else {
megamissTimeout_ = null;
megamissTimeoutBuilder_ = null;
}
return this;
}
/**
*
* The duration after which Envoy counts a nonresponsive thread in the
* *server.watchdog_mega_miss* statistic. If not specified the default is
* 1000ms.
*
*
* .google.protobuf.Duration megamiss_timeout = 2;
*/
public com.google.protobuf.Duration.Builder getMegamissTimeoutBuilder() {
onChanged();
return getMegamissTimeoutFieldBuilder().getBuilder();
}
/**
*
* The duration after which Envoy counts a nonresponsive thread in the
* *server.watchdog_mega_miss* statistic. If not specified the default is
* 1000ms.
*
*
* .google.protobuf.Duration megamiss_timeout = 2;
*/
public com.google.protobuf.DurationOrBuilder getMegamissTimeoutOrBuilder() {
if (megamissTimeoutBuilder_ != null) {
return megamissTimeoutBuilder_.getMessageOrBuilder();
} else {
return megamissTimeout_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : megamissTimeout_;
}
}
/**
*
* The duration after which Envoy counts a nonresponsive thread in the
* *server.watchdog_mega_miss* statistic. If not specified the default is
* 1000ms.
*
*
* .google.protobuf.Duration megamiss_timeout = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getMegamissTimeoutFieldBuilder() {
if (megamissTimeoutBuilder_ == null) {
megamissTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getMegamissTimeout(),
getParentForChildren(),
isClean());
megamissTimeout_ = null;
}
return megamissTimeoutBuilder_;
}
private com.google.protobuf.Duration killTimeout_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> killTimeoutBuilder_;
/**
*
* If a watched thread has been nonresponsive for this duration, assume a
* programming error and kill the entire Envoy process. Set to 0 to disable
* kill behavior. If not specified the default is 0 (disabled).
*
*
* .google.protobuf.Duration kill_timeout = 3;
*/
public boolean hasKillTimeout() {
return killTimeoutBuilder_ != null || killTimeout_ != null;
}
/**
*
* If a watched thread has been nonresponsive for this duration, assume a
* programming error and kill the entire Envoy process. Set to 0 to disable
* kill behavior. If not specified the default is 0 (disabled).
*
*
* .google.protobuf.Duration kill_timeout = 3;
*/
public com.google.protobuf.Duration getKillTimeout() {
if (killTimeoutBuilder_ == null) {
return killTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : killTimeout_;
} else {
return killTimeoutBuilder_.getMessage();
}
}
/**
*
* If a watched thread has been nonresponsive for this duration, assume a
* programming error and kill the entire Envoy process. Set to 0 to disable
* kill behavior. If not specified the default is 0 (disabled).
*
*
* .google.protobuf.Duration kill_timeout = 3;
*/
public Builder setKillTimeout(com.google.protobuf.Duration value) {
if (killTimeoutBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
killTimeout_ = value;
onChanged();
} else {
killTimeoutBuilder_.setMessage(value);
}
return this;
}
/**
*
* If a watched thread has been nonresponsive for this duration, assume a
* programming error and kill the entire Envoy process. Set to 0 to disable
* kill behavior. If not specified the default is 0 (disabled).
*
*
* .google.protobuf.Duration kill_timeout = 3;
*/
public Builder setKillTimeout(
com.google.protobuf.Duration.Builder builderForValue) {
if (killTimeoutBuilder_ == null) {
killTimeout_ = builderForValue.build();
onChanged();
} else {
killTimeoutBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* If a watched thread has been nonresponsive for this duration, assume a
* programming error and kill the entire Envoy process. Set to 0 to disable
* kill behavior. If not specified the default is 0 (disabled).
*
*
* .google.protobuf.Duration kill_timeout = 3;
*/
public Builder mergeKillTimeout(com.google.protobuf.Duration value) {
if (killTimeoutBuilder_ == null) {
if (killTimeout_ != null) {
killTimeout_ =
com.google.protobuf.Duration.newBuilder(killTimeout_).mergeFrom(value).buildPartial();
} else {
killTimeout_ = value;
}
onChanged();
} else {
killTimeoutBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* If a watched thread has been nonresponsive for this duration, assume a
* programming error and kill the entire Envoy process. Set to 0 to disable
* kill behavior. If not specified the default is 0 (disabled).
*
*
* .google.protobuf.Duration kill_timeout = 3;
*/
public Builder clearKillTimeout() {
if (killTimeoutBuilder_ == null) {
killTimeout_ = null;
onChanged();
} else {
killTimeout_ = null;
killTimeoutBuilder_ = null;
}
return this;
}
/**
*
* If a watched thread has been nonresponsive for this duration, assume a
* programming error and kill the entire Envoy process. Set to 0 to disable
* kill behavior. If not specified the default is 0 (disabled).
*
*
* .google.protobuf.Duration kill_timeout = 3;
*/
public com.google.protobuf.Duration.Builder getKillTimeoutBuilder() {
onChanged();
return getKillTimeoutFieldBuilder().getBuilder();
}
/**
*
* If a watched thread has been nonresponsive for this duration, assume a
* programming error and kill the entire Envoy process. Set to 0 to disable
* kill behavior. If not specified the default is 0 (disabled).
*
*
* .google.protobuf.Duration kill_timeout = 3;
*/
public com.google.protobuf.DurationOrBuilder getKillTimeoutOrBuilder() {
if (killTimeoutBuilder_ != null) {
return killTimeoutBuilder_.getMessageOrBuilder();
} else {
return killTimeout_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : killTimeout_;
}
}
/**
*
* If a watched thread has been nonresponsive for this duration, assume a
* programming error and kill the entire Envoy process. Set to 0 to disable
* kill behavior. If not specified the default is 0 (disabled).
*
*
* .google.protobuf.Duration kill_timeout = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getKillTimeoutFieldBuilder() {
if (killTimeoutBuilder_ == null) {
killTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getKillTimeout(),
getParentForChildren(),
isClean());
killTimeout_ = null;
}
return killTimeoutBuilder_;
}
private com.google.protobuf.Duration multikillTimeout_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> multikillTimeoutBuilder_;
/**
*
* If at least two watched threads have been nonresponsive for at least this
* duration assume a true deadlock and kill the entire Envoy process. Set to 0
* to disable this behavior. If not specified the default is 0 (disabled).
*
*
* .google.protobuf.Duration multikill_timeout = 4;
*/
public boolean hasMultikillTimeout() {
return multikillTimeoutBuilder_ != null || multikillTimeout_ != null;
}
/**
*
* If at least two watched threads have been nonresponsive for at least this
* duration assume a true deadlock and kill the entire Envoy process. Set to 0
* to disable this behavior. If not specified the default is 0 (disabled).
*
*
* .google.protobuf.Duration multikill_timeout = 4;
*/
public com.google.protobuf.Duration getMultikillTimeout() {
if (multikillTimeoutBuilder_ == null) {
return multikillTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : multikillTimeout_;
} else {
return multikillTimeoutBuilder_.getMessage();
}
}
/**
*
* If at least two watched threads have been nonresponsive for at least this
* duration assume a true deadlock and kill the entire Envoy process. Set to 0
* to disable this behavior. If not specified the default is 0 (disabled).
*
*
* .google.protobuf.Duration multikill_timeout = 4;
*/
public Builder setMultikillTimeout(com.google.protobuf.Duration value) {
if (multikillTimeoutBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
multikillTimeout_ = value;
onChanged();
} else {
multikillTimeoutBuilder_.setMessage(value);
}
return this;
}
/**
*
* If at least two watched threads have been nonresponsive for at least this
* duration assume a true deadlock and kill the entire Envoy process. Set to 0
* to disable this behavior. If not specified the default is 0 (disabled).
*
*
* .google.protobuf.Duration multikill_timeout = 4;
*/
public Builder setMultikillTimeout(
com.google.protobuf.Duration.Builder builderForValue) {
if (multikillTimeoutBuilder_ == null) {
multikillTimeout_ = builderForValue.build();
onChanged();
} else {
multikillTimeoutBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* If at least two watched threads have been nonresponsive for at least this
* duration assume a true deadlock and kill the entire Envoy process. Set to 0
* to disable this behavior. If not specified the default is 0 (disabled).
*
*
* .google.protobuf.Duration multikill_timeout = 4;
*/
public Builder mergeMultikillTimeout(com.google.protobuf.Duration value) {
if (multikillTimeoutBuilder_ == null) {
if (multikillTimeout_ != null) {
multikillTimeout_ =
com.google.protobuf.Duration.newBuilder(multikillTimeout_).mergeFrom(value).buildPartial();
} else {
multikillTimeout_ = value;
}
onChanged();
} else {
multikillTimeoutBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* If at least two watched threads have been nonresponsive for at least this
* duration assume a true deadlock and kill the entire Envoy process. Set to 0
* to disable this behavior. If not specified the default is 0 (disabled).
*
*
* .google.protobuf.Duration multikill_timeout = 4;
*/
public Builder clearMultikillTimeout() {
if (multikillTimeoutBuilder_ == null) {
multikillTimeout_ = null;
onChanged();
} else {
multikillTimeout_ = null;
multikillTimeoutBuilder_ = null;
}
return this;
}
/**
*
* If at least two watched threads have been nonresponsive for at least this
* duration assume a true deadlock and kill the entire Envoy process. Set to 0
* to disable this behavior. If not specified the default is 0 (disabled).
*
*
* .google.protobuf.Duration multikill_timeout = 4;
*/
public com.google.protobuf.Duration.Builder getMultikillTimeoutBuilder() {
onChanged();
return getMultikillTimeoutFieldBuilder().getBuilder();
}
/**
*
* If at least two watched threads have been nonresponsive for at least this
* duration assume a true deadlock and kill the entire Envoy process. Set to 0
* to disable this behavior. If not specified the default is 0 (disabled).
*
*
* .google.protobuf.Duration multikill_timeout = 4;
*/
public com.google.protobuf.DurationOrBuilder getMultikillTimeoutOrBuilder() {
if (multikillTimeoutBuilder_ != null) {
return multikillTimeoutBuilder_.getMessageOrBuilder();
} else {
return multikillTimeout_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : multikillTimeout_;
}
}
/**
*
* If at least two watched threads have been nonresponsive for at least this
* duration assume a true deadlock and kill the entire Envoy process. Set to 0
* to disable this behavior. If not specified the default is 0 (disabled).
*
*
* .google.protobuf.Duration multikill_timeout = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getMultikillTimeoutFieldBuilder() {
if (multikillTimeoutBuilder_ == null) {
multikillTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getMultikillTimeout(),
getParentForChildren(),
isClean());
multikillTimeout_ = null;
}
return multikillTimeoutBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:envoy.config.bootstrap.v3alpha.Watchdog)
}
// @@protoc_insertion_point(class_scope:envoy.config.bootstrap.v3alpha.Watchdog)
private static final io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog();
}
public static io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Watchdog parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Watchdog(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3alpha.Watchdog getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}