// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: BydrRoomMessage.proto
package com.jzy.game.message.bydr;
public final class BydrRoomMessage {
private BydrRoomMessage() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
/**
* Protobuf enum {@code RoomType}
*/
public enum RoomType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>CLASSICS = 1;</code>
*
* <pre>
*经典场
* </pre>
*/
CLASSICS(0, 1),
/**
* <code>ARENA = 2;</code>
*
* <pre>
*竞技场
* </pre>
*/
ARENA(1, 2),
;
/**
* <code>CLASSICS = 1;</code>
*
* <pre>
*经典场
* </pre>
*/
public static final int CLASSICS_VALUE = 1;
/**
* <code>ARENA = 2;</code>
*
* <pre>
*竞技场
* </pre>
*/
public static final int ARENA_VALUE = 2;
public final int getNumber() { return value; }
public static RoomType valueOf(int value) {
switch (value) {
case 1: return CLASSICS;
case 2: return ARENA;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<RoomType>
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap<RoomType>
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<RoomType>() {
public RoomType findValueByNumber(int number) {
return RoomType.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.jzy.game.message.bydr.BydrRoomMessage.getDescriptor().getEnumTypes().get(0);
}
private static final RoomType[] VALUES = values();
public static RoomType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private RoomType(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:RoomType)
}
public interface EnterRoomRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional .MID mid = 1 [default = EnterRoomReq];
/**
* <code>optional .MID mid = 1 [default = EnterRoomReq];</code>
*
* <pre>
*消息id
* </pre>
*/
boolean hasMid();
/**
* <code>optional .MID mid = 1 [default = EnterRoomReq];</code>
*
* <pre>
*消息id
* </pre>
*/
com.jzy.game.message.Mid.MID getMid();
// required .RoomType type = 2 [default = CLASSICS];
/**
* <code>required .RoomType type = 2 [default = CLASSICS];</code>
*
* <pre>
*房间类型
* </pre>
*/
boolean hasType();
/**
* <code>required .RoomType type = 2 [default = CLASSICS];</code>
*
* <pre>
*房间类型
* </pre>
*/
com.jzy.game.message.bydr.BydrRoomMessage.RoomType getType();
// required int32 rank = 3;
/**
* <code>required int32 rank = 3;</code>
*
* <pre>
*房间级别
* </pre>
*/
boolean hasRank();
/**
* <code>required int32 rank = 3;</code>
*
* <pre>
*房间级别
* </pre>
*/
int getRank();
}
/**
* Protobuf type {@code EnterRoomRequest}
*
* <pre>
*玩家进入机器房间
* </pre>
*/
public static final class EnterRoomRequest extends
com.google.protobuf.GeneratedMessage
implements EnterRoomRequestOrBuilder {
// Use EnterRoomRequest.newBuilder() to construct.
private EnterRoomRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private EnterRoomRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final EnterRoomRequest defaultInstance;
public static EnterRoomRequest getDefaultInstance() {
return defaultInstance;
}
public EnterRoomRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EnterRoomRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
com.jzy.game.message.Mid.MID value = com.jzy.game.message.Mid.MID.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
mid_ = value;
}
break;
}
case 16: {
int rawValue = input.readEnum();
com.jzy.game.message.bydr.BydrRoomMessage.RoomType value = com.jzy.game.message.bydr.BydrRoomMessage.RoomType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(2, rawValue);
} else {
bitField0_ |= 0x00000002;
type_ = value;
}
break;
}
case 24: {
bitField0_ |= 0x00000004;
rank_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.jzy.game.message.bydr.BydrRoomMessage.internal_static_EnterRoomRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.jzy.game.message.bydr.BydrRoomMessage.internal_static_EnterRoomRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.jzy.game.message.bydr.BydrRoomMessage.EnterRoomRequest.class, com.jzy.game.message.bydr.BydrRoomMessage.EnterRoomRequest.Builder.class);
}
public static com.google.protobuf.Parser<EnterRoomRequest> PARSER =
new com.google.protobuf.AbstractParser<En