
io.envoyproxy.envoy.admin.v2alpha.ServerInfo Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/admin/v2alpha/server_info.proto
// Protobuf Java Version: 3.25.1
package io.envoyproxy.envoy.admin.v2alpha;
/**
*
* Proto representation of the value returned by /server_info, containing
* server version/server status information.
* [#next-free-field: 7]
*
*
* Protobuf type {@code envoy.admin.v2alpha.ServerInfo}
*/
public final class ServerInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.admin.v2alpha.ServerInfo)
ServerInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ServerInfo.newBuilder() to construct.
private ServerInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ServerInfo() {
version_ = "";
state_ = 0;
hotRestartVersion_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ServerInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.admin.v2alpha.ServerInfoProto.internal_static_envoy_admin_v2alpha_ServerInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v2alpha.ServerInfoProto.internal_static_envoy_admin_v2alpha_ServerInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v2alpha.ServerInfo.class, io.envoyproxy.envoy.admin.v2alpha.ServerInfo.Builder.class);
}
/**
* Protobuf enum {@code envoy.admin.v2alpha.ServerInfo.State}
*/
public enum State
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Server is live and serving traffic.
*
*
* LIVE = 0;
*/
LIVE(0),
/**
*
* Server is draining listeners in response to external health checks failing.
*
*
* DRAINING = 1;
*/
DRAINING(1),
/**
*
* Server has not yet completed cluster manager initialization.
*
*
* PRE_INITIALIZING = 2;
*/
PRE_INITIALIZING(2),
/**
*
* Server is running the cluster manager initialization callbacks (e.g., RDS).
*
*
* INITIALIZING = 3;
*/
INITIALIZING(3),
UNRECOGNIZED(-1),
;
/**
*
* Server is live and serving traffic.
*
*
* LIVE = 0;
*/
public static final int LIVE_VALUE = 0;
/**
*
* Server is draining listeners in response to external health checks failing.
*
*
* DRAINING = 1;
*/
public static final int DRAINING_VALUE = 1;
/**
*
* Server has not yet completed cluster manager initialization.
*
*
* PRE_INITIALIZING = 2;
*/
public static final int PRE_INITIALIZING_VALUE = 2;
/**
*
* Server is running the cluster manager initialization callbacks (e.g., RDS).
*
*
* INITIALIZING = 3;
*/
public static final int INITIALIZING_VALUE = 3;
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 State 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 State forNumber(int value) {
switch (value) {
case 0: return LIVE;
case 1: return DRAINING;
case 2: return PRE_INITIALIZING;
case 3: return INITIALIZING;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
State> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public State findValueByNumber(int number) {
return State.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.v2alpha.ServerInfo.getDescriptor().getEnumTypes().get(0);
}
private static final State[] VALUES = values();
public static State 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 State(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:envoy.admin.v2alpha.ServerInfo.State)
}
private int bitField0_;
public static final int VERSION_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object version_ = "";
/**
*
* Server version.
*
*
* string version = 1;
* @return The version.
*/
@java.lang.Override
public java.lang.String getVersion() {
java.lang.Object ref = version_;
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();
version_ = s;
return s;
}
}
/**
*
* Server version.
*
*
* string version = 1;
* @return The bytes for version.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATE_FIELD_NUMBER = 2;
private int state_ = 0;
/**
*
* State of the server.
*
*
* .envoy.admin.v2alpha.ServerInfo.State state = 2;
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override public int getStateValue() {
return state_;
}
/**
*
* State of the server.
*
*
* .envoy.admin.v2alpha.ServerInfo.State state = 2;
* @return The state.
*/
@java.lang.Override public io.envoyproxy.envoy.admin.v2alpha.ServerInfo.State getState() {
io.envoyproxy.envoy.admin.v2alpha.ServerInfo.State result = io.envoyproxy.envoy.admin.v2alpha.ServerInfo.State.forNumber(state_);
return result == null ? io.envoyproxy.envoy.admin.v2alpha.ServerInfo.State.UNRECOGNIZED : result;
}
public static final int UPTIME_CURRENT_EPOCH_FIELD_NUMBER = 3;
private com.google.protobuf.Duration uptimeCurrentEpoch_;
/**
*
* Uptime since current epoch was started.
*
*
* .google.protobuf.Duration uptime_current_epoch = 3;
* @return Whether the uptimeCurrentEpoch field is set.
*/
@java.lang.Override
public boolean hasUptimeCurrentEpoch() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Uptime since current epoch was started.
*
*
* .google.protobuf.Duration uptime_current_epoch = 3;
* @return The uptimeCurrentEpoch.
*/
@java.lang.Override
public com.google.protobuf.Duration getUptimeCurrentEpoch() {
return uptimeCurrentEpoch_ == null ? com.google.protobuf.Duration.getDefaultInstance() : uptimeCurrentEpoch_;
}
/**
*
* Uptime since current epoch was started.
*
*
* .google.protobuf.Duration uptime_current_epoch = 3;
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getUptimeCurrentEpochOrBuilder() {
return uptimeCurrentEpoch_ == null ? com.google.protobuf.Duration.getDefaultInstance() : uptimeCurrentEpoch_;
}
public static final int UPTIME_ALL_EPOCHS_FIELD_NUMBER = 4;
private com.google.protobuf.Duration uptimeAllEpochs_;
/**
*
* Uptime since the start of the first epoch.
*
*
* .google.protobuf.Duration uptime_all_epochs = 4;
* @return Whether the uptimeAllEpochs field is set.
*/
@java.lang.Override
public boolean hasUptimeAllEpochs() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Uptime since the start of the first epoch.
*
*
* .google.protobuf.Duration uptime_all_epochs = 4;
* @return The uptimeAllEpochs.
*/
@java.lang.Override
public com.google.protobuf.Duration getUptimeAllEpochs() {
return uptimeAllEpochs_ == null ? com.google.protobuf.Duration.getDefaultInstance() : uptimeAllEpochs_;
}
/**
*
* Uptime since the start of the first epoch.
*
*
* .google.protobuf.Duration uptime_all_epochs = 4;
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getUptimeAllEpochsOrBuilder() {
return uptimeAllEpochs_ == null ? com.google.protobuf.Duration.getDefaultInstance() : uptimeAllEpochs_;
}
public static final int HOT_RESTART_VERSION_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object hotRestartVersion_ = "";
/**
*
* Hot restart version.
*
*
* string hot_restart_version = 5;
* @return The hotRestartVersion.
*/
@java.lang.Override
public java.lang.String getHotRestartVersion() {
java.lang.Object ref = hotRestartVersion_;
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();
hotRestartVersion_ = s;
return s;
}
}
/**
*
* Hot restart version.
*
*
* string hot_restart_version = 5;
* @return The bytes for hotRestartVersion.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHotRestartVersionBytes() {
java.lang.Object ref = hotRestartVersion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hotRestartVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COMMAND_LINE_OPTIONS_FIELD_NUMBER = 6;
private io.envoyproxy.envoy.admin.v2alpha.CommandLineOptions commandLineOptions_;
/**
*
* Command line options the server is currently running with.
*
*
* .envoy.admin.v2alpha.CommandLineOptions command_line_options = 6;
* @return Whether the commandLineOptions field is set.
*/
@java.lang.Override
public boolean hasCommandLineOptions() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Command line options the server is currently running with.
*
*
* .envoy.admin.v2alpha.CommandLineOptions command_line_options = 6;
* @return The commandLineOptions.
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.CommandLineOptions getCommandLineOptions() {
return commandLineOptions_ == null ? io.envoyproxy.envoy.admin.v2alpha.CommandLineOptions.getDefaultInstance() : commandLineOptions_;
}
/**
*
* Command line options the server is currently running with.
*
*
* .envoy.admin.v2alpha.CommandLineOptions command_line_options = 6;
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.CommandLineOptionsOrBuilder getCommandLineOptionsOrBuilder() {
return commandLineOptions_ == null ? io.envoyproxy.envoy.admin.v2alpha.CommandLineOptions.getDefaultInstance() : commandLineOptions_;
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_);
}
if (state_ != io.envoyproxy.envoy.admin.v2alpha.ServerInfo.State.LIVE.getNumber()) {
output.writeEnum(2, state_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getUptimeCurrentEpoch());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(4, getUptimeAllEpochs());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hotRestartVersion_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, hotRestartVersion_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(6, getCommandLineOptions());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_);
}
if (state_ != io.envoyproxy.envoy.admin.v2alpha.ServerInfo.State.LIVE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, state_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getUptimeCurrentEpoch());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getUptimeAllEpochs());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hotRestartVersion_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, hotRestartVersion_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getCommandLineOptions());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.admin.v2alpha.ServerInfo)) {
return super.equals(obj);
}
io.envoyproxy.envoy.admin.v2alpha.ServerInfo other = (io.envoyproxy.envoy.admin.v2alpha.ServerInfo) obj;
if (!getVersion()
.equals(other.getVersion())) return false;
if (state_ != other.state_) return false;
if (hasUptimeCurrentEpoch() != other.hasUptimeCurrentEpoch()) return false;
if (hasUptimeCurrentEpoch()) {
if (!getUptimeCurrentEpoch()
.equals(other.getUptimeCurrentEpoch())) return false;
}
if (hasUptimeAllEpochs() != other.hasUptimeAllEpochs()) return false;
if (hasUptimeAllEpochs()) {
if (!getUptimeAllEpochs()
.equals(other.getUptimeAllEpochs())) return false;
}
if (!getHotRestartVersion()
.equals(other.getHotRestartVersion())) return false;
if (hasCommandLineOptions() != other.hasCommandLineOptions()) return false;
if (hasCommandLineOptions()) {
if (!getCommandLineOptions()
.equals(other.getCommandLineOptions())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
if (hasUptimeCurrentEpoch()) {
hash = (37 * hash) + UPTIME_CURRENT_EPOCH_FIELD_NUMBER;
hash = (53 * hash) + getUptimeCurrentEpoch().hashCode();
}
if (hasUptimeAllEpochs()) {
hash = (37 * hash) + UPTIME_ALL_EPOCHS_FIELD_NUMBER;
hash = (53 * hash) + getUptimeAllEpochs().hashCode();
}
hash = (37 * hash) + HOT_RESTART_VERSION_FIELD_NUMBER;
hash = (53 * hash) + getHotRestartVersion().hashCode();
if (hasCommandLineOptions()) {
hash = (37 * hash) + COMMAND_LINE_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getCommandLineOptions().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.admin.v2alpha.ServerInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v2alpha.ServerInfo 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.v2alpha.ServerInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v2alpha.ServerInfo 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.v2alpha.ServerInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v2alpha.ServerInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.admin.v2alpha.ServerInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v2alpha.ServerInfo 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.v2alpha.ServerInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v2alpha.ServerInfo 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.v2alpha.ServerInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v2alpha.ServerInfo 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.v2alpha.ServerInfo 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;
}
/**
*
* Proto representation of the value returned by /server_info, containing
* server version/server status information.
* [#next-free-field: 7]
*
*
* Protobuf type {@code envoy.admin.v2alpha.ServerInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.admin.v2alpha.ServerInfo)
io.envoyproxy.envoy.admin.v2alpha.ServerInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.admin.v2alpha.ServerInfoProto.internal_static_envoy_admin_v2alpha_ServerInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v2alpha.ServerInfoProto.internal_static_envoy_admin_v2alpha_ServerInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v2alpha.ServerInfo.class, io.envoyproxy.envoy.admin.v2alpha.ServerInfo.Builder.class);
}
// Construct using io.envoyproxy.envoy.admin.v2alpha.ServerInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getUptimeCurrentEpochFieldBuilder();
getUptimeAllEpochsFieldBuilder();
getCommandLineOptionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
version_ = "";
state_ = 0;
uptimeCurrentEpoch_ = null;
if (uptimeCurrentEpochBuilder_ != null) {
uptimeCurrentEpochBuilder_.dispose();
uptimeCurrentEpochBuilder_ = null;
}
uptimeAllEpochs_ = null;
if (uptimeAllEpochsBuilder_ != null) {
uptimeAllEpochsBuilder_.dispose();
uptimeAllEpochsBuilder_ = null;
}
hotRestartVersion_ = "";
commandLineOptions_ = null;
if (commandLineOptionsBuilder_ != null) {
commandLineOptionsBuilder_.dispose();
commandLineOptionsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.admin.v2alpha.ServerInfoProto.internal_static_envoy_admin_v2alpha_ServerInfo_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.ServerInfo getDefaultInstanceForType() {
return io.envoyproxy.envoy.admin.v2alpha.ServerInfo.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.ServerInfo build() {
io.envoyproxy.envoy.admin.v2alpha.ServerInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.ServerInfo buildPartial() {
io.envoyproxy.envoy.admin.v2alpha.ServerInfo result = new io.envoyproxy.envoy.admin.v2alpha.ServerInfo(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.envoyproxy.envoy.admin.v2alpha.ServerInfo result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.version_ = version_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.state_ = state_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.uptimeCurrentEpoch_ = uptimeCurrentEpochBuilder_ == null
? uptimeCurrentEpoch_
: uptimeCurrentEpochBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.uptimeAllEpochs_ = uptimeAllEpochsBuilder_ == null
? uptimeAllEpochs_
: uptimeAllEpochsBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.hotRestartVersion_ = hotRestartVersion_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.commandLineOptions_ = commandLineOptionsBuilder_ == null
? commandLineOptions_
: commandLineOptionsBuilder_.build();
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.admin.v2alpha.ServerInfo) {
return mergeFrom((io.envoyproxy.envoy.admin.v2alpha.ServerInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.admin.v2alpha.ServerInfo other) {
if (other == io.envoyproxy.envoy.admin.v2alpha.ServerInfo.getDefaultInstance()) return this;
if (!other.getVersion().isEmpty()) {
version_ = other.version_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (other.hasUptimeCurrentEpoch()) {
mergeUptimeCurrentEpoch(other.getUptimeCurrentEpoch());
}
if (other.hasUptimeAllEpochs()) {
mergeUptimeAllEpochs(other.getUptimeAllEpochs());
}
if (!other.getHotRestartVersion().isEmpty()) {
hotRestartVersion_ = other.hotRestartVersion_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.hasCommandLineOptions()) {
mergeCommandLineOptions(other.getCommandLineOptions());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
version_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
state_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
input.readMessage(
getUptimeCurrentEpochFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getUptimeAllEpochsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
hotRestartVersion_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
input.readMessage(
getCommandLineOptionsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object version_ = "";
/**
*
* Server version.
*
*
* string version = 1;
* @return The version.
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
version_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Server version.
*
*
* string version = 1;
* @return The bytes for version.
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Server version.
*
*
* string version = 1;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
version_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Server version.
*
*
* string version = 1;
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = getDefaultInstance().getVersion();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Server version.
*
*
* string version = 1;
* @param value The bytes for version to set.
* @return This builder for chaining.
*/
public Builder setVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
version_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int state_ = 0;
/**
*
* State of the server.
*
*
* .envoy.admin.v2alpha.ServerInfo.State state = 2;
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override public int getStateValue() {
return state_;
}
/**
*
* State of the server.
*
*
* .envoy.admin.v2alpha.ServerInfo.State state = 2;
* @param value The enum numeric value on the wire for state to set.
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
state_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* State of the server.
*
*
* .envoy.admin.v2alpha.ServerInfo.State state = 2;
* @return The state.
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.ServerInfo.State getState() {
io.envoyproxy.envoy.admin.v2alpha.ServerInfo.State result = io.envoyproxy.envoy.admin.v2alpha.ServerInfo.State.forNumber(state_);
return result == null ? io.envoyproxy.envoy.admin.v2alpha.ServerInfo.State.UNRECOGNIZED : result;
}
/**
*
* State of the server.
*
*
* .envoy.admin.v2alpha.ServerInfo.State state = 2;
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(io.envoyproxy.envoy.admin.v2alpha.ServerInfo.State value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
state_ = value.getNumber();
onChanged();
return this;
}
/**
*
* State of the server.
*
*
* .envoy.admin.v2alpha.ServerInfo.State state = 2;
* @return This builder for chaining.
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000002);
state_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Duration uptimeCurrentEpoch_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> uptimeCurrentEpochBuilder_;
/**
*
* Uptime since current epoch was started.
*
*
* .google.protobuf.Duration uptime_current_epoch = 3;
* @return Whether the uptimeCurrentEpoch field is set.
*/
public boolean hasUptimeCurrentEpoch() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Uptime since current epoch was started.
*
*
* .google.protobuf.Duration uptime_current_epoch = 3;
* @return The uptimeCurrentEpoch.
*/
public com.google.protobuf.Duration getUptimeCurrentEpoch() {
if (uptimeCurrentEpochBuilder_ == null) {
return uptimeCurrentEpoch_ == null ? com.google.protobuf.Duration.getDefaultInstance() : uptimeCurrentEpoch_;
} else {
return uptimeCurrentEpochBuilder_.getMessage();
}
}
/**
*
* Uptime since current epoch was started.
*
*
* .google.protobuf.Duration uptime_current_epoch = 3;
*/
public Builder setUptimeCurrentEpoch(com.google.protobuf.Duration value) {
if (uptimeCurrentEpochBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
uptimeCurrentEpoch_ = value;
} else {
uptimeCurrentEpochBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Uptime since current epoch was started.
*
*
* .google.protobuf.Duration uptime_current_epoch = 3;
*/
public Builder setUptimeCurrentEpoch(
com.google.protobuf.Duration.Builder builderForValue) {
if (uptimeCurrentEpochBuilder_ == null) {
uptimeCurrentEpoch_ = builderForValue.build();
} else {
uptimeCurrentEpochBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Uptime since current epoch was started.
*
*
* .google.protobuf.Duration uptime_current_epoch = 3;
*/
public Builder mergeUptimeCurrentEpoch(com.google.protobuf.Duration value) {
if (uptimeCurrentEpochBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
uptimeCurrentEpoch_ != null &&
uptimeCurrentEpoch_ != com.google.protobuf.Duration.getDefaultInstance()) {
getUptimeCurrentEpochBuilder().mergeFrom(value);
} else {
uptimeCurrentEpoch_ = value;
}
} else {
uptimeCurrentEpochBuilder_.mergeFrom(value);
}
if (uptimeCurrentEpoch_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
* Uptime since current epoch was started.
*
*
* .google.protobuf.Duration uptime_current_epoch = 3;
*/
public Builder clearUptimeCurrentEpoch() {
bitField0_ = (bitField0_ & ~0x00000004);
uptimeCurrentEpoch_ = null;
if (uptimeCurrentEpochBuilder_ != null) {
uptimeCurrentEpochBuilder_.dispose();
uptimeCurrentEpochBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Uptime since current epoch was started.
*
*
* .google.protobuf.Duration uptime_current_epoch = 3;
*/
public com.google.protobuf.Duration.Builder getUptimeCurrentEpochBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getUptimeCurrentEpochFieldBuilder().getBuilder();
}
/**
*
* Uptime since current epoch was started.
*
*
* .google.protobuf.Duration uptime_current_epoch = 3;
*/
public com.google.protobuf.DurationOrBuilder getUptimeCurrentEpochOrBuilder() {
if (uptimeCurrentEpochBuilder_ != null) {
return uptimeCurrentEpochBuilder_.getMessageOrBuilder();
} else {
return uptimeCurrentEpoch_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : uptimeCurrentEpoch_;
}
}
/**
*
* Uptime since current epoch was started.
*
*
* .google.protobuf.Duration uptime_current_epoch = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getUptimeCurrentEpochFieldBuilder() {
if (uptimeCurrentEpochBuilder_ == null) {
uptimeCurrentEpochBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getUptimeCurrentEpoch(),
getParentForChildren(),
isClean());
uptimeCurrentEpoch_ = null;
}
return uptimeCurrentEpochBuilder_;
}
private com.google.protobuf.Duration uptimeAllEpochs_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> uptimeAllEpochsBuilder_;
/**
*
* Uptime since the start of the first epoch.
*
*
* .google.protobuf.Duration uptime_all_epochs = 4;
* @return Whether the uptimeAllEpochs field is set.
*/
public boolean hasUptimeAllEpochs() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Uptime since the start of the first epoch.
*
*
* .google.protobuf.Duration uptime_all_epochs = 4;
* @return The uptimeAllEpochs.
*/
public com.google.protobuf.Duration getUptimeAllEpochs() {
if (uptimeAllEpochsBuilder_ == null) {
return uptimeAllEpochs_ == null ? com.google.protobuf.Duration.getDefaultInstance() : uptimeAllEpochs_;
} else {
return uptimeAllEpochsBuilder_.getMessage();
}
}
/**
*
* Uptime since the start of the first epoch.
*
*
* .google.protobuf.Duration uptime_all_epochs = 4;
*/
public Builder setUptimeAllEpochs(com.google.protobuf.Duration value) {
if (uptimeAllEpochsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
uptimeAllEpochs_ = value;
} else {
uptimeAllEpochsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Uptime since the start of the first epoch.
*
*
* .google.protobuf.Duration uptime_all_epochs = 4;
*/
public Builder setUptimeAllEpochs(
com.google.protobuf.Duration.Builder builderForValue) {
if (uptimeAllEpochsBuilder_ == null) {
uptimeAllEpochs_ = builderForValue.build();
} else {
uptimeAllEpochsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Uptime since the start of the first epoch.
*
*
* .google.protobuf.Duration uptime_all_epochs = 4;
*/
public Builder mergeUptimeAllEpochs(com.google.protobuf.Duration value) {
if (uptimeAllEpochsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
uptimeAllEpochs_ != null &&
uptimeAllEpochs_ != com.google.protobuf.Duration.getDefaultInstance()) {
getUptimeAllEpochsBuilder().mergeFrom(value);
} else {
uptimeAllEpochs_ = value;
}
} else {
uptimeAllEpochsBuilder_.mergeFrom(value);
}
if (uptimeAllEpochs_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
* Uptime since the start of the first epoch.
*
*
* .google.protobuf.Duration uptime_all_epochs = 4;
*/
public Builder clearUptimeAllEpochs() {
bitField0_ = (bitField0_ & ~0x00000008);
uptimeAllEpochs_ = null;
if (uptimeAllEpochsBuilder_ != null) {
uptimeAllEpochsBuilder_.dispose();
uptimeAllEpochsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Uptime since the start of the first epoch.
*
*
* .google.protobuf.Duration uptime_all_epochs = 4;
*/
public com.google.protobuf.Duration.Builder getUptimeAllEpochsBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getUptimeAllEpochsFieldBuilder().getBuilder();
}
/**
*
* Uptime since the start of the first epoch.
*
*
* .google.protobuf.Duration uptime_all_epochs = 4;
*/
public com.google.protobuf.DurationOrBuilder getUptimeAllEpochsOrBuilder() {
if (uptimeAllEpochsBuilder_ != null) {
return uptimeAllEpochsBuilder_.getMessageOrBuilder();
} else {
return uptimeAllEpochs_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : uptimeAllEpochs_;
}
}
/**
*
* Uptime since the start of the first epoch.
*
*
* .google.protobuf.Duration uptime_all_epochs = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getUptimeAllEpochsFieldBuilder() {
if (uptimeAllEpochsBuilder_ == null) {
uptimeAllEpochsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getUptimeAllEpochs(),
getParentForChildren(),
isClean());
uptimeAllEpochs_ = null;
}
return uptimeAllEpochsBuilder_;
}
private java.lang.Object hotRestartVersion_ = "";
/**
*
* Hot restart version.
*
*
* string hot_restart_version = 5;
* @return The hotRestartVersion.
*/
public java.lang.String getHotRestartVersion() {
java.lang.Object ref = hotRestartVersion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hotRestartVersion_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Hot restart version.
*
*
* string hot_restart_version = 5;
* @return The bytes for hotRestartVersion.
*/
public com.google.protobuf.ByteString
getHotRestartVersionBytes() {
java.lang.Object ref = hotRestartVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hotRestartVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Hot restart version.
*
*
* string hot_restart_version = 5;
* @param value The hotRestartVersion to set.
* @return This builder for chaining.
*/
public Builder setHotRestartVersion(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
hotRestartVersion_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Hot restart version.
*
*
* string hot_restart_version = 5;
* @return This builder for chaining.
*/
public Builder clearHotRestartVersion() {
hotRestartVersion_ = getDefaultInstance().getHotRestartVersion();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* Hot restart version.
*
*
* string hot_restart_version = 5;
* @param value The bytes for hotRestartVersion to set.
* @return This builder for chaining.
*/
public Builder setHotRestartVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
hotRestartVersion_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private io.envoyproxy.envoy.admin.v2alpha.CommandLineOptions commandLineOptions_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v2alpha.CommandLineOptions, io.envoyproxy.envoy.admin.v2alpha.CommandLineOptions.Builder, io.envoyproxy.envoy.admin.v2alpha.CommandLineOptionsOrBuilder> commandLineOptionsBuilder_;
/**
*
* Command line options the server is currently running with.
*
*
* .envoy.admin.v2alpha.CommandLineOptions command_line_options = 6;
* @return Whether the commandLineOptions field is set.
*/
public boolean hasCommandLineOptions() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Command line options the server is currently running with.
*
*
* .envoy.admin.v2alpha.CommandLineOptions command_line_options = 6;
* @return The commandLineOptions.
*/
public io.envoyproxy.envoy.admin.v2alpha.CommandLineOptions getCommandLineOptions() {
if (commandLineOptionsBuilder_ == null) {
return commandLineOptions_ == null ? io.envoyproxy.envoy.admin.v2alpha.CommandLineOptions.getDefaultInstance() : commandLineOptions_;
} else {
return commandLineOptionsBuilder_.getMessage();
}
}
/**
*
* Command line options the server is currently running with.
*
*
* .envoy.admin.v2alpha.CommandLineOptions command_line_options = 6;
*/
public Builder setCommandLineOptions(io.envoyproxy.envoy.admin.v2alpha.CommandLineOptions value) {
if (commandLineOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
commandLineOptions_ = value;
} else {
commandLineOptionsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Command line options the server is currently running with.
*
*
* .envoy.admin.v2alpha.CommandLineOptions command_line_options = 6;
*/
public Builder setCommandLineOptions(
io.envoyproxy.envoy.admin.v2alpha.CommandLineOptions.Builder builderForValue) {
if (commandLineOptionsBuilder_ == null) {
commandLineOptions_ = builderForValue.build();
} else {
commandLineOptionsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Command line options the server is currently running with.
*
*
* .envoy.admin.v2alpha.CommandLineOptions command_line_options = 6;
*/
public Builder mergeCommandLineOptions(io.envoyproxy.envoy.admin.v2alpha.CommandLineOptions value) {
if (commandLineOptionsBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
commandLineOptions_ != null &&
commandLineOptions_ != io.envoyproxy.envoy.admin.v2alpha.CommandLineOptions.getDefaultInstance()) {
getCommandLineOptionsBuilder().mergeFrom(value);
} else {
commandLineOptions_ = value;
}
} else {
commandLineOptionsBuilder_.mergeFrom(value);
}
if (commandLineOptions_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
* Command line options the server is currently running with.
*
*
* .envoy.admin.v2alpha.CommandLineOptions command_line_options = 6;
*/
public Builder clearCommandLineOptions() {
bitField0_ = (bitField0_ & ~0x00000020);
commandLineOptions_ = null;
if (commandLineOptionsBuilder_ != null) {
commandLineOptionsBuilder_.dispose();
commandLineOptionsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Command line options the server is currently running with.
*
*
* .envoy.admin.v2alpha.CommandLineOptions command_line_options = 6;
*/
public io.envoyproxy.envoy.admin.v2alpha.CommandLineOptions.Builder getCommandLineOptionsBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getCommandLineOptionsFieldBuilder().getBuilder();
}
/**
*
* Command line options the server is currently running with.
*
*
* .envoy.admin.v2alpha.CommandLineOptions command_line_options = 6;
*/
public io.envoyproxy.envoy.admin.v2alpha.CommandLineOptionsOrBuilder getCommandLineOptionsOrBuilder() {
if (commandLineOptionsBuilder_ != null) {
return commandLineOptionsBuilder_.getMessageOrBuilder();
} else {
return commandLineOptions_ == null ?
io.envoyproxy.envoy.admin.v2alpha.CommandLineOptions.getDefaultInstance() : commandLineOptions_;
}
}
/**
*
* Command line options the server is currently running with.
*
*
* .envoy.admin.v2alpha.CommandLineOptions command_line_options = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v2alpha.CommandLineOptions, io.envoyproxy.envoy.admin.v2alpha.CommandLineOptions.Builder, io.envoyproxy.envoy.admin.v2alpha.CommandLineOptionsOrBuilder>
getCommandLineOptionsFieldBuilder() {
if (commandLineOptionsBuilder_ == null) {
commandLineOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v2alpha.CommandLineOptions, io.envoyproxy.envoy.admin.v2alpha.CommandLineOptions.Builder, io.envoyproxy.envoy.admin.v2alpha.CommandLineOptionsOrBuilder>(
getCommandLineOptions(),
getParentForChildren(),
isClean());
commandLineOptions_ = null;
}
return commandLineOptionsBuilder_;
}
@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.v2alpha.ServerInfo)
}
// @@protoc_insertion_point(class_scope:envoy.admin.v2alpha.ServerInfo)
private static final io.envoyproxy.envoy.admin.v2alpha.ServerInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.admin.v2alpha.ServerInfo();
}
public static io.envoyproxy.envoy.admin.v2alpha.ServerInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ServerInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.ServerInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy