io.envoyproxy.envoy.admin.v3.CommandLineOptions Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/admin/v3/server_info.proto
package io.envoyproxy.envoy.admin.v3;
/**
*
* [#next-free-field: 39]
*
*
* Protobuf type {@code envoy.admin.v3.CommandLineOptions}
*/
public final class CommandLineOptions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.admin.v3.CommandLineOptions)
CommandLineOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use CommandLineOptions.newBuilder() to construct.
private CommandLineOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CommandLineOptions() {
baseIdPath_ = "";
configPath_ = "";
configYaml_ = "";
adminAddressPath_ = "";
localAddressIpVersion_ = 0;
logLevel_ = "";
componentLogLevel_ = "";
logFormat_ = "";
logPath_ = "";
serviceCluster_ = "";
serviceNode_ = "";
serviceZone_ = "";
drainStrategy_ = 0;
mode_ = 0;
disabledExtensions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
socketPath_ = "";
statsTag_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CommandLineOptions();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CommandLineOptions(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
baseId_ = input.readUInt64();
break;
}
case 16: {
concurrency_ = input.readUInt32();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
configPath_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
configYaml_ = s;
break;
}
case 40: {
allowUnknownStaticFields_ = input.readBool();
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
adminAddressPath_ = s;
break;
}
case 56: {
int rawValue = input.readEnum();
localAddressIpVersion_ = rawValue;
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
logLevel_ = s;
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
componentLogLevel_ = s;
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
logFormat_ = s;
break;
}
case 90: {
java.lang.String s = input.readStringRequireUtf8();
logPath_ = s;
break;
}
case 106: {
java.lang.String s = input.readStringRequireUtf8();
serviceCluster_ = s;
break;
}
case 114: {
java.lang.String s = input.readStringRequireUtf8();
serviceNode_ = s;
break;
}
case 122: {
java.lang.String s = input.readStringRequireUtf8();
serviceZone_ = s;
break;
}
case 130: {
com.google.protobuf.Duration.Builder subBuilder = null;
if (fileFlushInterval_ != null) {
subBuilder = fileFlushInterval_.toBuilder();
}
fileFlushInterval_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(fileFlushInterval_);
fileFlushInterval_ = subBuilder.buildPartial();
}
break;
}
case 138: {
com.google.protobuf.Duration.Builder subBuilder = null;
if (drainTime_ != null) {
subBuilder = drainTime_.toBuilder();
}
drainTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(drainTime_);
drainTime_ = subBuilder.buildPartial();
}
break;
}
case 146: {
com.google.protobuf.Duration.Builder subBuilder = null;
if (parentShutdownTime_ != null) {
subBuilder = parentShutdownTime_.toBuilder();
}
parentShutdownTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(parentShutdownTime_);
parentShutdownTime_ = subBuilder.buildPartial();
}
break;
}
case 152: {
int rawValue = input.readEnum();
mode_ = rawValue;
break;
}
case 176: {
disableHotRestart_ = input.readBool();
break;
}
case 184: {
enableMutexTracing_ = input.readBool();
break;
}
case 192: {
restartEpoch_ = input.readUInt32();
break;
}
case 200: {
cpusetThreads_ = input.readBool();
break;
}
case 208: {
rejectUnknownDynamicFields_ = input.readBool();
break;
}
case 216: {
logFormatEscaped_ = input.readBool();
break;
}
case 226: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
disabledExtensions_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
disabledExtensions_.add(s);
break;
}
case 240: {
ignoreUnknownDynamicFields_ = input.readBool();
break;
}
case 248: {
useDynamicBaseId_ = input.readBool();
break;
}
case 258: {
java.lang.String s = input.readStringRequireUtf8();
baseIdPath_ = s;
break;
}
case 264: {
int rawValue = input.readEnum();
drainStrategy_ = rawValue;
break;
}
case 272: {
enableFineGrainLogging_ = input.readBool();
break;
}
case 282: {
java.lang.String s = input.readStringRequireUtf8();
socketPath_ = s;
break;
}
case 288: {
socketMode_ = input.readUInt32();
break;
}
case 296: {
enableCoreDump_ = input.readBool();
break;
}
case 306: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
statsTag_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
statsTag_.add(s);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
disabledExtensions_ = disabledExtensions_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
statsTag_ = statsTag_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.admin.v3.ServerInfoProto.internal_static_envoy_admin_v3_CommandLineOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v3.ServerInfoProto.internal_static_envoy_admin_v3_CommandLineOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v3.CommandLineOptions.class, io.envoyproxy.envoy.admin.v3.CommandLineOptions.Builder.class);
}
/**
* Protobuf enum {@code envoy.admin.v3.CommandLineOptions.IpVersion}
*/
public enum IpVersion
implements com.google.protobuf.ProtocolMessageEnum {
/**
* v4 = 0;
*/
v4(0),
/**
* v6 = 1;
*/
v6(1),
UNRECOGNIZED(-1),
;
/**
* v4 = 0;
*/
public static final int v4_VALUE = 0;
/**
* v6 = 1;
*/
public static final int v6_VALUE = 1;
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 IpVersion 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 IpVersion forNumber(int value) {
switch (value) {
case 0: return v4;
case 1: return v6;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
IpVersion> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public IpVersion findValueByNumber(int number) {
return IpVersion.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.admin.v3.CommandLineOptions.getDescriptor().getEnumTypes().get(0);
}
private static final IpVersion[] VALUES = values();
public static IpVersion 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 IpVersion(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:envoy.admin.v3.CommandLineOptions.IpVersion)
}
/**
* Protobuf enum {@code envoy.admin.v3.CommandLineOptions.Mode}
*/
public enum Mode
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Validate configs and then serve traffic normally.
*
*
* Serve = 0;
*/
Serve(0),
/**
*
* Validate configs and exit.
*
*
* Validate = 1;
*/
Validate(1),
/**
*
* Completely load and initialize the config, and then exit without running the listener loop.
*
*
* InitOnly = 2;
*/
InitOnly(2),
UNRECOGNIZED(-1),
;
/**
*
* Validate configs and then serve traffic normally.
*
*
* Serve = 0;
*/
public static final int Serve_VALUE = 0;
/**
*
* Validate configs and exit.
*
*
* Validate = 1;
*/
public static final int Validate_VALUE = 1;
/**
*
* Completely load and initialize the config, and then exit without running the listener loop.
*
*
* InitOnly = 2;
*/
public static final int InitOnly_VALUE = 2;
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 Mode 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 Mode forNumber(int value) {
switch (value) {
case 0: return Serve;
case 1: return Validate;
case 2: return InitOnly;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Mode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Mode findValueByNumber(int number) {
return Mode.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.admin.v3.CommandLineOptions.getDescriptor().getEnumTypes().get(1);
}
private static final Mode[] VALUES = values();
public static Mode 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 Mode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:envoy.admin.v3.CommandLineOptions.Mode)
}
/**
* Protobuf enum {@code envoy.admin.v3.CommandLineOptions.DrainStrategy}
*/
public enum DrainStrategy
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Gradually discourage connections over the course of the drain period.
*
*
* Gradual = 0;
*/
Gradual(0),
/**
*
* Discourage all connections for the duration of the drain sequence.
*
*
* Immediate = 1;
*/
Immediate(1),
UNRECOGNIZED(-1),
;
/**
*
* Gradually discourage connections over the course of the drain period.
*
*
* Gradual = 0;
*/
public static final int Gradual_VALUE = 0;
/**
*
* Discourage all connections for the duration of the drain sequence.
*
*
* Immediate = 1;
*/
public static final int Immediate_VALUE = 1;
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 DrainStrategy 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 DrainStrategy forNumber(int value) {
switch (value) {
case 0: return Gradual;
case 1: return Immediate;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
DrainStrategy> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public DrainStrategy findValueByNumber(int number) {
return DrainStrategy.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.admin.v3.CommandLineOptions.getDescriptor().getEnumTypes().get(2);
}
private static final DrainStrategy[] VALUES = values();
public static DrainStrategy 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 DrainStrategy(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:envoy.admin.v3.CommandLineOptions.DrainStrategy)
}
public static final int BASE_ID_FIELD_NUMBER = 1;
private long baseId_;
/**
*
* See :option:`--base-id` for details.
*
*
* uint64 base_id = 1;
* @return The baseId.
*/
@java.lang.Override
public long getBaseId() {
return baseId_;
}
public static final int USE_DYNAMIC_BASE_ID_FIELD_NUMBER = 31;
private boolean useDynamicBaseId_;
/**
*
* See :option:`--use-dynamic-base-id` for details.
*
*
* bool use_dynamic_base_id = 31;
* @return The useDynamicBaseId.
*/
@java.lang.Override
public boolean getUseDynamicBaseId() {
return useDynamicBaseId_;
}
public static final int BASE_ID_PATH_FIELD_NUMBER = 32;
private volatile java.lang.Object baseIdPath_;
/**
*
* See :option:`--base-id-path` for details.
*
*
* string base_id_path = 32;
* @return The baseIdPath.
*/
@java.lang.Override
public java.lang.String getBaseIdPath() {
java.lang.Object ref = baseIdPath_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
baseIdPath_ = s;
return s;
}
}
/**
*
* See :option:`--base-id-path` for details.
*
*
* string base_id_path = 32;
* @return The bytes for baseIdPath.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBaseIdPathBytes() {
java.lang.Object ref = baseIdPath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
baseIdPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONCURRENCY_FIELD_NUMBER = 2;
private int concurrency_;
/**
*
* See :option:`--concurrency` for details.
*
*
* uint32 concurrency = 2;
* @return The concurrency.
*/
@java.lang.Override
public int getConcurrency() {
return concurrency_;
}
public static final int CONFIG_PATH_FIELD_NUMBER = 3;
private volatile java.lang.Object configPath_;
/**
*
* See :option:`--config-path` for details.
*
*
* string config_path = 3;
* @return The configPath.
*/
@java.lang.Override
public java.lang.String getConfigPath() {
java.lang.Object ref = configPath_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
configPath_ = s;
return s;
}
}
/**
*
* See :option:`--config-path` for details.
*
*
* string config_path = 3;
* @return The bytes for configPath.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getConfigPathBytes() {
java.lang.Object ref = configPath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
configPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONFIG_YAML_FIELD_NUMBER = 4;
private volatile java.lang.Object configYaml_;
/**
*
* See :option:`--config-yaml` for details.
*
*
* string config_yaml = 4;
* @return The configYaml.
*/
@java.lang.Override
public java.lang.String getConfigYaml() {
java.lang.Object ref = configYaml_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
configYaml_ = s;
return s;
}
}
/**
*
* See :option:`--config-yaml` for details.
*
*
* string config_yaml = 4;
* @return The bytes for configYaml.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getConfigYamlBytes() {
java.lang.Object ref = configYaml_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
configYaml_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ALLOW_UNKNOWN_STATIC_FIELDS_FIELD_NUMBER = 5;
private boolean allowUnknownStaticFields_;
/**
*
* See :option:`--allow-unknown-static-fields` for details.
*
*
* bool allow_unknown_static_fields = 5;
* @return The allowUnknownStaticFields.
*/
@java.lang.Override
public boolean getAllowUnknownStaticFields() {
return allowUnknownStaticFields_;
}
public static final int REJECT_UNKNOWN_DYNAMIC_FIELDS_FIELD_NUMBER = 26;
private boolean rejectUnknownDynamicFields_;
/**
*
* See :option:`--reject-unknown-dynamic-fields` for details.
*
*
* bool reject_unknown_dynamic_fields = 26;
* @return The rejectUnknownDynamicFields.
*/
@java.lang.Override
public boolean getRejectUnknownDynamicFields() {
return rejectUnknownDynamicFields_;
}
public static final int IGNORE_UNKNOWN_DYNAMIC_FIELDS_FIELD_NUMBER = 30;
private boolean ignoreUnknownDynamicFields_;
/**
*
* See :option:`--ignore-unknown-dynamic-fields` for details.
*
*
* bool ignore_unknown_dynamic_fields = 30;
* @return The ignoreUnknownDynamicFields.
*/
@java.lang.Override
public boolean getIgnoreUnknownDynamicFields() {
return ignoreUnknownDynamicFields_;
}
public static final int ADMIN_ADDRESS_PATH_FIELD_NUMBER = 6;
private volatile java.lang.Object adminAddressPath_;
/**
*
* See :option:`--admin-address-path` for details.
*
*
* string admin_address_path = 6;
* @return The adminAddressPath.
*/
@java.lang.Override
public java.lang.String getAdminAddressPath() {
java.lang.Object ref = adminAddressPath_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
adminAddressPath_ = s;
return s;
}
}
/**
*
* See :option:`--admin-address-path` for details.
*
*
* string admin_address_path = 6;
* @return The bytes for adminAddressPath.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAdminAddressPathBytes() {
java.lang.Object ref = adminAddressPath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
adminAddressPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCAL_ADDRESS_IP_VERSION_FIELD_NUMBER = 7;
private int localAddressIpVersion_;
/**
*
* See :option:`--local-address-ip-version` for details.
*
*
* .envoy.admin.v3.CommandLineOptions.IpVersion local_address_ip_version = 7;
* @return The enum numeric value on the wire for localAddressIpVersion.
*/
@java.lang.Override public int getLocalAddressIpVersionValue() {
return localAddressIpVersion_;
}
/**
*
* See :option:`--local-address-ip-version` for details.
*
*
* .envoy.admin.v3.CommandLineOptions.IpVersion local_address_ip_version = 7;
* @return The localAddressIpVersion.
*/
@java.lang.Override public io.envoyproxy.envoy.admin.v3.CommandLineOptions.IpVersion getLocalAddressIpVersion() {
@SuppressWarnings("deprecation")
io.envoyproxy.envoy.admin.v3.CommandLineOptions.IpVersion result = io.envoyproxy.envoy.admin.v3.CommandLineOptions.IpVersion.valueOf(localAddressIpVersion_);
return result == null ? io.envoyproxy.envoy.admin.v3.CommandLineOptions.IpVersion.UNRECOGNIZED : result;
}
public static final int LOG_LEVEL_FIELD_NUMBER = 8;
private volatile java.lang.Object logLevel_;
/**
*
* See :option:`--log-level` for details.
*
*
* string log_level = 8;
* @return The logLevel.
*/
@java.lang.Override
public java.lang.String getLogLevel() {
java.lang.Object ref = logLevel_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
logLevel_ = s;
return s;
}
}
/**
*
* See :option:`--log-level` for details.
*
*
* string log_level = 8;
* @return The bytes for logLevel.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLogLevelBytes() {
java.lang.Object ref = logLevel_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
logLevel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COMPONENT_LOG_LEVEL_FIELD_NUMBER = 9;
private volatile java.lang.Object componentLogLevel_;
/**
*
* See :option:`--component-log-level` for details.
*
*
* string component_log_level = 9;
* @return The componentLogLevel.
*/
@java.lang.Override
public java.lang.String getComponentLogLevel() {
java.lang.Object ref = componentLogLevel_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
componentLogLevel_ = s;
return s;
}
}
/**
*
* See :option:`--component-log-level` for details.
*
*
* string component_log_level = 9;
* @return The bytes for componentLogLevel.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getComponentLogLevelBytes() {
java.lang.Object ref = componentLogLevel_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
componentLogLevel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOG_FORMAT_FIELD_NUMBER = 10;
private volatile java.lang.Object logFormat_;
/**
*
* See :option:`--log-format` for details.
*
*
* string log_format = 10;
* @return The logFormat.
*/
@java.lang.Override
public java.lang.String getLogFormat() {
java.lang.Object ref = logFormat_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
logFormat_ = s;
return s;
}
}
/**
*
* See :option:`--log-format` for details.
*
*
* string log_format = 10;
* @return The bytes for logFormat.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLogFormatBytes() {
java.lang.Object ref = logFormat_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
logFormat_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOG_FORMAT_ESCAPED_FIELD_NUMBER = 27;
private boolean logFormatEscaped_;
/**
*
* See :option:`--log-format-escaped` for details.
*
*
* bool log_format_escaped = 27;
* @return The logFormatEscaped.
*/
@java.lang.Override
public boolean getLogFormatEscaped() {
return logFormatEscaped_;
}
public static final int LOG_PATH_FIELD_NUMBER = 11;
private volatile java.lang.Object logPath_;
/**
*
* See :option:`--log-path` for details.
*
*
* string log_path = 11;
* @return The logPath.
*/
@java.lang.Override
public java.lang.String getLogPath() {
java.lang.Object ref = logPath_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
logPath_ = s;
return s;
}
}
/**
*
* See :option:`--log-path` for details.
*
*
* string log_path = 11;
* @return The bytes for logPath.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLogPathBytes() {
java.lang.Object ref = logPath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
logPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SERVICE_CLUSTER_FIELD_NUMBER = 13;
private volatile java.lang.Object serviceCluster_;
/**
*
* See :option:`--service-cluster` for details.
*
*
* string service_cluster = 13;
* @return The serviceCluster.
*/
@java.lang.Override
public java.lang.String getServiceCluster() {
java.lang.Object ref = serviceCluster_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceCluster_ = s;
return s;
}
}
/**
*
* See :option:`--service-cluster` for details.
*
*
* string service_cluster = 13;
* @return The bytes for serviceCluster.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServiceClusterBytes() {
java.lang.Object ref = serviceCluster_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceCluster_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SERVICE_NODE_FIELD_NUMBER = 14;
private volatile java.lang.Object serviceNode_;
/**
*
* See :option:`--service-node` for details.
*
*
* string service_node = 14;
* @return The serviceNode.
*/
@java.lang.Override
public java.lang.String getServiceNode() {
java.lang.Object ref = serviceNode_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceNode_ = s;
return s;
}
}
/**
*
* See :option:`--service-node` for details.
*
*
* string service_node = 14;
* @return The bytes for serviceNode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServiceNodeBytes() {
java.lang.Object ref = serviceNode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceNode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SERVICE_ZONE_FIELD_NUMBER = 15;
private volatile java.lang.Object serviceZone_;
/**
*
* See :option:`--service-zone` for details.
*
*
* string service_zone = 15;
* @return The serviceZone.
*/
@java.lang.Override
public java.lang.String getServiceZone() {
java.lang.Object ref = serviceZone_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceZone_ = s;
return s;
}
}
/**
*
* See :option:`--service-zone` for details.
*
*
* string service_zone = 15;
* @return The bytes for serviceZone.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServiceZoneBytes() {
java.lang.Object ref = serviceZone_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceZone_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FILE_FLUSH_INTERVAL_FIELD_NUMBER = 16;
private com.google.protobuf.Duration fileFlushInterval_;
/**
*
* See :option:`--file-flush-interval-msec` for details.
*
*
* .google.protobuf.Duration file_flush_interval = 16;
* @return Whether the fileFlushInterval field is set.
*/
@java.lang.Override
public boolean hasFileFlushInterval() {
return fileFlushInterval_ != null;
}
/**
*
* See :option:`--file-flush-interval-msec` for details.
*
*
* .google.protobuf.Duration file_flush_interval = 16;
* @return The fileFlushInterval.
*/
@java.lang.Override
public com.google.protobuf.Duration getFileFlushInterval() {
return fileFlushInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : fileFlushInterval_;
}
/**
*
* See :option:`--file-flush-interval-msec` for details.
*
*
* .google.protobuf.Duration file_flush_interval = 16;
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getFileFlushIntervalOrBuilder() {
return getFileFlushInterval();
}
public static final int DRAIN_TIME_FIELD_NUMBER = 17;
private com.google.protobuf.Duration drainTime_;
/**
*
* See :option:`--drain-time-s` for details.
*
*
* .google.protobuf.Duration drain_time = 17;
* @return Whether the drainTime field is set.
*/
@java.lang.Override
public boolean hasDrainTime() {
return drainTime_ != null;
}
/**
*
* See :option:`--drain-time-s` for details.
*
*
* .google.protobuf.Duration drain_time = 17;
* @return The drainTime.
*/
@java.lang.Override
public com.google.protobuf.Duration getDrainTime() {
return drainTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : drainTime_;
}
/**
*
* See :option:`--drain-time-s` for details.
*
*
* .google.protobuf.Duration drain_time = 17;
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getDrainTimeOrBuilder() {
return getDrainTime();
}
public static final int DRAIN_STRATEGY_FIELD_NUMBER = 33;
private int drainStrategy_;
/**
*
* See :option:`--drain-strategy` for details.
*
*
* .envoy.admin.v3.CommandLineOptions.DrainStrategy drain_strategy = 33;
* @return The enum numeric value on the wire for drainStrategy.
*/
@java.lang.Override public int getDrainStrategyValue() {
return drainStrategy_;
}
/**
*
* See :option:`--drain-strategy` for details.
*
*
* .envoy.admin.v3.CommandLineOptions.DrainStrategy drain_strategy = 33;
* @return The drainStrategy.
*/
@java.lang.Override public io.envoyproxy.envoy.admin.v3.CommandLineOptions.DrainStrategy getDrainStrategy() {
@SuppressWarnings("deprecation")
io.envoyproxy.envoy.admin.v3.CommandLineOptions.DrainStrategy result = io.envoyproxy.envoy.admin.v3.CommandLineOptions.DrainStrategy.valueOf(drainStrategy_);
return result == null ? io.envoyproxy.envoy.admin.v3.CommandLineOptions.DrainStrategy.UNRECOGNIZED : result;
}
public static final int PARENT_SHUTDOWN_TIME_FIELD_NUMBER = 18;
private com.google.protobuf.Duration parentShutdownTime_;
/**
*
* See :option:`--parent-shutdown-time-s` for details.
*
*
* .google.protobuf.Duration parent_shutdown_time = 18;
* @return Whether the parentShutdownTime field is set.
*/
@java.lang.Override
public boolean hasParentShutdownTime() {
return parentShutdownTime_ != null;
}
/**
*
* See :option:`--parent-shutdown-time-s` for details.
*
*
* .google.protobuf.Duration parent_shutdown_time = 18;
* @return The parentShutdownTime.
*/
@java.lang.Override
public com.google.protobuf.Duration getParentShutdownTime() {
return parentShutdownTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : parentShutdownTime_;
}
/**
*
* See :option:`--parent-shutdown-time-s` for details.
*
*
* .google.protobuf.Duration parent_shutdown_time = 18;
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getParentShutdownTimeOrBuilder() {
return getParentShutdownTime();
}
public static final int MODE_FIELD_NUMBER = 19;
private int mode_;
/**
*
* See :option:`--mode` for details.
*
*
* .envoy.admin.v3.CommandLineOptions.Mode mode = 19;
* @return The enum numeric value on the wire for mode.
*/
@java.lang.Override public int getModeValue() {
return mode_;
}
/**
*
* See :option:`--mode` for details.
*
*
* .envoy.admin.v3.CommandLineOptions.Mode mode = 19;
* @return The mode.
*/
@java.lang.Override public io.envoyproxy.envoy.admin.v3.CommandLineOptions.Mode getMode() {
@SuppressWarnings("deprecation")
io.envoyproxy.envoy.admin.v3.CommandLineOptions.Mode result = io.envoyproxy.envoy.admin.v3.CommandLineOptions.Mode.valueOf(mode_);
return result == null ? io.envoyproxy.envoy.admin.v3.CommandLineOptions.Mode.UNRECOGNIZED : result;
}
public static final int DISABLE_HOT_RESTART_FIELD_NUMBER = 22;
private boolean disableHotRestart_;
/**
*
* See :option:`--disable-hot-restart` for details.
*
*
* bool disable_hot_restart = 22;
* @return The disableHotRestart.
*/
@java.lang.Override
public boolean getDisableHotRestart() {
return disableHotRestart_;
}
public static final int ENABLE_MUTEX_TRACING_FIELD_NUMBER = 23;
private boolean enableMutexTracing_;
/**
*
* See :option:`--enable-mutex-tracing` for details.
*
*
* bool enable_mutex_tracing = 23;
* @return The enableMutexTracing.
*/
@java.lang.Override
public boolean getEnableMutexTracing() {
return enableMutexTracing_;
}
public static final int RESTART_EPOCH_FIELD_NUMBER = 24;
private int restartEpoch_;
/**
*
* See :option:`--restart-epoch` for details.
*
*
* uint32 restart_epoch = 24;
* @return The restartEpoch.
*/
@java.lang.Override
public int getRestartEpoch() {
return restartEpoch_;
}
public static final int CPUSET_THREADS_FIELD_NUMBER = 25;
private boolean cpusetThreads_;
/**
*
* See :option:`--cpuset-threads` for details.
*
*
* bool cpuset_threads = 25;
* @return The cpusetThreads.
*/
@java.lang.Override
public boolean getCpusetThreads() {
return cpusetThreads_;
}
public static final int DISABLED_EXTENSIONS_FIELD_NUMBER = 28;
private com.google.protobuf.LazyStringList disabledExtensions_;
/**
*
* See :option:`--disable-extensions` for details.
*
*
* repeated string disabled_extensions = 28;
* @return A list containing the disabledExtensions.
*/
public com.google.protobuf.ProtocolStringList
getDisabledExtensionsList() {
return disabledExtensions_;
}
/**
*
* See :option:`--disable-extensions` for details.
*
*
* repeated string disabled_extensions = 28;
* @return The count of disabledExtensions.
*/
public int getDisabledExtensionsCount() {
return disabledExtensions_.size();
}
/**
*
* See :option:`--disable-extensions` for details.
*
*
* repeated string disabled_extensions = 28;
* @param index The index of the element to return.
* @return The disabledExtensions at the given index.
*/
public java.lang.String getDisabledExtensions(int index) {
return disabledExtensions_.get(index);
}
/**
*
* See :option:`--disable-extensions` for details.
*
*
* repeated string disabled_extensions = 28;
* @param index The index of the value to return.
* @return The bytes of the disabledExtensions at the given index.
*/
public com.google.protobuf.ByteString
getDisabledExtensionsBytes(int index) {
return disabledExtensions_.getByteString(index);
}
public static final int ENABLE_FINE_GRAIN_LOGGING_FIELD_NUMBER = 34;
private boolean enableFineGrainLogging_;
/**
*
* See :option:`--enable-fine-grain-logging` for details.
*
*
* bool enable_fine_grain_logging = 34;
* @return The enableFineGrainLogging.
*/
@java.lang.Override
public boolean getEnableFineGrainLogging() {
return enableFineGrainLogging_;
}
public static final int SOCKET_PATH_FIELD_NUMBER = 35;
private volatile java.lang.Object socketPath_;
/**
*
* See :option:`--socket-path` for details.
*
*
* string socket_path = 35;
* @return The socketPath.
*/
@java.lang.Override
public java.lang.String getSocketPath() {
java.lang.Object ref = socketPath_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
socketPath_ = s;
return s;
}
}
/**
*
* See :option:`--socket-path` for details.
*
*
* string socket_path = 35;
* @return The bytes for socketPath.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSocketPathBytes() {
java.lang.Object ref = socketPath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
socketPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SOCKET_MODE_FIELD_NUMBER = 36;
private int socketMode_;
/**
*
* See :option:`--socket-mode` for details.
*
*
* uint32 socket_mode = 36;
* @return The socketMode.
*/
@java.lang.Override
public int getSocketMode() {
return socketMode_;
}
public static final int ENABLE_CORE_DUMP_FIELD_NUMBER = 37;
private boolean enableCoreDump_;
/**
*
* See :option:`--enable-core-dump` for details.
*
*
* bool enable_core_dump = 37;
* @return The enableCoreDump.
*/
@java.lang.Override
public boolean getEnableCoreDump() {
return enableCoreDump_;
}
public static final int STATS_TAG_FIELD_NUMBER = 38;
private com.google.protobuf.LazyStringList statsTag_;
/**
*
* See :option:`--stats-tag` for details.
*
*
* repeated string stats_tag = 38;
* @return A list containing the statsTag.
*/
public com.google.protobuf.ProtocolStringList
getStatsTagList() {
return statsTag_;
}
/**
*
* See :option:`--stats-tag` for details.
*
*
* repeated string stats_tag = 38;
* @return The count of statsTag.
*/
public int getStatsTagCount() {
return statsTag_.size();
}
/**
*
* See :option:`--stats-tag` for details.
*
*
* repeated string stats_tag = 38;
* @param index The index of the element to return.
* @return The statsTag at the given index.
*/
public java.lang.String getStatsTag(int index) {
return statsTag_.get(index);
}
/**
*
* See :option:`--stats-tag` for details.
*
*
* repeated string stats_tag = 38;
* @param index The index of the value to return.
* @return The bytes of the statsTag at the given index.
*/
public com.google.protobuf.ByteString
getStatsTagBytes(int index) {
return statsTag_.getByteString(index);
}
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 (baseId_ != 0L) {
output.writeUInt64(1, baseId_);
}
if (concurrency_ != 0) {
output.writeUInt32(2, concurrency_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configPath_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, configPath_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configYaml_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, configYaml_);
}
if (allowUnknownStaticFields_ != false) {
output.writeBool(5, allowUnknownStaticFields_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adminAddressPath_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, adminAddressPath_);
}
if (localAddressIpVersion_ != io.envoyproxy.envoy.admin.v3.CommandLineOptions.IpVersion.v4.getNumber()) {
output.writeEnum(7, localAddressIpVersion_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logLevel_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, logLevel_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(componentLogLevel_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, componentLogLevel_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logFormat_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, logFormat_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logPath_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, logPath_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceCluster_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, serviceCluster_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceNode_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, serviceNode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceZone_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 15, serviceZone_);
}
if (fileFlushInterval_ != null) {
output.writeMessage(16, getFileFlushInterval());
}
if (drainTime_ != null) {
output.writeMessage(17, getDrainTime());
}
if (parentShutdownTime_ != null) {
output.writeMessage(18, getParentShutdownTime());
}
if (mode_ != io.envoyproxy.envoy.admin.v3.CommandLineOptions.Mode.Serve.getNumber()) {
output.writeEnum(19, mode_);
}
if (disableHotRestart_ != false) {
output.writeBool(22, disableHotRestart_);
}
if (enableMutexTracing_ != false) {
output.writeBool(23, enableMutexTracing_);
}
if (restartEpoch_ != 0) {
output.writeUInt32(24, restartEpoch_);
}
if (cpusetThreads_ != false) {
output.writeBool(25, cpusetThreads_);
}
if (rejectUnknownDynamicFields_ != false) {
output.writeBool(26, rejectUnknownDynamicFields_);
}
if (logFormatEscaped_ != false) {
output.writeBool(27, logFormatEscaped_);
}
for (int i = 0; i < disabledExtensions_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 28, disabledExtensions_.getRaw(i));
}
if (ignoreUnknownDynamicFields_ != false) {
output.writeBool(30, ignoreUnknownDynamicFields_);
}
if (useDynamicBaseId_ != false) {
output.writeBool(31, useDynamicBaseId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseIdPath_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 32, baseIdPath_);
}
if (drainStrategy_ != io.envoyproxy.envoy.admin.v3.CommandLineOptions.DrainStrategy.Gradual.getNumber()) {
output.writeEnum(33, drainStrategy_);
}
if (enableFineGrainLogging_ != false) {
output.writeBool(34, enableFineGrainLogging_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(socketPath_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 35, socketPath_);
}
if (socketMode_ != 0) {
output.writeUInt32(36, socketMode_);
}
if (enableCoreDump_ != false) {
output.writeBool(37, enableCoreDump_);
}
for (int i = 0; i < statsTag_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 38, statsTag_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (baseId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, baseId_);
}
if (concurrency_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, concurrency_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configPath_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, configPath_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configYaml_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, configYaml_);
}
if (allowUnknownStaticFields_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, allowUnknownStaticFields_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adminAddressPath_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, adminAddressPath_);
}
if (localAddressIpVersion_ != io.envoyproxy.envoy.admin.v3.CommandLineOptions.IpVersion.v4.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, localAddressIpVersion_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logLevel_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, logLevel_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(componentLogLevel_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, componentLogLevel_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logFormat_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, logFormat_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logPath_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, logPath_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceCluster_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, serviceCluster_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceNode_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, serviceNode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceZone_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, serviceZone_);
}
if (fileFlushInterval_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, getFileFlushInterval());
}
if (drainTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, getDrainTime());
}
if (parentShutdownTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(18, getParentShutdownTime());
}
if (mode_ != io.envoyproxy.envoy.admin.v3.CommandLineOptions.Mode.Serve.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(19, mode_);
}
if (disableHotRestart_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(22, disableHotRestart_);
}
if (enableMutexTracing_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(23, enableMutexTracing_);
}
if (restartEpoch_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(24, restartEpoch_);
}
if (cpusetThreads_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(25, cpusetThreads_);
}
if (rejectUnknownDynamicFields_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(26, rejectUnknownDynamicFields_);
}
if (logFormatEscaped_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(27, logFormatEscaped_);
}
{
int dataSize = 0;
for (int i = 0; i < disabledExtensions_.size(); i++) {
dataSize += computeStringSizeNoTag(disabledExtensions_.getRaw(i));
}
size += dataSize;
size += 2 * getDisabledExtensionsList().size();
}
if (ignoreUnknownDynamicFields_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(30, ignoreUnknownDynamicFields_);
}
if (useDynamicBaseId_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(31, useDynamicBaseId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseIdPath_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(32, baseIdPath_);
}
if (drainStrategy_ != io.envoyproxy.envoy.admin.v3.CommandLineOptions.DrainStrategy.Gradual.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(33, drainStrategy_);
}
if (enableFineGrainLogging_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(34, enableFineGrainLogging_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(socketPath_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(35, socketPath_);
}
if (socketMode_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(36, socketMode_);
}
if (enableCoreDump_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(37, enableCoreDump_);
}
{
int dataSize = 0;
for (int i = 0; i < statsTag_.size(); i++) {
dataSize += computeStringSizeNoTag(statsTag_.getRaw(i));
}
size += dataSize;
size += 2 * getStatsTagList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.admin.v3.CommandLineOptions)) {
return super.equals(obj);
}
io.envoyproxy.envoy.admin.v3.CommandLineOptions other = (io.envoyproxy.envoy.admin.v3.CommandLineOptions) obj;
if (getBaseId()
!= other.getBaseId()) return false;
if (getUseDynamicBaseId()
!= other.getUseDynamicBaseId()) return false;
if (!getBaseIdPath()
.equals(other.getBaseIdPath())) return false;
if (getConcurrency()
!= other.getConcurrency()) return false;
if (!getConfigPath()
.equals(other.getConfigPath())) return false;
if (!getConfigYaml()
.equals(other.getConfigYaml())) return false;
if (getAllowUnknownStaticFields()
!= other.getAllowUnknownStaticFields()) return false;
if (getRejectUnknownDynamicFields()
!= other.getRejectUnknownDynamicFields()) return false;
if (getIgnoreUnknownDynamicFields()
!= other.getIgnoreUnknownDynamicFields()) return false;
if (!getAdminAddressPath()
.equals(other.getAdminAddressPath())) return false;
if (localAddressIpVersion_ != other.localAddressIpVersion_) return false;
if (!getLogLevel()
.equals(other.getLogLevel())) return false;
if (!getComponentLogLevel()
.equals(other.getComponentLogLevel())) return false;
if (!getLogFormat()
.equals(other.getLogFormat())) return false;
if (getLogFormatEscaped()
!= other.getLogFormatEscaped()) return false;
if (!getLogPath()
.equals(other.getLogPath())) return false;
if (!getServiceCluster()
.equals(other.getServiceCluster())) return false;
if (!getServiceNode()
.equals(other.getServiceNode())) return false;
if (!getServiceZone()
.equals(other.getServiceZone())) return false;
if (hasFileFlushInterval() != other.hasFileFlushInterval()) return false;
if (hasFileFlushInterval()) {
if (!getFileFlushInterval()
.equals(other.getFileFlushInterval())) return false;
}
if (hasDrainTime() != other.hasDrainTime()) return false;
if (hasDrainTime()) {
if (!getDrainTime()
.equals(other.getDrainTime())) return false;
}
if (drainStrategy_ != other.drainStrategy_) return false;
if (hasParentShutdownTime() != other.hasParentShutdownTime()) return false;
if (hasParentShutdownTime()) {
if (!getParentShutdownTime()
.equals(other.getParentShutdownTime())) return false;
}
if (mode_ != other.mode_) return false;
if (getDisableHotRestart()
!= other.getDisableHotRestart()) return false;
if (getEnableMutexTracing()
!= other.getEnableMutexTracing()) return false;
if (getRestartEpoch()
!= other.getRestartEpoch()) return false;
if (getCpusetThreads()
!= other.getCpusetThreads()) return false;
if (!getDisabledExtensionsList()
.equals(other.getDisabledExtensionsList())) return false;
if (getEnableFineGrainLogging()
!= other.getEnableFineGrainLogging()) return false;
if (!getSocketPath()
.equals(other.getSocketPath())) return false;
if (getSocketMode()
!= other.getSocketMode()) return false;
if (getEnableCoreDump()
!= other.getEnableCoreDump()) return false;
if (!getStatsTagList()
.equals(other.getStatsTagList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + BASE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBaseId());
hash = (37 * hash) + USE_DYNAMIC_BASE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getUseDynamicBaseId());
hash = (37 * hash) + BASE_ID_PATH_FIELD_NUMBER;
hash = (53 * hash) + getBaseIdPath().hashCode();
hash = (37 * hash) + CONCURRENCY_FIELD_NUMBER;
hash = (53 * hash) + getConcurrency();
hash = (37 * hash) + CONFIG_PATH_FIELD_NUMBER;
hash = (53 * hash) + getConfigPath().hashCode();
hash = (37 * hash) + CONFIG_YAML_FIELD_NUMBER;
hash = (53 * hash) + getConfigYaml().hashCode();
hash = (37 * hash) + ALLOW_UNKNOWN_STATIC_FIELDS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAllowUnknownStaticFields());
hash = (37 * hash) + REJECT_UNKNOWN_DYNAMIC_FIELDS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getRejectUnknownDynamicFields());
hash = (37 * hash) + IGNORE_UNKNOWN_DYNAMIC_FIELDS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIgnoreUnknownDynamicFields());
hash = (37 * hash) + ADMIN_ADDRESS_PATH_FIELD_NUMBER;
hash = (53 * hash) + getAdminAddressPath().hashCode();
hash = (37 * hash) + LOCAL_ADDRESS_IP_VERSION_FIELD_NUMBER;
hash = (53 * hash) + localAddressIpVersion_;
hash = (37 * hash) + LOG_LEVEL_FIELD_NUMBER;
hash = (53 * hash) + getLogLevel().hashCode();
hash = (37 * hash) + COMPONENT_LOG_LEVEL_FIELD_NUMBER;
hash = (53 * hash) + getComponentLogLevel().hashCode();
hash = (37 * hash) + LOG_FORMAT_FIELD_NUMBER;
hash = (53 * hash) + getLogFormat().hashCode();
hash = (37 * hash) + LOG_FORMAT_ESCAPED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getLogFormatEscaped());
hash = (37 * hash) + LOG_PATH_FIELD_NUMBER;
hash = (53 * hash) + getLogPath().hashCode();
hash = (37 * hash) + SERVICE_CLUSTER_FIELD_NUMBER;
hash = (53 * hash) + getServiceCluster().hashCode();
hash = (37 * hash) + SERVICE_NODE_FIELD_NUMBER;
hash = (53 * hash) + getServiceNode().hashCode();
hash = (37 * hash) + SERVICE_ZONE_FIELD_NUMBER;
hash = (53 * hash) + getServiceZone().hashCode();
if (hasFileFlushInterval()) {
hash = (37 * hash) + FILE_FLUSH_INTERVAL_FIELD_NUMBER;
hash = (53 * hash) + getFileFlushInterval().hashCode();
}
if (hasDrainTime()) {
hash = (37 * hash) + DRAIN_TIME_FIELD_NUMBER;
hash = (53 * hash) + getDrainTime().hashCode();
}
hash = (37 * hash) + DRAIN_STRATEGY_FIELD_NUMBER;
hash = (53 * hash) + drainStrategy_;
if (hasParentShutdownTime()) {
hash = (37 * hash) + PARENT_SHUTDOWN_TIME_FIELD_NUMBER;
hash = (53 * hash) + getParentShutdownTime().hashCode();
}
hash = (37 * hash) + MODE_FIELD_NUMBER;
hash = (53 * hash) + mode_;
hash = (37 * hash) + DISABLE_HOT_RESTART_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDisableHotRestart());
hash = (37 * hash) + ENABLE_MUTEX_TRACING_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getEnableMutexTracing());
hash = (37 * hash) + RESTART_EPOCH_FIELD_NUMBER;
hash = (53 * hash) + getRestartEpoch();
hash = (37 * hash) + CPUSET_THREADS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getCpusetThreads());
if (getDisabledExtensionsCount() > 0) {
hash = (37 * hash) + DISABLED_EXTENSIONS_FIELD_NUMBER;
hash = (53 * hash) + getDisabledExtensionsList().hashCode();
}
hash = (37 * hash) + ENABLE_FINE_GRAIN_LOGGING_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getEnableFineGrainLogging());
hash = (37 * hash) + SOCKET_PATH_FIELD_NUMBER;
hash = (53 * hash) + getSocketPath().hashCode();
hash = (37 * hash) + SOCKET_MODE_FIELD_NUMBER;
hash = (53 * hash) + getSocketMode();
hash = (37 * hash) + ENABLE_CORE_DUMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getEnableCoreDump());
if (getStatsTagCount() > 0) {
hash = (37 * hash) + STATS_TAG_FIELD_NUMBER;
hash = (53 * hash) + getStatsTagList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.admin.v3.CommandLineOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v3.CommandLineOptions 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.admin.v3.CommandLineOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v3.CommandLineOptions 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.admin.v3.CommandLineOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v3.CommandLineOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.admin.v3.CommandLineOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v3.CommandLineOptions 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.admin.v3.CommandLineOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v3.CommandLineOptions 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.admin.v3.CommandLineOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v3.CommandLineOptions 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.admin.v3.CommandLineOptions 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;
}
/**
*
* [#next-free-field: 39]
*
*
* Protobuf type {@code envoy.admin.v3.CommandLineOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.admin.v3.CommandLineOptions)
io.envoyproxy.envoy.admin.v3.CommandLineOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.admin.v3.ServerInfoProto.internal_static_envoy_admin_v3_CommandLineOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v3.ServerInfoProto.internal_static_envoy_admin_v3_CommandLineOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v3.CommandLineOptions.class, io.envoyproxy.envoy.admin.v3.CommandLineOptions.Builder.class);
}
// Construct using io.envoyproxy.envoy.admin.v3.CommandLineOptions.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();
baseId_ = 0L;
useDynamicBaseId_ = false;
baseIdPath_ = "";
concurrency_ = 0;
configPath_ = "";
configYaml_ = "";
allowUnknownStaticFields_ = false;
rejectUnknownDynamicFields_ = false;
ignoreUnknownDynamicFields_ = false;
adminAddressPath_ = "";
localAddressIpVersion_ = 0;
logLevel_ = "";
componentLogLevel_ = "";
logFormat_ = "";
logFormatEscaped_ = false;
logPath_ = "";
serviceCluster_ = "";
serviceNode_ = "";
serviceZone_ = "";
if (fileFlushIntervalBuilder_ == null) {
fileFlushInterval_ = null;
} else {
fileFlushInterval_ = null;
fileFlushIntervalBuilder_ = null;
}
if (drainTimeBuilder_ == null) {
drainTime_ = null;
} else {
drainTime_ = null;
drainTimeBuilder_ = null;
}
drainStrategy_ = 0;
if (parentShutdownTimeBuilder_ == null) {
parentShutdownTime_ = null;
} else {
parentShutdownTime_ = null;
parentShutdownTimeBuilder_ = null;
}
mode_ = 0;
disableHotRestart_ = false;
enableMutexTracing_ = false;
restartEpoch_ = 0;
cpusetThreads_ = false;
disabledExtensions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
enableFineGrainLogging_ = false;
socketPath_ = "";
socketMode_ = 0;
enableCoreDump_ = false;
statsTag_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.admin.v3.ServerInfoProto.internal_static_envoy_admin_v3_CommandLineOptions_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.CommandLineOptions getDefaultInstanceForType() {
return io.envoyproxy.envoy.admin.v3.CommandLineOptions.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.CommandLineOptions build() {
io.envoyproxy.envoy.admin.v3.CommandLineOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.CommandLineOptions buildPartial() {
io.envoyproxy.envoy.admin.v3.CommandLineOptions result = new io.envoyproxy.envoy.admin.v3.CommandLineOptions(this);
int from_bitField0_ = bitField0_;
result.baseId_ = baseId_;
result.useDynamicBaseId_ = useDynamicBaseId_;
result.baseIdPath_ = baseIdPath_;
result.concurrency_ = concurrency_;
result.configPath_ = configPath_;
result.configYaml_ = configYaml_;
result.allowUnknownStaticFields_ = allowUnknownStaticFields_;
result.rejectUnknownDynamicFields_ = rejectUnknownDynamicFields_;
result.ignoreUnknownDynamicFields_ = ignoreUnknownDynamicFields_;
result.adminAddressPath_ = adminAddressPath_;
result.localAddressIpVersion_ = localAddressIpVersion_;
result.logLevel_ = logLevel_;
result.componentLogLevel_ = componentLogLevel_;
result.logFormat_ = logFormat_;
result.logFormatEscaped_ = logFormatEscaped_;
result.logPath_ = logPath_;
result.serviceCluster_ = serviceCluster_;
result.serviceNode_ = serviceNode_;
result.serviceZone_ = serviceZone_;
if (fileFlushIntervalBuilder_ == null) {
result.fileFlushInterval_ = fileFlushInterval_;
} else {
result.fileFlushInterval_ = fileFlushIntervalBuilder_.build();
}
if (drainTimeBuilder_ == null) {
result.drainTime_ = drainTime_;
} else {
result.drainTime_ = drainTimeBuilder_.build();
}
result.drainStrategy_ = drainStrategy_;
if (parentShutdownTimeBuilder_ == null) {
result.parentShutdownTime_ = parentShutdownTime_;
} else {
result.parentShutdownTime_ = parentShutdownTimeBuilder_.build();
}
result.mode_ = mode_;
result.disableHotRestart_ = disableHotRestart_;
result.enableMutexTracing_ = enableMutexTracing_;
result.restartEpoch_ = restartEpoch_;
result.cpusetThreads_ = cpusetThreads_;
if (((bitField0_ & 0x00000001) != 0)) {
disabledExtensions_ = disabledExtensions_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.disabledExtensions_ = disabledExtensions_;
result.enableFineGrainLogging_ = enableFineGrainLogging_;
result.socketPath_ = socketPath_;
result.socketMode_ = socketMode_;
result.enableCoreDump_ = enableCoreDump_;
if (((bitField0_ & 0x00000002) != 0)) {
statsTag_ = statsTag_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.statsTag_ = statsTag_;
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.admin.v3.CommandLineOptions) {
return mergeFrom((io.envoyproxy.envoy.admin.v3.CommandLineOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.admin.v3.CommandLineOptions other) {
if (other == io.envoyproxy.envoy.admin.v3.CommandLineOptions.getDefaultInstance()) return this;
if (other.getBaseId() != 0L) {
setBaseId(other.getBaseId());
}
if (other.getUseDynamicBaseId() != false) {
setUseDynamicBaseId(other.getUseDynamicBaseId());
}
if (!other.getBaseIdPath().isEmpty()) {
baseIdPath_ = other.baseIdPath_;
onChanged();
}
if (other.getConcurrency() != 0) {
setConcurrency(other.getConcurrency());
}
if (!other.getConfigPath().isEmpty()) {
configPath_ = other.configPath_;
onChanged();
}
if (!other.getConfigYaml().isEmpty()) {
configYaml_ = other.configYaml_;
onChanged();
}
if (other.getAllowUnknownStaticFields() != false) {
setAllowUnknownStaticFields(other.getAllowUnknownStaticFields());
}
if (other.getRejectUnknownDynamicFields() != false) {
setRejectUnknownDynamicFields(other.getRejectUnknownDynamicFields());
}
if (other.getIgnoreUnknownDynamicFields() != false) {
setIgnoreUnknownDynamicFields(other.getIgnoreUnknownDynamicFields());
}
if (!other.getAdminAddressPath().isEmpty()) {
adminAddressPath_ = other.adminAddressPath_;
onChanged();
}
if (other.localAddressIpVersion_ != 0) {
setLocalAddressIpVersionValue(other.getLocalAddressIpVersionValue());
}
if (!other.getLogLevel().isEmpty()) {
logLevel_ = other.logLevel_;
onChanged();
}
if (!other.getComponentLogLevel().isEmpty()) {
componentLogLevel_ = other.componentLogLevel_;
onChanged();
}
if (!other.getLogFormat().isEmpty()) {
logFormat_ = other.logFormat_;
onChanged();
}
if (other.getLogFormatEscaped() != false) {
setLogFormatEscaped(other.getLogFormatEscaped());
}
if (!other.getLogPath().isEmpty()) {
logPath_ = other.logPath_;
onChanged();
}
if (!other.getServiceCluster().isEmpty()) {
serviceCluster_ = other.serviceCluster_;
onChanged();
}
if (!other.getServiceNode().isEmpty()) {
serviceNode_ = other.serviceNode_;
onChanged();
}
if (!other.getServiceZone().isEmpty()) {
serviceZone_ = other.serviceZone_;
onChanged();
}
if (other.hasFileFlushInterval()) {
mergeFileFlushInterval(other.getFileFlushInterval());
}
if (other.hasDrainTime()) {
mergeDrainTime(other.getDrainTime());
}
if (other.drainStrategy_ != 0) {
setDrainStrategyValue(other.getDrainStrategyValue());
}
if (other.hasParentShutdownTime()) {
mergeParentShutdownTime(other.getParentShutdownTime());
}
if (other.mode_ != 0) {
setModeValue(other.getModeValue());
}
if (other.getDisableHotRestart() != false) {
setDisableHotRestart(other.getDisableHotRestart());
}
if (other.getEnableMutexTracing() != false) {
setEnableMutexTracing(other.getEnableMutexTracing());
}
if (other.getRestartEpoch() != 0) {
setRestartEpoch(other.getRestartEpoch());
}
if (other.getCpusetThreads() != false) {
setCpusetThreads(other.getCpusetThreads());
}
if (!other.disabledExtensions_.isEmpty()) {
if (disabledExtensions_.isEmpty()) {
disabledExtensions_ = other.disabledExtensions_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDisabledExtensionsIsMutable();
disabledExtensions_.addAll(other.disabledExtensions_);
}
onChanged();
}
if (other.getEnableFineGrainLogging() != false) {
setEnableFineGrainLogging(other.getEnableFineGrainLogging());
}
if (!other.getSocketPath().isEmpty()) {
socketPath_ = other.socketPath_;
onChanged();
}
if (other.getSocketMode() != 0) {
setSocketMode(other.getSocketMode());
}
if (other.getEnableCoreDump() != false) {
setEnableCoreDump(other.getEnableCoreDump());
}
if (!other.statsTag_.isEmpty()) {
if (statsTag_.isEmpty()) {
statsTag_ = other.statsTag_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureStatsTagIsMutable();
statsTag_.addAll(other.statsTag_);
}
onChanged();
}
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.admin.v3.CommandLineOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.admin.v3.CommandLineOptions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long baseId_ ;
/**
*
* See :option:`--base-id` for details.
*
*
* uint64 base_id = 1;
* @return The baseId.
*/
@java.lang.Override
public long getBaseId() {
return baseId_;
}
/**
*
* See :option:`--base-id` for details.
*
*
* uint64 base_id = 1;
* @param value The baseId to set.
* @return This builder for chaining.
*/
public Builder setBaseId(long value) {
baseId_ = value;
onChanged();
return this;
}
/**
*
* See :option:`--base-id` for details.
*
*
* uint64 base_id = 1;
* @return This builder for chaining.
*/
public Builder clearBaseId() {
baseId_ = 0L;
onChanged();
return this;
}
private boolean useDynamicBaseId_ ;
/**
*
* See :option:`--use-dynamic-base-id` for details.
*
*
* bool use_dynamic_base_id = 31;
* @return The useDynamicBaseId.
*/
@java.lang.Override
public boolean getUseDynamicBaseId() {
return useDynamicBaseId_;
}
/**
*
* See :option:`--use-dynamic-base-id` for details.
*
*
* bool use_dynamic_base_id = 31;
* @param value The useDynamicBaseId to set.
* @return This builder for chaining.
*/
public Builder setUseDynamicBaseId(boolean value) {
useDynamicBaseId_ = value;
onChanged();
return this;
}
/**
*
* See :option:`--use-dynamic-base-id` for details.
*
*
* bool use_dynamic_base_id = 31;
* @return This builder for chaining.
*/
public Builder clearUseDynamicBaseId() {
useDynamicBaseId_ = false;
onChanged();
return this;
}
private java.lang.Object baseIdPath_ = "";
/**
*
* See :option:`--base-id-path` for details.
*
*
* string base_id_path = 32;
* @return The baseIdPath.
*/
public java.lang.String getBaseIdPath() {
java.lang.Object ref = baseIdPath_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
baseIdPath_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* See :option:`--base-id-path` for details.
*
*
* string base_id_path = 32;
* @return The bytes for baseIdPath.
*/
public com.google.protobuf.ByteString
getBaseIdPathBytes() {
java.lang.Object ref = baseIdPath_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
baseIdPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* See :option:`--base-id-path` for details.
*
*
* string base_id_path = 32;
* @param value The baseIdPath to set.
* @return This builder for chaining.
*/
public Builder setBaseIdPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
baseIdPath_ = value;
onChanged();
return this;
}
/**
*
* See :option:`--base-id-path` for details.
*
*
* string base_id_path = 32;
* @return This builder for chaining.
*/
public Builder clearBaseIdPath() {
baseIdPath_ = getDefaultInstance().getBaseIdPath();
onChanged();
return this;
}
/**
*
* See :option:`--base-id-path` for details.
*
*
* string base_id_path = 32;
* @param value The bytes for baseIdPath to set.
* @return This builder for chaining.
*/
public Builder setBaseIdPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
baseIdPath_ = value;
onChanged();
return this;
}
private int concurrency_ ;
/**
*
* See :option:`--concurrency` for details.
*
*
* uint32 concurrency = 2;
* @return The concurrency.
*/
@java.lang.Override
public int getConcurrency() {
return concurrency_;
}
/**
*
* See :option:`--concurrency` for details.
*
*
* uint32 concurrency = 2;
* @param value The concurrency to set.
* @return This builder for chaining.
*/
public Builder setConcurrency(int value) {
concurrency_ = value;
onChanged();
return this;
}
/**
*
* See :option:`--concurrency` for details.
*
*
* uint32 concurrency = 2;
* @return This builder for chaining.
*/
public Builder clearConcurrency() {
concurrency_ = 0;
onChanged();
return this;
}
private java.lang.Object configPath_ = "";
/**
*
* See :option:`--config-path` for details.
*
*
* string config_path = 3;
* @return The configPath.
*/
public java.lang.String getConfigPath() {
java.lang.Object ref = configPath_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
configPath_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* See :option:`--config-path` for details.
*
*
* string config_path = 3;
* @return The bytes for configPath.
*/
public com.google.protobuf.ByteString
getConfigPathBytes() {
java.lang.Object ref = configPath_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
configPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* See :option:`--config-path` for details.
*
*
* string config_path = 3;
* @param value The configPath to set.
* @return This builder for chaining.
*/
public Builder setConfigPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
configPath_ = value;
onChanged();
return this;
}
/**
*
* See :option:`--config-path` for details.
*
*
* string config_path = 3;
* @return This builder for chaining.
*/
public Builder clearConfigPath() {
configPath_ = getDefaultInstance().getConfigPath();
onChanged();
return this;
}
/**
*
* See :option:`--config-path` for details.
*
*
* string config_path = 3;
* @param value The bytes for configPath to set.
* @return This builder for chaining.
*/
public Builder setConfigPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
configPath_ = value;
onChanged();
return this;
}
private java.lang.Object configYaml_ = "";
/**
*
* See :option:`--config-yaml` for details.
*
*
* string config_yaml = 4;
* @return The configYaml.
*/
public java.lang.String getConfigYaml() {
java.lang.Object ref = configYaml_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
configYaml_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* See :option:`--config-yaml` for details.
*
*
* string config_yaml = 4;
* @return The bytes for configYaml.
*/
public com.google.protobuf.ByteString
getConfigYamlBytes() {
java.lang.Object ref = configYaml_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
configYaml_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* See :option:`--config-yaml` for details.
*
*
* string config_yaml = 4;
* @param value The configYaml to set.
* @return This builder for chaining.
*/
public Builder setConfigYaml(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
configYaml_ = value;
onChanged();
return this;
}
/**
*
* See :option:`--config-yaml` for details.
*
*
* string config_yaml = 4;
* @return This builder for chaining.
*/
public Builder clearConfigYaml() {
configYaml_ = getDefaultInstance().getConfigYaml();
onChanged();
return this;
}
/**
*
* See :option:`--config-yaml` for details.
*
*
* string config_yaml = 4;
* @param value The bytes for configYaml to set.
* @return This builder for chaining.
*/
public Builder setConfigYamlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
configYaml_ = value;
onChanged();
return this;
}
private boolean allowUnknownStaticFields_ ;
/**
*
* See :option:`--allow-unknown-static-fields` for details.
*
*
* bool allow_unknown_static_fields = 5;
* @return The allowUnknownStaticFields.
*/
@java.lang.Override
public boolean getAllowUnknownStaticFields() {
return allowUnknownStaticFields_;
}
/**
*
* See :option:`--allow-unknown-static-fields` for details.
*
*
* bool allow_unknown_static_fields = 5;
* @param value The allowUnknownStaticFields to set.
* @return This builder for chaining.
*/
public Builder setAllowUnknownStaticFields(boolean value) {
allowUnknownStaticFields_ = value;
onChanged();
return this;
}
/**
*
* See :option:`--allow-unknown-static-fields` for details.
*
*
* bool allow_unknown_static_fields = 5;
* @return This builder for chaining.
*/
public Builder clearAllowUnknownStaticFields() {
allowUnknownStaticFields_ = false;
onChanged();
return this;
}
private boolean rejectUnknownDynamicFields_ ;
/**
*
* See :option:`--reject-unknown-dynamic-fields` for details.
*
*
* bool reject_unknown_dynamic_fields = 26;
* @return The rejectUnknownDynamicFields.
*/
@java.lang.Override
public boolean getRejectUnknownDynamicFields() {
return rejectUnknownDynamicFields_;
}
/**
*
* See :option:`--reject-unknown-dynamic-fields` for details.
*
*
* bool reject_unknown_dynamic_fields = 26;
* @param value The rejectUnknownDynamicFields to set.
* @return This builder for chaining.
*/
public Builder setRejectUnknownDynamicFields(boolean value) {
rejectUnknownDynamicFields_ = value;
onChanged();
return this;
}
/**
*
* See :option:`--reject-unknown-dynamic-fields` for details.
*
*
* bool reject_unknown_dynamic_fields = 26;
* @return This builder for chaining.
*/
public Builder clearRejectUnknownDynamicFields() {
rejectUnknownDynamicFields_ = false;
onChanged();
return this;
}
private boolean ignoreUnknownDynamicFields_ ;
/**
*
* See :option:`--ignore-unknown-dynamic-fields` for details.
*
*
* bool ignore_unknown_dynamic_fields = 30;
* @return The ignoreUnknownDynamicFields.
*/
@java.lang.Override
public boolean getIgnoreUnknownDynamicFields() {
return ignoreUnknownDynamicFields_;
}
/**
*
* See :option:`--ignore-unknown-dynamic-fields` for details.
*
*
* bool ignore_unknown_dynamic_fields = 30;
* @param value The ignoreUnknownDynamicFields to set.
* @return This builder for chaining.
*/
public Builder setIgnoreUnknownDynamicFields(boolean value) {
ignoreUnknownDynamicFields_ = value;
onChanged();
return this;
}
/**
*
* See :option:`--ignore-unknown-dynamic-fields` for details.
*
*
* bool ignore_unknown_dynamic_fields = 30;
* @return This builder for chaining.
*/
public Builder clearIgnoreUnknownDynamicFields() {
ignoreUnknownDynamicFields_ = false;
onChanged();
return this;
}
private java.lang.Object adminAddressPath_ = "";
/**
*
* See :option:`--admin-address-path` for details.
*
*
* string admin_address_path = 6;
* @return The adminAddressPath.
*/
public java.lang.String getAdminAddressPath() {
java.lang.Object ref = adminAddressPath_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
adminAddressPath_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* See :option:`--admin-address-path` for details.
*
*
* string admin_address_path = 6;
* @return The bytes for adminAddressPath.
*/
public com.google.protobuf.ByteString
getAdminAddressPathBytes() {
java.lang.Object ref = adminAddressPath_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
adminAddressPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* See :option:`--admin-address-path` for details.
*
*
* string admin_address_path = 6;
* @param value The adminAddressPath to set.
* @return This builder for chaining.
*/
public Builder setAdminAddressPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
adminAddressPath_ = value;
onChanged();
return this;
}
/**
*
* See :option:`--admin-address-path` for details.
*
*
* string admin_address_path = 6;
* @return This builder for chaining.
*/
public Builder clearAdminAddressPath() {
adminAddressPath_ = getDefaultInstance().getAdminAddressPath();
onChanged();
return this;
}
/**
*
* See :option:`--admin-address-path` for details.
*
*
* string admin_address_path = 6;
* @param value The bytes for adminAddressPath to set.
* @return This builder for chaining.
*/
public Builder setAdminAddressPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
adminAddressPath_ = value;
onChanged();
return this;
}
private int localAddressIpVersion_ = 0;
/**
*
* See :option:`--local-address-ip-version` for details.
*
*
* .envoy.admin.v3.CommandLineOptions.IpVersion local_address_ip_version = 7;
* @return The enum numeric value on the wire for localAddressIpVersion.
*/
@java.lang.Override public int getLocalAddressIpVersionValue() {
return localAddressIpVersion_;
}
/**
*
* See :option:`--local-address-ip-version` for details.
*
*
* .envoy.admin.v3.CommandLineOptions.IpVersion local_address_ip_version = 7;
* @param value The enum numeric value on the wire for localAddressIpVersion to set.
* @return This builder for chaining.
*/
public Builder setLocalAddressIpVersionValue(int value) {
localAddressIpVersion_ = value;
onChanged();
return this;
}
/**
*
* See :option:`--local-address-ip-version` for details.
*
*
* .envoy.admin.v3.CommandLineOptions.IpVersion local_address_ip_version = 7;
* @return The localAddressIpVersion.
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.CommandLineOptions.IpVersion getLocalAddressIpVersion() {
@SuppressWarnings("deprecation")
io.envoyproxy.envoy.admin.v3.CommandLineOptions.IpVersion result = io.envoyproxy.envoy.admin.v3.CommandLineOptions.IpVersion.valueOf(localAddressIpVersion_);
return result == null ? io.envoyproxy.envoy.admin.v3.CommandLineOptions.IpVersion.UNRECOGNIZED : result;
}
/**
*
* See :option:`--local-address-ip-version` for details.
*
*
* .envoy.admin.v3.CommandLineOptions.IpVersion local_address_ip_version = 7;
* @param value The localAddressIpVersion to set.
* @return This builder for chaining.
*/
public Builder setLocalAddressIpVersion(io.envoyproxy.envoy.admin.v3.CommandLineOptions.IpVersion value) {
if (value == null) {
throw new NullPointerException();
}
localAddressIpVersion_ = value.getNumber();
onChanged();
return this;
}
/**
*
* See :option:`--local-address-ip-version` for details.
*
*
* .envoy.admin.v3.CommandLineOptions.IpVersion local_address_ip_version = 7;
* @return This builder for chaining.
*/
public Builder clearLocalAddressIpVersion() {
localAddressIpVersion_ = 0;
onChanged();
return this;
}
private java.lang.Object logLevel_ = "";
/**
*
* See :option:`--log-level` for details.
*
*
* string log_level = 8;
* @return The logLevel.
*/
public java.lang.String getLogLevel() {
java.lang.Object ref = logLevel_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
logLevel_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* See :option:`--log-level` for details.
*
*
* string log_level = 8;
* @return The bytes for logLevel.
*/
public com.google.protobuf.ByteString
getLogLevelBytes() {
java.lang.Object ref = logLevel_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
logLevel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* See :option:`--log-level` for details.
*
*
* string log_level = 8;
* @param value The logLevel to set.
* @return This builder for chaining.
*/
public Builder setLogLevel(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
logLevel_ = value;
onChanged();
return this;
}
/**
*
* See :option:`--log-level` for details.
*
*
* string log_level = 8;
* @return This builder for chaining.
*/
public Builder clearLogLevel() {
logLevel_ = getDefaultInstance().getLogLevel();
onChanged();
return this;
}
/**
*
* See :option:`--log-level` for details.
*
*
* string log_level = 8;
* @param value The bytes for logLevel to set.
* @return This builder for chaining.
*/
public Builder setLogLevelBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
logLevel_ = value;
onChanged();
return this;
}
private java.lang.Object componentLogLevel_ = "";
/**
*
* See :option:`--component-log-level` for details.
*
*
* string component_log_level = 9;
* @return The componentLogLevel.
*/
public java.lang.String getComponentLogLevel() {
java.lang.Object ref = componentLogLevel_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
componentLogLevel_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* See :option:`--component-log-level` for details.
*
*
* string component_log_level = 9;
* @return The bytes for componentLogLevel.
*/
public com.google.protobuf.ByteString
getComponentLogLevelBytes() {
java.lang.Object ref = componentLogLevel_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
componentLogLevel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* See :option:`--component-log-level` for details.
*
*
* string component_log_level = 9;
* @param value The componentLogLevel to set.
* @return This builder for chaining.
*/
public Builder setComponentLogLevel(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
componentLogLevel_ = value;
onChanged();
return this;
}
/**
*
* See :option:`--component-log-level` for details.
*
*
* string component_log_level = 9;
* @return This builder for chaining.
*/
public Builder clearComponentLogLevel() {
componentLogLevel_ = getDefaultInstance().getComponentLogLevel();
onChanged();
return this;
}
/**
*
* See :option:`--component-log-level` for details.
*
*
* string component_log_level = 9;
* @param value The bytes for componentLogLevel to set.
* @return This builder for chaining.
*/
public Builder setComponentLogLevelBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
componentLogLevel_ = value;
onChanged();
return this;
}
private java.lang.Object logFormat_ = "";
/**
*
* See :option:`--log-format` for details.
*
*
* string log_format = 10;
* @return The logFormat.
*/
public java.lang.String getLogFormat() {
java.lang.Object ref = logFormat_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
logFormat_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* See :option:`--log-format` for details.
*
*
* string log_format = 10;
* @return The bytes for logFormat.
*/
public com.google.protobuf.ByteString
getLogFormatBytes() {
java.lang.Object ref = logFormat_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
logFormat_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* See :option:`--log-format` for details.
*
*
* string log_format = 10;
* @param value The logFormat to set.
* @return This builder for chaining.
*/
public Builder setLogFormat(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
logFormat_ = value;
onChanged();
return this;
}
/**
*
* See :option:`--log-format` for details.
*
*
* string log_format = 10;
* @return This builder for chaining.
*/
public Builder clearLogFormat() {
logFormat_ = getDefaultInstance().getLogFormat();
onChanged();
return this;
}
/**
*
* See :option:`--log-format` for details.
*
*
* string log_format = 10;
* @param value The bytes for logFormat to set.
* @return This builder for chaining.
*/
public Builder setLogFormatBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
logFormat_ = value;
onChanged();
return this;
}
private boolean logFormatEscaped_ ;
/**
*
* See :option:`--log-format-escaped` for details.
*
*
* bool log_format_escaped = 27;
* @return The logFormatEscaped.
*/
@java.lang.Override
public boolean getLogFormatEscaped() {
return logFormatEscaped_;
}
/**
*
* See :option:`--log-format-escaped` for details.
*
*
* bool log_format_escaped = 27;
* @param value The logFormatEscaped to set.
* @return This builder for chaining.
*/
public Builder setLogFormatEscaped(boolean value) {
logFormatEscaped_ = value;
onChanged();
return this;
}
/**
*
* See :option:`--log-format-escaped` for details.
*
*
* bool log_format_escaped = 27;
* @return This builder for chaining.
*/
public Builder clearLogFormatEscaped() {
logFormatEscaped_ = false;
onChanged();
return this;
}
private java.lang.Object logPath_ = "";
/**
*
* See :option:`--log-path` for details.
*
*
* string log_path = 11;
* @return The logPath.
*/
public java.lang.String getLogPath() {
java.lang.Object ref = logPath_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
logPath_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* See :option:`--log-path` for details.
*
*
* string log_path = 11;
* @return The bytes for logPath.
*/
public com.google.protobuf.ByteString
getLogPathBytes() {
java.lang.Object ref = logPath_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
logPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* See :option:`--log-path` for details.
*
*
* string log_path = 11;
* @param value The logPath to set.
* @return This builder for chaining.
*/
public Builder setLogPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
logPath_ = value;
onChanged();
return this;
}
/**
*
* See :option:`--log-path` for details.
*
*
* string log_path = 11;
* @return This builder for chaining.
*/
public Builder clearLogPath() {
logPath_ = getDefaultInstance().getLogPath();
onChanged();
return this;
}
/**
*
* See :option:`--log-path` for details.
*
*
* string log_path = 11;
* @param value The bytes for logPath to set.
* @return This builder for chaining.
*/
public Builder setLogPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
logPath_ = value;
onChanged();
return this;
}
private java.lang.Object serviceCluster_ = "";
/**
*
* See :option:`--service-cluster` for details.
*
*
* string service_cluster = 13;
* @return The serviceCluster.
*/
public java.lang.String getServiceCluster() {
java.lang.Object ref = serviceCluster_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceCluster_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* See :option:`--service-cluster` for details.
*
*
* string service_cluster = 13;
* @return The bytes for serviceCluster.
*/
public com.google.protobuf.ByteString
getServiceClusterBytes() {
java.lang.Object ref = serviceCluster_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceCluster_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* See :option:`--service-cluster` for details.
*
*
* string service_cluster = 13;
* @param value The serviceCluster to set.
* @return This builder for chaining.
*/
public Builder setServiceCluster(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serviceCluster_ = value;
onChanged();
return this;
}
/**
*
* See :option:`--service-cluster` for details.
*
*
* string service_cluster = 13;
* @return This builder for chaining.
*/
public Builder clearServiceCluster() {
serviceCluster_ = getDefaultInstance().getServiceCluster();
onChanged();
return this;
}
/**
*
* See :option:`--service-cluster` for details.
*
*
* string service_cluster = 13;
* @param value The bytes for serviceCluster to set.
* @return This builder for chaining.
*/
public Builder setServiceClusterBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serviceCluster_ = value;
onChanged();
return this;
}
private java.lang.Object serviceNode_ = "";
/**
*
* See :option:`--service-node` for details.
*
*
* string service_node = 14;
* @return The serviceNode.
*/
public java.lang.String getServiceNode() {
java.lang.Object ref = serviceNode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceNode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* See :option:`--service-node` for details.
*
*
* string service_node = 14;
* @return The bytes for serviceNode.
*/
public com.google.protobuf.ByteString
getServiceNodeBytes() {
java.lang.Object ref = serviceNode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceNode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* See :option:`--service-node` for details.
*
*
* string service_node = 14;
* @param value The serviceNode to set.
* @return This builder for chaining.
*/
public Builder setServiceNode(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serviceNode_ = value;
onChanged();
return this;
}
/**
*
* See :option:`--service-node` for details.
*
*
* string service_node = 14;
* @return This builder for chaining.
*/
public Builder clearServiceNode() {
serviceNode_ = getDefaultInstance().getServiceNode();
onChanged();
return this;
}
/**
*
* See :option:`--service-node` for details.
*
*
* string service_node = 14;
* @param value The bytes for serviceNode to set.
* @return This builder for chaining.
*/
public Builder setServiceNodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serviceNode_ = value;
onChanged();
return this;
}
private java.lang.Object serviceZone_ = "";
/**
*
* See :option:`--service-zone` for details.
*
*
* string service_zone = 15;
* @return The serviceZone.
*/
public java.lang.String getServiceZone() {
java.lang.Object ref = serviceZone_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceZone_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* See :option:`--service-zone` for details.
*
*
* string service_zone = 15;
* @return The bytes for serviceZone.
*/
public com.google.protobuf.ByteString
getServiceZoneBytes() {
java.lang.Object ref = serviceZone_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceZone_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* See :option:`--service-zone` for details.
*
*
* string service_zone = 15;
* @param value The serviceZone to set.
* @return This builder for chaining.
*/
public Builder setServiceZone(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serviceZone_ = value;
onChanged();
return this;
}
/**
*
* See :option:`--service-zone` for details.
*
*
* string service_zone = 15;
* @return This builder for chaining.
*/
public Builder clearServiceZone() {
serviceZone_ = getDefaultInstance().getServiceZone();
onChanged();
return this;
}
/**
*
* See :option:`--service-zone` for details.
*
*
* string service_zone = 15;
* @param value The bytes for serviceZone to set.
* @return This builder for chaining.
*/
public Builder setServiceZoneBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serviceZone_ = value;
onChanged();
return this;
}
private com.google.protobuf.Duration fileFlushInterval_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> fileFlushIntervalBuilder_;
/**
*
* See :option:`--file-flush-interval-msec` for details.
*
*
* .google.protobuf.Duration file_flush_interval = 16;
* @return Whether the fileFlushInterval field is set.
*/
public boolean hasFileFlushInterval() {
return fileFlushIntervalBuilder_ != null || fileFlushInterval_ != null;
}
/**
*
* See :option:`--file-flush-interval-msec` for details.
*
*
* .google.protobuf.Duration file_flush_interval = 16;
* @return The fileFlushInterval.
*/
public com.google.protobuf.Duration getFileFlushInterval() {
if (fileFlushIntervalBuilder_ == null) {
return fileFlushInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : fileFlushInterval_;
} else {
return fileFlushIntervalBuilder_.getMessage();
}
}
/**
*
* See :option:`--file-flush-interval-msec` for details.
*
*
* .google.protobuf.Duration file_flush_interval = 16;
*/
public Builder setFileFlushInterval(com.google.protobuf.Duration value) {
if (fileFlushIntervalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fileFlushInterval_ = value;
onChanged();
} else {
fileFlushIntervalBuilder_.setMessage(value);
}
return this;
}
/**
*
* See :option:`--file-flush-interval-msec` for details.
*
*
* .google.protobuf.Duration file_flush_interval = 16;
*/
public Builder setFileFlushInterval(
com.google.protobuf.Duration.Builder builderForValue) {
if (fileFlushIntervalBuilder_ == null) {
fileFlushInterval_ = builderForValue.build();
onChanged();
} else {
fileFlushIntervalBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* See :option:`--file-flush-interval-msec` for details.
*
*
* .google.protobuf.Duration file_flush_interval = 16;
*/
public Builder mergeFileFlushInterval(com.google.protobuf.Duration value) {
if (fileFlushIntervalBuilder_ == null) {
if (fileFlushInterval_ != null) {
fileFlushInterval_ =
com.google.protobuf.Duration.newBuilder(fileFlushInterval_).mergeFrom(value).buildPartial();
} else {
fileFlushInterval_ = value;
}
onChanged();
} else {
fileFlushIntervalBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* See :option:`--file-flush-interval-msec` for details.
*
*
* .google.protobuf.Duration file_flush_interval = 16;
*/
public Builder clearFileFlushInterval() {
if (fileFlushIntervalBuilder_ == null) {
fileFlushInterval_ = null;
onChanged();
} else {
fileFlushInterval_ = null;
fileFlushIntervalBuilder_ = null;
}
return this;
}
/**
*
* See :option:`--file-flush-interval-msec` for details.
*
*
* .google.protobuf.Duration file_flush_interval = 16;
*/
public com.google.protobuf.Duration.Builder getFileFlushIntervalBuilder() {
onChanged();
return getFileFlushIntervalFieldBuilder().getBuilder();
}
/**
*
* See :option:`--file-flush-interval-msec` for details.
*
*
* .google.protobuf.Duration file_flush_interval = 16;
*/
public com.google.protobuf.DurationOrBuilder getFileFlushIntervalOrBuilder() {
if (fileFlushIntervalBuilder_ != null) {
return fileFlushIntervalBuilder_.getMessageOrBuilder();
} else {
return fileFlushInterval_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : fileFlushInterval_;
}
}
/**
*
* See :option:`--file-flush-interval-msec` for details.
*
*
* .google.protobuf.Duration file_flush_interval = 16;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getFileFlushIntervalFieldBuilder() {
if (fileFlushIntervalBuilder_ == null) {
fileFlushIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getFileFlushInterval(),
getParentForChildren(),
isClean());
fileFlushInterval_ = null;
}
return fileFlushIntervalBuilder_;
}
private com.google.protobuf.Duration drainTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> drainTimeBuilder_;
/**
*
* See :option:`--drain-time-s` for details.
*
*
* .google.protobuf.Duration drain_time = 17;
* @return Whether the drainTime field is set.
*/
public boolean hasDrainTime() {
return drainTimeBuilder_ != null || drainTime_ != null;
}
/**
*
* See :option:`--drain-time-s` for details.
*
*
* .google.protobuf.Duration drain_time = 17;
* @return The drainTime.
*/
public com.google.protobuf.Duration getDrainTime() {
if (drainTimeBuilder_ == null) {
return drainTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : drainTime_;
} else {
return drainTimeBuilder_.getMessage();
}
}
/**
*
* See :option:`--drain-time-s` for details.
*
*
* .google.protobuf.Duration drain_time = 17;
*/
public Builder setDrainTime(com.google.protobuf.Duration value) {
if (drainTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
drainTime_ = value;
onChanged();
} else {
drainTimeBuilder_.setMessage(value);
}
return this;
}
/**
*
* See :option:`--drain-time-s` for details.
*
*
* .google.protobuf.Duration drain_time = 17;
*/
public Builder setDrainTime(
com.google.protobuf.Duration.Builder builderForValue) {
if (drainTimeBuilder_ == null) {
drainTime_ = builderForValue.build();
onChanged();
} else {
drainTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* See :option:`--drain-time-s` for details.
*
*
* .google.protobuf.Duration drain_time = 17;
*/
public Builder mergeDrainTime(com.google.protobuf.Duration value) {
if (drainTimeBuilder_ == null) {
if (drainTime_ != null) {
drainTime_ =
com.google.protobuf.Duration.newBuilder(drainTime_).mergeFrom(value).buildPartial();
} else {
drainTime_ = value;
}
onChanged();
} else {
drainTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* See :option:`--drain-time-s` for details.
*
*
* .google.protobuf.Duration drain_time = 17;
*/
public Builder clearDrainTime() {
if (drainTimeBuilder_ == null) {
drainTime_ = null;
onChanged();
} else {
drainTime_ = null;
drainTimeBuilder_ = null;
}
return this;
}
/**
*
* See :option:`--drain-time-s` for details.
*
*
* .google.protobuf.Duration drain_time = 17;
*/
public com.google.protobuf.Duration.Builder getDrainTimeBuilder() {
onChanged();
return getDrainTimeFieldBuilder().getBuilder();
}
/**
*
* See :option:`--drain-time-s` for details.
*
*
* .google.protobuf.Duration drain_time = 17;
*/
public com.google.protobuf.DurationOrBuilder getDrainTimeOrBuilder() {
if (drainTimeBuilder_ != null) {
return drainTimeBuilder_.getMessageOrBuilder();
} else {
return drainTime_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : drainTime_;
}
}
/**
*
* See :option:`--drain-time-s` for details.
*
*
* .google.protobuf.Duration drain_time = 17;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getDrainTimeFieldBuilder() {
if (drainTimeBuilder_ == null) {
drainTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getDrainTime(),
getParentForChildren(),
isClean());
drainTime_ = null;
}
return drainTimeBuilder_;
}
private int drainStrategy_ = 0;
/**
*
* See :option:`--drain-strategy` for details.
*
*
* .envoy.admin.v3.CommandLineOptions.DrainStrategy drain_strategy = 33;
* @return The enum numeric value on the wire for drainStrategy.
*/
@java.lang.Override public int getDrainStrategyValue() {
return drainStrategy_;
}
/**
*
* See :option:`--drain-strategy` for details.
*
*
* .envoy.admin.v3.CommandLineOptions.DrainStrategy drain_strategy = 33;
* @param value The enum numeric value on the wire for drainStrategy to set.
* @return This builder for chaining.
*/
public Builder setDrainStrategyValue(int value) {
drainStrategy_ = value;
onChanged();
return this;
}
/**
*
* See :option:`--drain-strategy` for details.
*
*
* .envoy.admin.v3.CommandLineOptions.DrainStrategy drain_strategy = 33;
* @return The drainStrategy.
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.CommandLineOptions.DrainStrategy getDrainStrategy() {
@SuppressWarnings("deprecation")
io.envoyproxy.envoy.admin.v3.CommandLineOptions.DrainStrategy result = io.envoyproxy.envoy.admin.v3.CommandLineOptions.DrainStrategy.valueOf(drainStrategy_);
return result == null ? io.envoyproxy.envoy.admin.v3.CommandLineOptions.DrainStrategy.UNRECOGNIZED : result;
}
/**
*
* See :option:`--drain-strategy` for details.
*
*
* .envoy.admin.v3.CommandLineOptions.DrainStrategy drain_strategy = 33;
* @param value The drainStrategy to set.
* @return This builder for chaining.
*/
public Builder setDrainStrategy(io.envoyproxy.envoy.admin.v3.CommandLineOptions.DrainStrategy value) {
if (value == null) {
throw new NullPointerException();
}
drainStrategy_ = value.getNumber();
onChanged();
return this;
}
/**
*
* See :option:`--drain-strategy` for details.
*
*
* .envoy.admin.v3.CommandLineOptions.DrainStrategy drain_strategy = 33;
* @return This builder for chaining.
*/
public Builder clearDrainStrategy() {
drainStrategy_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Duration parentShutdownTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> parentShutdownTimeBuilder_;
/**
*
* See :option:`--parent-shutdown-time-s` for details.
*
*
* .google.protobuf.Duration parent_shutdown_time = 18;
* @return Whether the parentShutdownTime field is set.
*/
public boolean hasParentShutdownTime() {
return parentShutdownTimeBuilder_ != null || parentShutdownTime_ != null;
}
/**
*
* See :option:`--parent-shutdown-time-s` for details.
*
*
* .google.protobuf.Duration parent_shutdown_time = 18;
* @return The parentShutdownTime.
*/
public com.google.protobuf.Duration getParentShutdownTime() {
if (parentShutdownTimeBuilder_ == null) {
return parentShutdownTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : parentShutdownTime_;
} else {
return parentShutdownTimeBuilder_.getMessage();
}
}
/**
*
* See :option:`--parent-shutdown-time-s` for details.
*
*
* .google.protobuf.Duration parent_shutdown_time = 18;
*/
public Builder setParentShutdownTime(com.google.protobuf.Duration value) {
if (parentShutdownTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
parentShutdownTime_ = value;
onChanged();
} else {
parentShutdownTimeBuilder_.setMessage(value);
}
return this;
}
/**
*
* See :option:`--parent-shutdown-time-s` for details.
*
*
* .google.protobuf.Duration parent_shutdown_time = 18;
*/
public Builder setParentShutdownTime(
com.google.protobuf.Duration.Builder builderForValue) {
if (parentShutdownTimeBuilder_ == null) {
parentShutdownTime_ = builderForValue.build();
onChanged();
} else {
parentShutdownTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* See :option:`--parent-shutdown-time-s` for details.
*
*
* .google.protobuf.Duration parent_shutdown_time = 18;
*/
public Builder mergeParentShutdownTime(com.google.protobuf.Duration value) {
if (parentShutdownTimeBuilder_ == null) {
if (parentShutdownTime_ != null) {
parentShutdownTime_ =
com.google.protobuf.Duration.newBuilder(parentShutdownTime_).mergeFrom(value).buildPartial();
} else {
parentShutdownTime_ = value;
}
onChanged();
} else {
parentShutdownTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* See :option:`--parent-shutdown-time-s` for details.
*
*
* .google.protobuf.Duration parent_shutdown_time = 18;
*/
public Builder clearParentShutdownTime() {
if (parentShutdownTimeBuilder_ == null) {
parentShutdownTime_ = null;
onChanged();
} else {
parentShutdownTime_ = null;
parentShutdownTimeBuilder_ = null;
}
return this;
}
/**
*
* See :option:`--parent-shutdown-time-s` for details.
*
*
* .google.protobuf.Duration parent_shutdown_time = 18;
*/
public com.google.protobuf.Duration.Builder getParentShutdownTimeBuilder() {
onChanged();
return getParentShutdownTimeFieldBuilder().getBuilder();
}
/**
*
* See :option:`--parent-shutdown-time-s` for details.
*
*
* .google.protobuf.Duration parent_shutdown_time = 18;
*/
public com.google.protobuf.DurationOrBuilder getParentShutdownTimeOrBuilder() {
if (parentShutdownTimeBuilder_ != null) {
return parentShutdownTimeBuilder_.getMessageOrBuilder();
} else {
return parentShutdownTime_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : parentShutdownTime_;
}
}
/**
*
* See :option:`--parent-shutdown-time-s` for details.
*
*
* .google.protobuf.Duration parent_shutdown_time = 18;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getParentShutdownTimeFieldBuilder() {
if (parentShutdownTimeBuilder_ == null) {
parentShutdownTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getParentShutdownTime(),
getParentForChildren(),
isClean());
parentShutdownTime_ = null;
}
return parentShutdownTimeBuilder_;
}
private int mode_ = 0;
/**
*
* See :option:`--mode` for details.
*
*
* .envoy.admin.v3.CommandLineOptions.Mode mode = 19;
* @return The enum numeric value on the wire for mode.
*/
@java.lang.Override public int getModeValue() {
return mode_;
}
/**
*
* See :option:`--mode` for details.
*
*
* .envoy.admin.v3.CommandLineOptions.Mode mode = 19;
* @param value The enum numeric value on the wire for mode to set.
* @return This builder for chaining.
*/
public Builder setModeValue(int value) {
mode_ = value;
onChanged();
return this;
}
/**
*
* See :option:`--mode` for details.
*
*
* .envoy.admin.v3.CommandLineOptions.Mode mode = 19;
* @return The mode.
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.CommandLineOptions.Mode getMode() {
@SuppressWarnings("deprecation")
io.envoyproxy.envoy.admin.v3.CommandLineOptions.Mode result = io.envoyproxy.envoy.admin.v3.CommandLineOptions.Mode.valueOf(mode_);
return result == null ? io.envoyproxy.envoy.admin.v3.CommandLineOptions.Mode.UNRECOGNIZED : result;
}
/**
*
* See :option:`--mode` for details.
*
*
* .envoy.admin.v3.CommandLineOptions.Mode mode = 19;
* @param value The mode to set.
* @return This builder for chaining.
*/
public Builder setMode(io.envoyproxy.envoy.admin.v3.CommandLineOptions.Mode value) {
if (value == null) {
throw new NullPointerException();
}
mode_ = value.getNumber();
onChanged();
return this;
}
/**
*
* See :option:`--mode` for details.
*
*
* .envoy.admin.v3.CommandLineOptions.Mode mode = 19;
* @return This builder for chaining.
*/
public Builder clearMode() {
mode_ = 0;
onChanged();
return this;
}
private boolean disableHotRestart_ ;
/**
*
* See :option:`--disable-hot-restart` for details.
*
*
* bool disable_hot_restart = 22;
* @return The disableHotRestart.
*/
@java.lang.Override
public boolean getDisableHotRestart() {
return disableHotRestart_;
}
/**
*
* See :option:`--disable-hot-restart` for details.
*
*
* bool disable_hot_restart = 22;
* @param value The disableHotRestart to set.
* @return This builder for chaining.
*/
public Builder setDisableHotRestart(boolean value) {
disableHotRestart_ = value;
onChanged();
return this;
}
/**
*
* See :option:`--disable-hot-restart` for details.
*
*
* bool disable_hot_restart = 22;
* @return This builder for chaining.
*/
public Builder clearDisableHotRestart() {
disableHotRestart_ = false;
onChanged();
return this;
}
private boolean enableMutexTracing_ ;
/**
*
* See :option:`--enable-mutex-tracing` for details.
*
*
* bool enable_mutex_tracing = 23;
* @return The enableMutexTracing.
*/
@java.lang.Override
public boolean getEnableMutexTracing() {
return enableMutexTracing_;
}
/**
*
* See :option:`--enable-mutex-tracing` for details.
*
*
* bool enable_mutex_tracing = 23;
* @param value The enableMutexTracing to set.
* @return This builder for chaining.
*/
public Builder setEnableMutexTracing(boolean value) {
enableMutexTracing_ = value;
onChanged();
return this;
}
/**
*
* See :option:`--enable-mutex-tracing` for details.
*
*
* bool enable_mutex_tracing = 23;
* @return This builder for chaining.
*/
public Builder clearEnableMutexTracing() {
enableMutexTracing_ = false;
onChanged();
return this;
}
private int restartEpoch_ ;
/**
*
* See :option:`--restart-epoch` for details.
*
*
* uint32 restart_epoch = 24;
* @return The restartEpoch.
*/
@java.lang.Override
public int getRestartEpoch() {
return restartEpoch_;
}
/**
*
* See :option:`--restart-epoch` for details.
*
*
* uint32 restart_epoch = 24;
* @param value The restartEpoch to set.
* @return This builder for chaining.
*/
public Builder setRestartEpoch(int value) {
restartEpoch_ = value;
onChanged();
return this;
}
/**
*
* See :option:`--restart-epoch` for details.
*
*
* uint32 restart_epoch = 24;
* @return This builder for chaining.
*/
public Builder clearRestartEpoch() {
restartEpoch_ = 0;
onChanged();
return this;
}
private boolean cpusetThreads_ ;
/**
*
* See :option:`--cpuset-threads` for details.
*
*
* bool cpuset_threads = 25;
* @return The cpusetThreads.
*/
@java.lang.Override
public boolean getCpusetThreads() {
return cpusetThreads_;
}
/**
*
* See :option:`--cpuset-threads` for details.
*
*
* bool cpuset_threads = 25;
* @param value The cpusetThreads to set.
* @return This builder for chaining.
*/
public Builder setCpusetThreads(boolean value) {
cpusetThreads_ = value;
onChanged();
return this;
}
/**
*
* See :option:`--cpuset-threads` for details.
*
*
* bool cpuset_threads = 25;
* @return This builder for chaining.
*/
public Builder clearCpusetThreads() {
cpusetThreads_ = false;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList disabledExtensions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureDisabledExtensionsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
disabledExtensions_ = new com.google.protobuf.LazyStringArrayList(disabledExtensions_);
bitField0_ |= 0x00000001;
}
}
/**
*
* See :option:`--disable-extensions` for details.
*
*
* repeated string disabled_extensions = 28;
* @return A list containing the disabledExtensions.
*/
public com.google.protobuf.ProtocolStringList
getDisabledExtensionsList() {
return disabledExtensions_.getUnmodifiableView();
}
/**
*
* See :option:`--disable-extensions` for details.
*
*
* repeated string disabled_extensions = 28;
* @return The count of disabledExtensions.
*/
public int getDisabledExtensionsCount() {
return disabledExtensions_.size();
}
/**
*
* See :option:`--disable-extensions` for details.
*
*
* repeated string disabled_extensions = 28;
* @param index The index of the element to return.
* @return The disabledExtensions at the given index.
*/
public java.lang.String getDisabledExtensions(int index) {
return disabledExtensions_.get(index);
}
/**
*
* See :option:`--disable-extensions` for details.
*
*
* repeated string disabled_extensions = 28;
* @param index The index of the value to return.
* @return The bytes of the disabledExtensions at the given index.
*/
public com.google.protobuf.ByteString
getDisabledExtensionsBytes(int index) {
return disabledExtensions_.getByteString(index);
}
/**
*
* See :option:`--disable-extensions` for details.
*
*
* repeated string disabled_extensions = 28;
* @param index The index to set the value at.
* @param value The disabledExtensions to set.
* @return This builder for chaining.
*/
public Builder setDisabledExtensions(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureDisabledExtensionsIsMutable();
disabledExtensions_.set(index, value);
onChanged();
return this;
}
/**
*
* See :option:`--disable-extensions` for details.
*
*
* repeated string disabled_extensions = 28;
* @param value The disabledExtensions to add.
* @return This builder for chaining.
*/
public Builder addDisabledExtensions(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureDisabledExtensionsIsMutable();
disabledExtensions_.add(value);
onChanged();
return this;
}
/**
*
* See :option:`--disable-extensions` for details.
*
*
* repeated string disabled_extensions = 28;
* @param values The disabledExtensions to add.
* @return This builder for chaining.
*/
public Builder addAllDisabledExtensions(
java.lang.Iterable values) {
ensureDisabledExtensionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, disabledExtensions_);
onChanged();
return this;
}
/**
*
* See :option:`--disable-extensions` for details.
*
*
* repeated string disabled_extensions = 28;
* @return This builder for chaining.
*/
public Builder clearDisabledExtensions() {
disabledExtensions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* See :option:`--disable-extensions` for details.
*
*
* repeated string disabled_extensions = 28;
* @param value The bytes of the disabledExtensions to add.
* @return This builder for chaining.
*/
public Builder addDisabledExtensionsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureDisabledExtensionsIsMutable();
disabledExtensions_.add(value);
onChanged();
return this;
}
private boolean enableFineGrainLogging_ ;
/**
*
* See :option:`--enable-fine-grain-logging` for details.
*
*
* bool enable_fine_grain_logging = 34;
* @return The enableFineGrainLogging.
*/
@java.lang.Override
public boolean getEnableFineGrainLogging() {
return enableFineGrainLogging_;
}
/**
*
* See :option:`--enable-fine-grain-logging` for details.
*
*
* bool enable_fine_grain_logging = 34;
* @param value The enableFineGrainLogging to set.
* @return This builder for chaining.
*/
public Builder setEnableFineGrainLogging(boolean value) {
enableFineGrainLogging_ = value;
onChanged();
return this;
}
/**
*
* See :option:`--enable-fine-grain-logging` for details.
*
*
* bool enable_fine_grain_logging = 34;
* @return This builder for chaining.
*/
public Builder clearEnableFineGrainLogging() {
enableFineGrainLogging_ = false;
onChanged();
return this;
}
private java.lang.Object socketPath_ = "";
/**
*
* See :option:`--socket-path` for details.
*
*
* string socket_path = 35;
* @return The socketPath.
*/
public java.lang.String getSocketPath() {
java.lang.Object ref = socketPath_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
socketPath_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* See :option:`--socket-path` for details.
*
*
* string socket_path = 35;
* @return The bytes for socketPath.
*/
public com.google.protobuf.ByteString
getSocketPathBytes() {
java.lang.Object ref = socketPath_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
socketPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* See :option:`--socket-path` for details.
*
*
* string socket_path = 35;
* @param value The socketPath to set.
* @return This builder for chaining.
*/
public Builder setSocketPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
socketPath_ = value;
onChanged();
return this;
}
/**
*
* See :option:`--socket-path` for details.
*
*
* string socket_path = 35;
* @return This builder for chaining.
*/
public Builder clearSocketPath() {
socketPath_ = getDefaultInstance().getSocketPath();
onChanged();
return this;
}
/**
*
* See :option:`--socket-path` for details.
*
*
* string socket_path = 35;
* @param value The bytes for socketPath to set.
* @return This builder for chaining.
*/
public Builder setSocketPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
socketPath_ = value;
onChanged();
return this;
}
private int socketMode_ ;
/**
*
* See :option:`--socket-mode` for details.
*
*
* uint32 socket_mode = 36;
* @return The socketMode.
*/
@java.lang.Override
public int getSocketMode() {
return socketMode_;
}
/**
*
* See :option:`--socket-mode` for details.
*
*
* uint32 socket_mode = 36;
* @param value The socketMode to set.
* @return This builder for chaining.
*/
public Builder setSocketMode(int value) {
socketMode_ = value;
onChanged();
return this;
}
/**
*
* See :option:`--socket-mode` for details.
*
*
* uint32 socket_mode = 36;
* @return This builder for chaining.
*/
public Builder clearSocketMode() {
socketMode_ = 0;
onChanged();
return this;
}
private boolean enableCoreDump_ ;
/**
*
* See :option:`--enable-core-dump` for details.
*
*
* bool enable_core_dump = 37;
* @return The enableCoreDump.
*/
@java.lang.Override
public boolean getEnableCoreDump() {
return enableCoreDump_;
}
/**
*
* See :option:`--enable-core-dump` for details.
*
*
* bool enable_core_dump = 37;
* @param value The enableCoreDump to set.
* @return This builder for chaining.
*/
public Builder setEnableCoreDump(boolean value) {
enableCoreDump_ = value;
onChanged();
return this;
}
/**
*
* See :option:`--enable-core-dump` for details.
*
*
* bool enable_core_dump = 37;
* @return This builder for chaining.
*/
public Builder clearEnableCoreDump() {
enableCoreDump_ = false;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList statsTag_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureStatsTagIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
statsTag_ = new com.google.protobuf.LazyStringArrayList(statsTag_);
bitField0_ |= 0x00000002;
}
}
/**
*
* See :option:`--stats-tag` for details.
*
*
* repeated string stats_tag = 38;
* @return A list containing the statsTag.
*/
public com.google.protobuf.ProtocolStringList
getStatsTagList() {
return statsTag_.getUnmodifiableView();
}
/**
*
* See :option:`--stats-tag` for details.
*
*
* repeated string stats_tag = 38;
* @return The count of statsTag.
*/
public int getStatsTagCount() {
return statsTag_.size();
}
/**
*
* See :option:`--stats-tag` for details.
*
*
* repeated string stats_tag = 38;
* @param index The index of the element to return.
* @return The statsTag at the given index.
*/
public java.lang.String getStatsTag(int index) {
return statsTag_.get(index);
}
/**
*
* See :option:`--stats-tag` for details.
*
*
* repeated string stats_tag = 38;
* @param index The index of the value to return.
* @return The bytes of the statsTag at the given index.
*/
public com.google.protobuf.ByteString
getStatsTagBytes(int index) {
return statsTag_.getByteString(index);
}
/**
*
* See :option:`--stats-tag` for details.
*
*
* repeated string stats_tag = 38;
* @param index The index to set the value at.
* @param value The statsTag to set.
* @return This builder for chaining.
*/
public Builder setStatsTag(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureStatsTagIsMutable();
statsTag_.set(index, value);
onChanged();
return this;
}
/**
*
* See :option:`--stats-tag` for details.
*
*
* repeated string stats_tag = 38;
* @param value The statsTag to add.
* @return This builder for chaining.
*/
public Builder addStatsTag(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureStatsTagIsMutable();
statsTag_.add(value);
onChanged();
return this;
}
/**
*
* See :option:`--stats-tag` for details.
*
*
* repeated string stats_tag = 38;
* @param values The statsTag to add.
* @return This builder for chaining.
*/
public Builder addAllStatsTag(
java.lang.Iterable values) {
ensureStatsTagIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, statsTag_);
onChanged();
return this;
}
/**
*
* See :option:`--stats-tag` for details.
*
*
* repeated string stats_tag = 38;
* @return This builder for chaining.
*/
public Builder clearStatsTag() {
statsTag_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* See :option:`--stats-tag` for details.
*
*
* repeated string stats_tag = 38;
* @param value The bytes of the statsTag to add.
* @return This builder for chaining.
*/
public Builder addStatsTagBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureStatsTagIsMutable();
statsTag_.add(value);
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.admin.v3.CommandLineOptions)
}
// @@protoc_insertion_point(class_scope:envoy.admin.v3.CommandLineOptions)
private static final io.envoyproxy.envoy.admin.v3.CommandLineOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.admin.v3.CommandLineOptions();
}
public static io.envoyproxy.envoy.admin.v3.CommandLineOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CommandLineOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CommandLineOptions(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.admin.v3.CommandLineOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}