io.envoyproxy.envoy.config.bootstrap.v3.Watchdogs 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;
/**
*
* Allows you to specify different watchdog configs for different subsystems.
* This allows finer tuned policies for the watchdog. If a subsystem is omitted
* the default values for that system will be used.
*
*
* Protobuf type {@code envoy.config.bootstrap.v3.Watchdogs}
*/
public final class Watchdogs extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.bootstrap.v3.Watchdogs)
WatchdogsOrBuilder {
private static final long serialVersionUID = 0L;
// Use Watchdogs.newBuilder() to construct.
private Watchdogs(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Watchdogs() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Watchdogs();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_Watchdogs_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_Watchdogs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.bootstrap.v3.Watchdogs.class, io.envoyproxy.envoy.config.bootstrap.v3.Watchdogs.Builder.class);
}
private int bitField0_;
public static final int MAIN_THREAD_WATCHDOG_FIELD_NUMBER = 1;
private io.envoyproxy.envoy.config.bootstrap.v3.Watchdog mainThreadWatchdog_;
/**
*
* Watchdog for the main thread.
*
*
* .envoy.config.bootstrap.v3.Watchdog main_thread_watchdog = 1;
* @return Whether the mainThreadWatchdog field is set.
*/
@java.lang.Override
public boolean hasMainThreadWatchdog() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Watchdog for the main thread.
*
*
* .envoy.config.bootstrap.v3.Watchdog main_thread_watchdog = 1;
* @return The mainThreadWatchdog.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.Watchdog getMainThreadWatchdog() {
return mainThreadWatchdog_ == null ? io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.getDefaultInstance() : mainThreadWatchdog_;
}
/**
*
* Watchdog for the main thread.
*
*
* .envoy.config.bootstrap.v3.Watchdog main_thread_watchdog = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.WatchdogOrBuilder getMainThreadWatchdogOrBuilder() {
return mainThreadWatchdog_ == null ? io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.getDefaultInstance() : mainThreadWatchdog_;
}
public static final int WORKER_WATCHDOG_FIELD_NUMBER = 2;
private io.envoyproxy.envoy.config.bootstrap.v3.Watchdog workerWatchdog_;
/**
*
* Watchdog for the worker threads.
*
*
* .envoy.config.bootstrap.v3.Watchdog worker_watchdog = 2;
* @return Whether the workerWatchdog field is set.
*/
@java.lang.Override
public boolean hasWorkerWatchdog() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Watchdog for the worker threads.
*
*
* .envoy.config.bootstrap.v3.Watchdog worker_watchdog = 2;
* @return The workerWatchdog.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.Watchdog getWorkerWatchdog() {
return workerWatchdog_ == null ? io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.getDefaultInstance() : workerWatchdog_;
}
/**
*
* Watchdog for the worker threads.
*
*
* .envoy.config.bootstrap.v3.Watchdog worker_watchdog = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.WatchdogOrBuilder getWorkerWatchdogOrBuilder() {
return workerWatchdog_ == null ? io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.getDefaultInstance() : workerWatchdog_;
}
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, getMainThreadWatchdog());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getWorkerWatchdog());
}
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, getMainThreadWatchdog());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getWorkerWatchdog());
}
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.Watchdogs)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.bootstrap.v3.Watchdogs other = (io.envoyproxy.envoy.config.bootstrap.v3.Watchdogs) obj;
if (hasMainThreadWatchdog() != other.hasMainThreadWatchdog()) return false;
if (hasMainThreadWatchdog()) {
if (!getMainThreadWatchdog()
.equals(other.getMainThreadWatchdog())) return false;
}
if (hasWorkerWatchdog() != other.hasWorkerWatchdog()) return false;
if (hasWorkerWatchdog()) {
if (!getWorkerWatchdog()
.equals(other.getWorkerWatchdog())) 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 (hasMainThreadWatchdog()) {
hash = (37 * hash) + MAIN_THREAD_WATCHDOG_FIELD_NUMBER;
hash = (53 * hash) + getMainThreadWatchdog().hashCode();
}
if (hasWorkerWatchdog()) {
hash = (37 * hash) + WORKER_WATCHDOG_FIELD_NUMBER;
hash = (53 * hash) + getWorkerWatchdog().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Watchdogs parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Watchdogs 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.Watchdogs parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Watchdogs 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.Watchdogs parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Watchdogs 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.Watchdogs 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.Watchdogs 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.Watchdogs 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.Watchdogs 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.Watchdogs 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.Watchdogs 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.Watchdogs 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;
}
/**
*
* Allows you to specify different watchdog configs for different subsystems.
* This allows finer tuned policies for the watchdog. If a subsystem is omitted
* the default values for that system will be used.
*
*
* Protobuf type {@code envoy.config.bootstrap.v3.Watchdogs}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.bootstrap.v3.Watchdogs)
io.envoyproxy.envoy.config.bootstrap.v3.WatchdogsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.bootstrap.v3.BootstrapProto.internal_static_envoy_config_bootstrap_v3_Watchdogs_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_Watchdogs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.bootstrap.v3.Watchdogs.class, io.envoyproxy.envoy.config.bootstrap.v3.Watchdogs.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.bootstrap.v3.Watchdogs.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMainThreadWatchdogFieldBuilder();
getWorkerWatchdogFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
mainThreadWatchdog_ = null;
if (mainThreadWatchdogBuilder_ != null) {
mainThreadWatchdogBuilder_.dispose();
mainThreadWatchdogBuilder_ = null;
}
workerWatchdog_ = null;
if (workerWatchdogBuilder_ != null) {
workerWatchdogBuilder_.dispose();
workerWatchdogBuilder_ = 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_Watchdogs_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.Watchdogs getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.bootstrap.v3.Watchdogs.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.Watchdogs build() {
io.envoyproxy.envoy.config.bootstrap.v3.Watchdogs result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.bootstrap.v3.Watchdogs buildPartial() {
io.envoyproxy.envoy.config.bootstrap.v3.Watchdogs result = new io.envoyproxy.envoy.config.bootstrap.v3.Watchdogs(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.envoyproxy.envoy.config.bootstrap.v3.Watchdogs result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.mainThreadWatchdog_ = mainThreadWatchdogBuilder_ == null
? mainThreadWatchdog_
: mainThreadWatchdogBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.workerWatchdog_ = workerWatchdogBuilder_ == null
? workerWatchdog_
: workerWatchdogBuilder_.build();
to_bitField0_ |= 0x00000002;
}
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.Watchdogs) {
return mergeFrom((io.envoyproxy.envoy.config.bootstrap.v3.Watchdogs)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.bootstrap.v3.Watchdogs other) {
if (other == io.envoyproxy.envoy.config.bootstrap.v3.Watchdogs.getDefaultInstance()) return this;
if (other.hasMainThreadWatchdog()) {
mergeMainThreadWatchdog(other.getMainThreadWatchdog());
}
if (other.hasWorkerWatchdog()) {
mergeWorkerWatchdog(other.getWorkerWatchdog());
}
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(
getMainThreadWatchdogFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getWorkerWatchdogFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
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.bootstrap.v3.Watchdog mainThreadWatchdog_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.bootstrap.v3.Watchdog, io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.Builder, io.envoyproxy.envoy.config.bootstrap.v3.WatchdogOrBuilder> mainThreadWatchdogBuilder_;
/**
*
* Watchdog for the main thread.
*
*
* .envoy.config.bootstrap.v3.Watchdog main_thread_watchdog = 1;
* @return Whether the mainThreadWatchdog field is set.
*/
public boolean hasMainThreadWatchdog() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Watchdog for the main thread.
*
*
* .envoy.config.bootstrap.v3.Watchdog main_thread_watchdog = 1;
* @return The mainThreadWatchdog.
*/
public io.envoyproxy.envoy.config.bootstrap.v3.Watchdog getMainThreadWatchdog() {
if (mainThreadWatchdogBuilder_ == null) {
return mainThreadWatchdog_ == null ? io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.getDefaultInstance() : mainThreadWatchdog_;
} else {
return mainThreadWatchdogBuilder_.getMessage();
}
}
/**
*
* Watchdog for the main thread.
*
*
* .envoy.config.bootstrap.v3.Watchdog main_thread_watchdog = 1;
*/
public Builder setMainThreadWatchdog(io.envoyproxy.envoy.config.bootstrap.v3.Watchdog value) {
if (mainThreadWatchdogBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
mainThreadWatchdog_ = value;
} else {
mainThreadWatchdogBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Watchdog for the main thread.
*
*
* .envoy.config.bootstrap.v3.Watchdog main_thread_watchdog = 1;
*/
public Builder setMainThreadWatchdog(
io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.Builder builderForValue) {
if (mainThreadWatchdogBuilder_ == null) {
mainThreadWatchdog_ = builderForValue.build();
} else {
mainThreadWatchdogBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Watchdog for the main thread.
*
*
* .envoy.config.bootstrap.v3.Watchdog main_thread_watchdog = 1;
*/
public Builder mergeMainThreadWatchdog(io.envoyproxy.envoy.config.bootstrap.v3.Watchdog value) {
if (mainThreadWatchdogBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
mainThreadWatchdog_ != null &&
mainThreadWatchdog_ != io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.getDefaultInstance()) {
getMainThreadWatchdogBuilder().mergeFrom(value);
} else {
mainThreadWatchdog_ = value;
}
} else {
mainThreadWatchdogBuilder_.mergeFrom(value);
}
if (mainThreadWatchdog_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* Watchdog for the main thread.
*
*
* .envoy.config.bootstrap.v3.Watchdog main_thread_watchdog = 1;
*/
public Builder clearMainThreadWatchdog() {
bitField0_ = (bitField0_ & ~0x00000001);
mainThreadWatchdog_ = null;
if (mainThreadWatchdogBuilder_ != null) {
mainThreadWatchdogBuilder_.dispose();
mainThreadWatchdogBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Watchdog for the main thread.
*
*
* .envoy.config.bootstrap.v3.Watchdog main_thread_watchdog = 1;
*/
public io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.Builder getMainThreadWatchdogBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getMainThreadWatchdogFieldBuilder().getBuilder();
}
/**
*
* Watchdog for the main thread.
*
*
* .envoy.config.bootstrap.v3.Watchdog main_thread_watchdog = 1;
*/
public io.envoyproxy.envoy.config.bootstrap.v3.WatchdogOrBuilder getMainThreadWatchdogOrBuilder() {
if (mainThreadWatchdogBuilder_ != null) {
return mainThreadWatchdogBuilder_.getMessageOrBuilder();
} else {
return mainThreadWatchdog_ == null ?
io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.getDefaultInstance() : mainThreadWatchdog_;
}
}
/**
*
* Watchdog for the main thread.
*
*
* .envoy.config.bootstrap.v3.Watchdog main_thread_watchdog = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.bootstrap.v3.Watchdog, io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.Builder, io.envoyproxy.envoy.config.bootstrap.v3.WatchdogOrBuilder>
getMainThreadWatchdogFieldBuilder() {
if (mainThreadWatchdogBuilder_ == null) {
mainThreadWatchdogBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.bootstrap.v3.Watchdog, io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.Builder, io.envoyproxy.envoy.config.bootstrap.v3.WatchdogOrBuilder>(
getMainThreadWatchdog(),
getParentForChildren(),
isClean());
mainThreadWatchdog_ = null;
}
return mainThreadWatchdogBuilder_;
}
private io.envoyproxy.envoy.config.bootstrap.v3.Watchdog workerWatchdog_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.bootstrap.v3.Watchdog, io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.Builder, io.envoyproxy.envoy.config.bootstrap.v3.WatchdogOrBuilder> workerWatchdogBuilder_;
/**
*
* Watchdog for the worker threads.
*
*
* .envoy.config.bootstrap.v3.Watchdog worker_watchdog = 2;
* @return Whether the workerWatchdog field is set.
*/
public boolean hasWorkerWatchdog() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Watchdog for the worker threads.
*
*
* .envoy.config.bootstrap.v3.Watchdog worker_watchdog = 2;
* @return The workerWatchdog.
*/
public io.envoyproxy.envoy.config.bootstrap.v3.Watchdog getWorkerWatchdog() {
if (workerWatchdogBuilder_ == null) {
return workerWatchdog_ == null ? io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.getDefaultInstance() : workerWatchdog_;
} else {
return workerWatchdogBuilder_.getMessage();
}
}
/**
*
* Watchdog for the worker threads.
*
*
* .envoy.config.bootstrap.v3.Watchdog worker_watchdog = 2;
*/
public Builder setWorkerWatchdog(io.envoyproxy.envoy.config.bootstrap.v3.Watchdog value) {
if (workerWatchdogBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
workerWatchdog_ = value;
} else {
workerWatchdogBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Watchdog for the worker threads.
*
*
* .envoy.config.bootstrap.v3.Watchdog worker_watchdog = 2;
*/
public Builder setWorkerWatchdog(
io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.Builder builderForValue) {
if (workerWatchdogBuilder_ == null) {
workerWatchdog_ = builderForValue.build();
} else {
workerWatchdogBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Watchdog for the worker threads.
*
*
* .envoy.config.bootstrap.v3.Watchdog worker_watchdog = 2;
*/
public Builder mergeWorkerWatchdog(io.envoyproxy.envoy.config.bootstrap.v3.Watchdog value) {
if (workerWatchdogBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
workerWatchdog_ != null &&
workerWatchdog_ != io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.getDefaultInstance()) {
getWorkerWatchdogBuilder().mergeFrom(value);
} else {
workerWatchdog_ = value;
}
} else {
workerWatchdogBuilder_.mergeFrom(value);
}
if (workerWatchdog_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* Watchdog for the worker threads.
*
*
* .envoy.config.bootstrap.v3.Watchdog worker_watchdog = 2;
*/
public Builder clearWorkerWatchdog() {
bitField0_ = (bitField0_ & ~0x00000002);
workerWatchdog_ = null;
if (workerWatchdogBuilder_ != null) {
workerWatchdogBuilder_.dispose();
workerWatchdogBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Watchdog for the worker threads.
*
*
* .envoy.config.bootstrap.v3.Watchdog worker_watchdog = 2;
*/
public io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.Builder getWorkerWatchdogBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getWorkerWatchdogFieldBuilder().getBuilder();
}
/**
*
* Watchdog for the worker threads.
*
*
* .envoy.config.bootstrap.v3.Watchdog worker_watchdog = 2;
*/
public io.envoyproxy.envoy.config.bootstrap.v3.WatchdogOrBuilder getWorkerWatchdogOrBuilder() {
if (workerWatchdogBuilder_ != null) {
return workerWatchdogBuilder_.getMessageOrBuilder();
} else {
return workerWatchdog_ == null ?
io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.getDefaultInstance() : workerWatchdog_;
}
}
/**
*
* Watchdog for the worker threads.
*
*
* .envoy.config.bootstrap.v3.Watchdog worker_watchdog = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.bootstrap.v3.Watchdog, io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.Builder, io.envoyproxy.envoy.config.bootstrap.v3.WatchdogOrBuilder>
getWorkerWatchdogFieldBuilder() {
if (workerWatchdogBuilder_ == null) {
workerWatchdogBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.bootstrap.v3.Watchdog, io.envoyproxy.envoy.config.bootstrap.v3.Watchdog.Builder, io.envoyproxy.envoy.config.bootstrap.v3.WatchdogOrBuilder>(
getWorkerWatchdog(),
getParentForChildren(),
isClean());
workerWatchdog_ = null;
}
return workerWatchdogBuilder_;
}
@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.Watchdogs)
}
// @@protoc_insertion_point(class_scope:envoy.config.bootstrap.v3.Watchdogs)
private static final io.envoyproxy.envoy.config.bootstrap.v3.Watchdogs DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.bootstrap.v3.Watchdogs();
}
public static io.envoyproxy.envoy.config.bootstrap.v3.Watchdogs getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Watchdogs 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.Watchdogs getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy