Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.envoyproxy.envoy.admin.v3.ServerInfo 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;
/**
*
* Proto representation of the value returned by /server_info, containing
* server version/server status information.
* [#next-free-field: 8]
*
*
* Protobuf type {@code envoy.admin.v3.ServerInfo}
*/
public final class ServerInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.admin.v3.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ServerInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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 10: {
java.lang.String s = input.readStringRequireUtf8();
version_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
state_ = rawValue;
break;
}
case 26: {
com.google.protobuf.Duration.Builder subBuilder = null;
if (uptimeCurrentEpoch_ != null) {
subBuilder = uptimeCurrentEpoch_.toBuilder();
}
uptimeCurrentEpoch_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(uptimeCurrentEpoch_);
uptimeCurrentEpoch_ = subBuilder.buildPartial();
}
break;
}
case 34: {
com.google.protobuf.Duration.Builder subBuilder = null;
if (uptimeAllEpochs_ != null) {
subBuilder = uptimeAllEpochs_.toBuilder();
}
uptimeAllEpochs_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(uptimeAllEpochs_);
uptimeAllEpochs_ = subBuilder.buildPartial();
}
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
hotRestartVersion_ = s;
break;
}
case 50: {
io.envoyproxy.envoy.admin.v3.CommandLineOptions.Builder subBuilder = null;
if (commandLineOptions_ != null) {
subBuilder = commandLineOptions_.toBuilder();
}
commandLineOptions_ = input.readMessage(io.envoyproxy.envoy.admin.v3.CommandLineOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(commandLineOptions_);
commandLineOptions_ = subBuilder.buildPartial();
}
break;
}
case 58: {
io.envoyproxy.envoy.config.core.v3.Node.Builder subBuilder = null;
if (node_ != null) {
subBuilder = node_.toBuilder();
}
node_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.Node.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(node_);
node_ = subBuilder.buildPartial();
}
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 {
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_ServerInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v3.ServerInfoProto.internal_static_envoy_admin_v3_ServerInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v3.ServerInfo.class, io.envoyproxy.envoy.admin.v3.ServerInfo.Builder.class);
}
/**
* Protobuf enum {@code envoy.admin.v3.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.v3.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.v3.ServerInfo.State)
}
public static final int VERSION_FIELD_NUMBER = 1;
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_;
/**
*
* State of the server.
*
*
* .envoy.admin.v3.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.v3.ServerInfo.State state = 2;
* @return The state.
*/
@java.lang.Override public io.envoyproxy.envoy.admin.v3.ServerInfo.State getState() {
@SuppressWarnings("deprecation")
io.envoyproxy.envoy.admin.v3.ServerInfo.State result = io.envoyproxy.envoy.admin.v3.ServerInfo.State.valueOf(state_);
return result == null ? io.envoyproxy.envoy.admin.v3.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 uptimeCurrentEpoch_ != null;
}
/**
*
* 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 getUptimeCurrentEpoch();
}
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 uptimeAllEpochs_ != null;
}
/**
*
* 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 getUptimeAllEpochs();
}
public static final int HOT_RESTART_VERSION_FIELD_NUMBER = 5;
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.v3.CommandLineOptions commandLineOptions_;
/**
*
* Command line options the server is currently running with.
*
*
* .envoy.admin.v3.CommandLineOptions command_line_options = 6;
* @return Whether the commandLineOptions field is set.
*/
@java.lang.Override
public boolean hasCommandLineOptions() {
return commandLineOptions_ != null;
}
/**
*
* Command line options the server is currently running with.
*
*
* .envoy.admin.v3.CommandLineOptions command_line_options = 6;
* @return The commandLineOptions.
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.CommandLineOptions getCommandLineOptions() {
return commandLineOptions_ == null ? io.envoyproxy.envoy.admin.v3.CommandLineOptions.getDefaultInstance() : commandLineOptions_;
}
/**
*
* Command line options the server is currently running with.
*
*
* .envoy.admin.v3.CommandLineOptions command_line_options = 6;
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.CommandLineOptionsOrBuilder getCommandLineOptionsOrBuilder() {
return getCommandLineOptions();
}
public static final int NODE_FIELD_NUMBER = 7;
private io.envoyproxy.envoy.config.core.v3.Node node_;
/**
*
* Populated node identity of this server.
*
*
* .envoy.config.core.v3.Node node = 7;
* @return Whether the node field is set.
*/
@java.lang.Override
public boolean hasNode() {
return node_ != null;
}
/**
*
* Populated node identity of this server.
*
*
* .envoy.config.core.v3.Node node = 7;
* @return The node.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.Node getNode() {
return node_ == null ? io.envoyproxy.envoy.config.core.v3.Node.getDefaultInstance() : node_;
}
/**
*
* Populated node identity of this server.
*
*
* .envoy.config.core.v3.Node node = 7;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.NodeOrBuilder getNodeOrBuilder() {
return getNode();
}
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.v3.ServerInfo.State.LIVE.getNumber()) {
output.writeEnum(2, state_);
}
if (uptimeCurrentEpoch_ != null) {
output.writeMessage(3, getUptimeCurrentEpoch());
}
if (uptimeAllEpochs_ != null) {
output.writeMessage(4, getUptimeAllEpochs());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hotRestartVersion_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, hotRestartVersion_);
}
if (commandLineOptions_ != null) {
output.writeMessage(6, getCommandLineOptions());
}
if (node_ != null) {
output.writeMessage(7, getNode());
}
unknownFields.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.v3.ServerInfo.State.LIVE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, state_);
}
if (uptimeCurrentEpoch_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getUptimeCurrentEpoch());
}
if (uptimeAllEpochs_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getUptimeAllEpochs());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hotRestartVersion_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, hotRestartVersion_);
}
if (commandLineOptions_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getCommandLineOptions());
}
if (node_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getNode());
}
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.ServerInfo)) {
return super.equals(obj);
}
io.envoyproxy.envoy.admin.v3.ServerInfo other = (io.envoyproxy.envoy.admin.v3.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 (hasNode() != other.hasNode()) return false;
if (hasNode()) {
if (!getNode()
.equals(other.getNode())) 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) + 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();
}
if (hasNode()) {
hash = (37 * hash) + NODE_FIELD_NUMBER;
hash = (53 * hash) + getNode().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.admin.v3.ServerInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v3.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.v3.ServerInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v3.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.v3.ServerInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v3.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.v3.ServerInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v3.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.v3.ServerInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v3.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.v3.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.v3.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.v3.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: 8]
*
*
* Protobuf type {@code envoy.admin.v3.ServerInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.admin.v3.ServerInfo)
io.envoyproxy.envoy.admin.v3.ServerInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.admin.v3.ServerInfoProto.internal_static_envoy_admin_v3_ServerInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v3.ServerInfoProto.internal_static_envoy_admin_v3_ServerInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v3.ServerInfo.class, io.envoyproxy.envoy.admin.v3.ServerInfo.Builder.class);
}
// Construct using io.envoyproxy.envoy.admin.v3.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
version_ = "";
state_ = 0;
if (uptimeCurrentEpochBuilder_ == null) {
uptimeCurrentEpoch_ = null;
} else {
uptimeCurrentEpoch_ = null;
uptimeCurrentEpochBuilder_ = null;
}
if (uptimeAllEpochsBuilder_ == null) {
uptimeAllEpochs_ = null;
} else {
uptimeAllEpochs_ = null;
uptimeAllEpochsBuilder_ = null;
}
hotRestartVersion_ = "";
if (commandLineOptionsBuilder_ == null) {
commandLineOptions_ = null;
} else {
commandLineOptions_ = null;
commandLineOptionsBuilder_ = null;
}
if (nodeBuilder_ == null) {
node_ = null;
} else {
node_ = null;
nodeBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.admin.v3.ServerInfoProto.internal_static_envoy_admin_v3_ServerInfo_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.ServerInfo getDefaultInstanceForType() {
return io.envoyproxy.envoy.admin.v3.ServerInfo.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.ServerInfo build() {
io.envoyproxy.envoy.admin.v3.ServerInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.ServerInfo buildPartial() {
io.envoyproxy.envoy.admin.v3.ServerInfo result = new io.envoyproxy.envoy.admin.v3.ServerInfo(this);
result.version_ = version_;
result.state_ = state_;
if (uptimeCurrentEpochBuilder_ == null) {
result.uptimeCurrentEpoch_ = uptimeCurrentEpoch_;
} else {
result.uptimeCurrentEpoch_ = uptimeCurrentEpochBuilder_.build();
}
if (uptimeAllEpochsBuilder_ == null) {
result.uptimeAllEpochs_ = uptimeAllEpochs_;
} else {
result.uptimeAllEpochs_ = uptimeAllEpochsBuilder_.build();
}
result.hotRestartVersion_ = hotRestartVersion_;
if (commandLineOptionsBuilder_ == null) {
result.commandLineOptions_ = commandLineOptions_;
} else {
result.commandLineOptions_ = commandLineOptionsBuilder_.build();
}
if (nodeBuilder_ == null) {
result.node_ = node_;
} else {
result.node_ = nodeBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.admin.v3.ServerInfo) {
return mergeFrom((io.envoyproxy.envoy.admin.v3.ServerInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.admin.v3.ServerInfo other) {
if (other == io.envoyproxy.envoy.admin.v3.ServerInfo.getDefaultInstance()) return this;
if (!other.getVersion().isEmpty()) {
version_ = other.version_;
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_;
onChanged();
}
if (other.hasCommandLineOptions()) {
mergeCommandLineOptions(other.getCommandLineOptions());
}
if (other.hasNode()) {
mergeNode(other.getNode());
}
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.ServerInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.admin.v3.ServerInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
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;
onChanged();
return this;
}
/**
*
* Server version.
*
*
* string version = 1;
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = getDefaultInstance().getVersion();
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;
onChanged();
return this;
}
private int state_ = 0;
/**
*
* State of the server.
*
*
* .envoy.admin.v3.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.v3.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;
onChanged();
return this;
}
/**
*
* State of the server.
*
*
* .envoy.admin.v3.ServerInfo.State state = 2;
* @return The state.
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.ServerInfo.State getState() {
@SuppressWarnings("deprecation")
io.envoyproxy.envoy.admin.v3.ServerInfo.State result = io.envoyproxy.envoy.admin.v3.ServerInfo.State.valueOf(state_);
return result == null ? io.envoyproxy.envoy.admin.v3.ServerInfo.State.UNRECOGNIZED : result;
}
/**
*
* State of the server.
*
*
* .envoy.admin.v3.ServerInfo.State state = 2;
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(io.envoyproxy.envoy.admin.v3.ServerInfo.State value) {
if (value == null) {
throw new NullPointerException();
}
state_ = value.getNumber();
onChanged();
return this;
}
/**
*
* State of the server.
*
*
* .envoy.admin.v3.ServerInfo.State state = 2;
* @return This builder for chaining.
*/
public Builder clearState() {
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 uptimeCurrentEpochBuilder_ != null || uptimeCurrentEpoch_ != null;
}
/**
*
* 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;
onChanged();
} else {
uptimeCurrentEpochBuilder_.setMessage(value);
}
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();
onChanged();
} else {
uptimeCurrentEpochBuilder_.setMessage(builderForValue.build());
}
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 (uptimeCurrentEpoch_ != null) {
uptimeCurrentEpoch_ =
com.google.protobuf.Duration.newBuilder(uptimeCurrentEpoch_).mergeFrom(value).buildPartial();
} else {
uptimeCurrentEpoch_ = value;
}
onChanged();
} else {
uptimeCurrentEpochBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Uptime since current epoch was started.
*
*
* .google.protobuf.Duration uptime_current_epoch = 3;
*/
public Builder clearUptimeCurrentEpoch() {
if (uptimeCurrentEpochBuilder_ == null) {
uptimeCurrentEpoch_ = null;
onChanged();
} else {
uptimeCurrentEpoch_ = null;
uptimeCurrentEpochBuilder_ = null;
}
return this;
}
/**
*
* Uptime since current epoch was started.
*
*
* .google.protobuf.Duration uptime_current_epoch = 3;
*/
public com.google.protobuf.Duration.Builder getUptimeCurrentEpochBuilder() {
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 uptimeAllEpochsBuilder_ != null || uptimeAllEpochs_ != null;
}
/**
*
* 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;
onChanged();
} else {
uptimeAllEpochsBuilder_.setMessage(value);
}
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();
onChanged();
} else {
uptimeAllEpochsBuilder_.setMessage(builderForValue.build());
}
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 (uptimeAllEpochs_ != null) {
uptimeAllEpochs_ =
com.google.protobuf.Duration.newBuilder(uptimeAllEpochs_).mergeFrom(value).buildPartial();
} else {
uptimeAllEpochs_ = value;
}
onChanged();
} else {
uptimeAllEpochsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Uptime since the start of the first epoch.
*
*
* .google.protobuf.Duration uptime_all_epochs = 4;
*/
public Builder clearUptimeAllEpochs() {
if (uptimeAllEpochsBuilder_ == null) {
uptimeAllEpochs_ = null;
onChanged();
} else {
uptimeAllEpochs_ = null;
uptimeAllEpochsBuilder_ = null;
}
return this;
}
/**
*
* Uptime since the start of the first epoch.
*
*
* .google.protobuf.Duration uptime_all_epochs = 4;
*/
public com.google.protobuf.Duration.Builder getUptimeAllEpochsBuilder() {
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;
onChanged();
return this;
}
/**
*
* Hot restart version.
*
*
* string hot_restart_version = 5;
* @return This builder for chaining.
*/
public Builder clearHotRestartVersion() {
hotRestartVersion_ = getDefaultInstance().getHotRestartVersion();
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;
onChanged();
return this;
}
private io.envoyproxy.envoy.admin.v3.CommandLineOptions commandLineOptions_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.CommandLineOptions, io.envoyproxy.envoy.admin.v3.CommandLineOptions.Builder, io.envoyproxy.envoy.admin.v3.CommandLineOptionsOrBuilder> commandLineOptionsBuilder_;
/**
*
* Command line options the server is currently running with.
*
*
* .envoy.admin.v3.CommandLineOptions command_line_options = 6;
* @return Whether the commandLineOptions field is set.
*/
public boolean hasCommandLineOptions() {
return commandLineOptionsBuilder_ != null || commandLineOptions_ != null;
}
/**
*
* Command line options the server is currently running with.
*
*
* .envoy.admin.v3.CommandLineOptions command_line_options = 6;
* @return The commandLineOptions.
*/
public io.envoyproxy.envoy.admin.v3.CommandLineOptions getCommandLineOptions() {
if (commandLineOptionsBuilder_ == null) {
return commandLineOptions_ == null ? io.envoyproxy.envoy.admin.v3.CommandLineOptions.getDefaultInstance() : commandLineOptions_;
} else {
return commandLineOptionsBuilder_.getMessage();
}
}
/**
*
* Command line options the server is currently running with.
*
*
* .envoy.admin.v3.CommandLineOptions command_line_options = 6;
*/
public Builder setCommandLineOptions(io.envoyproxy.envoy.admin.v3.CommandLineOptions value) {
if (commandLineOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
commandLineOptions_ = value;
onChanged();
} else {
commandLineOptionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Command line options the server is currently running with.
*
*
* .envoy.admin.v3.CommandLineOptions command_line_options = 6;
*/
public Builder setCommandLineOptions(
io.envoyproxy.envoy.admin.v3.CommandLineOptions.Builder builderForValue) {
if (commandLineOptionsBuilder_ == null) {
commandLineOptions_ = builderForValue.build();
onChanged();
} else {
commandLineOptionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Command line options the server is currently running with.
*
*
* .envoy.admin.v3.CommandLineOptions command_line_options = 6;
*/
public Builder mergeCommandLineOptions(io.envoyproxy.envoy.admin.v3.CommandLineOptions value) {
if (commandLineOptionsBuilder_ == null) {
if (commandLineOptions_ != null) {
commandLineOptions_ =
io.envoyproxy.envoy.admin.v3.CommandLineOptions.newBuilder(commandLineOptions_).mergeFrom(value).buildPartial();
} else {
commandLineOptions_ = value;
}
onChanged();
} else {
commandLineOptionsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Command line options the server is currently running with.
*
*
* .envoy.admin.v3.CommandLineOptions command_line_options = 6;
*/
public Builder clearCommandLineOptions() {
if (commandLineOptionsBuilder_ == null) {
commandLineOptions_ = null;
onChanged();
} else {
commandLineOptions_ = null;
commandLineOptionsBuilder_ = null;
}
return this;
}
/**
*
* Command line options the server is currently running with.
*
*
* .envoy.admin.v3.CommandLineOptions command_line_options = 6;
*/
public io.envoyproxy.envoy.admin.v3.CommandLineOptions.Builder getCommandLineOptionsBuilder() {
onChanged();
return getCommandLineOptionsFieldBuilder().getBuilder();
}
/**
*
* Command line options the server is currently running with.
*
*
* .envoy.admin.v3.CommandLineOptions command_line_options = 6;
*/
public io.envoyproxy.envoy.admin.v3.CommandLineOptionsOrBuilder getCommandLineOptionsOrBuilder() {
if (commandLineOptionsBuilder_ != null) {
return commandLineOptionsBuilder_.getMessageOrBuilder();
} else {
return commandLineOptions_ == null ?
io.envoyproxy.envoy.admin.v3.CommandLineOptions.getDefaultInstance() : commandLineOptions_;
}
}
/**
*
* Command line options the server is currently running with.
*
*
* .envoy.admin.v3.CommandLineOptions command_line_options = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.CommandLineOptions, io.envoyproxy.envoy.admin.v3.CommandLineOptions.Builder, io.envoyproxy.envoy.admin.v3.CommandLineOptionsOrBuilder>
getCommandLineOptionsFieldBuilder() {
if (commandLineOptionsBuilder_ == null) {
commandLineOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.CommandLineOptions, io.envoyproxy.envoy.admin.v3.CommandLineOptions.Builder, io.envoyproxy.envoy.admin.v3.CommandLineOptionsOrBuilder>(
getCommandLineOptions(),
getParentForChildren(),
isClean());
commandLineOptions_ = null;
}
return commandLineOptionsBuilder_;
}
private io.envoyproxy.envoy.config.core.v3.Node node_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.Node, io.envoyproxy.envoy.config.core.v3.Node.Builder, io.envoyproxy.envoy.config.core.v3.NodeOrBuilder> nodeBuilder_;
/**
*
* Populated node identity of this server.
*
*
* .envoy.config.core.v3.Node node = 7;
* @return Whether the node field is set.
*/
public boolean hasNode() {
return nodeBuilder_ != null || node_ != null;
}
/**
*
* Populated node identity of this server.
*
*
* .envoy.config.core.v3.Node node = 7;
* @return The node.
*/
public io.envoyproxy.envoy.config.core.v3.Node getNode() {
if (nodeBuilder_ == null) {
return node_ == null ? io.envoyproxy.envoy.config.core.v3.Node.getDefaultInstance() : node_;
} else {
return nodeBuilder_.getMessage();
}
}
/**
*
* Populated node identity of this server.
*
*
* .envoy.config.core.v3.Node node = 7;
*/
public Builder setNode(io.envoyproxy.envoy.config.core.v3.Node value) {
if (nodeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
node_ = value;
onChanged();
} else {
nodeBuilder_.setMessage(value);
}
return this;
}
/**
*
* Populated node identity of this server.
*
*
* .envoy.config.core.v3.Node node = 7;
*/
public Builder setNode(
io.envoyproxy.envoy.config.core.v3.Node.Builder builderForValue) {
if (nodeBuilder_ == null) {
node_ = builderForValue.build();
onChanged();
} else {
nodeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Populated node identity of this server.
*
*
* .envoy.config.core.v3.Node node = 7;
*/
public Builder mergeNode(io.envoyproxy.envoy.config.core.v3.Node value) {
if (nodeBuilder_ == null) {
if (node_ != null) {
node_ =
io.envoyproxy.envoy.config.core.v3.Node.newBuilder(node_).mergeFrom(value).buildPartial();
} else {
node_ = value;
}
onChanged();
} else {
nodeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Populated node identity of this server.
*
*
* .envoy.config.core.v3.Node node = 7;
*/
public Builder clearNode() {
if (nodeBuilder_ == null) {
node_ = null;
onChanged();
} else {
node_ = null;
nodeBuilder_ = null;
}
return this;
}
/**
*
* Populated node identity of this server.
*
*
* .envoy.config.core.v3.Node node = 7;
*/
public io.envoyproxy.envoy.config.core.v3.Node.Builder getNodeBuilder() {
onChanged();
return getNodeFieldBuilder().getBuilder();
}
/**
*
* Populated node identity of this server.
*
*
* .envoy.config.core.v3.Node node = 7;
*/
public io.envoyproxy.envoy.config.core.v3.NodeOrBuilder getNodeOrBuilder() {
if (nodeBuilder_ != null) {
return nodeBuilder_.getMessageOrBuilder();
} else {
return node_ == null ?
io.envoyproxy.envoy.config.core.v3.Node.getDefaultInstance() : node_;
}
}
/**
*
* Populated node identity of this server.
*
*
* .envoy.config.core.v3.Node node = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.Node, io.envoyproxy.envoy.config.core.v3.Node.Builder, io.envoyproxy.envoy.config.core.v3.NodeOrBuilder>
getNodeFieldBuilder() {
if (nodeBuilder_ == null) {
nodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.Node, io.envoyproxy.envoy.config.core.v3.Node.Builder, io.envoyproxy.envoy.config.core.v3.NodeOrBuilder>(
getNode(),
getParentForChildren(),
isClean());
node_ = null;
}
return nodeBuilder_;
}
@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.ServerInfo)
}
// @@protoc_insertion_point(class_scope:envoy.admin.v3.ServerInfo)
private static final io.envoyproxy.envoy.admin.v3.ServerInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.admin.v3.ServerInfo();
}
public static io.envoyproxy.envoy.admin.v3.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 {
return new ServerInfo(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.ServerInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}