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.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/admin/v2alpha/server_info.proto
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();
}
@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.v2alpha.CommandLineOptions.Builder subBuilder = null;
if (commandLineOptions_ != null) {
subBuilder = commandLineOptions_.toBuilder();
}
commandLineOptions_ = input.readMessage(io.envoyproxy.envoy.admin.v2alpha.CommandLineOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(commandLineOptions_);
commandLineOptions_ = 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.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.
*
*
* 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)
}
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.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() {
@SuppressWarnings("deprecation")
io.envoyproxy.envoy.admin.v2alpha.ServerInfo.State result = io.envoyproxy.envoy.admin.v2alpha.ServerInfo.State.valueOf(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 uptimeCurrentEpoch_ != null;
}
/**
*
*
* 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.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;
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() {
@SuppressWarnings("deprecation")
io.envoyproxy.envoy.admin.v2alpha.ServerInfo.State result = io.envoyproxy.envoy.admin.v2alpha.ServerInfo.State.valueOf(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();
}
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() {
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;
}
/**
*