com.sandpolis.core.net.Channel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core.net Show documentation
Show all versions of core.net Show documentation
com.sandpolis.core.net module
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: com/sandpolis/core/net/channel.proto
package com.sandpolis.core.net;
public final class Channel {
private Channel() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
/**
* Protobuf enum {@code core.net.ChannelTransportImplementation}
*/
public enum ChannelTransportImplementation
implements com.google.protobuf.Internal.EnumLite {
/**
* NIO = 0;
*/
NIO(0),
/**
* EPOLL = 1;
*/
EPOLL(1),
/**
* KQUEUE = 2;
*/
KQUEUE(2),
UNRECOGNIZED(-1),
;
/**
* NIO = 0;
*/
public static final int NIO_VALUE = 0;
/**
* EPOLL = 1;
*/
public static final int EPOLL_VALUE = 1;
/**
* KQUEUE = 2;
*/
public static final int KQUEUE_VALUE = 2;
@java.lang.Override
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 number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ChannelTransportImplementation valueOf(int value) {
return forNumber(value);
}
public static ChannelTransportImplementation forNumber(int value) {
switch (value) {
case 0: return NIO;
case 1: return EPOLL;
case 2: return KQUEUE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ChannelTransportImplementation> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
@java.lang.Override
public ChannelTransportImplementation findValueByNumber(int number) {
return ChannelTransportImplementation.forNumber(number);
}
};
public static com.google.protobuf.Internal.EnumVerifier
internalGetVerifier() {
return ChannelTransportImplementationVerifier.INSTANCE;
}
private static final class ChannelTransportImplementationVerifier implements
com.google.protobuf.Internal.EnumVerifier {
static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new ChannelTransportImplementationVerifier();
@java.lang.Override
public boolean isInRange(int number) {
return ChannelTransportImplementation.forNumber(number) != null;
}
};
private final int value;
private ChannelTransportImplementation(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:core.net.ChannelTransportImplementation)
}
/**
* Protobuf enum {@code core.net.ChannelTransportProtocol}
*/
public enum ChannelTransportProtocol
implements com.google.protobuf.Internal.EnumLite {
/**
* TCP = 0;
*/
TCP(0),
/**
* UDP = 1;
*/
UDP(1),
UNRECOGNIZED(-1),
;
/**
* TCP = 0;
*/
public static final int TCP_VALUE = 0;
/**
* UDP = 1;
*/
public static final int UDP_VALUE = 1;
@java.lang.Override
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 number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ChannelTransportProtocol valueOf(int value) {
return forNumber(value);
}
public static ChannelTransportProtocol forNumber(int value) {
switch (value) {
case 0: return TCP;
case 1: return UDP;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ChannelTransportProtocol> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
@java.lang.Override
public ChannelTransportProtocol findValueByNumber(int number) {
return ChannelTransportProtocol.forNumber(number);
}
};
public static com.google.protobuf.Internal.EnumVerifier
internalGetVerifier() {
return ChannelTransportProtocolVerifier.INSTANCE;
}
private static final class ChannelTransportProtocolVerifier implements
com.google.protobuf.Internal.EnumVerifier {
static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new ChannelTransportProtocolVerifier();
@java.lang.Override
public boolean isInRange(int number) {
return ChannelTransportProtocol.forNumber(number) != null;
}
};
private final int value;
private ChannelTransportProtocol(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:core.net.ChannelTransportProtocol)
}
static {
}
// @@protoc_insertion_point(outer_class_scope)
}